70 #define SHOWQUASIMODAL ShowQuasiModal
71 #define ENDQUASIMODAL EndQuasiModal
86 DIALOG_SHIM( wxWindow* aParent, wxWindowID
id,
const wxString& title,
87 const wxPoint& pos = wxDefaultPosition,
88 const wxSize& size = wxDefaultSize,
89 long style = wxDEFAULT_FRAME_STYLE | wxRESIZE_BORDER,
90 const wxString&
name = wxDialogNameStr );
100 m_initialFocusTarget = aWindow;
103 int ShowQuasiModal();
105 void EndQuasiModal(
int retCode );
109 bool Show(
bool show )
override;
111 bool Enable(
bool enable )
override;
113 void OnPaint( wxPaintEvent &event );
121 void SetPosition(
const wxPoint& aNewPosition );
128 void SelectAllInTextCtrls( wxWindowList& children );
130 void SetupStandardButtons( std::map<int, wxString> aLabels = {} );
132 static bool IsCtrl(
int aChar,
const wxKeyEvent& e )
134 return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
135 !e.ShiftDown() && !e.MetaDown();
140 return e.GetKeyCode() == aChar && e.ControlDown() && !e.AltDown() &&
141 e.ShiftDown() && !e.MetaDown();
155 void finishDialogSettings();
162 void setSizeInDU(
int x,
int y );
168 int horizPixelsFromDU(
int x )
const;
174 int vertPixelsFromDU(
int y )
const;
185 virtual void OnCharHook( wxKeyEvent& aEvt );
192 void OnCloseWindow( wxCloseEvent& aEvent );
198 void OnButton( wxCommandEvent& aEvent );
200 void onChildSetFocus( wxFocusEvent& aEvent );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
static bool IsShiftCtrl(int aChar, const wxKeyEvent &e)
std::vector< wxWindow * > m_tabOrder
static bool IsCtrl(int aChar, const wxKeyEvent &e)
void SetInitialFocus(wxWindow *aWindow)
Sets the window (usually a wxTextCtrl) that should be focused when the dialog is shown.
std::map< wxWindow *, wxString > m_beforeEditValues
bool IsQuasiModal() const
WDO_ENABLE_DISABLE * m_qmodal_parent_disabler
wxWindow * m_initialFocusTarget
EDA_BASE_FRAME * m_parentFrame
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)