summaryrefslogtreecommitdiffstats
path: root/src/shape-editor.h
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2008-07-14 10:22:27 +0000
committercilix42 <cilix42@users.sourceforge.net>2008-07-14 10:22:27 +0000
commit1a0fcd98af5334f810752a7b5ad6269f2ed2ab25 (patch)
tree31040f6a95b67c3d6fce1b245353f4e11c208092 /src/shape-editor.h
parentSome improvements to my title/desc stuff of revision 18759 (see bug 171024). (diff)
downloadinkscape-1a0fcd98af5334f810752a7b5ad6269f2ed2ab25.tar.gz
inkscape-1a0fcd98af5334f810752a7b5ad6269f2ed2ab25.zip
Enable simultaneous knotholder and nodepath
(bzr r6291)
Diffstat (limited to 'src/shape-editor.h')
-rw-r--r--src/shape-editor.h18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/shape-editor.h b/src/shape-editor.h
index 48d008b1f..918102761 100644
--- a/src/shape-editor.h
+++ b/src/shape-editor.h
@@ -27,25 +27,31 @@ class SPDesktop;
class SPNodeContext;
class ShapeEditorsCollective;
+enum SubType{
+ SH_NODEPATH,
+ SH_KNOTHOLDER
+};
+
class ShapeEditor {
public:
ShapeEditor(SPDesktop *desktop);
~ShapeEditor();
- void set_item (SPItem *item);
+ void set_item (SPItem *item, SubType type, bool keep_knotholder = false);
void set_item_lpe_path_parameter(SPItem *item, SPObject *lpeobject, const char * key);
void set_knotholder(KnotHolder * knot_holder);
- void reset_item ();
- void unset_item ();
+ void reset_item (SubType type, bool keep_knotholder = true);
+ void unset_item (SubType type, bool keep_knotholder = false);
- SPItem *get_item ();
+ SPItem *get_item (SubType type);
bool has_nodepath ();
bool has_knotholder ();
+ void update_knotholder ();
- bool has_local_change ();
- void decrement_local_change ();
+ bool has_local_change (SubType type);
+ void decrement_local_change (SubType type);
GList *save_nodepath_selection ();
void restore_nodepath_selection (GList *saved);