index d2f8776e4a3154ab5d6cdb92e1e5114fbbe5a219..8f7625a2d0254f54ecb9879d4c5d15d41ed28d54 100644 (file)
* Ralf Stephan <ralf@ark.in-berlin.de>
* Bryce W. Harrington <bryce@bryceharrington.org>
*
- * Copyright (C) 2006 Johan Engelen <johan@shouraizou.nl>
+ * Copyright (C) 2006-2008 Johan Engelen <johan@shouraizou.nl>
* Copyright (C) 2004, 2005 Authors
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
#include "ui/widget/registered-widget.h"
#include "ui/widget/registry.h"
#include "ui/widget/tolerance-slider.h"
-#include "dialog.h"
+#include "ui/widget/panel.h"
using namespace Inkscape::UI::Widget;
namespace UI {
namespace Dialog {
-class DocumentProperties : public Inkscape::UI::Dialog::Dialog {
+class DocumentProperties : public UI::Widget::Panel {
public:
void update();
- static DocumentProperties *create();
+ static DocumentProperties &getInstance();
static void destroy();
- sigc::connection _doc_replaced_connection;
void update_gridspage();
void build_grid();
void build_guides();
void build_snap();
+ void build_snap_dtls();
void build_gridspage();
void init();
virtual void on_response (int);
+ void _handleDocumentReplaced(SPDesktop* desktop, SPDocument *document);
+ void _handleActivateDesktop(Inkscape::Application *application, SPDesktop *desktop);
+ void _handleDeactivateDesktop(Inkscape::Application *application, SPDesktop *desktop);
+
Gtk::Tooltips _tt;
Gtk::Notebook _notebook;
NotebookPage _page_page, _page_guides;
- NotebookPage _page_snap;
- NotebookPage _page_grids;
+ NotebookPage _page_snap, _page_snap_dtls;
+ Gtk::VBox _grids_vbox;
+ Registry _wr;
//---------------------------------------------------------------
RegisteredCheckButton _rcb_canb, _rcb_bord, _rcb_shad;
RegisteredColorPicker _rcp_bg, _rcp_bord;
RegisteredUnitMenu _rum_deflt;
PageSizer _page_sizer;
//---------------------------------------------------------------
- RegisteredCheckButton _rcbgrid;
- RegisteredUnitMenu _rums;
- //---------------------------------------------------------------
- RegisteredCheckButton _rcb_sgui;
+ RegisteredCheckButton _rcb_sgui, _rcbsng;
RegisteredUnitMenu _rum_gusn;
RegisteredColorPicker _rcp_gui, _rcp_hgui;
//---------------------------------------------------------------
- RegisteredCheckButton _rcbsnbb, _rcbsnn, _rcbsnop, _rcbsnon;
+ RegisteredCheckButton _rcbsg, _rcbsnbb, _rcbsnn, _rcbsnop;
+ RegisteredCheckButton _rcbsnon, _rcbsnbbp, _rcbsnbbn;
RegisteredUnitMenu _rumso;
ToleranceSlider _rsu_sno, _rsu_sn, _rsu_gusn;
RegisteredRadioButtonPair _rrb_pix;
//---------------------------------------------------------------
+ RegisteredCheckButton _rcbic;
+ RegisteredCheckButton _rcbsigg, _rcbsils;
+ //---------------------------------------------------------------
Gtk::Notebook _grids_notebook;
+ Gtk::HBox _grids_hbox_crea;
+ Gtk::Label _grids_label_crea;
Gtk::Button _grids_button_new;
Gtk::Button _grids_button_remove;
Gtk::ComboBoxText _grids_combo_gridtype;
+ Gtk::Label _grids_label_def;
+ Gtk::HBox _grids_space;
//---------------------------------------------------------------
- gchar * _prefs_path;
- Registry _wr;
+ gchar const *_prefs_path;
+
+ Gtk::HBox& _createPageTabLabel(const Glib::ustring& label, const char *label_image);
private:
DocumentProperties();