39 class ModuleProxyModel;
59 class LogicEvaluatorSelectGates;
67 std::vector<Gate*> mSelectedGates;
78 void setChecked(
const std::vector<Gate *> &gates);
82 const std::vector<Gate*>&
selectedGates()
const {
return mSelectedGates; }
106 void handleSelectionStateChanged(
bool empty);
(Future) Base class for all tree models related to the details widget.
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
void setSelBackground(QColor bg)
LogicEvaluatorSelectGates(const std::vector< Gate * > &gates, QWidget *parent=nullptr)
QColor selBackground() const
void setSelForeground(QColor fg)
QColor selForeground() const
An item in the ModuleModel.
A model for displaying multiple netlist elements.
Enables filtering in the ModuleModel.
A QFrame with a QLineEdit that can be used to input a substring to search for.
Qt::CheckState state() const
bool isSelectable() const
SelectGateItem(u32 id, ModuleItem::TreeItemType type, ModuleModel *model, bool isSel=true)
void setState(Qt::CheckState stat)
void setSelectable(bool isSel)
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const override
const std::vector< Gate * > & selectedGates() const
void selectionStateChanged(bool empty)
bool setData(const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
void setChecked(const std::vector< Gate * > &gates)
SelectGateModel(QObject *parent=nullptr)
Qt::ItemFlags flags(const QModelIndex &index) const override
QObject * parent() const const