OpenStudio:model_editor
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | List of all members
modeleditor::TableModel Class Reference

#include <tablemodel.h>

+ Inheritance diagram for modeleditor::TableModel:

Public Member Functions

int columnCount (const QModelIndex &parent) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 
bool insertRows (std::vector< openstudio::WorkspaceObject > wsObjects, const QModelIndexList &rowList)
 
bool insertRows (std::vector< openstudio::WorkspaceObject > wsObjects, const QModelIndex &row, const QModelIndexList &rowList)
 
bool insertRows (std::vector< openstudio::WorkspaceObject > wsObjects, int position, int rows, const QModelIndex &index=QModelIndex())
 
void loadObjects (openstudio::WorkspaceObjectVector &objects)
 
bool moveRows (const QModelIndex &row, const QModelIndexList &rowList)
 
openstudio::OptionalWorkspaceObject objectAtIndex (const QModelIndex &index) const
 
bool removeRows (int position, int rows, const QModelIndex &index=QModelIndex()) override
 
bool removeRows (const QModelIndexList &rowList)
 
int rowCount (const QModelIndex &parent) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 
void setModel (openstudio::model::Model &model)
 
virtual void sort (int column, Qt::SortOrder order=Qt::AscendingOrder) override
 
Qt::DropActions supportedDropActions () const override
 
 TableModel (openstudio::WorkspaceObjectVector &objects, ClassViewWidget *parent)
 
 TableModel (ClassViewWidget *parent)
 
void toggleGUIDs ()
 
 ~TableModel ()
 

Detailed Description

[0]

Constructor & Destructor Documentation

modeleditor::TableModel::TableModel ( openstudio::WorkspaceObjectVector &  objects,
ClassViewWidget parent 
)
modeleditor::TableModel::TableModel ( ClassViewWidget parent)
modeleditor::TableModel::~TableModel ( )

Member Function Documentation

int modeleditor::TableModel::columnCount ( const QModelIndex &  parent) const
override
QVariant modeleditor::TableModel::data ( const QModelIndex &  index,
int  role 
) const
override
Qt::ItemFlags modeleditor::TableModel::flags ( const QModelIndex &  index) const
override
QVariant modeleditor::TableModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override
bool modeleditor::TableModel::insertRows ( std::vector< openstudio::WorkspaceObject >  wsObjects,
const QModelIndexList &  rowList 
)
bool modeleditor::TableModel::insertRows ( std::vector< openstudio::WorkspaceObject >  wsObjects,
const QModelIndex &  row,
const QModelIndexList &  rowList 
)
bool modeleditor::TableModel::insertRows ( std::vector< openstudio::WorkspaceObject >  wsObjects,
int  position,
int  rows,
const QModelIndex &  index = QModelIndex() 
)
void modeleditor::TableModel::loadObjects ( openstudio::WorkspaceObjectVector &  objects)
bool modeleditor::TableModel::moveRows ( const QModelIndex &  row,
const QModelIndexList &  rowList 
)
openstudio::OptionalWorkspaceObject modeleditor::TableModel::objectAtIndex ( const QModelIndex &  index) const
bool modeleditor::TableModel::removeRows ( int  position,
int  rows,
const QModelIndex &  index = QModelIndex() 
)
override
bool modeleditor::TableModel::removeRows ( const QModelIndexList &  rowList)
int modeleditor::TableModel::rowCount ( const QModelIndex &  parent) const
override
bool modeleditor::TableModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override
void modeleditor::TableModel::setModel ( openstudio::model::Model &  model)
virtual void modeleditor::TableModel::sort ( int  column,
Qt::SortOrder  order = Qt::AscendingOrder 
)
overridevirtual
Qt::DropActions modeleditor::TableModel::supportedDropActions ( ) const
override
void modeleditor::TableModel::toggleGUIDs ( )