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"
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
715757c20baad0e8e8b54e8ad6742565f923b74cAlex Valavanisclass SPDesktop;
2f64b614754d1f1ca1265fdb3624407f93933a15Alex Valavanisstruct InkscapeApplication;
715757c20baad0e8e8b54e8ad6742565f923b74cAlex Valavanis
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalnamespace Inkscape {
1b3a8414f17dc95fc921d999ea715c99d10dd4aaAlex Valavanis
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalnamespace UI {
526c8bf9bb41b582dc49f54ac192705de9e2edf2mentalnamespace Widget {
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
1b3a8414f17dc95fc921d999ea715c99d10dd4aaAlex Valavanisclass StyleSubject;
1b3a8414f17dc95fc921d999ea715c99d10dd4aaAlex Valavanis
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;
4524755733342d1f59efec7d655bfb6a47c0ab72John Smith Inkscape::UI::Widget::SpinScale _opacity_scale;
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
17eb9e57e1550f744916bf486947162aa523bddamental StyleSubject *_subject;
ad83b521a557c8a2d91c469f74137ca4ff4ab2d1mental
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental SimpleFilterModifier _fe_cb;
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental Gtk::VBox _fe_vbox;
526c8bf9bb41b582dc49f54ac192705de9e2edf2mental
648401434273d7165b6346f9d04675b138464d2fKris bool _blocked;
648401434273d7165b6346f9d04675b138464d2fKris gulong _desktop_activated;
648401434273d7165b6346f9d04675b138464d2fKris sigc::connection _subject_changed;
648401434273d7165b6346f9d04675b138464d2fKris
3e3e2a49f82b250cb852586703fbc460b3ca20e4Liam P. White static void _on_desktop_activate(SPDesktop *desktop, ObjectCompositeSettings *w);
3e3e2a49f82b250cb852586703fbc460b3ca20e4Liam P. White static void _on_desktop_deactivate(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 :