~valavanisalex/ubuntu/oneiric/inkscape/inkscape_0.48.1-2ubuntu4

« back to all changes in this revision

Viewing changes to src/live_effects/parameter/point.h

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Ted Gould, Kees Cook
  • Date: 2009-06-24 14:00:43 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20090624140043-07stp20mry48hqup
Tags: 0.47~pre0-0ubuntu1
* New upstream release

[ Ted Gould ]
* debian/control: Adding libgsl0 and removing version specifics on boost

[ Kees Cook ]
* debian/watch: updated to run uupdate and mangle pre-release versions.
* Dropped patches that have been taken upstream:
  - 01_mips
  - 02-poppler-0.8.3
  - 03-chinese-inkscape
  - 05_fix_latex_patch
  - 06_gcc-4.4
  - 07_cdr2svg
  - 08_skip-bad-utf-on-pdf-import
  - 09_gtk-clist
  - 10_belarussian
  - 11_libpng
  - 12_desktop
  - 13_slider
  - 100_svg_import_improvements
  - 102_sp_pattern_painter_free
  - 103_bitmap_type_print

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#include <glib/gtypes.h>
13
13
#include <2geom/point.h>
14
14
 
15
 
#include "ui/widget/registry.h"
16
 
#include "ui/widget/registered-widget.h"
17
15
#include <gtkmm/tooltips.h>
18
16
 
19
17
#include "live_effects/parameter/parameter.h"
20
18
 
21
 
struct SPKnot;
 
19
#include "knot-holder-entity.h"
22
20
 
23
21
namespace Inkscape {
24
22
 
32
30
                const Glib::ustring& key,
33
31
                Inkscape::UI::Widget::Registry* wr,
34
32
                Effect* effect,
35
 
                Geom::Point default_value = Geom::Point(0,0));
 
33
                const gchar *handle_tip = NULL,
 
34
                Geom::Point default_value = Geom::Point(0,0) ); // tip for automatically associated on-canvas handle
36
35
    virtual ~PointParam();
37
36
 
38
37
    virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips);
39
38
 
40
39
    bool param_readSVGValue(const gchar * strvalue);
41
 
    gchar * param_writeSVGValue() const;
 
40
    gchar * param_getSVGValue() const;
 
41
    inline const gchar *handleTip() const { return handle_tip ? handle_tip : param_tooltip.c_str(); }
42
42
 
43
43
    void param_setValue(Geom::Point newpoint);
44
44
    void param_set_default();
47
47
 
48
48
    virtual void param_transform_multiply(Geom::Matrix const& /*postmul*/, bool /*set*/);
49
49
 
 
50
    void set_oncanvas_looks(SPKnotShapeType shape, SPKnotModeType mode, guint32 color);
 
51
 
 
52
    virtual bool providesKnotHolderEntities() { return true; }
 
53
    virtual void addKnotHolderEntities(KnotHolder *knotholder, SPDesktop *desktop, SPItem *item);
 
54
 
50
55
private:
51
56
    PointParam(const PointParam&);
52
57
    PointParam& operator=(const PointParam&);
53
58
 
54
 
    void on_button_click();
55
 
 
56
 
    SPKnot *knot;
57
 
 
58
59
    Geom::Point defvalue;
 
60
 
 
61
    SPKnotShapeType knot_shape;
 
62
    SPKnotModeType knot_mode;
 
63
    guint32 knot_color;
 
64
    gchar *handle_tip;
59
65
};
60
66
 
61
67