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>2008-10-11 09:37:23 +0000
committerStijn Buys <ingar@osirion.org>2008-10-11 09:37:23 +0000
commit0d831968949b1119db48530a86c2d1651c6cbfc6 (patch)
tree925e02481149fa8ac227017af74818176b166a41 /src/ui/window.h
parent02fcd22d8cde355aa898a8c6bb4773d9434b8e9a (diff)
zonechange events, menu previous command
Diffstat (limited to 'src/ui/window.h')
-rw-r--r--src/ui/window.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ui/window.h b/src/ui/window.h
index f88d5aa..a134f04 100644
--- a/src/ui/window.h
+++ b/src/ui/window.h
@@ -19,6 +19,13 @@ public:
virtual void draw_border();
+ /// set the label of the previous window
+ void set_previous(Window *previous);
+ /// clear the label of the previous window
+ void clear_previous();
+
+ inline std::string const &previous() const { return window_previous; }
+
protected:
typedef std::list<Window *> Windows;
Windows window_children;
@@ -27,6 +34,12 @@ protected:
virtual void add_window(Window *window);
virtual void remove_window(Window *window);
+
+ /// label of the previous window that got activated
+ /** This label is used to implement the 'menu previous'
+ * command
+ */
+ std::string window_previous;
};
}