#include <LayerTree.h>

Inheritance diagram for ModelMetadataModel:
Inheritance graph
Collaboration diagram for ModelMetadataModel:
Collaboration graph

Public Member Functions

 ModelMetadataModel (PaneStack *stack, bool waveModelsOnly, QObject *parent=0)
 
virtual ~ModelMetadataModel ()
 
QVariant data (const QModelIndex &index, int role) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role) override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
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
 
QModelIndex parent (const QModelIndex &index) const override
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 
int columnCount (const QModelIndex &parent=QModelIndex()) const override
 

Protected Slots

void paneAdded ()
 
void paneDeleted ()
 
void propertyContainerAdded (PropertyContainer *)
 
void propertyContainerRemoved (PropertyContainer *)
 
void propertyContainerSelected (PropertyContainer *)
 
void propertyContainerPropertyChanged (PropertyContainer *)
 
void playParametersAudibilityChanged (bool)
 
void paneLayerModelChanged ()
 
void rebuildModelSet ()
 

Protected Attributes

PaneStackm_stack
 
bool m_waveModelsOnly
 
int m_modelTypeColumn
 
int m_modelNameColumn
 
int m_modelMakerColumn
 
int m_modelSourceColumn
 
int m_columnCount
 
std::set< ModelId > m_models
 

Detailed Description

Definition at line 32 of file LayerTree.h.

Constructor & Destructor Documentation

ModelMetadataModel::~ModelMetadataModel ( )
virtual

Definition at line 73 of file LayerTree.cpp.

Member Function Documentation

QVariant ModelMetadataModel::data ( const QModelIndex &  index,
int  role 
) const
override

!! not exactly the ideal use of a std::set

Definition at line 165 of file LayerTree.cpp.

References m_modelMakerColumn, m_modelNameColumn, m_models, m_modelSourceColumn, m_modelTypeColumn, and m_waveModelsOnly.

bool ModelMetadataModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
override

Definition at line 207 of file LayerTree.cpp.

Qt::ItemFlags ModelMetadataModel::flags ( const QModelIndex &  index) const
override

Definition at line 213 of file LayerTree.cpp.

QVariant ModelMetadataModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override
QModelIndex ModelMetadataModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const
override

Definition at line 235 of file LayerTree.cpp.

References m_models.

QModelIndex ModelMetadataModel::parent ( const QModelIndex &  index) const
override

Definition at line 246 of file LayerTree.cpp.

int ModelMetadataModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 252 of file LayerTree.cpp.

References m_models.

int ModelMetadataModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 259 of file LayerTree.cpp.

References m_columnCount.

void ModelMetadataModel::paneAdded ( )
protectedslot

Definition at line 115 of file LayerTree.cpp.

References rebuildModelSet().

Referenced by ModelMetadataModel().

void ModelMetadataModel::paneDeleted ( )
protectedslot

Definition at line 122 of file LayerTree.cpp.

References rebuildModelSet().

Referenced by ModelMetadataModel().

void ModelMetadataModel::propertyContainerAdded ( PropertyContainer *  )
protectedslot

Definition at line 136 of file LayerTree.cpp.

References rebuildModelSet().

Referenced by ModelMetadataModel().

void ModelMetadataModel::propertyContainerRemoved ( PropertyContainer *  )
protectedslot

Definition at line 143 of file LayerTree.cpp.

References rebuildModelSet().

Referenced by ModelMetadataModel().

void ModelMetadataModel::propertyContainerSelected ( PropertyContainer *  )
protectedslot

Definition at line 150 of file LayerTree.cpp.

Referenced by ModelMetadataModel().

void ModelMetadataModel::propertyContainerPropertyChanged ( PropertyContainer *  )
protectedslot

Definition at line 155 of file LayerTree.cpp.

Referenced by ModelMetadataModel().

void ModelMetadataModel::playParametersAudibilityChanged ( bool  )
protectedslot

Definition at line 160 of file LayerTree.cpp.

void ModelMetadataModel::paneLayerModelChanged ( )
protectedslot

Definition at line 129 of file LayerTree.cpp.

References rebuildModelSet().

Referenced by ModelMetadataModel().

Member Data Documentation

PaneStack* ModelMetadataModel::m_stack
protected

Definition at line 69 of file LayerTree.h.

Referenced by rebuildModelSet().

bool ModelMetadataModel::m_waveModelsOnly
protected

Definition at line 70 of file LayerTree.h.

Referenced by data(), ModelMetadataModel(), and rebuildModelSet().

int ModelMetadataModel::m_modelTypeColumn
protected

Definition at line 71 of file LayerTree.h.

Referenced by data(), headerData(), and ModelMetadataModel().

int ModelMetadataModel::m_modelNameColumn
protected

Definition at line 72 of file LayerTree.h.

Referenced by data(), headerData(), and ModelMetadataModel().

int ModelMetadataModel::m_modelMakerColumn
protected

Definition at line 73 of file LayerTree.h.

Referenced by data(), headerData(), and ModelMetadataModel().

int ModelMetadataModel::m_modelSourceColumn
protected

Definition at line 74 of file LayerTree.h.

Referenced by data(), headerData(), and ModelMetadataModel().

int ModelMetadataModel::m_columnCount
protected

Definition at line 75 of file LayerTree.h.

Referenced by columnCount(), and ModelMetadataModel().

std::set<ModelId> ModelMetadataModel::m_models
protected

Definition at line 77 of file LayerTree.h.

Referenced by data(), index(), rebuildModelSet(), and rowCount().


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