#include <LayerTree.h>
Collaboration diagram for LayerTreeModel:

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 | |
| PaneStack * | m_stack |
| std::set< QObject * > | m_deletedPanes |
| int | m_layerNameColumn |
| int | m_layerVisibleColumn |
| int | m_layerPlayedColumn |
| int | m_modelNameColumn |
| int | m_columnCount |
| 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.
| 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 |
| void LayerTreeModel::paneAdded | ( | ) | [protected, slot] |
| 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] |
| void LayerTreeModel::propertyContainerRemoved | ( | PropertyContainer * | ) | [protected, slot] |
| void LayerTreeModel::propertyContainerSelected | ( | PropertyContainer * | ) | [protected, slot] |
| 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] |
| 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().
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] |
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] |
1.5.1