Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

vgui_wx Class Reference

#include <vgui_wx.h>

Inheritance diagram for vgui_wx:

Inheritance graph
[legend]
List of all members.

Detailed Description

wxWidgets implementation of vgui_toolkit.

Provides functions for controlling the event loop and creating new windows and dialogs.

Definition at line 23 of file vgui_wx.h.

Public Member Functions

virtual vgui_dialog_extensions_implproduce_dialog_extension (char const *name)

Static Public Member Functions

static vgui_wxinstance ()
 Singleton method instance.
static vgui_toolkitlookup (char const *)
static vcl_vector< vgui_toolkit * > * registry ()

Private Member Functions

virtual vcl_string name () const
 Returns the name of the GUI toolkit ("wx").
 vgui_wx ()
 Constructor - default.
virtual ~vgui_wx ()
 Destructor.
virtual void init (int &, char **)
 Initialize the wxWidgets GUI framework.
virtual void uninit ()
virtual void run ()
 Run the event loop.
virtual void run_one_event ()
 Run the next event.
virtual void run_till_idle ()
 Run until event queue is empty.
virtual void flush ()
 Clear all events from the queue.
virtual void add_event (const vgui_event &)
 Add an event to the queue.
virtual void quit ()
 Quit the application.
virtual vgui_windowproduce_window (int width, int height, const vgui_menu &menubar, const char *title="vgui wx window")
 Create a new window with a menubar.
virtual vgui_windowproduce_window (int width, int height, const char *title="vgui wx popup")
 Create a new window.
virtual vgui_dialog_implproduce_dialog (const char *name)
 Create a new dialog window.

Private Attributes

vcl_vector< vgui_window * > windows_to_delete_
 Handle to windows created that need deleting.
bool adaptor_embedded_
 True if we are embedding vgui_adaptor into wxWidgets app.


Constructor & Destructor Documentation

vgui_wx::vgui_wx  )  [private]
 

Constructor - default.

Definition at line 48 of file vgui_wx.cxx.

vgui_wx::~vgui_wx  )  [private, virtual]
 

Destructor.

Definition at line 57 of file vgui_wx.cxx.


Member Function Documentation

void vgui_wx::add_event const vgui_event  )  [private, virtual]
 

Add an event to the queue.

Reimplemented from vgui_toolkit.

Definition at line 222 of file vgui_wx.cxx.

void vgui_wx::flush  )  [private, virtual]
 

Clear all events from the queue.

Reimplemented from vgui_toolkit.

Definition at line 215 of file vgui_wx.cxx.

void vgui_wx::init int &  ,
char ** 
[private, virtual]
 

Initialize the wxWidgets GUI framework.

Reimplemented from vgui_toolkit.

Definition at line 65 of file vgui_wx.cxx.

vgui_wx * vgui_wx::instance  )  [static]
 

Singleton method instance.

Definition at line 38 of file vgui_wx.cxx.

vgui_toolkit * vgui_toolkit::lookup char const *   )  [static, inherited]
 

Definition at line 28 of file vgui_toolkit.cxx.

vcl_string vgui_wx::name  )  const [private, virtual]
 

Returns the name of the GUI toolkit ("wx").

Implements vgui_toolkit.

Definition at line 45 of file vgui_wx.cxx.

vgui_dialog_impl * vgui_wx::produce_dialog const char *  name  )  [private, virtual]
 

Create a new dialog window.

Reimplemented from vgui_toolkit.

Definition at line 265 of file vgui_wx.cxx.

vgui_dialog_extensions_impl * vgui_toolkit::produce_dialog_extension char const *  name  )  [virtual, inherited]
 

Reimplemented in vgui_mfc.

Definition at line 90 of file vgui_toolkit.cxx.

vgui_window * vgui_wx::produce_window int  width,
int  height,
const char *  title = "vgui wx popup"
[private, virtual]
 

Create a new window.

Reimplemented from vgui_toolkit.

Definition at line 256 of file vgui_wx.cxx.

vgui_window * vgui_wx::produce_window int  width,
int  height,
const vgui_menu menubar,
const char *  title = "vgui wx window"
[private, virtual]
 

Create a new window with a menubar.

Reimplemented from vgui_toolkit.

Definition at line 246 of file vgui_wx.cxx.

void vgui_wx::quit  )  [private, virtual]
 

Quit the application.

Reimplemented from vgui_toolkit.

Definition at line 229 of file vgui_wx.cxx.

vcl_vector< vgui_toolkit * > * vgui_toolkit::registry  )  [static, inherited]
 

Definition at line 22 of file vgui_toolkit.cxx.

void vgui_wx::run  )  [private, virtual]
 

Run the event loop.

Implements vgui_toolkit.

Definition at line 179 of file vgui_wx.cxx.

void vgui_wx::run_one_event  )  [private, virtual]
 

Run the next event.

Reimplemented from vgui_toolkit.

Definition at line 196 of file vgui_wx.cxx.

void vgui_wx::run_till_idle  )  [private, virtual]
 

Run until event queue is empty.

Reimplemented from vgui_toolkit.

Definition at line 203 of file vgui_wx.cxx.

void vgui_wx::uninit  )  [private, virtual]
 

Reimplemented from vgui_toolkit.

Definition at line 133 of file vgui_wx.cxx.


Member Data Documentation

bool vgui_wx::adaptor_embedded_ [private]
 

True if we are embedding vgui_adaptor into wxWidgets app.

Definition at line 78 of file vgui_wx.h.

vcl_vector<vgui_window*> vgui_wx::windows_to_delete_ [private]
 

Handle to windows created that need deleting.

Definition at line 75 of file vgui_wx.h.


The documentation for this class was generated from the following files:
Generated on Thu Jan 10 14:42:32 2008 for core/vgui by  doxygen 1.4.4