#include <LayerTree.h>

Inheritance diagram for LayerTreeModel:
Inheritance graph
Collaboration diagram for LayerTreeModel:
Collaboration graph

Public Member Functions

 LayerTreeModel (PaneStack *stack, QObject *parent=0)
 
virtual ~LayerTreeModel ()
 
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 paneAboutToBeDeleted (Pane *)
 
void propertyContainerAdded (PropertyContainer *)
 
void propertyContainerRemoved (PropertyContainer *)
 
void propertyContainerSelected (PropertyContainer *)
 
void propertyContainerPropertyChanged (PropertyContainer *)
 
void paneLayerModelChanged ()
 
void playParametersAudibilityChanged (bool)
 

Protected Attributes

PaneStackm_stack
 
std::set< QObject * > m_deletedPanes
 
int m_layerNameColumn
 
int m_layerVisibleColumn
 
int m_layerPlayedColumn
 
int m_modelNameColumn
 
int m_columnCount
 

Detailed Description

Definition at line 80 of file LayerTree.h.

Constructor & Destructor Documentation

LayerTreeModel::~LayerTreeModel ( )
virtual

Definition at line 307 of file LayerTree.cpp.

Member Function Documentation

QVariant LayerTreeModel::data ( const QModelIndex &  index,
int  role 
) const
override
bool LayerTreeModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role 
)
override
Qt::ItemFlags LayerTreeModel::flags ( const QModelIndex &  index) const
override

Definition at line 491 of file LayerTree.cpp.

References m_layerPlayedColumn, and m_layerVisibleColumn.

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

Definition at line 522 of file LayerTree.cpp.

References PaneStack::getPane(), PaneStack::getPaneCount(), and m_stack.

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

Definition at line 547 of file LayerTree.cpp.

References PaneStack::getPaneIndex(), m_deletedPanes, and m_stack.

int LayerTreeModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
override
int LayerTreeModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const
override

Definition at line 582 of file LayerTree.cpp.

References m_columnCount, and m_stack.

void LayerTreeModel::paneAdded ( )
protectedslot

Definition at line 312 of file LayerTree.cpp.

Referenced by LayerTreeModel().

void LayerTreeModel::paneAboutToBeDeleted ( Pane pane)
protectedslot

Definition at line 318 of file LayerTree.cpp.

References m_deletedPanes.

Referenced by LayerTreeModel().

void LayerTreeModel::propertyContainerAdded ( PropertyContainer *  )
protectedslot

Definition at line 326 of file LayerTree.cpp.

Referenced by LayerTreeModel().

void LayerTreeModel::propertyContainerRemoved ( PropertyContainer *  )
protectedslot

Definition at line 332 of file LayerTree.cpp.

Referenced by LayerTreeModel().

void LayerTreeModel::propertyContainerSelected ( PropertyContainer *  )
protectedslot

Definition at line 338 of file LayerTree.cpp.

Referenced by LayerTreeModel().

void LayerTreeModel::propertyContainerPropertyChanged ( PropertyContainer *  pc)
protectedslot
void LayerTreeModel::paneLayerModelChanged ( )
protectedslot

Definition at line 344 of file LayerTree.cpp.

Referenced by LayerTreeModel().

void LayerTreeModel::playParametersAudibilityChanged ( bool  a)
protectedslot

Member Data Documentation

PaneStack* LayerTreeModel::m_stack
protected
std::set<QObject *> LayerTreeModel::m_deletedPanes
protected

Definition at line 117 of file LayerTree.h.

Referenced by paneAboutToBeDeleted(), and parent().

int LayerTreeModel::m_layerNameColumn
protected

Definition at line 118 of file LayerTree.h.

Referenced by data(), headerData(), LayerTreeModel(), and propertyContainerPropertyChanged().

int LayerTreeModel::m_layerVisibleColumn
protected

Definition at line 119 of file LayerTree.h.

Referenced by data(), flags(), headerData(), LayerTreeModel(), and setData().

int LayerTreeModel::m_layerPlayedColumn
protected
int LayerTreeModel::m_modelNameColumn
protected

Definition at line 121 of file LayerTree.h.

Referenced by data(), headerData(), LayerTreeModel(), and propertyContainerPropertyChanged().

int LayerTreeModel::m_columnCount
protected

Definition at line 122 of file LayerTree.h.

Referenced by columnCount(), and LayerTreeModel().


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