openbox/otk/application.hh

50 lines
966 B
C++
Raw Normal View History

2002-11-16 02:18:37 +00:00
#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 OtkWidget;
2002-11-16 02:18:37 +00:00
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
protected:
bool setMainWidget(const OtkWidget *main_widget);
2002-11-16 02:18:37 +00:00
private:
void loadStyle(void);
const OtkWidget *_main_widget;
2002-11-16 02:18:37 +00:00
OBTimerQueueManager *_timer_manager;
BImageControl *_img_ctrl;
Configuration *_style_conf;
Style *_style;
bool _dockable;
friend class OtkWidget; // for access to setMainWidget
2002-11-16 02:18:37 +00:00
};
}
#endif