69 #define SHOWQUASIMODAL ShowQuasiModal
70 #define ENDQUASIMODAL EndQuasiModal
85 DIALOG_SHIM( wxWindow* aParent, wxWindowID
id,
const wxString& title,
86 const wxPoint& pos = wxDefaultPosition,
87 const wxSize& size = wxDefaultSize,
88 long style = wxDEFAULT_FRAME_STYLE | wxRESIZE_BORDER,
89 const wxString&
name = wxDialogNameStr );
108 bool Show(
bool show )
override;
110 bool Enable(
bool enable )
override;
112 void OnPaint( wxPaintEvent &event );
131 static bool IsCtrl(
int aChar,
const wxKeyEvent& e )
133 return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
134 !e.ShiftDown() && !e.MetaDown();
139 return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
140 e.ShiftDown() && !e.MetaDown();
197 void OnButton( wxCommandEvent& aEvent );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
void SelectAllInTextCtrls(wxWindowList &children)
static bool IsShiftCtrl(int aChar, const wxKeyEvent &e)
std::vector< wxWindow * > m_tabOrder
void OnPaint(wxPaintEvent &event)
static bool IsCtrl(int aChar, const wxKeyEvent &e)
int vertPixelsFromDU(int y) const
Convert an integer number of dialog units to pixels, vertically.
bool Show(bool show) override
void onChildSetFocus(wxFocusEvent &aEvent)
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
void SetupStandardButtons(std::map< int, wxString > aLabels={})
int horizPixelsFromDU(int x) const
Convert an integer number of dialog units to pixels, horizontally.
void resetSize()
Clear the existing dialog size and position.
std::map< wxWindow *, wxString > m_beforeEditValues
void setSizeInDU(int x, int y)
Set the dialog to the given dimensions in "dialog units".
bool IsQuasiModal() const
WDO_ENABLE_DISABLE * m_qmodal_parent_disabler
void EndQuasiModal(int retCode)
void OnButton(wxCommandEvent &aEvent)
Properly handle the default button events when in the quasimodal mode when not calling EndQuasiModal ...
void finishDialogSettings()
In all dialogs, we must call the same functions to fix minimal dlg size, the default position and per...
wxWindow * m_initialFocusTarget
bool Enable(bool enable) override
void SetPosition(const wxPoint &aNewPosition)
Force the position of the dialog to a new position.
void OnCloseWindow(wxCloseEvent &aEvent)
Properly handle the wxCloseEvent when in the quasimodal mode when not calling EndQuasiModal which is ...
EDA_BASE_FRAME * m_parentFrame
virtual void OnCharHook(wxKeyEvent &aEvt)
EDA_UNITS GetUserUnits() const
WX_EVENT_LOOP * m_qmodal_loop
The base frame for deriving all KiCad main window classes.
A mix in class which holds the location of a wxWindow's KIWAY.
Toggle a window's "enable" status to disabled, then enabled on destruction.
WINDOW_THAWER(wxWindow *aWindow)