openbox/otk/application.hh
Dana Jansens 12a95bfdb3 add an OtkAppWidget which are "root windows", i.e. the managed child of root, to be shown on the display.
Exit when all the "root windows" are hidden.
Support the WM_DELETE protocol to hide a "root window".
2002-11-16 14:30:18 +00:00

47 lines
869 B
C++

#ifndef __application_hh
#define __application_hh
#include "eventdispatcher.hh"
#include "display.hh"
#include "configuration.hh"
#include "timerqueuemanager.hh"
#include "image.hh"
#include "style.hh"
namespace otk {
class OtkAppWidget;
class OtkApplication : public OtkEventDispatcher {
public:
OtkApplication(int argc, char **argv);
virtual ~OtkApplication();
virtual void exec(void);
// more bummy cool functionality
void setDockable(bool dockable) { _dockable = dockable; }
inline bool isDockable(void) const { return _dockable; }
inline Style *getStyle(void) const { return _style; }
// more accessors
private:
void loadStyle(void);
OBTimerQueueManager *_timer_manager;
BImageControl *_img_ctrl;
Configuration *_style_conf;
Style *_style;
bool _dockable;
int _appwidget_count;
friend class OtkAppWidget;
};
}
#endif