X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Fextendtool.h;h=866d258a68e6e4f72b6ac5b1c99e187e2b909b82;hb=3907520897611cb1b5f2f938c60d3eaff34477a5;hp=8e14fcf89a0cf07ea8bdd8b9bb9e064da5a39602;hpb=6b9b841c497de4b783178ec8c5b98da49b6b8df5;p=r2c2.git diff --git a/source/designer/extendtool.h b/source/designer/extendtool.h index 8e14fcf..866d258 100644 --- a/source/designer/extendtool.h +++ b/source/designer/extendtool.h @@ -1,6 +1,7 @@ #ifndef EXTENDTOOL_H_ #define EXTENDTOOL_H_ +#include #include #include #include "libr2c2/object.h" @@ -10,20 +11,21 @@ class ExtendTool: public Tool { private: + std::map types_by_length; + unsigned max_preference; 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: