svgui  1.9
LayerTreeModel Class Reference

#include <LayerTree.h>

Collaboration diagram for LayerTreeModel:

List of all members.

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

Definition at line 309 of file LayerTree.cpp.


Member Function Documentation

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

Definition at line 493 of file LayerTree.cpp.

References m_layerPlayedColumn, and m_layerVisibleColumn.

QVariant LayerTreeModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
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(), and m_stack.

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

Definition at line 549 of file LayerTree.cpp.

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

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

Definition at line 584 of file LayerTree.cpp.

References m_columnCount, and m_stack.

void LayerTreeModel::paneAdded ( ) [protected, slot]

Definition at line 314 of file LayerTree.cpp.

Referenced by LayerTreeModel().

void LayerTreeModel::paneAboutToBeDeleted ( Pane pane) [protected, slot]

Definition at line 320 of file LayerTree.cpp.

References m_deletedPanes.

Referenced by LayerTreeModel().

void LayerTreeModel::propertyContainerAdded ( PropertyContainer *  ) [protected, slot]

Definition at line 328 of file LayerTree.cpp.

Referenced by LayerTreeModel().

void LayerTreeModel::propertyContainerRemoved ( PropertyContainer *  ) [protected, slot]

Definition at line 334 of file LayerTree.cpp.

Referenced by LayerTreeModel().

void LayerTreeModel::propertyContainerSelected ( PropertyContainer *  ) [protected, slot]

Definition at line 340 of file LayerTree.cpp.

Referenced by LayerTreeModel().

void LayerTreeModel::paneLayerModelChanged ( ) [protected, slot]

Definition at line 346 of file LayerTree.cpp.

Referenced by LayerTreeModel().


Member Data Documentation

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

Definition at line 116 of file LayerTree.h.

Referenced by paneAboutToBeDeleted(), and parent().

Definition at line 118 of file LayerTree.h.

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

Definition at line 121 of file LayerTree.h.

Referenced by columnCount(), and LayerTreeModel().


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