openbox/otk/application.hh

49 lines
911 B
C++
Raw Normal View History

// -*- 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"
#include "configuration.hh"
#include "timerqueuemanager.hh"
#include "image.hh"
#include "style.hh"
namespace otk {
class AppWidget;
class Application : public EventDispatcher {
2002-11-16 02:18:37 +00:00
public:
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; }
inline Style *getStyle(void) const { return _style; }
2002-11-16 02:18:37 +00:00
// more accessors
private:
void loadStyle(void);
TimerQueueManager *_timer_manager;
ImageControl *_img_ctrl;
2002-11-16 02:18:37 +00:00
Configuration *_style_conf;
Style *_style;
bool _dockable;
int _appwidget_count;
friend class AppWidget;
2002-11-16 02:18:37 +00:00
};
}
#endif