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 {
|
|
|
|
|
2002-11-16 14:30:18 +00:00
|
|
|
class OtkAppWidget;
|
2002-11-16 13:50:59 +00:00
|
|
|
|
2002-11-16 02:18:37 +00:00
|
|
|
class OtkApplication : public OtkEventDispatcher {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
OtkApplication(int argc, char **argv);
|
|
|
|
virtual ~OtkApplication();
|
|
|
|
|
2002-12-24 21:27:16 +00:00
|
|
|
virtual void run(void);
|
2002-11-16 02:18:37 +00:00
|
|
|
// more bummy cool functionality
|
|
|
|
|
|
|
|
void setDockable(bool dockable) { _dockable = dockable; }
|
|
|
|
inline bool isDockable(void) const { return _dockable; }
|
|
|
|
|
2002-12-24 21:27:16 +00:00
|
|
|
inline otk::Style *getStyle(void) const { return _style; }
|
2002-11-16 02:18:37 +00:00
|
|
|
// more accessors
|
|
|
|
|
|
|
|
private:
|
|
|
|
void loadStyle(void);
|
|
|
|
|
|
|
|
OBTimerQueueManager *_timer_manager;
|
|
|
|
BImageControl *_img_ctrl;
|
|
|
|
Configuration *_style_conf;
|
|
|
|
Style *_style;
|
|
|
|
bool _dockable;
|
2002-11-16 13:50:59 +00:00
|
|
|
|
2002-11-16 14:30:18 +00:00
|
|
|
int _appwidget_count;
|
|
|
|
|
|
|
|
friend class OtkAppWidget;
|
2002-11-16 02:18:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|