~ubuntu-branches/ubuntu/natty/inkscape/natty

« back to all changes in this revision

Viewing changes to src/gradient-drag.h

  • Committer: Bazaar Package Importer
  • Author(s): Alex Valavanis
  • Date: 2010-09-12 19:44:58 UTC
  • mfrom: (1.1.12 upstream) (45.1.3 maverick)
  • Revision ID: james.westby@ubuntu.com-20100912194458-4sjwmbl7dlsrk5dc
Tags: 0.48.0-1ubuntu1
* Merge with Debian unstable (LP: #628048, LP: #401567, LP: #456248, 
  LP: #463602, LP: #591986)
* debian/control: 
  - Ubuntu maintainers
  - Promote python-lxml, python-numpy, python-uniconvertor to Recommends.
  - Demote pstoedit to Suggests (universe package).
  - Suggests ttf-dejavu instead of ttf-bitstream-vera (LP: #513319)
* debian/rules:
  - Run intltool-update on build (Ubuntu-specific).
  - Add translation domain to .desktop files (Ubuntu-specific).
* debian/dirs:
  - Add usr/share/pixmaps.  Allow inkscape.xpm installation
* drop 50-poppler-API.dpatch (now upstream)
* drop 51-paste-in-unwritable-directory.dpatch (now upstream) 

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
#define __GRADIENT_DRAG_H__
3
3
 
4
4
/*
5
 
 * On-canvas gradient dragging 
 
5
 * On-canvas gradient dragging
6
6
 *
7
7
 * Authors:
8
8
 *   bulia byak <bulia@users.sf.net>
78
78
 
79
79
    void updateKnotShape();
80
80
    void updateTip();
81
 
    
 
81
 
82
82
    void select();
83
83
    void deselect();
84
84
    bool isSelected();
131
131
    void deleteSelected (bool just_one = false);
132
132
 
133
133
    guint32 getColor();
134
 
    
135
 
    bool keep_selection;    
136
 
    
 
134
 
 
135
    bool keep_selection;
 
136
 
137
137
    GrDragger *getDraggerFor (SPItem *item, gint point_type, gint point_i, bool fill_or_stroke);
138
138
 
139
139
    void grabKnot (GrDragger *dragger, gint x, gint y, guint32 etime);
154
154
    void updateLines ();
155
155
    void updateLevels ();
156
156
 
 
157
    bool mouseOver();
 
158
 
157
159
    void selected_move_nowrite (double x, double y, bool scale_radial);
158
160
    void selected_move (double x, double y, bool write_repr = true, bool scale_radial = false);
159
161
    void selected_move_screen (double x, double y);
163
165
 
164
166
    void selected_reverse_vector ();
165
167
 
166
 
private: 
 
168
private:
167
169
    void deselect_all();
168
170
 
169
171
    void addLine (SPItem *item, Geom::Point p1, Geom::Point p2, guint32 rgba);
173
175
    void addDraggersRadial (SPRadialGradient *rg, SPItem *item, bool fill_or_stroke);
174
176
    void addDraggersLinear (SPLinearGradient *lg, SPItem *item, bool fill_or_stroke);
175
177
 
 
178
    bool styleSet( const SPCSSAttr *css );
 
179
 
 
180
    Glib::ustring makeStopSafeColor( gchar const *str, bool &isNull );
 
181
 
176
182
    Inkscape::Selection *selection;
177
183
    sigc::connection sel_changed_connection;
178
184
    sigc::connection sel_modified_connection;