|
KiCad PCB EDA Suite
|
#include <app_monitor.h>#include <dialog_shim.h>#include <core/ignore.h>#include <kiway_player.h>#include <kiway.h>#include <pgm_base.h>#include <project/project_local_settings.h>#include <property_holder.h>#include <settings/settings_manager.h>#include <tool/tool_manager.h>#include <kiplatform/ui.h>#include <widgets/unit_binder.h>#include <wx/display.h>#include <wx/evtloop.h>#include <wx/app.h>#include <wx/event.h>#include <wx/grid.h>#include <wx/propgrid/propgrid.h>#include <wx/checklst.h>#include <wx/dataview.h>#include <wx/bmpbuttn.h>#include <wx/textctrl.h>#include <wx/stc/stc.h>#include <wx/combobox.h>#include <wx/odcombo.h>#include <wx/choice.h>#include <wx/checkbox.h>#include <wx/spinctrl.h>#include <wx/splitter.h>#include <wx/radiobox.h>#include <wx/radiobut.h>#include <wx/variant.h>#include <algorithm>#include <functional>#include <nlohmann/json.hpp>#include <typeinfo>#include <hashtables.h>#include <grid_tricks.h>Go to the source code of this file.
Functions | |
| static std::string | getDialogKeyFromTitle (const wxString &aTitle) |
| Strip parenthetical suffixes from dialog titles to create stable persistence keys. | |
| static void | recursiveDescent (wxSizer *aSizer, std::map< int, wxString > &aLabels) |
|
static |
Strip parenthetical suffixes from dialog titles to create stable persistence keys.
Dialog titles like "Choose Symbol (1234 items loaded)" would otherwise create unique keys for each item count, flooding the settings file with duplicate entries.
Definition at line 76 of file dialog_shim.cpp.
References end, and getDialogKeyFromTitle().
Referenced by getDialogKeyFromTitle(), DIALOG_SHIM::LoadControlState(), DIALOG_SHIM::resetSize(), DIALOG_SHIM::SaveControlState(), and DIALOG_SHIM::Show().
|
static |
Definition at line 1652 of file dialog_shim.cpp.
References _, and recursiveDescent().
Referenced by WX_DATAVIEWCTRL::CollapseAll(), EDA_TEXT::containsURL(), WX_DATAVIEWCTRL::ExpandAll(), recursiveDescent(), HIERARCHY_PANE::renameIdenticalSheets(), HIERARCHY_PANE::setIdenticalSheetsHighlighted(), DIALOG_SHIM::SetupStandardButtons(), LIB_TREE_MODEL_ADAPTER::showResults(), HIERARCHY_PANE::UpdateHierarchySelection(), and HIERARCHY_PANE::UpdateLabelsHierarchyTree().