SILICON
Loading...
Searching...
No Matches
ComponentCatalogOverlay Class Reference

#include <componentCatalogOverlay.hpp>

Inheritance diagram for ComponentCatalogOverlay:
Collaboration diagram for ComponentCatalogOverlay:

Classes

struct  CatalogRow

Public Member Functions

 ComponentCatalogOverlay (DiagramScene *scene, const SILICON::project::DocumentStore &documents, const CircuitResolver *resolver, QWidget *parent=nullptr)
void open ()
void dismiss ()

Protected Member Functions

void keyPressEvent (QKeyEvent *event) override

Private Member Functions

void rebuildRows ()
void addCategoryRow (ComponentRegistry::ComponentCategory category)
void addComponentRow (const CatalogRow &rowData)
void activateRow (int row)
void selectFirstComponentRow ()
void resizeCatalogColumns ()

Static Private Member Functions

static QStringList searchableFields (const CatalogRow &rowData)

Private Attributes

DiagramScene * diagramScene = nullptr
const SILICON::project::DocumentStore & documents
const CircuitResolver * resolver
QLineEdit * searchInput = nullptr
QTableWidget * table = nullptr
std::vector< CatalogRow > catalogRows
CallbackScope callbacks

Detailed Description

Definition at line 46 of file componentCatalogOverlay.hpp.

Constructor & Destructor Documentation

◆ ComponentCatalogOverlay()

ComponentCatalogOverlay ( DiagramScene * scene,
const SILICON::project::DocumentStore & documents,
const CircuitResolver * resolver,
QWidget * parent = nullptr )
explicit

Definition at line 144 of file componentCatalogOverlay.cpp.

Member Function Documentation

◆ activateRow()

void activateRow ( int row)
private

Definition at line 349 of file componentCatalogOverlay.cpp.

◆ addCategoryRow()

void addCategoryRow ( ComponentRegistry::ComponentCategory category)
private

Definition at line 305 of file componentCatalogOverlay.cpp.

◆ addComponentRow()

void addComponentRow ( const CatalogRow & rowData)
private

Definition at line 321 of file componentCatalogOverlay.cpp.

◆ dismiss()

void dismiss ( )

Definition at line 230 of file componentCatalogOverlay.cpp.

◆ keyPressEvent()

void keyPressEvent ( QKeyEvent * event)
overrideprotected

Definition at line 219 of file componentCatalogOverlay.cpp.

◆ open()

void open ( )

Definition at line 205 of file componentCatalogOverlay.cpp.

◆ rebuildRows()

void rebuildRows ( )
private

Definition at line 251 of file componentCatalogOverlay.cpp.

◆ resizeCatalogColumns()

void resizeCatalogColumns ( )
private

Definition at line 388 of file componentCatalogOverlay.cpp.

◆ searchableFields()

QStringList searchableFields ( const CatalogRow & rowData)
staticnodiscardprivate

Definition at line 409 of file componentCatalogOverlay.cpp.

◆ selectFirstComponentRow()

void selectFirstComponentRow ( )
private

Definition at line 377 of file componentCatalogOverlay.cpp.

Member Data Documentation

◆ callbacks

CallbackScope callbacks
private

Definition at line 80 of file componentCatalogOverlay.hpp.

◆ catalogRows

std::vector<CatalogRow> catalogRows
private

Definition at line 79 of file componentCatalogOverlay.hpp.

◆ diagramScene

DiagramScene* diagramScene = nullptr
private

Definition at line 74 of file componentCatalogOverlay.hpp.

◆ documents

const SILICON::project::DocumentStore& documents
private

Definition at line 75 of file componentCatalogOverlay.hpp.

◆ resolver

const CircuitResolver* resolver
private

Definition at line 76 of file componentCatalogOverlay.hpp.

◆ searchInput

QLineEdit* searchInput = nullptr
private

Definition at line 77 of file componentCatalogOverlay.hpp.

◆ table

QTableWidget* table = nullptr
private

Definition at line 78 of file componentCatalogOverlay.hpp.


The documentation for this class was generated from the following files: