71 DIALOG_SHIM( wxWindow* aParent, wxWindowID
id,
const wxString& title,
72 const wxPoint& pos = wxDefaultPosition,
73 const wxSize& size = wxDefaultSize,
74 long style = wxDEFAULT_FRAME_STYLE | wxRESIZE_BORDER,
75 const wxString&
name = wxDialogNameStr );
88 int ShowModal()
override;
92 void EndQuasiModal(
int retCode );
101 void PrepareForModalSubDialog();
102 void CleanupAfterModalSubDialog();
104 bool Show(
bool show )
override;
106 bool Enable(
bool enable )
override;
108 void OnPaint( wxPaintEvent &event );
117 void SetPosition(
const wxPoint& aNewPosition );
124 void SelectAllInTextCtrls( wxWindowList& children );
126 void SetupStandardButtons( std::map<int, wxString> aLabels = {} );
128 static bool IsCtrl(
int aChar,
const wxKeyEvent& e )
130 return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
131 !e.ShiftDown() && !e.MetaDown();
136 return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
137 e.ShiftDown() && !e.MetaDown();
145 void LoadControlState();
150 void SaveControlState();
156 void OptOut( wxWindow* aWindow );
165 void ExcludeFromControlUndoRedo( wxWindow* aWindow );
173 void RegisterUnitBinder(
UNIT_BINDER* aUnitBinder, wxWindow* aWindow );
186 void finishDialogSettings();
193 void setSizeInDU(
int x,
int y );
199 int horizPixelsFromDU(
int x )
const;
205 int vertPixelsFromDU(
int y )
const;
216 virtual void OnCharHook( wxKeyEvent& aEvt );
235 void resetUndoRedoForNewContent( wxWindowList& aChildren );
244 void unregisterUnitBinders( wxWindow* aWindow );
251 void OnCloseWindow( wxCloseEvent& aEvent );
253 void OnSize( wxSizeEvent& aEvent );
254 void OnMove( wxMoveEvent& aEvent );
260 void OnButton( wxCommandEvent& aEvent );
262 void onChildSetFocus( wxFocusEvent& aEvent );
264 void onInitDialog( wxInitDialogEvent& aEvent );
271 void focusParentCanvas();
273 std::string generateKey(
const wxWindow* aWin )
const;
275 void registerUndoRedoHandlers( wxWindowList& aChildren );
276 void recordControlChange( wxWindow* aCtrl );
277 void onCommandEvent( wxCommandEvent& aEvent );
278 void onSpinEvent( wxSpinEvent& aEvent );
279 void onSpinDoubleEvent( wxSpinDoubleEvent& aEvent );
280 void onStyledTextChanged( wxStyledTextEvent& aEvent );
281 void onGridCellChanged( wxGridEvent& aEvent );
282 void onPropertyGridChanged( wxPropertyGridEvent& aEvent );
283 void onDataViewListChanged( wxDataViewEvent& aEvent );
286 wxVariant getControlValue( wxWindow* aCtrl );
287 void setControlValue( wxWindow* aCtrl,
const wxVariant& aValue );
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)