82 DIALOG_SHIM( wxWindow* aParent, wxWindowID
id,
const wxString& title,
83 const wxPoint& pos = wxDefaultPosition,
84 const wxSize& size = wxDefaultSize,
85 long style = wxDEFAULT_FRAME_STYLE | wxRESIZE_BORDER,
86 const wxString&
name = wxDialogNameStr );
99 int ShowModal()
override;
101 int ShowQuasiModal();
103 void EndQuasiModal(
int retCode );
112 void PrepareForModalSubDialog();
113 void CleanupAfterModalSubDialog();
115 bool Show(
bool show )
override;
117 bool Enable(
bool enable )
override;
119 void OnPaint( wxPaintEvent &event );
128 void SetPosition(
const wxPoint& aNewPosition );
135 void SelectAllInTextCtrls( wxWindowList& children );
137 void SetupStandardButtons( std::map<int, wxString> aLabels = {} );
139 static bool IsCtrl(
int aChar,
const wxKeyEvent& e )
141 return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
142 !e.ShiftDown() && !e.MetaDown();
147 return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
148 e.ShiftDown() && !e.MetaDown();
156 void LoadControlState();
161 void SaveControlState();
167 void OptOut( wxWindow* aWindow );
176 void ExcludeFromControlUndoRedo( wxWindow* aWindow );
184 void RegisterUnitBinder(
UNIT_BINDER* aUnitBinder, wxWindow* aWindow );
195 void UnregisterUnitBinder(
UNIT_BINDER* aUnitBinder );
209 void EndDialogShim(
int aReturnCode );
222 void finishDialogSettings();
233 void clampToWorkArea();
240 void setSizeInDU(
int x,
int y );
246 int horizPixelsFromDU(
int x )
const;
252 int vertPixelsFromDU(
int y )
const;
263 virtual void OnCharHook( wxKeyEvent& aEvt );
282 void resetUndoRedoForNewContent( wxWindowList& aChildren );
291 void unregisterUnitBinders( wxWindow* aWindow );
298 void OnCloseWindow( wxCloseEvent& aEvent );
300 void OnSize( wxSizeEvent& aEvent );
301 void OnMove( wxMoveEvent& aEvent );
307 void OnButton( wxCommandEvent& aEvent );
309 void onChildSetFocus( wxFocusEvent& aEvent );
311 void onInitDialog( wxInitDialogEvent& aEvent );
322 void focusParentCanvas(
bool aDeferUntilFrameActive =
false );
324 std::string generateKey(
const wxWindow* aWin )
const;
326 void registerUndoRedoHandlers( wxWindowList& aChildren );
327 void recordControlChange( wxWindow* aCtrl );
328 void onCommandEvent( wxCommandEvent& aEvent );
329 void onSpinEvent( wxSpinEvent& aEvent );
330 void onSpinDoubleEvent( wxSpinDoubleEvent& aEvent );
331 void onStyledTextChanged( wxStyledTextEvent& aEvent );
332 void onGridCellChanged( wxGridEvent& aEvent );
333 void onPropertyGridChanged( wxPropertyGridEvent& aEvent );
334 void onDataViewListChanged( wxDataViewEvent& aEvent );
337 wxVariant getControlValue( wxWindow* aCtrl );
338 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)