Wt::Application Class Reference

Toplevel application class. More...

#include <application.h>

Inherits Wt::Object, and Wt::Singleton< DERIVED >< Wt::Application >.

List of all members.

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 WidgetmainWidget ()

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


Detailed Description

Toplevel application class.

Extend this class to create your application.


Constructor & Destructor Documentation

Wt::Application::Application ( int  argc = 0,
char **  argv = 0 
)

Constructor.

Wt::Application::~Application (  )  [virtual]

Default destructor.


Member Function Documentation

std::list< std::string > & Wt::Application::argv (  ) 

bool Wt::Application::event ( Event e  )  [virtual]

event handling

Reimplemented from Wt::Object.

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]

bool Wt::Application::notify ( Object receiver,
Event event 
) [virtual]

void Wt::Application::parseArgs ( int  argc,
char **  argv 
) [protected]

void Wt::Application::postEvent ( Object receiver,
Event event 
) [static]

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 (  ) 

Halt execution and close window.

Reimplemented from Wt::Singleton< DERIVED >.

bool Wt::Application::sendEvent ( Object receiver,
Event event 
) [static]

void Wt::Application::sendPostedEvents (  )  [static]

process the already posted events -- empties the queue


Friends And Related Function Documentation

friend class Singleton< Application > [friend]


Member Data Documentation

sigc::signal<void> Wt::Application::aboutToQuit


The documentation for this class was generated from the following files:

Generated Fri Jul 28 19:22:38 2006.
Copyright © 1998-2003 by the respective authors.

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.