Rosetta
Classes | Public Slots | Public Member Functions | Private Types | Private Slots | Private Attributes | List of all members
ui::network::BowmanModel Class Reference

#include <bowman_model.h>

Inheritance diagram for ui::network::BowmanModel:
Inheritance graph
[legend]

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
 
FunctionIdentifierget_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...
 
- Public Member Functions inherited from ui::util::TreeNodeModel< BowmanModelNodeData >
 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< FunctionIdentifierfunctions_
 
QString filter_
 

Additional Inherited Members

- Public Attributes inherited from ui::util::TreeNodeModel< BowmanModelNodeData >
Node root_
 

Member Typedef Documentation

◆ ModelBase

Constructor & Destructor Documentation

◆ BowmanModel() [1/2]

ui::network::BowmanModel::BowmanModel ( QObject parent = nullptr)
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().

◆ BowmanModel() [2/2]

ui::network::BowmanModel::BowmanModel ( QObject parent = nullptr)
explicit

Member Function Documentation

◆ columnCount() [1/2]

int ui::network::BowmanModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ columnCount() [2/2]

int ui::network::BowmanModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ data() [1/2]

QVariant ui::network::BowmanModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override

◆ data() [2/2]

QVariant ui::network::BowmanModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override

◆ function_id()

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().

◆ get_identifier()

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().

◆ headerData() [1/2]

QVariant ui::network::BowmanModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override

◆ headerData() [2/2]

QVariant ui::network::BowmanModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override

◆ index()

QModelIndex ui::network::BowmanModel::index ( int  row,
int  column,
QModelIndex const &  parent = QModelIndex() 
) const
override

◆ on_bowman_back_ends_changed [1/2]

void ui::network::BowmanModel::on_bowman_back_ends_changed ( Bowman const *  bowman)
privateslot

◆ on_bowman_back_ends_changed [2/2]

void ui::network::BowmanModel::on_bowman_back_ends_changed ( Bowman const *  bowman)
privateslot

◆ parent()

QModelIndex ui::network::BowmanModel::parent ( const QModelIndex &  index) const
override

References create_a3b_hbs::i, and index().

Referenced by index(), and rowCount().

◆ rowCount()

int ui::network::BowmanModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

◆ set_filter

void ui::network::BowmanModel::set_filter ( QString const &  filter)
slot

References filter.

Referenced by ui::network::BowmanView::BowmanView().

Member Data Documentation

◆ filter_

QString ui::network::BowmanModel::filter_
private

◆ functions_

std::vector<FunctionIdentifier> ui::network::BowmanModel::functions_
private

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