#include <application.hh>
Inheritance diagram for otk::Application:


Public Methods | |
| Application (int argc, char **argv) | |
| virtual | ~Application () |
| virtual void | run (void) |
| void | setDockable (bool dockable) |
| bool | isDockable (void) const |
| RenderStyle * | getStyle (void) const |
Private Methods | |
| void | loadStyle (void) |
Private Attributes | |
| Display | _display |
| RenderStyle * | _style |
| bool | _dockable |
| int | _appwidget_count |
Friends | |
| class | AppWidget |
|
||||||||||||
|
Definition at line 24 of file application.cc. References _style, and loadStyle().
00025 : EventDispatcher(), 00026 _display(), 00027 _dockable(false), 00028 _appwidget_count(0) 00029 { 00030 (void)argc; 00031 (void)argv; 00032 00033 Timer::initialize(); 00034 RenderColor::initialize(); 00035 Property::initialize(); 00036 _style = new RenderStyle(DefaultScreen(*_display), ""); // XXX: get a path! 00037 00038 loadStyle(); 00039 } |
|
|
Definition at line 41 of file application.cc. References _style.
00042 {
00043 delete _style;
00044 RenderColor::destroy();
00045 Timer::destroy();
00046 }
|
|
|
Definition at line 26 of file application.hh. References _style. Referenced by main().
00026 { return _style; }
|
|
|
Definition at line 24 of file application.hh. References _dockable.
00024 { return _dockable; }
|
|
|
Definition at line 48 of file application.cc. Referenced by Application().
00049 {
00050 // XXX: find the style name as a property
00051 std::string style = "/usr/local/share/openbox/styles/artwiz";
00052 //_style->load(style);
00053 }
|
|
|
Definition at line 55 of file application.cc. References _appwidget_count, and otk::EventDispatcher::dispatchEvents(). Referenced by main().
00056 {
00057 if (_appwidget_count <= 0) {
00058 std::cerr << "ERROR: No main widgets exist. You must create and show() " <<
00059 "an AppWidget for the Application before calling " <<
00060 "Application::run().\n";
00061 ::exit(1);
00062 }
00063
00064 while (_appwidget_count > 0) {
00065 dispatchEvents();
00066 if (_appwidget_count <= 0)
00067 break;
00068 Timer::dispatchTimers(); // fire pending events
00069 }
00070 }
|
|
|
Definition at line 23 of file application.hh. References _dockable.
00023 { _dockable = dockable; }
|
|
|
Definition at line 38 of file application.hh. |
|
|
Definition at line 36 of file application.hh. Referenced by otk::AppWidget::hide(), run(), and otk::AppWidget::show(). |
|
|
Definition at line 32 of file application.hh. |
|
|
Definition at line 34 of file application.hh. Referenced by isDockable(), and setDockable(). |
|
|
Definition at line 33 of file application.hh. Referenced by Application(), getStyle(), and ~Application(). |
1.3-rc2