The MFC (Microsoft Foundation Classes) implementation of vgui_toolkit. More...
#include <vgui_mfc.h>
Public Member Functions | |
virtual vcl_string | name () const |
Pure virtual function from vgui - returns the name of the GUI toolkit. | |
virtual void | run () |
Virtual function from vgui - runs the event loop. | |
virtual void | run_one_event () |
virtual void | run_till_idle () |
virtual void | flush () |
virtual void | quit () |
virtual void | add_event (const vgui_event &) |
virtual vgui_window * | produce_window (int width, int height, const vgui_menu &menubar, const char *title="vgui mfc window") |
Virtual function from vgui - creates a new window with a menubar. | |
virtual vgui_window * | produce_window (int width, int height, const char *title="vgui mfc popup") |
Virtual function from vgui - creates a new window. | |
virtual vgui_dialog_impl * | produce_dialog (const char *name) |
Virtual function from vgui - creates a new dialog box. | |
virtual vgui_dialog_extensions_impl * | produce_dialog_extension (const char *name) |
Virtual function from vgui - creates a new dialog box. | |
Static Public Member Functions | |
static vgui_mfc * | instance () |
static vgui_toolkit * | lookup (char const *) |
static vcl_vector < vgui_toolkit * > * | registry () |
Public Attributes | |
vgui_mfc_utils * | utils |
Protected Member Functions | |
vgui_mfc () | |
Default constructor. | |
~vgui_mfc () | |
Destructor. | |
void | init (int &, char **) |
Virtual function from vgui - initialise the implementation of vgui. | |
void | uninit () |
Protected Attributes | |
vgui_mfc_app * | theApp_ |
vcl_vector< vgui_window * > | windows_to_delete |
The MFC (Microsoft Foundation Classes) implementation of vgui_toolkit.
Provides functions for controlling the event loop. Based upon vgui_gtk.
Definition at line 33 of file vgui_mfc.h.
vgui_mfc::vgui_mfc | ( | ) | [protected] |
Default constructor.
Definition at line 51 of file vgui_mfc.cxx.
vgui_mfc::~vgui_mfc | ( | ) | [protected] |
Destructor.
Definition at line 58 of file vgui_mfc.cxx.
void vgui_mfc::add_event | ( | const vgui_event & | event | ) | [virtual] |
Reimplemented from vgui_toolkit.
Definition at line 152 of file vgui_mfc.cxx.
void vgui_mfc::flush | ( | void | ) | [virtual] |
Reimplemented from vgui_toolkit.
Definition at line 138 of file vgui_mfc.cxx.
void vgui_mfc::init | ( | int & | argc, |
char ** | argv | ||
) | [protected, virtual] |
Virtual function from vgui - initialise the implementation of vgui.
Initialise MFC foundation classes.
Reimplemented from vgui_toolkit.
Definition at line 71 of file vgui_mfc.cxx.
vgui_mfc * vgui_mfc::instance | ( | ) | [static] |
Definition at line 43 of file vgui_mfc.cxx.
vgui_toolkit * vgui_toolkit::lookup | ( | char const * | name | ) | [static, inherited] |
Definition at line 28 of file vgui_toolkit.cxx.
vcl_string vgui_mfc::name | ( | void | ) | const [virtual] |
Pure virtual function from vgui - returns the name of the GUI toolkit.
Implements vgui_toolkit.
Definition at line 66 of file vgui_mfc.cxx.
vgui_dialog_impl * vgui_mfc::produce_dialog | ( | const char * | name | ) | [virtual] |
Virtual function from vgui - creates a new dialog box.
Reimplemented from vgui_toolkit.
Definition at line 181 of file vgui_mfc.cxx.
vgui_dialog_extensions_impl * vgui_mfc::produce_dialog_extension | ( | const char * | name | ) | [virtual] |
Virtual function from vgui - creates a new dialog box.
Reimplemented from vgui_toolkit.
Definition at line 189 of file vgui_mfc.cxx.
vgui_window * vgui_mfc::produce_window | ( | int | width, |
int | height, | ||
const vgui_menu & | menubar, | ||
const char * | title = "vgui mfc window" |
||
) | [virtual] |
Virtual function from vgui - creates a new window with a menubar.
Reimplemented from vgui_toolkit.
Definition at line 157 of file vgui_mfc.cxx.
vgui_window * vgui_mfc::produce_window | ( | int | width, |
int | height, | ||
const char * | title = "vgui mfc popup" |
||
) | [virtual] |
Virtual function from vgui - creates a new window.
Reimplemented from vgui_toolkit.
Definition at line 169 of file vgui_mfc.cxx.
void vgui_mfc::quit | ( | void | ) | [virtual] |
Reimplemented from vgui_toolkit.
Definition at line 144 of file vgui_mfc.cxx.
vcl_vector< vgui_toolkit * > * vgui_toolkit::registry | ( | ) | [static, inherited] |
Definition at line 22 of file vgui_toolkit.cxx.
void vgui_mfc::run | ( | void | ) | [virtual] |
Virtual function from vgui - runs the event loop.
Start the main thread.
Implements vgui_toolkit.
Definition at line 102 of file vgui_mfc.cxx.
void vgui_mfc::run_one_event | ( | void | ) | [virtual] |
Reimplemented from vgui_toolkit.
Definition at line 113 of file vgui_mfc.cxx.
void vgui_mfc::run_till_idle | ( | void | ) | [virtual] |
Reimplemented from vgui_toolkit.
Definition at line 121 of file vgui_mfc.cxx.
void vgui_mfc::uninit | ( | void | ) | [protected, virtual] |
Reimplemented from vgui_toolkit.
Definition at line 93 of file vgui_mfc.cxx.
vgui_mfc_app* vgui_mfc::theApp_ [protected] |
Definition at line 64 of file vgui_mfc.h.
Definition at line 58 of file vgui_mfc.h.
vcl_vector<vgui_window*> vgui_mfc::windows_to_delete [protected] |
Definition at line 65 of file vgui_mfc.h.