67 DIALOG_SHIM( wxWindow* aParent, wxWindowID
id,
const wxString& title,
68 const wxPoint& pos = wxDefaultPosition,
69 const wxSize& size = wxDefaultSize,
70 long style = wxDEFAULT_FRAME_STYLE | wxRESIZE_BORDER,
71 const wxString&
name = wxDialogNameStr );
84 int ShowModal()
override;
88 void EndQuasiModal(
int retCode );
97 void PrepareForModalSubDialog();
98 void CleanupAfterModalSubDialog();
100 bool Show(
bool show )
override;
102 bool Enable(
bool enable )
override;
104 void OnPaint( wxPaintEvent &event );
113 void SetPosition(
const wxPoint& aNewPosition );
120 void SelectAllInTextCtrls( wxWindowList& children );
122 void SetupStandardButtons( std::map<int, wxString> aLabels = {} );
124 static bool IsCtrl(
int aChar,
const wxKeyEvent& e )
126 return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
127 !e.ShiftDown() && !e.MetaDown();
132 return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
133 e.ShiftDown() && !e.MetaDown();
141 void LoadControlState();
146 void SaveControlState();
152 void OptOut( wxWindow* aWindow );
161 void ExcludeFromControlUndoRedo( wxWindow* aWindow );
169 void RegisterUnitBinder(
UNIT_BINDER* aUnitBinder, wxWindow* aWindow );
180 void UnregisterUnitBinder(
UNIT_BINDER* aUnitBinder );
193 void finishDialogSettings();
200 void setSizeInDU(
int x,
int y );
206 int horizPixelsFromDU(
int x )
const;
212 int vertPixelsFromDU(
int y )
const;
223 virtual void OnCharHook( wxKeyEvent& aEvt );
242 void resetUndoRedoForNewContent( wxWindowList& aChildren );
251 void unregisterUnitBinders( wxWindow* aWindow );
258 void OnCloseWindow( wxCloseEvent& aEvent );
260 void OnSize( wxSizeEvent& aEvent );
261 void OnMove( wxMoveEvent& aEvent );
267 void OnButton( wxCommandEvent& aEvent );
269 void onChildSetFocus( wxFocusEvent& aEvent );
271 void onInitDialog( wxInitDialogEvent& aEvent );
282 void focusParentCanvas(
bool aDeferUntilFrameActive =
false );
284 std::string generateKey(
const wxWindow* aWin )
const;
286 void registerUndoRedoHandlers( wxWindowList& aChildren );
287 void recordControlChange( wxWindow* aCtrl );
288 void onCommandEvent( wxCommandEvent& aEvent );
289 void onSpinEvent( wxSpinEvent& aEvent );
290 void onSpinDoubleEvent( wxSpinDoubleEvent& aEvent );
291 void onStyledTextChanged( wxStyledTextEvent& aEvent );
292 void onGridCellChanged( wxGridEvent& aEvent );
293 void onPropertyGridChanged( wxPropertyGridEvent& aEvent );
294 void onDataViewListChanged( wxDataViewEvent& aEvent );
297 wxVariant getControlValue( wxWindow* aCtrl );
298 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)