X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Fextendtool.h;h=69e184aceae37afc7ce3837725d9b0bfc3535ed9;hb=05b95b6b6b095821f1e79dabed802b853c296c9d;hp=979c9205ef7038ba907ef60498c74000b5700de1;hpb=678982e7ddb22bb5fd44ce448d1c5cbf646b2573;p=r2c2.git diff --git a/source/designer/extendtool.h b/source/designer/extendtool.h index 979c920..69e184a 100644 --- a/source/designer/extendtool.h +++ b/source/designer/extendtool.h @@ -3,26 +3,26 @@ #include #include -#include "libr2c2/track.h" +#include "libr2c2/object.h" +#include "libr2c2/trackiter.h" #include "tool.h" class ExtendTool: public Tool { private: - std::set objects; + std::vector unlinked_endpoints; std::vector extend_tracks; - bool accepted; public: - ExtendTool(Designer &, Msp::Input::Mouse &, const std::set &); + ExtendTool(Designer &, Msp::Input::Keyboard &, Msp::Input::Mouse &, const std::set &); virtual ~ExtendTool(); void connect(); - virtual void button_press(unsigned); - virtual void axis_motion(unsigned, float, float); - private: + virtual void pointer_motion(); + virtual void finish(); + std::vector create_straight(const R2C2::Vector &, const R2C2::Angle &, float, float); public: