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 );
299 void OnActivate( wxActivateEvent& aEvent );
305 void forceInitialFocus();
307 void OnSize( wxSizeEvent& aEvent );
308 void OnMove( wxMoveEvent& aEvent );
314 void OnButton( wxCommandEvent& aEvent );
316 void onChildSetFocus( wxFocusEvent& aEvent );
318 void onInitDialog( wxInitDialogEvent& aEvent );
329 void focusParentCanvas(
bool aDeferUntilFrameActive =
false );
331 std::string generateKey(
const wxWindow* aWin )
const;
333 void registerUndoRedoHandlers( wxWindowList& aChildren );
342 void recordControlChange( wxWindow* aCtrl );
349 void flushPendingControlChanges();
351 void onCommandEvent( wxCommandEvent& aEvent );
352 void onSpinEvent( wxSpinEvent& aEvent );
353 void onSpinDoubleEvent( wxSpinDoubleEvent& aEvent );
354 void onStyledTextChanged( wxStyledTextEvent& aEvent );
355 void onGridCellChanged( wxGridEvent& aEvent );
356 void onPropertyGridChanged( wxPropertyGridEvent& aEvent );
357 void onDataViewListChanged( wxDataViewEvent& aEvent );
360 wxVariant getControlValue( wxWindow* aCtrl );
361 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)