#include <application.h>
Inherits Wt::Object, and Wt::Singleton< DERIVED >< Wt::Application >.
Public Member Functions | |
| Application (int argc=0, char **argv=0) | |
| Constructor. | |
| virtual | ~Application () |
| Default destructor. | |
| void | processEvents (Condition *cond) |
| process all events until the condition is met | |
| void | processEvent () |
| process on event event if we have to wait for it | |
| void | processEvents (int ms=3000) |
| process all the events in the queue for a maximum period of time | |
| void | processEvents (const bool &var) |
| process all events while the var is true | |
| int | exec () |
| process all events so far until the end of the application | |
| void | quit () |
| Halt execution and close window. | |
| virtual bool | event (Event *e) |
| event handling | |
| virtual bool | notify (Object *receiver, Event *event) |
| std::list< std::string > & | argv () |
Static Public Member Functions | |
| static void | sendPostedEvents () |
| process the already posted events -- empties the queue | |
| static void | exit (int exitcode=0) |
| Halt execution and close window with a return code. | |
| static bool | sendEvent (Object *receiver, Event &event) |
| static void | postEvent (Object *receiver, Event *event) |
| static Widget * | mainWidget () |
Public Attributes | |
| sigc::signal< void > | aboutToQuit |
Protected Member Functions | |
| void | parseArgs (int argc, char **argv) |
Friends | |
| class | Singleton< Application > |
Classes | |
| class | Condition |
| class | EventQueueItem |
| class | Exception |
Extend this class to create your application.
| Wt::Application::Application | ( | int | argc = 0, |
|
| char ** | argv = 0 | |||
| ) |
Constructor.
| Wt::Application::~Application | ( | ) | [virtual] |
Default destructor.
| std::list< std::string > & Wt::Application::argv | ( | ) |
| bool Wt::Application::event | ( | Event * | e | ) | [virtual] |
| int Wt::Application::exec | ( | ) |
process all events so far until the end of the application
| void Wt::Application::exit | ( | int | exitcode = 0 |
) | [static] |
Halt execution and close window with a return code.
| Widget * Wt::Application::mainWidget | ( | ) | [static] |
| void Wt::Application::parseArgs | ( | int | argc, | |
| char ** | argv | |||
| ) | [protected] |
| void Wt::Application::processEvent | ( | ) |
process on event event if we have to wait for it
| void Wt::Application::processEvents | ( | const bool & | var | ) |
process all events while the var is true
| void Wt::Application::processEvents | ( | int | ms = 3000 |
) |
process all the events in the queue for a maximum period of time
| void Wt::Application::processEvents | ( | Condition * | cond | ) |
process all events until the condition is met
| void Wt::Application::quit | ( | ) |
| void Wt::Application::sendPostedEvents | ( | ) | [static] |
process the already posted events -- empties the queue
friend class Singleton< Application > [friend] |
| sigc::signal<void> Wt::Application::aboutToQuit |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.