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

#include <treemodel.h>

+ Inheritance diagram for modeleditor::TreeModel:

Public Member Functions

bool addRows (const QModelIndexList rowList, openstudio::IddObjectType type=openstudio::IddObjectType("UserCustom"))
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
QModelIndexList getPersistentIndexList () const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const override
 
void loadModel (openstudio::model::Model &model)
 
openstudio::model::OptionalModelObject modelAtIndex (const QModelIndex &index) const
 
QModelIndex parent (const QModelIndex &index) const override
 
bool pasteRows (const QModelIndex &parentRow, std::vector< openstudio::model::ModelObject > &modelObjectsToPaste)
 
bool removeRows (const QModelIndexList rowList, std::vector< openstudio::Handle > &handles)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 
bool setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole) override
 
Qt::DropActions supportedDropActions () const override
 
void toggleGUIDs ()
 
 TreeModel (openstudio::model::Model &model, TreeViewWidget *parent)
 
 TreeModel (TreeViewWidget *parent)
 
 ~TreeModel ()
 

Constructor & Destructor Documentation

modeleditor::TreeModel::TreeModel ( openstudio::model::Model &  model,
TreeViewWidget parent 
)
modeleditor::TreeModel::TreeModel ( TreeViewWidget parent)
modeleditor::TreeModel::~TreeModel ( )

Member Function Documentation

bool modeleditor::TreeModel::addRows ( const QModelIndexList  rowList,
openstudio::IddObjectType  type = openstudio::IddObjectType("UserCustom") 
)
int modeleditor::TreeModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override
QVariant modeleditor::TreeModel::data ( const QModelIndex &  index,
int  role 
) const
override
Qt::ItemFlags modeleditor::TreeModel::flags ( const QModelIndex &  index) const
override
QModelIndexList modeleditor::TreeModel::getPersistentIndexList ( ) const
QVariant modeleditor::TreeModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override
QModelIndex modeleditor::TreeModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
override
void modeleditor::TreeModel::loadModel ( openstudio::model::Model &  model)
openstudio::model::OptionalModelObject modeleditor::TreeModel::modelAtIndex ( const QModelIndex &  index) const
QModelIndex modeleditor::TreeModel::parent ( const QModelIndex &  index) const
override
bool modeleditor::TreeModel::pasteRows ( const QModelIndex &  parentRow,
std::vector< openstudio::model::ModelObject > &  modelObjectsToPaste 
)
bool modeleditor::TreeModel::removeRows ( const QModelIndexList  rowList,
std::vector< openstudio::Handle > &  handles 
)
int modeleditor::TreeModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override
bool modeleditor::TreeModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override
bool modeleditor::TreeModel::setHeaderData ( int  section,
Qt::Orientation  orientation,
const QVariant &  value,
int  role = Qt::EditRole 
)
override
Qt::DropActions modeleditor::TreeModel::supportedDropActions ( ) const
override
void modeleditor::TreeModel::toggleGUIDs ( )