Rosetta
|
#include <bowman_model.h>
Classes | |
struct | FunctionIdentifier |
Public Slots | |
void | set_filter (QString const &) |
Public Member Functions | |
BowmanModel (QObject *parent=nullptr) | |
struct to help represent BowmanModel as a tree. This is local datatype used only by BowmanModel More... | |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
QModelIndex | index (int row, int column, QModelIndex const &parent=QModelIndex()) const override |
QModelIndex | parent (const QModelIndex &index) const override |
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
FunctionIdentifier * | get_identifier (QModelIndex const &index) |
return FunctionIdentifier for given index, return nullptr if index is invalid More... | |
BowmanModel (QObject *parent=nullptr) | |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
FunctionID | function_id (QModelIndex const &index) |
return FunctionIdentifier for given index, return empty identifier if index is invalid More... | |
![]() | |
TreeNodeModel (QObject *parent=nullptr) | |
Node * | get_node (QModelIndex const &index) const |
QModelIndex | index (int row, int column, const QModelIndex &parent) const override |
QModelIndex | parent (const QModelIndex &index) const override |
int | rowCount (QModelIndex const &parent) const override |
Private Types | |
using | ModelBase = util::TreeNodeModel< BowmanModelNodeData > |
Private Slots | |
void | on_bowman_back_ends_changed (Bowman const *bowman) |
void | on_bowman_back_ends_changed (Bowman const *bowman) |
Private Attributes | |
std::vector< FunctionIdentifier > | functions_ |
QString | filter_ |
Additional Inherited Members | |
![]() | |
Node | root_ |
|
private |
|
explicit |
struct to help represent BowmanModel as a tree. This is local datatype used only by BowmanModel
References ui::network::Bowman::back_ends_changed(), ui::network::Bowman::bowman(), and on_bowman_back_ends_changed().
|
explicit |
|
override |
|
override |
|
override |
References functions_, create_a3b_hbs::i, index(), and dummy-distribution::row.
|
override |
FunctionID ui::network::BowmanModel::function_id | ( | QModelIndex const & | index | ) |
return FunctionIdentifier for given index, return empty identifier if index is invalid
return FunctionID for given index, return nullptr if index is invalid
References ObjexxFCL::index().
Referenced by ui::network::BowmanView::get_select_item(), and ui::network::BowmanView::on_functions_doubleClicked().
BowmanModel::FunctionIdentifier * ui::network::BowmanModel::get_identifier | ( | QModelIndex const & | index | ) |
return FunctionIdentifier for given index, return nullptr if index is invalid
References functions_, and index().
|
override |
|
override |
|
override |
References create_a3b_hbs::i, parent(), and dummy-distribution::row.
Referenced by data(), get_identifier(), and parent().
|
privateslot |
References ui::network::Bowman::begin(), ui::network::Bowman::end(), and functions_.
Referenced by BowmanModel().
|
privateslot |
|
override |
References create_a3b_hbs::i, and index().
Referenced by index(), and rowCount().
|
override |
References functions_, create_a3b_hbs::i, and parent().
|
slot |
References filter.
Referenced by ui::network::BowmanView::BowmanView().
|
private |
|
private |
Referenced by data(), get_identifier(), on_bowman_back_ends_changed(), and rowCount().