diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-11 09:37:23 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-11 09:37:23 +0000 |
commit | 0d831968949b1119db48530a86c2d1651c6cbfc6 (patch) | |
tree | 925e02481149fa8ac227017af74818176b166a41 /src/ui/window.h | |
parent | 02fcd22d8cde355aa898a8c6bb4773d9434b8e9a (diff) |
zonechange events, menu previous command
Diffstat (limited to 'src/ui/window.h')
-rw-r--r-- | src/ui/window.h | 13 |
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; }; } |