]>
Dogcows Code - chaz/openbox/blob - otk/application.cc
490486ecd21e9e88d2ec09a44e5439ea24328285
1 #include "application.hh"
2 #include "eventhandler.hh"
8 OtkApplication::OtkApplication(int argc
, char **argv
)
9 : OtkEventDispatcher(), _dockable(false)
14 OBDisplay::initialize(0);
15 const ScreenInfo
*s_info
= OBDisplay::screenInfo(DefaultScreen(OBDisplay::display
));
17 _timer_manager
= new OBTimerQueueManager();
18 _img_ctrl
= new BImageControl(_timer_manager
, s_info
, True
, 4, 5, 200);
19 _style_conf
= new Configuration(False
);
20 _style
= new Style(_img_ctrl
);
25 OtkApplication::~OtkApplication()
29 delete _timer_manager
;
35 void OtkApplication::loadStyle(void)
37 // find the style name as a property
38 _style_conf
->setFile("/usr/local/share/openbox/styles/artwiz");
40 _style
->load(*_style_conf
);
43 void OtkApplication::exec(void)
47 _timer_manager
->fire(); // fire pending events
This page took 0.032998 seconds and 4 git commands to generate.