svgui  1.9
LayerTreeModel Class Reference

#include <LayerTree.h>

Inheritance diagram for LayerTreeModel:
Collaboration diagram for LayerTreeModel:

Public Member Functions

 LayerTreeModel (PaneStack *stack, QObject *parent=0)
 
virtual ~LayerTreeModel ()
 
QVariant data (const QModelIndex &index, int role) const
 
bool setData (const QModelIndex &index, const QVariant &value, int role)
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
QModelIndex parent (const QModelIndex &index) const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 

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 79 of file LayerTree.h.

Constructor & Destructor Documentation

◆ LayerTreeModel()

◆ ~LayerTreeModel()

LayerTreeModel::~LayerTreeModel ( )
virtual

Definition at line 309 of file LayerTree.cpp.

Member Function Documentation

◆ data()

◆ setData()

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

◆ flags()

Qt::ItemFlags LayerTreeModel::flags ( const QModelIndex &  index) const

Definition at line 493 of file LayerTree.cpp.

References index(), m_layerPlayedColumn, and m_layerVisibleColumn.

◆ headerData()

QVariant LayerTreeModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

◆ index()

QModelIndex LayerTreeModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const

Definition at line 524 of file LayerTree.cpp.

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

Referenced by data(), flags(), parent(), and setData().

◆ parent()

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

Definition at line 549 of file LayerTree.cpp.

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

Referenced by columnCount(), index(), and rowCount().

◆ rowCount()

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

◆ columnCount()

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

Definition at line 584 of file LayerTree.cpp.

References m_columnCount, m_stack, and parent().

◆ paneAdded

void LayerTreeModel::paneAdded ( )
protectedslot

Definition at line 314 of file LayerTree.cpp.

Referenced by LayerTreeModel().

◆ paneAboutToBeDeleted

void LayerTreeModel::paneAboutToBeDeleted ( Pane pane)
protectedslot

Definition at line 320 of file LayerTree.cpp.

References m_deletedPanes.

Referenced by LayerTreeModel().

◆ propertyContainerAdded

void LayerTreeModel::propertyContainerAdded ( PropertyContainer *  )
protectedslot

Definition at line 328 of file LayerTree.cpp.

Referenced by LayerTreeModel().

◆ propertyContainerRemoved

void LayerTreeModel::propertyContainerRemoved ( PropertyContainer *  )
protectedslot

Definition at line 334 of file LayerTree.cpp.

Referenced by LayerTreeModel().

◆ propertyContainerSelected

void LayerTreeModel::propertyContainerSelected ( PropertyContainer *  )
protectedslot

Definition at line 340 of file LayerTree.cpp.

Referenced by LayerTreeModel().

◆ propertyContainerPropertyChanged

void LayerTreeModel::propertyContainerPropertyChanged ( PropertyContainer *  pc)
protectedslot

◆ paneLayerModelChanged

void LayerTreeModel::paneLayerModelChanged ( )
protectedslot

Definition at line 346 of file LayerTree.cpp.

Referenced by LayerTreeModel().

◆ playParametersAudibilityChanged

void LayerTreeModel::playParametersAudibilityChanged ( bool  a)
protectedslot

Member Data Documentation

◆ m_stack

PaneStack* LayerTreeModel::m_stack
protected

◆ m_deletedPanes

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

Definition at line 116 of file LayerTree.h.

Referenced by paneAboutToBeDeleted(), and parent().

◆ m_layerNameColumn

int LayerTreeModel::m_layerNameColumn
protected

Definition at line 117 of file LayerTree.h.

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

◆ m_layerVisibleColumn

int LayerTreeModel::m_layerVisibleColumn
protected

Definition at line 118 of file LayerTree.h.

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

◆ m_layerPlayedColumn

int LayerTreeModel::m_layerPlayedColumn
protected

◆ m_modelNameColumn

int LayerTreeModel::m_modelNameColumn
protected

Definition at line 120 of file LayerTree.h.

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

◆ m_columnCount

int LayerTreeModel::m_columnCount
protected

Definition at line 121 of file LayerTree.h.

Referenced by columnCount(), and LayerTreeModel().


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