90 void onSearchTextChanged(
const QString &text);
92 void onSearchReturnPressed();
98 void populateMenu(QSpacerItem *spacer,
const QStringList &names, QLayout *layout);
103 void setupTabIcons();
105 int tabIndex(
const QString &objectName)
const;
110 int m_lastTabIndex = -1;
Icon and name widget shown in the left-panel element palette.
ElementPalette(MainWindowUi *ui, QObject *parent=nullptr)
Constructs the palette controller.
void updateICList(const QFileInfo ¤tFile)
Refreshes the IC tab to reflect .panda files next to currentFile.
void updateTheme()
Updates the memory tab icon and all memory-tab ElementLabel themes.
void populate()
Populates all category tabs with ElementLabel widgets and sets tab icons.
void retranslateLabels()
Calls updateName() on every ElementLabel in the palette (on language change).
static bool nameMatchesSearch(const QString &name, const QString &query)
void updateEmbeddedICList(Scene *scene)
Refreshes the embedded-IC section of the palette from the scene's blob registry.
void addElementRequested(QMimeData *mimeData)
Emitted when the user presses Enter in the search box.
Main circuit editing scene.