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-12 17:27:00 +0000
committerStijn Buys <ingar@osirion.org>2008-10-12 17:27:00 +0000
commit574bf11742c40203a4433c0b69264014b10b5a96 (patch)
tree5fdaa40d22c38e5d8cce47d43a1a892008322598 /src/ui/window.h
parentb417df720584c101f3799874a0c836a543a8d0a8 (diff)
container widget
Diffstat (limited to 'src/ui/window.h')
-rw-r--r--src/ui/window.h19
1 files changed, 6 insertions, 13 deletions
diff --git a/src/ui/window.h b/src/ui/window.h
index 919559f..2c0e2a5 100644
--- a/src/ui/window.h
+++ b/src/ui/window.h
@@ -16,33 +16,26 @@ class Window : public Widget
{
public:
- Window(Window *parent=0);
+ Window(Widget *parent=0);
~Window();
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();
+
+ /// showing a window sets focus
+ virtual void show();
inline const std::string &previous() const {
return window_previous;
}
protected:
- typedef std::list<Window *> Windows;
- Windows window_children;
-
- Windows::iterator find_window(Window *window);
-
- 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;
};