17 #ifndef __A2DCANVASMASTERTOOLGROUPS_H__
18 #define __A2DCANVASMASTERTOOLGROUPS_H__
31 #define a2dDoubleClickWait 180
93 void OnChar( wxKeyEvent& event );
96 void SetToolMode(
bool ctrl,
bool shift );
98 void OnMouseEvent( wxMouseEvent& event );
100 void OnKeyDown( wxKeyEvent& event );
101 void OnKeyUp( wxKeyEvent& event );
109 DECLARE_EVENT_TABLE()
154 void OnChar( wxKeyEvent& event );
156 void OnMouseEvent( wxMouseEvent& event );
158 void OnKeyDown( wxKeyEvent& event );
159 void OnKeyUp( wxKeyEvent& event );
164 DECLARE_EVENT_TABLE()
214 virtual wxString GetToolString()
const;
216 virtual void SetActive(
bool active =
true );
218 static void SetSelectMoreAtShift(
bool selectMoreAtShift ) { m_selectMoreAtShift = selectMoreAtShift; }
235 m_generatePinsNonWire = generatePinsNonWire;
236 m_generatePinsAlsoNonWireMode = generatePinsAlsoNonWireMode;
239 bool GetGeneratePinsNonWire() {
return m_generatePinsNonWire; }
240 bool GetGeneratePinsAlsoNonWireMode() {
return m_generatePinsAlsoNonWireMode; }
244 void AbortBusyMode();
246 void DoStopTool(
bool abort );
250 void OnChar( wxKeyEvent& event );
253 void SetToolMode(
bool ctrl,
bool shift,
bool alt );
255 void OnMouseEvent( wxMouseEvent& event );
257 void OnKeyDown( wxKeyEvent& event );
258 void OnKeyUp( wxKeyEvent& event );
261 static bool m_selectMoreAtShift;
271 bool m_AllowDoubleClickModifier;
275 bool m_generatePinsNonWire;
276 bool m_generatePinsAlsoNonWireMode;
279 DECLARE_EVENT_TABLE()
290 virtual wxString GetToolString()
const;
292 virtual void SetActive(
bool active =
true );
316 void AbortBusyMode();
318 void DoStopTool(
bool abort );
322 void OnChar( wxKeyEvent& event );
325 void SetToolMode(
bool ctrl,
bool shift,
bool alt );
327 void OnMouseEvent( wxMouseEvent& event );
329 void OnKeyDown( wxKeyEvent& event );
330 void OnKeyUp( wxKeyEvent& event );
333 void OnTimer(wxTimerEvent& event);
336 bool m_drawWireIfNoDoubleClick;
337 bool m_selectionIfNoDoubleClick;
346 DECLARE_EVENT_TABLE()
396 virtual wxString GetToolString()
const;
398 virtual void SetActive(
bool active =
true );
400 static void SetSelectMoreAtShift(
bool selectMoreAtShift ) { m_selectMoreAtShift = selectMoreAtShift; }
422 void SetEditIfDelayed(
bool startEditIfDelayed ) { m_startEditIfDelayed = startEditIfDelayed; }
429 void EditDlgOrHandles(
a2dCanvasObject* hit,
bool modifier,
bool noHandleEditForWire );
431 void AbortBusyMode();
433 void DoStopTool(
bool abort );
437 void OnChar( wxKeyEvent& event );
439 void OnTimer(wxTimerEvent& event);
442 void SetToolMode(
bool ctrl,
bool shift,
bool alt );
444 void OnMouseEvent( wxMouseEvent& event );
446 void OnKeyDown( wxKeyEvent& event );
447 void OnKeyUp( wxKeyEvent& event );
450 static bool m_selectMoreAtShift;
456 bool m_selectionIfNoDoubleClick;
457 bool m_drawWireIfNoDoubleClick;
460 bool m_editIfDelayed;
463 bool m_startEditIfDelayed;
466 DECLARE_EVENT_TABLE()
478 virtual wxString GetToolString()
const;
480 virtual void SetActive(
bool active =
true );
482 static void SetSelectMoreAtShift(
bool selectMoreAtShift ) { m_selectMoreAtShift = selectMoreAtShift; }
503 void SetEditIfDelayed(
bool startEditIfDelayed ) { m_startEditIfDelayed = startEditIfDelayed; }
510 void AbortBusyMode();
512 void DoStopTool(
bool abort );
516 void OnChar( wxKeyEvent& event );
518 void OnTimer(wxTimerEvent& event);
521 void SetToolMode(
bool ctrl,
bool shift,
bool alt );
523 void OnMouseEvent( wxMouseEvent& event );
525 void OnKeyDown( wxKeyEvent& event );
526 void OnKeyUp( wxKeyEvent& event );
529 static bool m_selectMoreAtShift;
535 bool m_selectionIfNoDoubleClick;
536 bool m_drawWireIfNoDoubleClick;
543 bool m_editIfDelayed;
546 bool m_startEditIfDelayed;
548 bool m_AllowDoubleClickModifier;
549 bool m_AllowDelayedEdit;
552 DECLARE_EVENT_TABLE()
556 #endif // __A2DCANVASMASTERTOOL_H__
void SetAllowDoubleClickModifier(bool AllowDoubleClickModifier)
set if double click can be used to switch editingmode using shift key
void SetWireMode(bool drawWire)
set wire first mode on or off
bool GetEditIfDelayed() const
get if editing should start at a slow/delayed LeftUp event.
dialog for defining style on an a2dCanvasObject
virtual void DoStopTool(bool abort)
to do tool specific stuff to stop a tool. Called from StopTool().
bool GetWireMode() const
what is the current mode.
bool GetWireMode() const
what is the current mode.
void SetWireMode(bool drawWire)
set wire first mode on or off
void SetDlgOrEditModal(bool dlgOrEditModal)
set style dlg as modal
The base class for all drawable objects in a a2dCanvasDocument.
a2dCanvasObject is the base class for Canvas Objects.
void SetDlgOrEdit(bool dlgOrEdit)
set dlg at Double Left Down if dlgOrEdit == true
void SetAllowDoubleClickModifier(bool AllowDoubleClickModifier)
set if double click can be used to switch editingmode using shift key
void SetWireMode(bool drawWire)
set wire first mode on or off
bool GetDlgOrEditModal() const
get style dlg as modal setting
general style dialog to edit a2dCanvasObject style
a2dWirePolylineL is a polyline that adjusts itself when the objects it connects move ...
void SetDlgOrEditModal(bool dlgOrEditModal)
set style dlg as modal
bool GetWireMode() const
what is the current mode.
void SetEditIfDelayed(bool startEditIfDelayed)
set if editing should start at a slow/delayed LeftUp event.
bool GetWireMode() const
what is the current mode.
void SetDlgOrEdit(bool dlgOrEdit)
set dlg at Double Left Down if dlgOrEdit == true
bool GetAllowDoubleClickModifier() const
get if double click can be used to switch editingmode using shift key
void SetGeneratePinsNonWire(bool generatePinsNonWire, bool generatePinsAlsoNonWireMode)
set generate pins on non wire objects on or off
Master tool for objects graphics slecting and dragging.
Master tool for objects graphics selecting and dragging.
bool GetDlgOrEdit() const
set dlg at Double Left Down if dlgOrEdit == true
bool GetAllowDelayedEdit() const
get Allow Delayed Editing
common stuff for several master tools
bool GetAllowDoubleClickModifier() const
get if double click can be used to switch editingmode using shift key
bool GetEditIfDelayed() const
get if editing should start at a slow/delayed LeftUp event.
Master tool for objects graphics slecting and dragging.
void SetWireMode(bool drawWire)
set wire first mode on or off
Master tool for objects graphics slecting and dragging.
void SetEditIfDelayed(bool startEditIfDelayed)
set if editing should start at a slow/delayed LeftUp event.
bool GetDlgOrEdit() const
set dlg at Double Left Down if dlgOrEdit == true
void SetWireMode(bool drawWire)
set wire first mode on or off
bool GetDlgOrEditModal() const
get style dlg as modal setting
void SetAllowDelayedEdit(bool AllowDelayedEdit)
set Allow Delayed Editing
bool GetWireMode() const
what is the current mode.
structure to give as parameter to member functions of a2dCanvasObject