13 #ifndef __STRUCDLG_H__
14 #define __STRUCDLG_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 a2dDrawing* drawing,
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 );
66 void InitCameleons(
a2dDrawing* drawing,
const wxString& appearanceClassName );
71 void CreateControls();
74 void OnCloseWindow( wxCloseEvent& event );
77 void OnStructIdListboxSelected( wxCommandEvent& event );
80 void OnStructIdListboxDoubleClicked( wxCommandEvent& event );
83 void OnStructIdHideClick( wxCommandEvent& event );
86 void OnStructIdApplyClick( wxCommandEvent& event );
102 wxListBox* m_listbox;
106 wxStaticText* m_numberObjects;
118 #define ID_DIALOGCHOOSE 10090
119 #define SYMBOL_A2DCHOOSE_STYLE wxCAPTION|wxRESIZE_BORDER|wxSYSTEM_MENU|wxCLOSE_BOX
120 #define SYMBOL_A2DCHOOSE_TITLE _("Choose Canvas Object")
121 #define SYMBOL_A2DCHOOSE_IDNAME ID_DIALOGCHOOSE
122 #define SYMBOL_A2DCHOOSE_SIZE wxSize(400, 800)
123 #define SYMBOL_A2DCHOOSE_POSITION wxDefaultPosition
124 #define CHOOSE_ID_STATIC ID_DIALOGCHOOSE + 1
125 #define CHOOSE_ID_LISTBOX ID_DIALOGCHOOSE + 2
126 #define CHOOSE_ID_HIDE ID_DIALOGCHOOSE + 3
127 #define CHOOSE_ID_APPLY ID_DIALOGCHOOSE + 4
133 DECLARE_EVENT_TABLE()
138 a2dDrawing* drawing,
bool structOnly =
true,
long style = SYMBOL_A2DCHOOSE_STYLE,
139 wxWindowID
id = SYMBOL_A2DCHOOSE_IDNAME,
const wxString& caption = SYMBOL_A2DCHOOSE_TITLE,
const wxPoint& pos = SYMBOL_A2DCHOOSE_POSITION,
const wxSize& size = SYMBOL_A2DCANVASOBJECTSDIALOG_SIZE );
142 wxWindowID
id = SYMBOL_A2DCHOOSE_IDNAME,
const wxString& caption = SYMBOL_A2DCHOOSE_TITLE,
const wxPoint& pos = SYMBOL_A2DCHOOSE_POSITION,
const wxSize& size = SYMBOL_A2DCANVASOBJECTSDIALOG_SIZE );
146 wxWindowID
id = SYMBOL_A2DCHOOSE_IDNAME,
const wxString& caption = SYMBOL_A2DCHOOSE_TITLE,
const wxPoint& pos = SYMBOL_A2DCHOOSE_POSITION,
const wxSize& size = SYMBOL_A2DCHOOSE_SIZE );
151 bool Create( wxWindow* parent, wxWindowID
id = SYMBOL_A2DCHOOSE_IDNAME,
const wxString& caption = SYMBOL_A2DCHOOSE_TITLE,
const wxPoint& pos = SYMBOL_A2DCHOOSE_POSITION,
const wxSize& size = SYMBOL_A2DCHOOSE_SIZE,
long style = SYMBOL_A2DCHOOSE_STYLE );
166 void CreateControls();
169 void OnCloseWindow( wxCloseEvent& event );
172 void OnStructIdListboxSelected( wxCommandEvent& event );
175 void OnStructIdListboxDoubleClicked( wxCommandEvent& event );
178 void OnStructIdHideClick( wxCommandEvent& event );
181 void OnStructIdApplyClick( wxCommandEvent& event );
197 wxListBox* m_listbox;
201 wxStaticText* m_numberObjects;
220 void CmOk( wxCommandEvent& );
221 void CmCancel( wxCommandEvent& );
222 void OnCloseWindow( wxCloseEvent& event );
224 DECLARE_EVENT_TABLE()
243 void CmOk( wxCommandEvent& );
244 void CmCancel( wxCommandEvent& );
245 void OnCloseWindow( wxCloseEvent& event );
247 DECLARE_EVENT_TABLE()
265 int GetLogicalFunction() {
return m_function;};
266 void CmOk( wxCommandEvent& );
267 void CmCancel( wxCommandEvent& );
268 void OnCloseWindow( wxCloseEvent& event );
270 DECLARE_EVENT_TABLE()
281 #define NR_PATTERNS 72
291 wxBitmap* GetPattern(
short patternnr );
295 wxBitmap* m_fillbitmaps[NR_PATTERNS];
304 PatternDialog( wxWindow* parent,
FillPatterns* fills,
const wxString& title,
long style = 0 ,
const wxString& name = wxT(
"main_pattern_dlg" ) );
308 void OnActivate( wxActivateEvent& event );
313 void OnCloseWindow( wxCloseEvent& event );
316 void Cm_P_BitB( wxEvent& event );
318 wxColour* ltowxc(
long colour );
322 wxScrolledWindow* m_scroll;
328 wxBitmapButton* m_patternbut[NR_PATTERNS];
334 DECLARE_EVENT_TABLE()
a2dCanvasObject is the base class for Canvas Objects.
static bool ShowToolTips()
Should we show tooltips?
a2dFillStyle
Filling styles for a2dFill.
a2dCanvasObject * m_object
Pointer to the choosen object.
a2dCanvasObject * m_object
Pointer to the choosen object.
int m_choosen
the choosen pattern.
static bool ShowToolTips()
Should we show tooltips?
to choose the way drawing is done ( not yet implemented ).
a2dCanvasObjectsSet m_structureSet
Pointer to object list.
a2dWalker based algorithms
general modules header files all together.
Event sent to a2dCommandProcessor.
wxWindow * m_parent
Pointer to parent, holds the parent window.
pen dialog fro choosing a stroke.
a2dStrokeStyle
stroke styles for a2dStroke
Contain one drawing as hierarchical tree of a2dCanvasObject's.
a2dCanvasObjectsSet m_structureSet
Pointer to object list.