X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Fmovetool.h;h=afd556dea4dad798ee55503d2b5b165e3e5008e8;hb=5929b101ee38b5668b328e7b1eac4bf49c912412;hp=5eb1c8599ef1ec9952a89468eb9ba0922da7077d;hpb=678982e7ddb22bb5fd44ce448d1c5cbf646b2573;p=r2c2.git diff --git a/source/designer/movetool.h b/source/designer/movetool.h index 5eb1c85..afd556d 100644 --- a/source/designer/movetool.h +++ b/source/designer/movetool.h @@ -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 boundaries; + std::set snap_targets; R2C2::Vector origin; public: - MoveTool(Designer &, Msp::Input::Mouse &, const std::set &); + MoveTool(Designer &, Msp::Input::Keyboard &, Msp::Input::Mouse &, const std::set &); - virtual void axis_motion(unsigned, float, float); + virtual void pointer_motion(); }; #endif