Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-06-07 18:13:15 +0000
committerStijn Buys <ingar@osirion.org>2009-06-07 18:13:15 +0000
commitf33257521bf80dcef8575c4fc3ddaf4a40ff588a (patch)
tree5e3a112e814478ba3ab624e0867761654a5ea0a4 /src/ui/modelview.h
parent5b94df1df2707b36401d91d80b92d0e4cdfd2277 (diff)
fixed a few widget order problems, changed map targetting behaviour
Diffstat (limited to 'src/ui/modelview.h')
-rwxr-xr-xsrc/ui/modelview.h12
1 files changed, 12 insertions, 0 deletions
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;
};
}