30 #include <wx/string.h> 51 wxSize
GetTextSize(
const wxString& aSingleLine, wxWindow* aWindow );
102 void Disable( wxWindow* aWindow );
110 #endif // UI_COMMON_H void SelectReferenceNumber(wxTextEntry *aTextEntry)
Select the number (or "?") in a reference for ease of editing.
bool IsModalDialogFocused()
bool IsInputControlEditable(wxWindow *aControl)
Check if a input control has focus.
void Disable(wxWindow *aWindow)
Makes a window read-only.
wxFont GetMonospacedUIFont()
wxFont GetInfoFont(wxWindow *aWindow)
int GetStdMargin()
Get the standard margin around a widget in the KiCad UI.
wxFont GetControlFont(wxWindow *aWindow)
SEVERITY SeverityFromString(const wxString &aSeverity)
bool EnsureTextCtrlWidth(wxTextCtrl *aCtrl, const wxString *aString=nullptr)
Set the minimum pixel width on a text control in order to make a text string be fully visible within ...
bool IsInputControlFocused(wxWindow *aFocus=nullptr)
Check if a input control has focus.
wxSize GetTextSize(const wxString &aSingleLine, wxWindow *aWindow)
Return the size of aSingleLine of text when it is rendered in aWindow using whatever font is currentl...
wxFont GetStatusFont(wxWindow *aWindow)
wxString SeverityToString(const SEVERITY &aSeverity)