shape-editor.h revision 2f8a505c173a704ab6fb25538bb3c1afe5ce9e4e
#ifndef __SHAPE_EDITOR_H__
#define __SHAPE_EDITOR_H__
/*
* Inkscape::ShapeEditor
*
* This is a container class which contains either knotholder (for shapes) or nodepath (for
* paths). It is attached to a single item so only one of these is active at a time.
*
* Authors:
* bulia byak <buliabyak@users.sf.net>
*
*/
#include <forward.h>
typedef enum NodeType;
}
}
#include "libnr/nr-path-code.h"
#include "libnr/nr-point.h"
~ShapeEditor();
void unset_item ();
bool has_nodepath ();
bool has_knotholder ();
bool has_local_change ();
void decrement_local_change ();
void nodepath_destroyed ();
void update_statusbar ();
void add_node_near_point(); // uses the shapeeditor's remembered point, if any
void cancel_hit ();
bool hits_curve ();
void finish_drag ();
bool has_selection ();
void deselect ();
void add_node();
void delete_nodes();
void delete_nodes_preserving_shape();
void break_at_nodes();
void join_nodes();
void duplicate_nodes();
void select_all (bool invert);
void select_all_from_subpath (bool invert);
void select_next ();
void select_prev ();
//Inkscape::XML::Node *lidtened_repr;
double grab_t;
int grab_node; // number of node grabbed by sp_node_context_is_over_stroke
bool hit;
};
/* As the next stage, this will be a collection of multiple ShapeEditors,
with the same interface as the single ShapeEditor, passing the actions to all its
contained ShapeEditors. Thus it should be easy to switch node context from
using a single ShapeEditor to using a ShapeEditorsCollective. */
void update_statusbar();
};
#endif
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :