Code

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