Code

Fixes for transient dialogs in win32.
[inkscape.git] / src / ui / widget / filter-effect-chooser.h
1 #ifndef __FILTER_EFFECT_CHOOSER_H__
2 #define __FILTER_EFFECT_CHOOSER_H__
4 /*
5  * Filter effect selection selection widget
6  *
7  * Author:
8  *   Nicholas Bishop <nicholasbishop@gmail.com>
9  *
10  * Copyright (C) 2007 Authors
11  *
12  * Released under GNU GPL, read the file 'COPYING' for more information
13  */
15 #include <gtkmm/box.h>
16 #include <gtkmm/combobox.h>
17 #include <gtkmm/liststore.h>
18 #include <gtkmm/treeview.h>
20 #include "combo-enums.h"
21 #include "filter-enums.h"
22 #include "labelled.h"
23 #include "spin-slider.h"
24 #include "sp-filter.h"
26 namespace Inkscape {
27 namespace UI {
28 namespace Widget {
30 /* Allows basic control over feBlend and feGaussianBlur effects,
31    with an option to use the full filter effect controls. */
32 class SimpleFilterModifier : public Gtk::VBox
33 {
34 public:
35     SimpleFilterModifier();
37     sigc::signal<void>& signal_blend_blur_changed();
39     const Glib::ustring get_blend_mode();
40     // Uses blend mode enum values, or -1 for a complex filter
41     void set_blend_mode(const int);
43     double get_blur_value() const;
44     void set_blur_value(const double);
45     void set_blur_sensitive(const bool);
46 private:
47     Gtk::HBox _hb_blend;
48     Gtk::VBox _vb_blur;
49     Gtk::Label _lb_blend, _lb_blur;
50     ComboBoxEnum<NR::FilterBlendMode> _blend;
51     SpinSlider _blur;
53     sigc::signal<void> _signal_blend_blur_changed;
54 };
56 }
57 }
58 }
60 #endif
62 /*
63   Local Variables:
64   mode:c++
65   c-file-style:"stroustrup"
66   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
67   indent-tabs-mode:nil
68   fill-column:99
69   End:
70 */
71 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :