]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/movetool.h
Move gauge to TrackAppearance
[r2c2.git] / source / designer / movetool.h
index 5eb1c8599ef1ec9952a89468eb9ba0922da7077d..afd556dea4dad798ee55503d2b5b165e3e5008e8 100644 (file)
@@ -6,12 +6,25 @@
 class MoveTool: public Manipulator
 {
 private:
+       struct Boundary
+       {
+               MObject *object;
+               unsigned index;
+               float limit;
+
+               Boundary(MObject *, unsigned);
+
+               R2C2::Object *operator->() const { return object->object; }
+       };
+
+       std::list<Boundary> boundaries;
+       std::set<R2C2::Object *> snap_targets;
        R2C2::Vector origin;
 
 public:
-       MoveTool(Designer &, Msp::Input::Mouse &, const std::set<R2C2::Object *> &);
+       MoveTool(Designer &, Msp::Input::Keyboard &, Msp::Input::Mouse &, const std::set<R2C2::Object *> &);
 
-       virtual void axis_motion(unsigned, float, float);
+       virtual void pointer_motion();
 };
 
 #endif