vgui_wx_menu Class Reference

#include <vgui_wx_menu.h>

List of all members.


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.


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

Constructor & Destructor Documentation

vgui_wx_menu::vgui_wx_menu (  ) 

Definition at line 36 of file vgui_wx_menu.cxx.

vgui_wx_menu::~vgui_wx_menu (  )  [virtual]

Definition at line 41 of file vgui_wx_menu.cxx.


Member Function Documentation

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_menu ( const vgui_menu menu  ) 

Create a wxMenu that maps to the vgui_menu.

Definition at line 94 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.

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.

void vgui_wx_menu::disconnect_handlers (  )  [private]

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

const int vgui_wx_menu::MENU_ID_OFFSET [static, private]

Definition at line 54 of file vgui_wx_menu.h.

int vgui_wx_menu::item_count_ [private]

Definition at line 55 of file vgui_wx_menu.h.

vcl_map<int,vgui_command_sptr> vgui_wx_menu::handlers_ [private]

Definition at line 57 of file vgui_wx_menu.h.


The documentation for this class was generated from the following files:
Generated on Mon Mar 8 05:12:38 2010 for core/vgui by  doxygen 1.5.1