Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
vgui_wx Class Reference

wxWidgets implementation of vgui_toolkit. More...

#include <vgui_wx.h>

Inheritance diagram for vgui_wx:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual
vgui_dialog_extensions_impl
produce_dialog_extension (char const *name)

Static Public Member Functions

static vgui_wxinstance ()
 Singleton method instance.
static void InitVguiHandlers ()
 Initialize all vgui_wx XML Resource Handlers.
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.

Detailed Description

wxWidgets implementation of vgui_toolkit.

include impl stuff so the user doesn't have to.

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

vgui_wx static methods.

Definition at line 23 of file vgui_wx.h.


Constructor & Destructor Documentation

vgui_wx::vgui_wx ( void  ) [private]

Constructor - default.

Definition at line 52 of file vgui_wx.cxx.

vgui_wx::~vgui_wx ( void  ) [private, virtual]

Destructor.

Definition at line 61 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 224 of file vgui_wx.cxx.

void vgui_wx::flush ( void  ) [private, virtual]

Clear all events from the queue.

Reimplemented from vgui_toolkit.

Definition at line 217 of file vgui_wx.cxx.

void vgui_wx::init ( int &  argc,
char **  argv 
) [private, virtual]

Initialize the wxWidgets GUI framework.

Reimplemented from vgui_toolkit.

Definition at line 69 of file vgui_wx.cxx.

void vgui_wx::InitVguiHandlers ( ) [static]

Initialize all vgui_wx XML Resource Handlers.

Call this right after you call wxXmlResource::Get()->InitAllHandlers();

Definition at line 15 of file vgui_wx.cxx.

vgui_wx * vgui_wx::instance ( ) [static]

Singleton method instance.

Definition at line 42 of file vgui_wx.cxx.

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

Definition at line 28 of file vgui_toolkit.cxx.

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

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

Implements vgui_toolkit.

Definition at line 49 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 267 of file vgui_wx.cxx.

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

Reimplemented in vgui_win32, and vgui_mfc.

Definition at line 90 of file vgui_toolkit.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 248 of file vgui_wx.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 258 of file vgui_wx.cxx.

void vgui_wx::quit ( void  ) [private, virtual]

Quit the application.

Reimplemented from vgui_toolkit.

Definition at line 231 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 ( void  ) [private, virtual]

Run the event loop.

Implements vgui_toolkit.

Definition at line 183 of file vgui_wx.cxx.

void vgui_wx::run_one_event ( void  ) [private, virtual]

Run the next event.

Reimplemented from vgui_toolkit.

Definition at line 200 of file vgui_wx.cxx.

void vgui_wx::run_till_idle ( void  ) [private, virtual]

Run until event queue is empty.

Reimplemented from vgui_toolkit.

Definition at line 206 of file vgui_wx.cxx.

void vgui_wx::uninit ( void  ) [private, virtual]

Reimplemented from vgui_toolkit.

Definition at line 137 of file vgui_wx.cxx.


Member Data Documentation

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: