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

The wxWidgets mapping of the vgui_menu. More...

#include <vgui_wx_menu.h>

List of all members.

Public Member Functions

 vgui_wx_menu ()
virtual ~vgui_wx_menu ()
wxMenuBar * create_wx_menubar (const vgui_menu &menu)
 Create a wxMenuBar that maps to the vgui_menu.
wxMenu * create_wx_menu (const vgui_menu &menu)
 Create a wxMenu that maps to the vgui_menu.

Private Member Functions

wxMenu * create_wx_submenu (const vgui_menu &menu)
 Helper class that actually builds the mapped menus.
vcl_string create_accelerator_string (const vgui_menu_item &item) const
 Create the accelerator substring to add to the menu item name.
void disconnect_handlers ()
 Disconnect the Event Handlers from the event table.
void on_command (wxCommandEvent &event)
 The event handler that delegates the call to the correct command.

Private Attributes

int item_count_
vcl_map< int, vgui_command_sptrhandlers_

Static Private Attributes

static const int MENU_ID_OFFSET = 1000

Detailed Description

The wxWidgets mapping of the vgui_menu.

Maps a vgui_menu object to the equivalent wxMenu and wxMenuBar.

Definition at line 27 of file vgui_wx_menu.h.


Constructor & Destructor Documentation

vgui_wx_menu::vgui_wx_menu ( void  )

Definition at line 36 of file vgui_wx_menu.cxx.

vgui_wx_menu::~vgui_wx_menu ( void  ) [virtual]

Definition at line 41 of file vgui_wx_menu.cxx.


Member Function Documentation

vcl_string vgui_wx_menu::create_accelerator_string ( const vgui_menu_item item) const [private]

Create the accelerator substring to add to the menu item name.

Definition at line 142 of file vgui_wx_menu.cxx.

wxMenu * vgui_wx_menu::create_wx_menu ( const vgui_menu menu)

Create a wxMenu that maps to the vgui_menu.

Definition at line 94 of file vgui_wx_menu.cxx.

wxMenuBar * vgui_wx_menu::create_wx_menubar ( const vgui_menu menu)

Create a wxMenuBar that maps to the vgui_menu.

Definition at line 56 of file vgui_wx_menu.cxx.

wxMenu * vgui_wx_menu::create_wx_submenu ( const vgui_menu menu) [private]

Helper class that actually builds the mapped menus.

Definition at line 101 of file vgui_wx_menu.cxx.

void vgui_wx_menu::disconnect_handlers ( ) [private]

Disconnect the Event Handlers from the event table.

Disconnect the event handlers from the event table.

Definition at line 171 of file vgui_wx_menu.cxx.

void vgui_wx_menu::on_command ( wxCommandEvent &  event) [private]

The event handler that delegates the call to the correct command.

Definition at line 182 of file vgui_wx_menu.cxx.


Member Data Documentation

Definition at line 57 of file vgui_wx_menu.h.

Definition at line 55 of file vgui_wx_menu.h.

const int vgui_wx_menu::MENU_ID_OFFSET = 1000 [static, private]

Definition at line 54 of file vgui_wx_menu.h.


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