svgui
1.9
|
#include <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 |
Definition at line 79 of file LayerTree.h.
LayerTreeModel::LayerTreeModel | ( | PaneStack * | stack, |
QObject * | parent = 0 |
||
) |
Definition at line 268 of file LayerTree.cpp.
References View::getLayer(), View::getLayerCount(), PaneStack::getPane(), PaneStack::getPaneCount(), Layer::getPlayParameters(), m_columnCount, m_layerNameColumn, m_layerPlayedColumn, m_layerVisibleColumn, m_modelNameColumn, paneAboutToBeDeleted(), paneAdded(), paneLayerModelChanged(), playParametersAudibilityChanged(), propertyContainerAdded(), propertyContainerPropertyChanged(), propertyContainerRemoved(), and propertyContainerSelected().
|
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(), Layer::getModel(), Layer::getPlayParameters(), Layer::getPropertyContainerIconName(), index(), Layer::isLayerDormant(), 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(), index(), m_layerPlayedColumn, m_layerVisibleColumn, and Layer::showLayer().
Qt::ItemFlags LayerTreeModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 493 of file LayerTree.cpp.
References index(), 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(), m_stack, and 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().
int LayerTreeModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 568 of file LayerTree.cpp.
References View::getLayerCount(), PaneStack::getPane(), PaneStack::getPaneCount(), m_stack, and parent().
int LayerTreeModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 584 of file LayerTree.cpp.
References m_columnCount, m_stack, and parent().
|
protectedslot |
Definition at line 314 of file LayerTree.cpp.
Referenced by LayerTreeModel().
|
protectedslot |
Definition at line 320 of file LayerTree.cpp.
References m_deletedPanes.
Referenced by LayerTreeModel().
|
protectedslot |
Definition at line 328 of file LayerTree.cpp.
Referenced by LayerTreeModel().
|
protectedslot |
Definition at line 334 of file LayerTree.cpp.
Referenced by LayerTreeModel().
|
protectedslot |
Definition at line 340 of file LayerTree.cpp.
Referenced by LayerTreeModel().
|
protectedslot |
Definition at line 352 of file LayerTree.cpp.
References View::getLayer(), View::getLayerCount(), PaneStack::getPane(), PaneStack::getPaneCount(), m_layerNameColumn, m_modelNameColumn, and m_stack.
Referenced by LayerTreeModel().
|
protectedslot |
Definition at line 346 of file LayerTree.cpp.
Referenced by LayerTreeModel().
|
protectedslot |
Definition at line 369 of file LayerTree.cpp.
References View::getLayer(), View::getLayerCount(), PaneStack::getPane(), PaneStack::getPaneCount(), Layer::getPlayParameters(), m_layerPlayedColumn, and m_stack.
Referenced by LayerTreeModel().
|
protected |
Definition at line 115 of file LayerTree.h.
Referenced by columnCount(), index(), parent(), playParametersAudibilityChanged(), propertyContainerPropertyChanged(), and rowCount().
|
protected |
Definition at line 116 of file LayerTree.h.
Referenced by paneAboutToBeDeleted(), and parent().
|
protected |
Definition at line 117 of file LayerTree.h.
Referenced by data(), headerData(), LayerTreeModel(), and propertyContainerPropertyChanged().
|
protected |
Definition at line 118 of file LayerTree.h.
Referenced by data(), flags(), headerData(), LayerTreeModel(), and setData().
|
protected |
Definition at line 119 of file LayerTree.h.
Referenced by data(), flags(), headerData(), LayerTreeModel(), playParametersAudibilityChanged(), and setData().
|
protected |
Definition at line 120 of file LayerTree.h.
Referenced by data(), headerData(), LayerTreeModel(), and propertyContainerPropertyChanged().
|
protected |
Definition at line 121 of file LayerTree.h.
Referenced by columnCount(), and LayerTreeModel().