83 DIALOG_SHIM( wxWindow* aParent, wxWindowID
id,
const wxString& title,
84 const wxPoint& pos = wxDefaultPosition,
85 const wxSize& size = wxDefaultSize,
86 long style = wxDEFAULT_FRAME_STYLE | wxRESIZE_BORDER,
87 const wxString&
name = wxDialogNameStr );
100 int ShowModal()
override;
102 int ShowQuasiModal();
104 void EndQuasiModal(
int retCode );
113 void PrepareForModalSubDialog();
114 void CleanupAfterModalSubDialog();
116 bool Show(
bool show )
override;
118 bool Enable(
bool enable )
override;
120 void OnPaint( wxPaintEvent &event );
129 void SetPosition(
const wxPoint& aNewPosition );
136 void SelectAllInTextCtrls( wxWindowList& children );
138 void SetupStandardButtons( std::map<int, wxString> aLabels = {} );
140 static bool IsCtrl(
int aChar,
const wxKeyEvent& e )
142 return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
143 !e.ShiftDown() && !e.MetaDown();
148 return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
149 e.ShiftDown() && !e.MetaDown();
157 void LoadControlState();
163 void ReloadSashPositions();
171 void SaveControlState(
const std::optional<wxPoint>& aPosition = std::nullopt );
177 void OptOut( wxWindow* aWindow );
186 void ExcludeFromControlUndoRedo( wxWindow* aWindow );
194 void RegisterUnitBinder(
UNIT_BINDER* aUnitBinder, wxWindow* aWindow );
205 void UnregisterUnitBinder(
UNIT_BINDER* aUnitBinder );
219 void EndDialogShim(
int aReturnCode );
232 void finishDialogSettings();
243 void clampToWorkArea();
250 void setSizeInDU(
int x,
int y );
256 int horizPixelsFromDU(
int x )
const;
262 int vertPixelsFromDU(
int y )
const;
273 virtual void OnCharHook( wxKeyEvent& aEvt );
291 void recordControlChange( wxWindow* aCtrl );
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 );
340 void flushPendingControlChanges();
342 void onCommandEvent( wxCommandEvent& aEvent );
343 void onSpinEvent( wxSpinEvent& aEvent );
344 void onSpinDoubleEvent( wxSpinDoubleEvent& aEvent );
345 void onStyledTextChanged( wxStyledTextEvent& aEvent );
346 void onGridCellChanged( wxGridEvent& aEvent );
347 void onPropertyGridChanged( wxPropertyGridEvent& aEvent );
348 void onDataViewListChanged( wxDataViewEvent& aEvent );
351 wxVariant getControlValue( wxWindow* aCtrl );
352 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)