BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Constructs row of QStandardItem's for given SessionItem. More...
Public Member Functions | |
PropertiesRowStrategy (std::vector< std::string > labels={}) | |
std::vector< std::unique_ptr< ViewItem > > | constructRow (SessionItem *item) override |
QStringList | horizontalHeaderLabels () const override |
Private Member Functions | |
void | update_column_labels (std::vector< ModelView::SessionItem * > items) |
Updates current column labels. More... | |
Private Attributes | |
std::vector< std::string > | current_column_labels |
std::vector< std::string > | user_defined_column_labels |
Constructs row of QStandardItem's for given SessionItem.
Row consists of columns with all PropertyItem's of given SessionItem.
Definition at line 29 of file propertiesrowstrategy.h.
PropertiesRowStrategy::PropertiesRowStrategy | ( | std::vector< std::string > | labels = {} | ) |
Definition at line 22 of file propertiesrowstrategy.cpp.
|
overridevirtual |
Implements ModelView::RowStrategyInterface.
Definition at line 37 of file propertiesrowstrategy.cpp.
References ModelView::Utils::SinglePropertyItems(), update_column_labels(), and user_defined_column_labels.
Referenced by TEST_F().
|
overridevirtual |
Implements ModelView::RowStrategyInterface.
Definition at line 27 of file propertiesrowstrategy.cpp.
References current_column_labels, and user_defined_column_labels.
Referenced by TEST_F().
|
private |
Updates current column labels.
Definition at line 60 of file propertiesrowstrategy.cpp.
References current_column_labels.
Referenced by constructRow().
|
private |
Definition at line 39 of file propertiesrowstrategy.h.
Referenced by horizontalHeaderLabels(), and update_column_labels().
|
private |
Definition at line 40 of file propertiesrowstrategy.h.
Referenced by constructRow(), and horizontalHeaderLabels().