diff --git a/src/node-context.h b/src/node-context.h
index a9b4beb07614b37402a188dafff64d787230d65a..f266cc4135fbefefdaf8afd84ab995efd71cc41e 100644 (file)
--- a/src/node-context.h
+++ b/src/node-context.h
* This code is in public domain
*/
* This code is in public domain
*/
+#include <gtk/gtktypeutils.h>
#include <sigc++/sigc++.h>
#include "event-context.h"
#include "forward.h"
#include <sigc++/sigc++.h>
#include "event-context.h"
#include "forward.h"
+#include "display/display-forward.h"
#include "nodepath.h"
#include "nodepath.h"
-struct SPKnotHolder;
namespace Inkscape { class Selection; }
#define SP_TYPE_NODE_CONTEXT (sp_node_context_get_type ())
namespace Inkscape { class Selection; }
#define SP_TYPE_NODE_CONTEXT (sp_node_context_get_type ())
#define SP_IS_NODE_CONTEXT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_NODE_CONTEXT))
#define SP_IS_NODE_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_NODE_CONTEXT))
#define SP_IS_NODE_CONTEXT(obj) (GTK_CHECK_TYPE ((obj), SP_TYPE_NODE_CONTEXT))
#define SP_IS_NODE_CONTEXT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), SP_TYPE_NODE_CONTEXT))
+enum { SP_NODE_CONTEXT_INACTIVE,
+ SP_NODE_CONTEXT_NODE_DRAGGING,
+ SP_NODE_CONTEXT_RUBBERBAND_DRAGGING };
+
class SPNodeContext;
class SPNodeContextClass;
struct SPNodeContext {
class SPNodeContext;
class SPNodeContextClass;
struct SPNodeContext {
+ // FIXME: shouldn't this be a pointer???
SPEventContext event_context;
guint drag : 1;
SPEventContext event_context;
guint drag : 1;
- Inkscape::NodePath::Path *nodepath;
+ ShapeEditor* shape_editor;
gboolean leftalt;
gboolean rightalt;
gboolean leftalt;
gboolean rightalt;
Inkscape::MessageContext *_node_message_context;
Inkscape::MessageContext *_node_message_context;
- double grab_t;
- Inkscape::NodePath::Node * grab_node;
- bool hit;
- NR::Point curvepoint_event; // int coords from event
- NR::Point curvepoint_doc; // same, in doc coords
bool cursor_drag;
bool cursor_drag;
- bool added_node;
+ bool added_node;
+
+ unsigned int current_state;
+
+ SPItem * flashed_item;
+ Inkscape::Display::TemporaryItem * flash_tempitem;
+ int remove_flash_counter;
};
struct SPNodeContextClass {
};
struct SPNodeContextClass {
GtkType sp_node_context_get_type (void);
void sp_node_context_selection_changed (Inkscape::Selection * selection, gpointer data);
GtkType sp_node_context_get_type (void);
void sp_node_context_selection_changed (Inkscape::Selection * selection, gpointer data);
+void sp_node_context_selection_modified (Inkscape::Selection * selection, guint flags, gpointer data);
#endif
#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 :