wxArt2D
|
GUI to choose a tool, and execute it via the command processor. More...
#include <tooldlg.h>
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 More... | |
void | RemoveCmdMenu (const a2dMenuIdItem &cmdId) |
remove a command menu from the parent menu. More... | |
Protected Member Functions | |
void | OnCmdMenuId (wxCommandEvent &event) |
void | OnCloseWindow (wxCloseEvent &event) |
Protected Attributes | |
wxPanel * | m_panel |
int | m_chosen |
wxGridSizer * | m_sizer |
GUI to choose a tool, and execute it via the command processor.
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 192 of file tooldlg.cpp.
|
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 200 of file tooldlg.cpp.
void ToolDlg::RemoveCmdMenu | ( | const a2dMenuIdItem & | cmdId | ) |
remove a command menu from the parent menu.
See AddCmdMenu()
todo
Definition at line 186 of file tooldlg.cpp.