2003-01-11 19:17:13 +00:00
|
|
|
// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
|
2002-11-16 02:18:37 +00:00
|
|
|
#ifndef __application_hh
|
|
|
|
#define __application_hh
|
|
|
|
|
|
|
|
#include "eventdispatcher.hh"
|
|
|
|
#include "display.hh"
|
2003-01-22 22:46:16 +00:00
|
|
|
#include "renderstyle.hh"
|
2002-11-16 02:18:37 +00:00
|
|
|
|
|
|
|
namespace otk {
|
|
|
|
|
2003-01-11 19:17:13 +00:00
|
|
|
class AppWidget;
|
2002-11-16 13:50:59 +00:00
|
|
|
|
2003-01-11 19:17:13 +00:00
|
|
|
class Application : public EventDispatcher {
|
2002-11-16 02:18:37 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
2003-01-11 19:17:13 +00:00
|
|
|
Application(int argc, char **argv);
|
|
|
|
virtual ~Application();
|
2002-11-16 02:18:37 +00:00
|
|
|
|
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; }
|
|
|
|
|
2003-01-22 22:46:16 +00:00
|
|
|
inline RenderStyle *getStyle(void) const { return _style; }
|
2002-11-16 02:18:37 +00:00
|
|
|
// more accessors
|
|
|
|
|
|
|
|
private:
|
|
|
|
void loadStyle(void);
|
|
|
|
|
2003-01-13 08:48:03 +00:00
|
|
|
Display _display;
|
2003-01-22 22:46:16 +00:00
|
|
|
RenderStyle *_style;
|
2002-11-16 02:18:37 +00:00
|
|
|
bool _dockable;
|
2002-11-16 13:50:59 +00:00
|
|
|
|
2002-11-16 14:30:18 +00:00
|
|
|
int _appwidget_count;
|
|
|
|
|
2003-01-11 19:17:13 +00:00
|
|
|
friend class AppWidget;
|
2002-11-16 02:18:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|