summaryrefslogtreecommitdiffstats
path: root/src/box3d-context.h
diff options
context:
space:
mode:
authorMarkus Engel <markus.engel@tum.de>2013-04-21 21:58:15 +0000
committerMarkus Engel <markus.engel@tum.de>2013-04-21 21:58:15 +0000
commitbdde74bbab299f2ee448f1c55469c56a66fb01f7 (patch)
tree45bccef1ec815708f9b54171e2d567344f155074 /src/box3d-context.h
parentMore cleaning. (diff)
downloadinkscape-bdde74bbab299f2ee448f1c55469c56a66fb01f7.tar.gz
inkscape-bdde74bbab299f2ee448f1c55469c56a66fb01f7.zip
Removed some unused files; more refactoring in EventContext tree.
(bzr r11608.1.104)
Diffstat (limited to 'src/box3d-context.h')
-rw-r--r--src/box3d-context.h30
1 files changed, 18 insertions, 12 deletions
diff --git a/src/box3d-context.h b/src/box3d-context.h
index 8fc230660..0c7630eb4 100644
--- a/src/box3d-context.h
+++ b/src/box3d-context.h
@@ -21,6 +21,8 @@
#include "proj_pt.h"
#include "vanishing-point.h"
+#include "box3d.h"
+
#define SP_BOX3D_CONTEXT(obj) ((Box3DContext*)obj)
#define SP_IS_BOX3D_CONTEXT(obj) (dynamic_cast<const Box3DContext*>((const SPEventContext*)obj))
@@ -29,7 +31,19 @@ public:
Box3DContext();
virtual ~Box3DContext();
- SPItem *item;
+ Box3D::VPDrag * _vpdrag;
+
+ static const std::string prefsPath;
+
+ virtual void setup();
+ virtual void finish();
+ virtual gint root_handler(GdkEvent* event);
+ virtual gint item_handler(SPItem* item, GdkEvent* event);
+
+ virtual const std::string& getPrefsPath();
+
+private:
+ SPBox3D* box3d;
Geom::Point center;
/**
@@ -51,24 +65,16 @@ public:
bool ctrl_dragged; /* whether we are ctrl-dragging */
bool extruded; /* whether shift-dragging already occured (i.e. the box is already extruded) */
- Box3D::VPDrag * _vpdrag;
-
sigc::connection sel_changed_connection;
Inkscape::MessageContext *_message_context;
- static const std::string prefsPath;
-
- virtual void setup();
- virtual void finish();
- virtual gint root_handler(GdkEvent* event);
- virtual gint item_handler(SPItem* item, GdkEvent* event);
+ void selection_changed(Inkscape::Selection* selection);
- virtual const std::string& getPrefsPath();
+ void drag(guint state);
+ void finishItem();
};
-void sp_box3d_context_update_lines(SPEventContext *ec);
-
#endif /* __SP_BOX3D_CONTEXT_H__ */
/*