LayerTreeModel Class Reference

#include <LayerTree.h>

Collaboration diagram for LayerTreeModel:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 79 of file LayerTree.h.

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


Constructor & Destructor Documentation

LayerTreeModel::LayerTreeModel ( PaneStack stack,
QObject *  parent = 0 
)

Definition at line 268 of file LayerTree.cpp.

References PaneStack::getPane(), PaneStack::getPaneCount(), m_columnCount, m_layerNameColumn, m_layerPlayedColumn, m_layerVisibleColumn, m_modelNameColumn, paneAboutToBeDeleted(), paneAdded(), paneLayerModelChanged(), playParametersAudibilityChanged(), propertyContainerAdded(), propertyContainerPropertyChanged(), propertyContainerRemoved(), and propertyContainerSelected().

LayerTreeModel::~LayerTreeModel (  )  [virtual]

Definition at line 309 of file LayerTree.cpp.


Member Function Documentation

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

Definition at line 397 of file LayerTree.cpp.

References View::getLayer(), View::getLayerCount(), PlayParameters::isPlayMuted(), m_layerNameColumn, m_layerPlayedColumn, m_layerVisibleColumn, and m_modelNameColumn.

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

Definition at line 459 of file LayerTree.cpp.

References View::getLayer(), View::getLayerCount(), Layer::getPlayParameters(), m_layerPlayedColumn, m_layerVisibleColumn, PlayParameters::setPlayMuted(), and Layer::showLayer().

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

Definition at line 509 of file LayerTree.cpp.

References m_layerNameColumn, m_layerPlayedColumn, m_layerVisibleColumn, and m_modelNameColumn.

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

Definition at line 568 of file LayerTree.cpp.

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

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  )  [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::propertyContainerPropertyChanged ( PropertyContainer  )  [protected, slot]

Definition at line 352 of file LayerTree.cpp.

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

Referenced by LayerTreeModel().

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

Definition at line 346 of file LayerTree.cpp.

Referenced by LayerTreeModel().

void LayerTreeModel::playParametersAudibilityChanged ( bool   )  [protected, slot]

Definition at line 369 of file LayerTree.cpp.

References View::getLayer(), PaneStack::getPane(), PaneStack::getPaneCount(), m_layerPlayedColumn, and m_stack.

Referenced by LayerTreeModel().


Member Data Documentation

PaneStack* LayerTreeModel::m_stack [protected]

Definition at line 115 of file LayerTree.h.

Referenced by columnCount(), index(), parent(), playParametersAudibilityChanged(), propertyContainerPropertyChanged(), and rowCount().

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

Definition at line 116 of file LayerTree.h.

Referenced by paneAboutToBeDeleted(), and parent().

int LayerTreeModel::m_layerNameColumn [protected]

Definition at line 117 of file LayerTree.h.

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

int LayerTreeModel::m_layerVisibleColumn [protected]

Definition at line 118 of file LayerTree.h.

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

int LayerTreeModel::m_layerPlayedColumn [protected]

Definition at line 119 of file LayerTree.h.

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

int LayerTreeModel::m_modelNameColumn [protected]

Definition at line 120 of file LayerTree.h.

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

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:
Generated on Wed Feb 20 15:45:33 2008 for SonicVisualiser by  doxygen 1.5.1