From 0d831968949b1119db48530a86c2d1651c6cbfc6 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 11 Oct 2008 09:37:23 +0000 Subject: zonechange events, menu previous command --- src/ui/window.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/ui/window.h') 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 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; }; } -- cgit v1.2.3