Code

Disable the page selector when there's only one page
[inkscape.git] / src / ui / dialog / livepatheffect-editor.h
1 /**\r
2  * \brief LivePathEffect dialog\r
3  *\r
4  * Author:\r
5  *   Johan Engelen <j.b.c.engelen@ewi.utwente.nl>\r
6  *\r
7  * Copyright (C) 2007 Author\r
8  *\r
9  * Released under GNU GPL.  Read the file 'COPYING' for more information.\r
10  */\r
11 \r
12 #ifndef INKSCAPE_UI_DIALOG_LIVE_PATH_EFFECT_H\r
13 #define INKSCAPE_UI_DIALOG_LIVE_PATH_EFFECT_H\r
14 \r
15 #include "dialog.h"\r
16 #include "ui/widget/button.h"\r
17 \r
18 #include <gtkmm/label.h>\r
19 #include <gtkmm/comboboxtext.h>\r
20 #include <gtkmm/frame.h>\r
21 #include "ui/widget/combo-enums.h"\r
22 #include "live_effects/effect.h"\r
23 \r
24 class SPDesktop;\r
25 \r
26 namespace Inkscape {\r
27 \r
28 namespace UI {\r
29 namespace Dialog {\r
30 \r
31 class LivePathEffectEditor : public Dialog {\r
32 public:\r
33     LivePathEffectEditor();\r
34     virtual ~LivePathEffectEditor();\r
35 \r
36     static LivePathEffectEditor *create() { return new LivePathEffectEditor(); }\r
37 \r
38     void onSelectionChanged(Inkscape::Selection *sel);\r
39     void setDesktop(SPDesktop *desktop);\r
40 \r
41 private:\r
42     sigc::connection selection_changed_connection;\r
43     sigc::connection selection_modified_connection;\r
44 \r
45     void set_sensitize_all(bool sensitive);\r
46 \r
47     void showParams(LivePathEffect::Effect* effect);\r
48     void showText(Glib::ustring const &str);\r
49 \r
50     // callback methods for buttons on grids page.\r
51     void onApply();\r
52     void onRemove();\r
53 \r
54     Inkscape::UI::Widget::ComboBoxEnum<LivePathEffect::EffectType> combo_effecttype;\r
55     Inkscape::UI::Widget::Button button_apply;\r
56     Inkscape::UI::Widget::Button button_remove;\r
57     Gtk::Widget * effectwidget;\r
58     Gtk::Label explain_label;\r
59     Gtk::Frame effectapplication_frame;\r
60     Gtk::Frame effectcontrol_frame;\r
61     Gtk::VBox effectapplication_vbox;\r
62     Gtk::VBox effectcontrol_vbox;\r
63 \r
64     SPDesktop * current_desktop;\r
65 \r
66     LivePathEffectEditor(LivePathEffectEditor const &d);\r
67     LivePathEffectEditor& operator=(LivePathEffectEditor const &d);\r
68 };\r
69 \r
70 } // namespace Dialog\r
71 } // namespace UI\r
72 } // namespace Inkscape\r
73 \r
74 #endif // INKSCAPE_UI_DIALOG_LIVE_PATH_EFFECT_H\r
75 \r
76 /*\r
77   Local Variables:\r
78   mode:c++\r
79   c-file-style:"stroustrup"\r
80   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))\r
81   indent-tabs-mode:nil\r
82   fill-column:99\r
83   End:\r
84 */\r
85 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :\r