X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Fapplication.hh;h=6da36d28e40764f0963f446ee7d1982e27a22303;hb=3dfe9f4ebeb7abd8446c52db0232b9f610a78846;hp=d6f1ed8dac7f24fff6084291c49a65d180fa529d;hpb=81e1982744e1d692fbe54cc840e93099cbe974af;p=chaz%2Fopenbox diff --git a/otk/application.hh b/otk/application.hh index d6f1ed8d..6da36d28 100644 --- a/otk/application.hh +++ b/otk/application.hh @@ -1,47 +1,37 @@ +// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- #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; +class AppWidget; -class OtkApplication : public OtkEventDispatcher { +class Application : public EventDispatcher { public: - OtkApplication(int argc, char **argv); - virtual ~OtkApplication(); + Application(int argc, char **argv); + virtual ~Application(); - virtual void exec(void); + inline int screen() const { return _screen; } + + virtual void run(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); - private: void loadStyle(void); - const OtkWidget *_main_widget; - OBTimerQueueManager *_timer_manager; - BImageControl *_img_ctrl; - Configuration *_style_conf; - Style *_style; + int _screen; bool _dockable; - friend class OtkWidget; // for access to setMainWidget + int _appwidget_count; + + friend class AppWidget; }; }