|
KiCad PCB EDA Suite
|
Functions | |
| void | ValidatorTransferToWindowWithoutEvents (wxValidator &aValidator) |
| Call a text validator's TransferDataToWindow method without firing a text change event. | |
| KICOMMON_API int | GetStdMargin () |
| Get the standard margin around a widget in the KiCad UI. | |
| KICOMMON_API wxSize | GetTextSize (const wxString &aSingleLine, wxWindow *aWindow) |
| Return the size of aSingleLine of text when it is rendered in aWindow using whatever font is currently set in that window. | |
| KICOMMON_API wxFont | GetMonospacedUIFont (int aRelativeSize=0) |
| KICOMMON_API wxFont | GetControlFont (wxWindow *aWindow) |
| KICOMMON_API wxFont | GetInfoFont (wxWindow *aWindow) |
| KICOMMON_API wxFont | GetSmallInfoFont (wxWindow *aWindow) |
| KICOMMON_API wxFont | GetDockedPaneFont (wxWindow *aWindow) |
| KICOMMON_API wxFont | GetStatusFont (wxWindow *aWindow) |
| KICOMMON_API 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 it. | |
| KICOMMON_API void | SelectReferenceNumber (wxTextEntry *aTextEntry) |
| Select the number (or "?") in a reference for ease of editing. | |
| KICOMMON_API wxString | EllipsizeStatusText (wxWindow *aWindow, const wxString &aString) |
| Ellipsize text (at the end) to be no more than 1/3 of the window width. | |
| KICOMMON_API wxString | EllipsizeMenuText (const wxString &aString) |
| Ellipsize text (at the end) to be no more than 36 characters. | |
| KICOMMON_API wxString | WrapText (wxWindow *aWindow, const wxString &aText, int aWidth) |
| Break text into lines no wider than aWidth pixels in aWindow's font. | |
| KICOMMON_API bool | IsInputControlFocused (wxWindow *aFocus=nullptr) |
| Check if a input control has focus. | |
| KICOMMON_API bool | IsInputControlEditable (wxWindow *aControl) |
| Check if a input control has focus. | |
| KICOMMON_API bool | IsModalDialogFocused () |
| KICOMMON_API void | Disable (wxWindow *aWindow) |
| Makes a window read-only. | |
| KICOMMON_API void | AddBitmapToMenuItem (wxMenuItem *aMenu, const wxBitmapBundle &aImage) |
| Add a bitmap to a menuitem. | |
| KICOMMON_API wxMenuItem * | AddMenuItem (wxMenu *aMenu, int aId, const wxString &aText, const wxBitmapBundle &aImage, wxItemKind aType=wxITEM_NORMAL) |
| Create and insert a menu item with an icon into aMenu. | |
| KICOMMON_API wxMenuItem * | AddMenuItem (wxMenu *aMenu, int aId, const wxString &aText, const wxString &aHelpText, const wxBitmapBundle &aImage, wxItemKind aType=wxITEM_NORMAL) |
| Create and insert a menu item with an icon and a help message string into aMenu. | |
| KICOMMON_API wxMenuItem * | AddMenuItem (wxMenu *aMenu, wxMenu *aSubMenu, int aId, const wxString &aText, const wxBitmapBundle &aImage) |
| Create and insert a menu item with an icon into aSubMenu in aMenu. | |
| KICOMMON_API wxMenuItem * | AddMenuItem (wxMenu *aMenu, wxMenu *aSubMenu, int aId, const wxString &aText, const wxString &aHelpText, const wxBitmapBundle &aImage) |
| Create and insert a menu item with an icon and a help message string into aSubMenu in aMenu. | |
Variables | |
| const int | c_IndicatorSizeDIP = 10 |
| KICOMMON_API const wxString | s_FocusStealableInputName = wxS( "KI_NOFOCUS" ) |
| void KIUI::AddBitmapToMenuItem | ( | wxMenuItem * | aMenu, |
| const wxBitmapBundle & | aImage ) |
Add a bitmap to a menuitem.
It is added only if use images in menus config option allows it. For wxITEM_CHECK or wxITEM_RADIO menuitems, the bitmap is added only on Windows, other platforms do not support it
| aMenu | is the menuitem. |
| aImage | is the icon to add to aMenu. |
Definition at line 428 of file ui_common.cpp.
References PGM_BASE::GetCommonSettings(), COMMON_SETTINGS::m_Appearance, Pgm(), and COMMON_SETTINGS::APPEARANCE::use_icons_in_menus.
Referenced by ACTION_MENU::Add(), ACTION_MENU::Add(), ACTION_MENU::Add(), ACTION_MENU::Add(), CONDITIONAL_MENU::AddCheckItem(), CONDITIONAL_MENU::AddItem(), AddMenuItem(), AddMenuItem(), AddMenuItem(), AddMenuItem(), ACTION_MENU::appendCopy(), ACTION_MENU::DisplayTitle(), and CONDITIONAL_MENU::Evaluate().
| wxMenuItem * KIUI::AddMenuItem | ( | wxMenu * | aMenu, |
| int | aId, | ||
| const wxString & | aText, | ||
| const wxBitmapBundle & | aImage, | ||
| wxItemKind | aType = wxITEM_NORMAL ) |
Create and insert a menu item with an icon into aMenu.
| aMenu | is the menu to add the new item. |
| aId | is the command ID for the new menu item. |
| aText | is the string for the new menu item. |
| aImage | is the icon to add to the new menu item. |
| aType | is the type of menu :wxITEM_NORMAL (default), wxITEM_CHECK ... |
Definition at line 440 of file ui_common.cpp.
References AddBitmapToMenuItem().
Referenced by EDA_DRAW_FRAME::AddApiPluginMenuItems(), GERBER_LAYER_WIDGET::AddRightClickMenuItems(), LISTBOX_TRICKS::OnListBoxRDown(), LAYER_WIDGET::OnRightDownLayer(), LAYER_WIDGET::OnRightDownRender(), RULE_EDITOR_DIALOG_BASE::onRuleTreeItemRightClick(), APPEARANCE_CONTROLS::rebuildLayerContextMenu(), PANEL_COLOR_SETTINGS::ShowColorContextMenu(), and PROJECT_TREE_PANE::showContextMenu().
| wxMenuItem * KIUI::AddMenuItem | ( | wxMenu * | aMenu, |
| int | aId, | ||
| const wxString & | aText, | ||
| const wxString & | aHelpText, | ||
| const wxBitmapBundle & | aImage, | ||
| wxItemKind | aType = wxITEM_NORMAL ) |
Create and insert a menu item with an icon and a help message string into aMenu.
| aMenu | is the menu to add the new item. |
| aId | is the command ID for the new menu item. |
| aText | is the string for the new menu item. |
| aHelpText | is the help message string for the new menu item. |
| aImage | is the icon to add to the new menu item. |
| aType | is the type of menu :wxITEM_NORMAL (default), wxITEM_CHECK ... |
Definition at line 452 of file ui_common.cpp.
References AddBitmapToMenuItem().
| wxMenuItem * KIUI::AddMenuItem | ( | wxMenu * | aMenu, |
| wxMenu * | aSubMenu, | ||
| int | aId, | ||
| const wxString & | aText, | ||
| const wxBitmapBundle & | aImage ) |
Create and insert a menu item with an icon into aSubMenu in aMenu.
| aMenu | is the menu to add the new submenu item. |
| aSubMenu | is the submenu to add the new menu. |
| aId | is the command ID for the new menu item. |
| aText | is the string for the new menu item. |
| aImage | is the icon to add to the new menu item. |
Definition at line 465 of file ui_common.cpp.
References AddBitmapToMenuItem().
| wxMenuItem * KIUI::AddMenuItem | ( | wxMenu * | aMenu, |
| wxMenu * | aSubMenu, | ||
| int | aId, | ||
| const wxString & | aText, | ||
| const wxString & | aHelpText, | ||
| const wxBitmapBundle & | aImage ) |
Create and insert a menu item with an icon and a help message string into aSubMenu in aMenu.
| aMenu | is the menu to add the new submenu item. |
| aSubMenu | is the submenu to add the new menu. |
| aId | is the command ID for the new menu item. |
| aText | is the string for the new menu item. |
| aHelpText | is the help message string for the new menu item. |
| aImage | is the icon to add to the new menu item. |
Definition at line 478 of file ui_common.cpp.
References AddBitmapToMenuItem().
| void KIUI::Disable | ( | wxWindow * | aWindow | ) |
Makes a window read-only.
Does some extra work over wxWindow::Disable() to make sure you can still scroll around in sub-windows.
Definition at line 392 of file ui_common.cpp.
References Disable(), and grid.
Referenced by Disable(), DIALOG_BOARD_SETUP::onPageChanged(), and DIALOG_SCHEMATIC_SETUP::onPageChanged().
| wxString KIUI::EllipsizeMenuText | ( | const wxString & | aString | ) |
Ellipsize text (at the end) to be no more than 36 characters.
Definition at line 223 of file ui_common.cpp.
References UnescapeString().
Referenced by DS_DRAW_ITEM_TEXT::GetItemDescription(), PCB_DIMENSION_BASE::GetItemDescription(), PCB_FIELD::GetItemDescription(), PCB_TEXT::GetItemDescription(), PCB_TEXTBOX::GetItemDescription(), SCH_DIRECTIVE_LABEL::GetItemDescription(), SCH_FIELD::GetItemDescription(), SCH_GLOBALLABEL::GetItemDescription(), SCH_HIERLABEL::GetItemDescription(), SCH_LABEL::GetItemDescription(), SCH_SHEET::GetItemDescription(), SCH_SHEET_PIN::GetItemDescription(), SCH_SYMBOL::GetItemDescription(), SCH_TEXT::GetItemDescription(), and SCH_TEXTBOX::GetItemDescription().
| wxString KIUI::EllipsizeStatusText | ( | wxWindow * | aWindow, |
| const wxString & | aString ) |
Ellipsize text (at the end) to be no more than 1/3 of the window width.
Definition at line 205 of file ui_common.cpp.
References UnescapeString().
Referenced by DS_DRAW_ITEM_BASE::GetMsgPanelInfo(), PCB_BARCODE::GetMsgPanelInfo(), PCB_DIM_LEADER::GetMsgPanelInfo(), PCB_DIMENSION_BASE::GetMsgPanelInfo(), PCB_TABLECELL::GetMsgPanelInfo(), PCB_TEXT::GetMsgPanelInfo(), PCB_TEXTBOX::GetMsgPanelInfo(), SCH_FIELD::GetMsgPanelInfo(), SCH_SHEET::GetMsgPanelInfo(), SCH_SYMBOL::GetMsgPanelInfo(), SCH_TABLECELL::GetMsgPanelInfo(), SCH_TEXT::GetMsgPanelInfo(), and SCH_TEXTBOX::GetMsgPanelInfo().
| bool KIUI::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 it.
The current font within the text control is considered. The text can come either from the control or be given as an argument. If the text control is larger than needed, then nothing is done.
| aCtrl | the text control to potentially make wider. |
| aString | the text that is used in sizing the control's pixel width. If NULL, then the text already within the control is used. |
Definition at line 176 of file ui_common.cpp.
References GetTextSize().
Referenced by GERBVIEW_FRAME::UpdateTitleAndInfo().
| wxFont KIUI::GetControlFont | ( | wxWindow * | aWindow | ) |
Definition at line 170 of file ui_common.cpp.
References getGUIFont().
Referenced by DIALOG_MIGRATE_3D_MODELS::DIALOG_MIGRATE_3D_MODELS(), DIALOG_PIN_PROPERTIES::DIALOG_PIN_PROPERTIES(), DIALOG_SYMBOL_PROPERTIES::DIALOG_SYMBOL_PROPERTIES(), ERROR_CARD::ERROR_CARD(), GIT_ADVANCED_DIALOG::GIT_ADVANCED_DIALOG(), NOTIFICATION_PANEL::NOTIFICATION_PANEL(), EDA_MSG_PANEL::OnPaint(), PAGED_DIALOG::PAGED_DIALOG(), PCB_CALCULATOR_FRAME::PCB_CALCULATOR_FRAME(), PROJECT_TREE::PROJECT_TREE(), RULE_EDITOR_DIALOG_BASE::RULE_EDITOR_DIALOG_BASE(), WX_GRID::SetLabelFont(), SIM_NOPLOT_TAB::SIM_NOPLOT_TAB(), DIALOG_FOOTPRINT_PROPERTIES::TransferDataToWindow(), EDA_MSG_PANEL::updateFontSize(), and WX_GRID::WX_GRID().
| wxFont KIUI::GetDockedPaneFont | ( | wxWindow * | aWindow | ) |
Definition at line 146 of file ui_common.cpp.
References getGUIFont(), and scale.
Referenced by NET_INSPECTOR_PANEL::NET_INSPECTOR_PANEL(), PCB_SEARCH_PANE::PCB_SEARCH_PANE(), PROPERTIES_PANEL::PROPERTIES_PANEL(), and SCH_SEARCH_PANE::SCH_SEARCH_PANE().
| wxFont KIUI::GetInfoFont | ( | wxWindow * | aWindow | ) |
Definition at line 158 of file ui_common.cpp.
References getGUIFont().
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_3D::APPEARANCE_CONTROLS_3D(), PANEL_TOOLBAR_CUSTOMIZATION::applyActionFilter(), DIALOG_TRACK_VIA_PROPERTIES::commonInit(), APPEARANCE_CONTROLS::createControls(), DIALOG_ASSIGN_NETCLASS::DIALOG_ASSIGN_NETCLASS(), DIALOG_CLEANUP_GRAPHICS::DIALOG_CLEANUP_GRAPHICS(), DIALOG_FIELD_PROPERTIES::DIALOG_FIELD_PROPERTIES(), DIALOG_FOOTPRINT_PROPERTIES::DIALOG_FOOTPRINT_PROPERTIES(), DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR::DIALOG_FOOTPRINT_PROPERTIES_FP_EDITOR(), DIALOG_GET_FOOTPRINT_BY_NAME::DIALOG_GET_FOOTPRINT_BY_NAME(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS(), DIALOG_JUNCTION_PROPS::DIALOG_JUNCTION_PROPS(), DIALOG_LINE_PROPERTIES::DIALOG_LINE_PROPERTIES(), DIALOG_MIGRATE_3D_MODELS::DIALOG_MIGRATE_3D_MODELS(), DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES(), DIALOG_TEMPLATE_SELECTOR::DIALOG_TEMPLATE_SELECTOR(), DIALOG_TEXT_PROPERTIES::DIALOG_TEXT_PROPERTIES(), DIALOG_WIRE_BUS_PROPERTIES::DIALOG_WIRE_BUS_PROPERTIES(), PCB_NET_INSPECTOR_PANEL::onAddGroup(), PANEL_GERBVIEW_EXCELLON_SETTINGS::PANEL_GERBVIEW_EXCELLON_SETTINGS(), PANEL_PLUGIN_SETTINGS::PANEL_PLUGIN_SETTINGS(), PANEL_RF_ATTENUATORS::PANEL_RF_ATTENUATORS(), PANEL_SCH_SELECTION_FILTER::PANEL_SCH_SELECTION_FILTER(), PANEL_SELECTION_FILTER::PANEL_SELECTION_FILTER(), PANEL_SETUP_FORMATTING::PANEL_SETUP_FORMATTING(), PANEL_SETUP_MASK_AND_PASTE::PANEL_SETUP_MASK_AND_PASTE(), PANEL_SETUP_NET_CHAINS::PANEL_SETUP_NET_CHAINS(), PANEL_SETUP_NETCLASSES::PANEL_SETUP_NETCLASSES(), PANEL_SYM_EDITING_OPTIONS::PANEL_SYM_EDITING_OPTIONS(), TEMPLATE_WIDGET::SetTemplate(), TEMPLATE_MRU_WIDGET::TEMPLATE_MRU_WIDGET(), TEMPLATE_WIDGET::TEMPLATE_WIDGET(), PANEL_RF_ATTENUATORS::ThemeChanged(), and WX_HTML_REPORT_PANEL::WX_HTML_REPORT_PANEL().
| wxFont KIUI::GetMonospacedUIFont | ( | int | aRelativeSize = 0 | ) |
Definition at line 95 of file ui_common.cpp.
Referenced by CVPCB_MAINFRAME::CVPCB_MAINFRAME(), DIALOG_EXECUTECOMMAND_JOB_SETTINGS::DIALOG_EXECUTECOMMAND_JOB_SETTINGS(), FillTextDiffControl(), NETLIST_VIEW_DIALOG::NETLIST_VIEW_DIALOG(), PANEL_SETUP_NET_CHAINS::PANEL_SETUP_NET_CHAINS(), and SCINTILLA_TRICKS::setupStyles().
| wxFont KIUI::GetSmallInfoFont | ( | wxWindow * | aWindow | ) |
Definition at line 164 of file ui_common.cpp.
References getGUIFont().
Referenced by DIALOG_TRACK_VIA_PROPERTIES::commonInit(), DIALOG_BOARD_STATISTICS::DIALOG_BOARD_STATISTICS(), DIALOG_FOOTPRINT_PROPERTIES::DIALOG_FOOTPRINT_PROPERTIES(), DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS(), DIALOG_LIB_NEW_SYMBOL::DIALOG_LIB_NEW_SYMBOL(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), DIALOG_PRINT_PCBNEW::DIALOG_PRINT_PCBNEW(), DIALOG_REMOTE_SYMBOL_CONFIG::DIALOG_REMOTE_SYMBOL_CONFIG(), DIALOG_SHAPE_PROPERTIES::DIALOG_SHAPE_PROPERTIES(), DIALOG_SHEET_PROPERTIES::DIALOG_SHEET_PROPERTIES(), DIALOG_SYMBOL_PROPERTIES::DIALOG_SYMBOL_PROPERTIES(), PANEL_DESTINATION::PANEL_DESTINATION(), PANEL_EDIT_OPTIONS::PANEL_EDIT_OPTIONS(), PANEL_EESCHEMA_DISPLAY_OPTIONS::PANEL_EESCHEMA_DISPLAY_OPTIONS(), PANEL_EESCHEMA_EDITING_OPTIONS::PANEL_EESCHEMA_EDITING_OPTIONS(), PANEL_SETUP_BUSES::PANEL_SETUP_BUSES(), PANEL_SETUP_CONSTRAINTS::PANEL_SETUP_CONSTRAINTS(), and PANEL_SETUP_FORMATTING::PANEL_SETUP_FORMATTING().
| wxFont KIUI::GetStatusFont | ( | wxWindow * | aWindow | ) |
Definition at line 134 of file ui_common.cpp.
References getGUIFont(), and scale.
Referenced by CVPCB_MAINFRAME::CVPCB_MAINFRAME(), DIALOG_BOARD_STATISTICS::DIALOG_BOARD_STATISTICS(), DIALOG_FOOTPRINT_ASSOCIATIONS::DIALOG_FOOTPRINT_ASSOCIATIONS(), DIALOG_GLOBAL_EDIT_TEARDROPS::DIALOG_GLOBAL_EDIT_TEARDROPS(), DIALOG_NON_COPPER_ZONES_EDITOR::DIALOG_NON_COPPER_ZONES_EDITOR(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), EDA_DRAW_FRAME::EDA_DRAW_FRAME(), EDA_MSG_PANEL::EDA_MSG_PANEL(), EVT_MENU(), PANEL_PREVIEW_3D_MODEL::PANEL_PREVIEW_3D_MODEL(), SIM_VIEW::SetSmithChart(), SIMULATOR_FRAME_UI::SIMULATOR_FRAME_UI(), and SIM_VIEW::updateAxes().
| int KIUI::GetStdMargin | ( | ) |
Get the standard margin around a widget in the KiCad UI.
Definition at line 51 of file ui_common.cpp.
Referenced by BUTTON_ROW_PANEL::addButtons(), BUTTON_ROW_PANEL::BUTTON_ROW_PANEL(), DIALOG_LIST_HOTKEYS::DIALOG_LIST_HOTKEYS(), PANEL_HOTKEYS_EDITOR::installButtons(), and ZOOM_CORRECTION_CTRL::ZOOM_CORRECTION_CTRL().
| wxSize KIUI::GetTextSize | ( | const wxString & | aSingleLine, |
| wxWindow * | aWindow ) |
Return the size of aSingleLine of text when it is rendered in aWindow using whatever font is currently set in that window.
Definition at line 80 of file ui_common.cpp.
Referenced by DIALOG_EDIT_SYMBOLS_LIBID::AdjustGridColumns(), DIALOG_PLOT::DIALOG_PLOT(), LIB_TREE_MODEL_ADAPTER::doAddColumn(), WX_ELLIPSIZED_STATIC_TEXT::DoGetBestSize(), EnsureTextCtrlWidth(), FIELDS_TABLE_DATA_MODEL_BASE::GetColDataWidth(), KISTATUSBAR::KISTATUSBAR(), KISTATUSBAR::layoutControls(), KICAD_MANAGER_FRAME::OnCreateStatusBar(), DIALOG_FIELDS_TABLE::OnSizeViewControlsGrid(), PANEL_SETUP_CONSTRAINTS::PANEL_SETUP_CONSTRAINTS(), PL_EDITOR_FRAME::PL_EDITOR_FRAME(), PANEL_SETUP_PINMAP::reBuildMatrixPanel(), DIALOG_FP_CONFLICT_ASSIGNMENT_SELECTOR::recalculateColumns(), ZONE_SETTINGS::SetupLayersList(), KISTATUSBAR::updateAuxFieldWidths(), KISTATUSBAR::updateBackgroundText(), FILTER_COMBOPOPUP::updateSize(), EDA_DRAW_FRAME::updateStatusBarWidths(), and PL_EDITOR_FRAME::UpdateToolbarControlSizes().
| bool KIUI::IsInputControlEditable | ( | wxWindow * | aControl | ) |
Check if a input control has focus.
| aControl | is the control to test if editable. |
Definition at line 368 of file ui_common.cpp.
Referenced by TOOL_DISPATCHER::DispatchWxEvent().
| bool KIUI::IsInputControlFocused | ( | wxWindow * | aFocus = nullptr | ) |
Check if a input control has focus.
| aFocus | Control that has focus, if null, wxWidgets will be queried |
Definition at line 331 of file ui_common.cpp.
References s_FocusStealableInputName.
Referenced by TOOL_DISPATCHER::DispatchWxEvent(), EDA_DRAW_PANEL_GAL::onEnter(), KIGFX::WX_VIEW_CONTROLS::onEnter(), and EDA_DRAW_PANEL_GAL::OnEvent().
| bool KIUI::IsModalDialogFocused | ( | ) |
Definition at line 386 of file ui_common.cpp.
References PGM_BASE::m_ModalDialogs, and Pgm().
Referenced by KIGFX::WX_VIEW_CONTROLS::CaptureCursor(), EDA_DRAW_PANEL_GAL::onEnter(), and EDA_DRAW_PANEL_GAL::OnEvent().
| void KIUI::SelectReferenceNumber | ( | wxTextEntry * | aTextEntry | ) |
Select the number (or "?") in a reference for ease of editing.
Definition at line 296 of file ui_common.cpp.
Referenced by DIALOG_SYMBOL_PROPERTIES::HandleDelayedSelection(), DIALOG_FIELD_PROPERTIES::OnSetFocusText(), DIALOG_TEXT_PROPERTIES::OnSetFocusText(), and DIALOG_FOOTPRINT_PROPERTIES::OnUpdateUI().
| void KIUI::ValidatorTransferToWindowWithoutEvents | ( | wxValidator & | aValidator | ) |
Call a text validator's TransferDataToWindow method without firing a text change event.
This is useful when you want to keep a validator in sync with other data, but the act of changing it should not trigger other updates. It is the validator equivalent of ChangeValue() compared to SetValue().
This function blocks all events, but the same technique can be used to selectively block events.
| aValidator | the validator to update the control of |
Definition at line 218 of file validators.cpp.
| wxString KIUI::WrapText | ( | wxWindow * | aWindow, |
| const wxString & | aText, | ||
| int | aWidth ) |
Break text into lines no wider than aWidth pixels in aWindow's font.
Lines break at spaces, and between characters in a word too wide to fit, so text written without spaces keeps every character. wxStaticText::Wrap() leaves such a word whole. A path or URL too wide to fit is ellipsized in the middle instead, since breaking it would hide where it ends.
Definition at line 238 of file ui_common.cpp.
References SplitGraphemeClusters().
Referenced by GIT_COMMIT_PANE::Layout().
| const int KIUI::c_IndicatorSizeDIP = 10 |
Definition at line 53 of file ui_common.h.
Referenced by APPEARANCE_CONTROLS::APPEARANCE_CONTROLS(), APPEARANCE_CONTROLS_3D::APPEARANCE_CONTROLS_3D(), LAYER_WIDGET::LAYER_WIDGET(), and WX_GRID::WX_GRID().
|
extern |
Definition at line 48 of file ui_common.cpp.
Referenced by HOTKEY_CYCLE_POPUP::HOTKEY_CYCLE_POPUP(), and IsInputControlFocused().