13 #ifndef __STRUCDLGDOC_H__
14 #define __STRUCDLGDOC_H__
23 #include "wx/editor/candoc.h"
25 #define ID_DIALOG 10000
26 #define SYMBOL_A2DCANVASOBJECTSDIALOG_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
27 #define SYMBOL_A2DCANVASOBJECTSDIALOG_TITLE _("Choose Canvas Object")
28 #define SYMBOL_A2DCANVASOBJECTSDIALOG_IDNAME ID_DIALOG
29 #define SYMBOL_A2DCANVASOBJECTSDIALOG_SIZE wxSize(400, 300)
30 #define SYMBOL_A2DCANVASOBJECTSDIALOG_POSITION wxDefaultPosition
31 #define STRUCT_ID_STATIC 10001
32 #define STRUCT_ID_LISTBOX 10002
33 #define STRUCT_ID_HIDE 10003
34 #define STRUCT_ID_APPLY 10004
46 a2dCanvasDocument* document,
bool structOnly =
true,
bool modal =
false,
long style = SYMBOL_A2DCANVASOBJECTSDIALOG_STYLE,
47 wxWindowID
id = SYMBOL_A2DCANVASOBJECTSDIALOG_IDNAME,
const wxString& caption = SYMBOL_A2DCANVASOBJECTSDIALOG_TITLE,
const wxPoint& pos = SYMBOL_A2DCANVASOBJECTSDIALOG_POSITION,
const wxSize& size = SYMBOL_A2DCANVASOBJECTSDIALOG_SIZE );
51 wxWindowID
id = SYMBOL_A2DCANVASOBJECTSDIALOG_IDNAME,
const wxString& caption = SYMBOL_A2DCANVASOBJECTSDIALOG_TITLE,
const wxPoint& pos = SYMBOL_A2DCANVASOBJECTSDIALOG_POSITION,
const wxSize& size = SYMBOL_A2DCANVASOBJECTSDIALOG_SIZE );
56 bool Create( wxWindow* parent, wxWindowID
id = SYMBOL_A2DCANVASOBJECTSDIALOG_IDNAME,
const wxString& caption = SYMBOL_A2DCANVASOBJECTSDIALOG_TITLE,
const wxPoint& pos = SYMBOL_A2DCANVASOBJECTSDIALOG_POSITION,
const wxSize& size = SYMBOL_A2DCANVASOBJECTSDIALOG_SIZE,
long style = SYMBOL_A2DCANVASOBJECTSDIALOG_STYLE );
69 void CreateControls();
72 void OnCloseWindow( wxCloseEvent& event );
75 void OnStructIdListboxSelected( wxCommandEvent& event );
78 void OnStructIdListboxDoubleClicked( wxCommandEvent& event );
81 void OnStructIdHideClick( wxCommandEvent& event );
84 void OnStructIdApplyClick( wxCommandEvent& event );
100 wxListBox* m_listbox;
104 wxStaticText* m_numberObjects;
a2dCanvasObjectsSet m_structureSet
Pointer to object list.
a2dCanvasObject is the base class for Canvas Objects.
Docview framework its controlling class.
a2dCanvasObject * m_object
Pointer to the choosen object.
Each a2dCanvasView needs to have a a2dCanvasDocument set in order to render data. ...
Event sent to a2dCommandProcessor.
all headers of the canvas module
static bool ShowToolTips()
Should we show tooltips?