casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
casa::SelectedItemsDataModel Class Reference

#include <PlotMSIterateTab.qo.h>

Inheritance diagram for casa::SelectedItemsDataModel:

Public Types

using Items = PageHeaderItemsDef
 
using Item = Items::Item
 

Public Member Functions

 SelectedItemsDataModel (PageHeaderItems &items, QObject *parent=0)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 Read-Only interface. More...
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role) const
 
void prepareToAppend (Item item)
 Resize interface. More...
 
std::vector< Item > & itemsToRemove ()
 
bool insertRows (int row, int count, const QModelIndex &parent=QModelIndex())
 
bool removeRows (int row, int count, const QModelIndex &parent=QModelIndex())
 

Private Attributes

PageHeaderItemsitems_
 Edit interface bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);. More...
 
std::vector< ItemnewItem_
 
std::vector< ItemitemsToRemove_
 

Detailed Description

Definition at line 121 of file PlotMSIterateTab.qo.h.

Member Typedef Documentation

Definition at line 127 of file PlotMSIterateTab.qo.h.

Definition at line 126 of file PlotMSIterateTab.qo.h.

Constructor & Destructor Documentation

casa::SelectedItemsDataModel::SelectedItemsDataModel ( PageHeaderItems items,
QObject *  parent = 0 
)

Member Function Documentation

int casa::SelectedItemsDataModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
QVariant casa::SelectedItemsDataModel::data ( const QModelIndex &  index,
int  role 
) const
bool casa::SelectedItemsDataModel::insertRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)
std::vector<Item>& casa::SelectedItemsDataModel::itemsToRemove ( )
inline

Definition at line 135 of file PlotMSIterateTab.qo.h.

References itemsToRemove_.

void casa::SelectedItemsDataModel::prepareToAppend ( Item  item)

Resize interface.

bool casa::SelectedItemsDataModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)
int casa::SelectedItemsDataModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Read-Only interface.

Member Data Documentation

PageHeaderItems& casa::SelectedItemsDataModel::items_
private

Edit interface bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole);.

Definition at line 142 of file PlotMSIterateTab.qo.h.

std::vector<Item> casa::SelectedItemsDataModel::itemsToRemove_
private

Definition at line 144 of file PlotMSIterateTab.qo.h.

Referenced by itemsToRemove().

std::vector<Item> casa::SelectedItemsDataModel::newItem_
private

Definition at line 143 of file PlotMSIterateTab.qo.h.


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