Code

Warning cleanup
[inkscape.git] / src / ui / dialog / spray-option.h
2 /*Julien LERAY (julien.leray@ecl2010.ec-lyon.fr), interface for the spray tool*/
4 #ifndef INKSCAPE_UI_DIALOG_SPRAY_OPTION_H
5 #define INKSCAPE_UI_DIALOG_SPRAY_OPTION_H
7 #include <gtkmm/notebook.h>
8 #include <glibmm/i18n.h>
10 #include <list>
11 #include <gtkmm/frame.h>
12 #include <gtkmm/tooltips.h>
13 #include <gtkmm/comboboxtext.h>
14 #include <gtkmm/table.h>
15 #include <gtkmm/buttonbox.h>
16 #include <gtkmm/label.h>
17 #include "libnr/nr-dim2.h"
18 #include "libnr/nr-rect.h"
21 #include "ui/widget/panel.h"
22 #include "ui/widget/notebook-page.h"
24 #ifdef HAVE_CONFIG_H
25 # include <config.h>
26 #endif
28 #include <gtkmm/spinbutton.h>
29 #include "desktop-handles.h"
30 #include "unclump.h"
31 #include "document.h"
32 #include "enums.h"
33 #include "graphlayout/graphlayout.h"
34 #include "inkscape.h"
35 #include "macros.h"
36 #include "node-context.h"
37 #include "preferences.h"
38 #include "removeoverlap/removeoverlap.h"
39 #include "selection.h"
40 #include "shape-editor.h"
41 #include "sp-flowtext.h"
42 #include "sp-item-transform.h"
43 #include "sp-text.h"
44 #include "text-editing.h"
45 #include "tools-switch.h"
46 #include "ui/icon-names.h"
47 #include "util/glib-list-iterators.h"
48 #include "verbs.h"
49 #include "widgets/icon.h"
51 #include "spray-context.h"
52 #include "verbs.h"
54 #include <iostream>
55 using namespace std;
57 using namespace Inkscape::UI::Widget;
59 class SPItem;
62 namespace Inkscape {
63 namespace UI {
64 namespace Dialog {
66 class Action;
68 class SprayOptionClass : public Widget::Panel {
70 private:
72     SprayOptionClass(SprayOptionClass const &d);
73     SprayOptionClass& operator=(SprayOptionClass const &d);
75 public:
76     SprayOptionClass();
77     virtual ~SprayOptionClass();
78     void test() {    cout<<"appel de test !!"<<endl;  }
79     static SprayOptionClass &getInstance() { return *new SprayOptionClass(); }
82     Gtk::Table &_Table(){return _ETable;}
83     Gtk::Table &F_Table(){return _FTable;}
84     Gtk::Tooltips &tooltips(){return _tooltips;}
85     void action();
86     void combo_action();
87     Geom::OptRect randomize_bbox;
89     SprayOptionClass &get_SprayOptionClass();
91 protected:
93     void addGaussianButton(guint row, guint col);
94     void addEButton(const Glib::ustring &id, const Glib::ustring &tiptext, guint row, guint column,
95                 guint min, guint max, const Glib::ustring &pref_path);
96     void addFButton(const Glib::ustring &id, const Glib::ustring &tiptext, guint row, guint column,
97                 const Glib::ustring &pref1_path, const Glib::ustring &pref2_path);
99     std::list<Action *> _actionList;
100     Gtk::Frame _distributionFrame;
101     Gtk::Frame _Frame;
102     Gtk::Frame _FFrame;
103     Gtk::Table _distributionTable;
104     Gtk::Table _gaussianTable;
105     Gtk::Table _ETable;
106     Gtk::Table _FTable;
107     Gtk::HBox _anchorBox;
108     Gtk::HBox _unifBox;
109     Gtk::HBox _gaussianBox;
110     Gtk::HBox _HBox;
111     Gtk::HBox _FHBox;
112     Gtk::HBox _BoutonBox;
113     Gtk::VBox _distributionBox;
114     Gtk::VBox  _VBox;
115     Gtk::VBox _FVBox;
116     Gtk::VBox _ActionBox;
117     Gtk::Label _anchorLabel;
118     Gtk::Label _unifLabel;
119     Gtk::Label _gaussLabel;
120     Gtk::Label _Label;
121     Gtk::Label _FLabel;
122     Gtk::CheckButton _unif;
123     Gtk::CheckButton _gauss;
124     Gtk::ComboBoxText _combo;
125     Gtk::Tooltips _tooltips;
126 };
129 } // namespace Dialog
130 } // namespace UI
131 } // namespace Inkscape
133 #endif // INKSCAPE_UI_DIALOG_ALIGN_AND_DISTRIBUTE_H
135 /*
136   Local Variables:
137   mode:c++
138   c-file-style:"stroustrup"
139   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
140   indent-tabs-mode:nil
141   fill-column:99
142   End:
143 */
144 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :