From f33257521bf80dcef8575c4fc3ddaf4a40ff588a Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 7 Jun 2009 18:13:15 +0000 Subject: fixed a few widget order problems, changed map targetting behaviour --- src/ui/modelview.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/ui/modelview.h') diff --git a/src/ui/modelview.h b/src/ui/modelview.h index 1fbb4d9..c9855db 100755 --- a/src/ui/modelview.h +++ b/src/ui/modelview.h @@ -33,6 +33,14 @@ public: /// print modelview description virtual void print(const size_t indent) const; + + /** + * @brief set the zoom out factor + * @param zoom the new zoom factor + * The zoom factor will be clamped to the range [1.0-10.0] + * 1.0 is not zoomed out, 10.0 is zoomed out by a factor of 10 + */ + void set_zoom(const float zoom); protected: /// draw the widget @@ -41,9 +49,13 @@ protected: /// draw border void draw_border(); + /// keypress event handler + virtual bool on_keypress(const int key, const unsigned int modifier); + private: std::string modelview_modelname; math::Color modelview_color; + float modelview_zoom; }; } -- cgit v1.2.3