42#define INDETERMINATE_STATE _( "-- mixed values --" )
43#define INDETERMINATE_ACTION _( "-- leave unchanged --" )
58wxSize
GetTextSize(
const wxString& aSingleLine, wxWindow* aWindow );
124void Disable( wxWindow* aWindow );
wxFont GetMonospacedUIFont()
int GetStdMargin()
Get the standard margin around a widget in the KiCad UI.
wxFont GetDockedPaneFont(wxWindow *aWindow)
wxFont GetStatusFont(wxWindow *aWindow)
bool IsInputControlFocused(wxWindow *aFocus=nullptr)
Check if a input control has focus.
bool IsInputControlEditable(wxWindow *aControl)
Check if a input control has focus.
wxString EllipsizeMenuText(const wxString &aString)
Ellipsize text (at the end) to be no more than 36 characters.
wxFont GetInfoFont(wxWindow *aWindow)
bool IsModalDialogFocused()
wxFont GetControlFont(wxWindow *aWindow)
wxString EllipsizeStatusText(wxWindow *aWindow, const wxString &aString)
Ellipsize text (at the end) to be no more than 1/3 of the window width.
void SelectReferenceNumber(wxTextEntry *aTextEntry)
Select the number (or "?") in a reference for ease of editing.
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...
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 ...
void Disable(wxWindow *aWindow)
Makes a window read-only.
SEVERITY SeverityFromString(const wxString &aSeverity)
wxString SeverityToString(const SEVERITY &aSeverity)