blob: f778c3ac0da99073920bffa1491705075b841a05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
#ifndef SEEN_UI_WIDGET_OBJECT_COMPOSITE_SETTINGS_H
#define SEEN_UI_WIDGET_OBJECT_COMPOSITE_SETTINGS_H
/*
* A widget for controlling object compositing (filter, opacity, etc.)
*
* Authors:
* Bryce W. Harrington <bryce@bryceharrington.org>
* Gustav Broberg <broberg@kth.se>
*
* Copyright (C) 2004--2007 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <gtkmm/box.h>
#include <gtkmm/alignment.h>
#include <gtkmm/adjustment.h>
#include <gtkmm/label.h>
#include <gtkmm/spinbutton.h>
#include <gtkmm/scale.h>
#include <glibmm/ustring.h>
#include "ui/widget/filter-effect-chooser.h"
#include "ui/widget/style-subject.h"
namespace Inkscape {
namespace UI {
namespace Widget {
class ObjectCompositeSettings : public Gtk::VBox {
public:
ObjectCompositeSettings(unsigned int verb_code, char const *history_prefix, int flags);
~ObjectCompositeSettings();
void setSubject(StyleSubject *subject);
private:
unsigned int _verb_code;
Glib::ustring _blur_tag;
Glib::ustring _opacity_tag;
Gtk::VBox _opacity_vbox;
Gtk::HBox _opacity_label_box;
Gtk::HBox _opacity_hbox;
Gtk::Label _opacity_label;
Gtk::Adjustment _opacity_adjustment;
Gtk::HScale _opacity_hscale;
Gtk::SpinButton _opacity_spin_button;
StyleSubject *_subject;
SimpleFilterModifier _fe_cb;
Gtk::VBox _fe_vbox;
Gtk::Alignment _fe_alignment;
static void _on_desktop_activate(Inkscape::Application *application, SPDesktop *desktop, ObjectCompositeSettings *w);
static void _on_desktop_deactivate(Inkscape::Application *application, SPDesktop *desktop, ObjectCompositeSettings *w);
void _subjectChanged();
sigc::connection _subject_changed;
void _blendBlurValueChanged();
void _opacityValueChanged();
bool _blocked;
gulong _desktop_activated;
};
}
}
}
#endif
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :
|