all repos — openbox @ 81e1982744e1d692fbe54cc840e93099cbe974af

openbox fork - make it a bit more like ryudo

otk/application.hh (raw)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#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 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);

private:
  void loadStyle(void);

  const OtkWidget *_main_widget;
  OBTimerQueueManager *_timer_manager;
  BImageControl *_img_ctrl;
  Configuration *_style_conf;
  Style *_style;
  bool _dockable;

  friend class OtkWidget; // for access to setMainWidget
};

}

#endif