wxArt2D
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ToolDlg Class Reference

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

#include <tooldlg.h>

Inheritance diagram for ToolDlg:
Inheritance graph
[legend]
Collaboration diagram for ToolDlg:
Collaboration graph
[legend]

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
 

Detailed Description

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

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


The documentation for this class was generated from the following files:
ToolDlg Class Reference -- Sun Oct 12 2014 17:04:57 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation