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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook, Kees Cook, Ted Gould
  • Date: 2008-02-10 14:20:16 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080210142016-vcnb2zqyhszu0xvb
Tags: 0.46~pre1-0ubuntu1
[ Kees Cook ]
* debian/control:
  - add libgtkspell-dev build-dep to gain GtkSpell features (LP: #183547).
  - update Standards version (no changes needed).
  - add Vcs and Homepage fields.
  - switch to new python-lxml dep.
* debian/{control,rules}: switch from dpatch to quilt for more sanity.
* debian/patches/20_fix_glib_and_gxx43_ftbfs.patch:
  - merged against upstream fixes.
  - added additional fixes for newly written code.
* debian/rules: enable parallel building.

[ Ted Gould ]
* Updating POTFILES.in to make it so things build correctly.
* debian/control:
  - add ImageMagick++ and libboost-dev to build-deps

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef INKSCAPE_LIVEPATHEFFECT_PARAMETER_PATH_H
 
2
#define INKSCAPE_LIVEPATHEFFECT_PARAMETER_PATH_H
 
3
 
 
4
/*
 
5
 * Inkscape::LivePathEffectParameters
 
6
 *
 
7
* Copyright (C) Johan Engelen 2007 <j.b.c.engelen@utwente.nl>
 
8
 *
 
9
 * Released under GNU GPL, read the file 'COPYING' for more information
 
10
 */
 
11
 
 
12
#include <glib/gtypes.h>
 
13
#include <2geom/path.h>
 
14
 
 
15
#include "ui/widget/registry.h"
 
16
#include <gtkmm/tooltips.h>
 
17
 
 
18
#include "live_effects/parameter/parameter.h"
 
19
 
 
20
#include <sigc++/sigc++.h>
 
21
 
 
22
namespace Inkscape {
 
23
 
 
24
namespace LivePathEffect {
 
25
 
 
26
class PathParam : public Geom::Piecewise<Geom::D2<Geom::SBasis> >, public Parameter {
 
27
public:
 
28
    PathParam ( const Glib::ustring& label,
 
29
                const Glib::ustring& tip,
 
30
                const Glib::ustring& key,
 
31
                Inkscape::UI::Widget::Registry* wr,
 
32
                Effect* effect,
 
33
                const gchar * default_value = "M0,0 L1,1");
 
34
    virtual ~PathParam();
 
35
 
 
36
    virtual Gtk::Widget * param_newWidget(Gtk::Tooltips * tooltips);
 
37
 
 
38
    bool param_readSVGValue(const gchar * strvalue);
 
39
    gchar * param_writeSVGValue() const;
 
40
 
 
41
    void param_set_default();
 
42
 
 
43
    void param_set_and_write_new_value (Geom::Piecewise<Geom::D2<Geom::SBasis> > newpath);
 
44
 
 
45
    void param_editOncanvas(SPItem * item, SPDesktop * dt);
 
46
    void param_setup_nodepath(Inkscape::NodePath::Path *np);
 
47
 
 
48
    virtual void param_transform_multiply(Geom::Matrix const& /*postmul*/, bool /*set*/);
 
49
 
 
50
    sigc::signal <void> signal_path_pasted;
 
51
    sigc::signal <void> signal_path_changed;
 
52
 
 
53
private:
 
54
    PathParam(const PathParam&);
 
55
    PathParam& operator=(const PathParam&);
 
56
 
 
57
    void on_edit_button_click();
 
58
    void on_paste_button_click();
 
59
    void on_copy_button_click();
 
60
 
 
61
    gchar * defvalue;
 
62
};
 
63
 
 
64
 
 
65
} //namespace LivePathEffect
 
66
 
 
67
} //namespace Inkscape
 
68
 
 
69
#endif