home *** CD-ROM | disk | FTP | other *** search
-
- // utils.h.panewindow
-
- // Dreamscape - C++ class library for RISC OS
- // Copyright (c) 1996 Mark Seaborn <mseaborn@argonet.co.uk>
- //
- // This library is free software; you can redistribute it and/or
- // modify it under the terms of the GNU Library General Public
- // License as published by the Free Software Foundation; either
- // version 2 of the License, or (at your option) any later version.
- // See the Dreamscape documentation for more information.
-
- #ifndef dreamscape_panewindow_H
- #define dreamscape_panewindow_H
-
- #include "window.h"
- #include "winhandlers.h"
-
- class WindowWithPanes: public BaseWindow, private WindowShower,
- private WindowHider {
- class Pane: public WindowShower, public WindowHider {
- public:
- WindowWithPanes *parent;
- Window *window;
- enum { coords, bbox } type;
- WinBBox position;
-
- void show_window(const Position &position);
- void hide_window();
-
- void find_position(const Position &position, Position &wposition) const;
- };
- friend Pane;
- Window *window;
- List<Pane *> panes;
- unsigned owns_window: 1;
- unsigned threaded: 1;
- unsigned pane_threaded: 1;
-
- void init();
- void final();
-
- void show_window(const Position &position);
- void hide_window();
-
- public:
- WindowWithPanes(BaseWindow *window);
- WindowWithPanes(const char *name);
- virtual ~WindowWithPanes();
-
- void add_window(BaseWindow *window, const WinCoords &topleft);
- void add_window(BaseWindow *window, const WinBBox &bbox);
- void remove_window(BaseWindow *window);
-
- BaseWindow &get_next_window();
- const BaseWindow &get_next_window() const;
- bool has_next_window() const;
- };
-
- #endif
-