~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/ui/widget/filter-effect-chooser.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __FILTER_EFFECT_CHOOSER_H__
 
2
#define __FILTER_EFFECT_CHOOSER_H__
 
3
 
 
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
 */
 
14
 
 
15
#include <gtkmm/box.h>
 
16
#include <gtkmm/combobox.h>
 
17
#include <gtkmm/liststore.h>
 
18
#include <gtkmm/treeview.h>
 
19
 
 
20
#include "combo-enums.h"
 
21
#include "filter-enums.h"
 
22
#include "labelled.h"
 
23
#include "spin-slider.h"
 
24
#include "sp-filter.h"
 
25
 
 
26
namespace Inkscape {
 
27
namespace UI {
 
28
namespace Widget {
 
29
 
 
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
    enum Flags {
 
36
      NONE=0,
 
37
      BLUR=1,
 
38
      BLEND=2
 
39
    };
 
40
 
 
41
    SimpleFilterModifier(int flags);
 
42
 
 
43
    sigc::signal<void>& signal_blend_blur_changed();
 
44
 
 
45
    const Glib::ustring get_blend_mode();
 
46
    // Uses blend mode enum values, or -1 for a complex filter
 
47
    void set_blend_mode(const int);
 
48
 
 
49
    double get_blur_value() const;
 
50
    void set_blur_value(const double);
 
51
    void set_blur_sensitive(const bool);
 
52
 
 
53
private:
 
54
    int _flags;
 
55
    Gtk::HBox _hb_blend;
 
56
    Gtk::VBox _vb_blur;
 
57
    Gtk::Label _lb_blend, _lb_blur;
 
58
    ComboBoxEnum<Inkscape::Filters::FilterBlendMode> _blend;
 
59
    SpinSlider _blur;
 
60
 
 
61
    sigc::signal<void> _signal_blend_blur_changed;
 
62
};
 
63
 
 
64
}
 
65
}
 
66
}
 
67
 
 
68
#endif
 
69
 
 
70
/*
 
71
  Local Variables:
 
72
  mode:c++
 
73
  c-file-style:"stroustrup"
 
74
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
75
  indent-tabs-mode:nil
 
76
  fill-column:99
 
77
  End:
 
78
*/
 
79
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :