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();
162 void ReloadSashPositions();
167 void SaveControlState();
173 void OptOut( wxWindow* aWindow );
182 void ExcludeFromControlUndoRedo( wxWindow* aWindow );
190 void RegisterUnitBinder(
UNIT_BINDER* aUnitBinder, wxWindow* aWindow );
201 void UnregisterUnitBinder(
UNIT_BINDER* aUnitBinder );
215 void EndDialogShim(
int aReturnCode );
228 void finishDialogSettings();
239 void clampToWorkArea();
246 void setSizeInDU(
int x,
int y );
252 int horizPixelsFromDU(
int x )
const;
258 int vertPixelsFromDU(
int y )
const;
269 virtual void OnCharHook( wxKeyEvent& aEvt );
288 void resetUndoRedoForNewContent( wxWindowList& aChildren );
297 void unregisterUnitBinders( wxWindow* aWindow );
304 void OnCloseWindow( wxCloseEvent& aEvent );
305 void OnActivate( wxActivateEvent& aEvent );
311 void forceInitialFocus();
313 void OnSize( wxSizeEvent& aEvent );
314 void OnMove( wxMoveEvent& aEvent );
320 void OnButton( wxCommandEvent& aEvent );
322 void onChildSetFocus( wxFocusEvent& aEvent );
324 void onInitDialog( wxInitDialogEvent& aEvent );
335 void focusParentCanvas(
bool aDeferUntilFrameActive =
false );
337 std::string generateKey(
const wxWindow* aWin )
const;
339 void registerUndoRedoHandlers( wxWindowList& aChildren );
348 void recordControlChange( wxWindow* aCtrl );
355 void flushPendingControlChanges();
357 void onCommandEvent( wxCommandEvent& aEvent );
358 void onSpinEvent( wxSpinEvent& aEvent );
359 void onSpinDoubleEvent( wxSpinDoubleEvent& aEvent );
360 void onStyledTextChanged( wxStyledTextEvent& aEvent );
361 void onGridCellChanged( wxGridEvent& aEvent );
362 void onPropertyGridChanged( wxPropertyGridEvent& aEvent );
363 void onDataViewListChanged( wxDataViewEvent& aEvent );
366 wxVariant getControlValue( wxWindow* aCtrl );
367 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)