Code

merging gsoc 2009 color management work by Felipe Sanches (a.k.a. JucaBlues)
[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);
74     
75 public:
76     SprayOptionClass();
77     virtual ~SprayOptionClass();   
78     void test() {    cout<<"appel de test !!"<<endl;  }
79     static SprayOptionClass &getInstance() { return *new SprayOptionClass(); }
81     
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,  _Frame, _FFrame ;
101     Gtk::Table _distributionTable, _gaussianTable, _ETable, _FTable;
102     Gtk::HBox _anchorBox;
103     Gtk::HBox _unifBox, _gaussianBox, _HBox, _FHBox, _BoutonBox;
104     Gtk::VBox _distributionBox,  _VBox, _FVBox, _ActionBox;
105     Gtk::Label _anchorLabel;
106     Gtk::Label _unifLabel, _gaussLabel, _Label, _FLabel;
107     Gtk::CheckButton _unif, _gauss;
108     Gtk::ComboBoxText _combo;
109     Gtk::Tooltips _tooltips;
111 };
114 } // namespace Dialog
115 } // namespace UI
116 } // namespace Inkscape
118 #endif // INKSCAPE_UI_DIALOG_ALIGN_AND_DISTRIBUTE_H
120 /*
121   Local Variables:
122   mode:c++
123   c-file-style:"stroustrup"
124   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
125   indent-tabs-mode:nil
126   fill-column:99
127   End:
128 */
129 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :