object-composite-settings.h revision 648401434273d7165b6346f9d04675b138464d2f
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental#ifndef SEEN_UI_WIDGET_OBJECT_COMPOSITE_SETTINGS_H
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental#define SEEN_UI_WIDGET_OBJECT_COMPOSITE_SETTINGS_H
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental/*
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental * Authors:
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental * Bryce W. Harrington <bryce@bryceharrington.org>
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental * Gustav Broberg <broberg@kth.se>
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental *
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental * Copyright (C) 2004--2007 Authors
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental *
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental * Released under GNU GPL, read the file 'COPYING' for more information
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental */
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental#include <gtkmm/box.h>
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental#include <gtkmm/alignment.h>
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental#include <gtkmm/adjustment.h>
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental#include <gtkmm/label.h>
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental#include <gtkmm/scale.h>
9d2da14dec9f62765544a573f9151d83b85d0909mental#include <glibmm/ustring.h>
9d2da14dec9f62765544a573f9151d83b85d0909mental
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental#include "ui/widget/filter-effect-chooser.h"
648401434273d7165b6346f9d04675b138464d2fKris#include "ui/widget/spinbutton.h"
ad83b521a557c8a2d91c469f74137ca4ff4ab2d1mental#include "ui/widget/style-subject.h"
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalnamespace Inkscape {
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalnamespace UI {
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalnamespace Widget {
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
648401434273d7165b6346f9d04675b138464d2fKris/*
648401434273d7165b6346f9d04675b138464d2fKris * A widget for controlling object compositing (filter, opacity, etc.)
648401434273d7165b6346f9d04675b138464d2fKris */
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalclass ObjectCompositeSettings : public Gtk::VBox {
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalpublic:
be6c4327fc304962b439fd503536678e029ad51dmental ObjectCompositeSettings(unsigned int verb_code, char const *history_prefix, int flags);
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental ~ObjectCompositeSettings();
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
17eb9e57e1550f744916bf486947162aa523bddamental void setSubject(StyleSubject *subject);
17eb9e57e1550f744916bf486947162aa523bddamental
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalprivate:
9d2da14dec9f62765544a573f9151d83b85d0909mental unsigned int _verb_code;
9d2da14dec9f62765544a573f9151d83b85d0909mental Glib::ustring _blur_tag;
9d2da14dec9f62765544a573f9151d83b85d0909mental Glib::ustring _opacity_tag;
9d2da14dec9f62765544a573f9151d83b85d0909mental
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental Gtk::VBox _opacity_vbox;
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental Gtk::HBox _opacity_label_box;
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental Gtk::HBox _opacity_hbox;
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental Gtk::Label _opacity_label;
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental Gtk::Adjustment _opacity_adjustment;
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental Gtk::HScale _opacity_hscale;
9982f495cde2750b1c6446bfb152af73ab981512Johan Engelen Inkscape::UI::Widget::SpinButton _opacity_spin_button;
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
17eb9e57e1550f744916bf486947162aa523bddamental StyleSubject *_subject;
ad83b521a557c8a2d91c469f74137ca4ff4ab2d1mental
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental SimpleFilterModifier _fe_cb;
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental Gtk::VBox _fe_vbox;
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental Gtk::Alignment _fe_alignment;
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
648401434273d7165b6346f9d04675b138464d2fKris bool _blocked;
648401434273d7165b6346f9d04675b138464d2fKris gulong _desktop_activated;
648401434273d7165b6346f9d04675b138464d2fKris sigc::connection _subject_changed;
648401434273d7165b6346f9d04675b138464d2fKris
7079a43aa387066c2f67402d77dbe3db981b1054Ted Gould static void _on_desktop_activate(Inkscape::Application *application, SPDesktop *desktop, ObjectCompositeSettings *w);
7079a43aa387066c2f67402d77dbe3db981b1054Ted Gould static void _on_desktop_deactivate(Inkscape::Application *application, SPDesktop *desktop, ObjectCompositeSettings *w);
ad83b521a557c8a2d91c469f74137ca4ff4ab2d1mental void _subjectChanged();
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental void _blendBlurValueChanged();
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental void _opacityValueChanged();
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental};
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental}
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental}
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental}
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental#endif
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental/*
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental Local Variables:
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental mode:c++
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental c-file-style:"stroustrup"
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental indent-tabs-mode:nil
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental fill-column:99
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental End:
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental*/
a4030d5ca449e7e384bc699cd249ee704faaeab0Chris Morgan// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :