70 DIALOG_SHIM( wxWindow* aParent, wxWindowID
id,
const wxString& title,
71 const wxPoint& pos = wxDefaultPosition,
72 const wxSize& size = wxDefaultSize,
73 long style = wxDEFAULT_FRAME_STYLE | wxRESIZE_BORDER,
74 const wxString&
name = wxDialogNameStr );
87 int ShowModal()
override;
91 void EndQuasiModal(
int retCode );
100 void PrepareForModalSubDialog();
101 void CleanupAfterModalSubDialog();
103 bool Show(
bool show )
override;
105 bool Enable(
bool enable )
override;
107 void OnPaint( wxPaintEvent &event );
116 void SetPosition(
const wxPoint& aNewPosition );
123 void SelectAllInTextCtrls( wxWindowList& children );
125 void SetupStandardButtons( std::map<int, wxString> aLabels = {} );
127 static bool IsCtrl(
int aChar,
const wxKeyEvent& e )
129 return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
130 !e.ShiftDown() && !e.MetaDown();
135 return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
136 e.ShiftDown() && !e.MetaDown();
144 void LoadControlState();
149 void SaveControlState();
155 void OptOut( wxWindow* aWindow );
163 void RegisterUnitBinder(
UNIT_BINDER* aUnitBinder, wxWindow* aWindow );
176 void finishDialogSettings();
183 void setSizeInDU(
int x,
int y );
189 int horizPixelsFromDU(
int x )
const;
195 int vertPixelsFromDU(
int y )
const;
206 virtual void OnCharHook( wxKeyEvent& aEvt );
222 void OnCloseWindow( wxCloseEvent& aEvent );
224 void OnSize( wxSizeEvent& aEvent );
225 void OnMove( wxMoveEvent& aEvent );
231 void OnButton( wxCommandEvent& aEvent );
233 void onChildSetFocus( wxFocusEvent& aEvent );
235 void onInitDialog( wxInitDialogEvent& aEvent );
237 std::string generateKey(
const wxWindow* aWin )
const;
239 void registerUndoRedoHandlers( wxWindowList& aChildren );
240 void recordControlChange( wxWindow* aCtrl );
241 void onCommandEvent( wxCommandEvent& aEvent );
242 void onSpinEvent( wxSpinEvent& aEvent );
243 void onSpinDoubleEvent( wxSpinDoubleEvent& aEvent );
244 void onStyledTextChanged( wxStyledTextEvent& aEvent );
245 void onGridCellChanged( wxGridEvent& aEvent );
246 void onPropertyGridChanged( wxPropertyGridEvent& aEvent );
247 void onDataViewListChanged( wxDataViewEvent& aEvent );
250 wxVariant getControlValue( wxWindow* aCtrl );
251 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)