ToolDlg Class Reference

GUI to choose a tool, and execute it via the command processor. More...

#include <tooldlg.h>

List of all members.

Public Member Functions

 ToolDlg (wxFrame *parent)
 Constructor.
 ~ToolDlg ()
 Destructor.
virtual void Populate ()
void AddCmdMenu (wxBitmap &bitmap, const a2dMenuIdItem &cmdId)
 add a command menu to the parent menu, and connect it to the eventhandler of the dialog
void RemoveCmdMenu (const a2dMenuIdItem &cmdId)
 remove a command menu from the parent menu.

Protected Member Functions

void OnCmdMenuId (wxCommandEvent &event)
void OnCloseWindow (wxCloseEvent &event)

Protected Attributes

wxPanel * m_panel
int m_chosen
wxGridSizer * m_sizer


Detailed Description

GUI to choose a tool, and execute it via the command processor.

Definition at line 35 of file tooldlg.h.


Member Function Documentation

void ToolDlg::AddCmdMenu ( wxBitmap &  bitmap,
const a2dMenuIdItem cmdId 
)

add a command menu to the parent menu, and connect it to the eventhandler of the dialog

See also a2dDocumentFrameAddCmdMenu()

Definition at line 188 of file tooldlg.cpp.

void ToolDlg::RemoveCmdMenu ( const a2dMenuIdItem cmdId  ) 

remove a command menu from the parent menu.

See AddCmdMenu()

todo

Definition at line 182 of file tooldlg.cpp.

void ToolDlg::OnCmdMenuId ( wxCommandEvent &  event  )  [protected]

used by AddCmdMenu() to dynamically connect menu to function. The function just Skippes the event, so it will be handled by a command processor in the end.

Definition at line 196 of file tooldlg.cpp.


The documentation for this class was generated from the following files:
ToolDlg Class Reference -- Tue Aug 31 18:39:20 2010 -- 31 Aug 2010 -- 1.5.5 -- wxArt2D -- . -- Main Page Reference Documentation