1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
/** \file
* \brief Document Properties dialog
*
* Authors:
* Ralf Stephan <ralf@ark.in-berlin.de>
* Bryce W. Harrington <bryce@bryceharrington.org>
*
* Copyright (C) 2006 Johan Engelen <johan@shouraizou.nl>
* Copyright (C) 2004, 2005 Authors
*
* Released under GNU GPL. Read the file 'COPYING' for more information.
*/
#ifndef INKSCAPE_UI_DIALOG_DOCUMENT_PREFERENCES_H
#define INKSCAPE_UI_DIALOG_DOCUMENT_PREFERENCES_H
#include <list>
#include <sigc++/sigc++.h>
#include <gtkmm/notebook.h>
#include <glibmm/i18n.h>
#include "ui/widget/notebook-page.h"
#include "ui/widget/page-sizer.h"
#include "ui/widget/registered-widget.h"
#include "ui/widget/registry.h"
#include "ui/widget/tolerance-slider.h"
#include "ui/widget/panel.h"
using namespace Inkscape::UI::Widget;
namespace Inkscape {
namespace XML {
class Node;
}
namespace UI {
namespace Dialog {
class DocumentProperties : public UI::Widget::Panel {
public:
void update();
static DocumentProperties &getInstance();
static void destroy();
void update_gridspage();
protected:
void build_page();
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, _page_snap_dtls;
Gtk::VBox _grids_vbox;
//---------------------------------------------------------------
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, _rcbsng;
RegisteredUnitMenu _rum_gusn;
RegisteredColorPicker _rcp_gui, _rcp_hgui;
//---------------------------------------------------------------
Gtk::Frame _snap_frame_from;
Gtk::Frame _snap_frame_to;
Gtk::Table _snap_table_from;
Gtk::Table _snap_table_to;
RegisteredCheckButton _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 const *_prefs_path;
Registry _wr;
private:
DocumentProperties();
virtual ~DocumentProperties();
// callback methods for buttons on grids page.
void onNewGrid();
void onRemoveGrid();
};
} // namespace Dialog
} // namespace UI
} // namespace Inkscape
#endif // INKSCAPE_UI_DIALOG_DOCUMENT_PREFERENCES_H
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=c++:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
|