#include <EditedDelegate.h>
Public Member Functions | |
| void | addEdited (const std::string &lName) |
| void | addStashed (const std::string &lName) |
| EditDelegate (QStyledItemDelegate *decorated, QObject *parent=0) | |
| QStyledItemDelegate * | findDecorator (QStyledItemDelegate *decorated) |
| Returns the Decorator that decorates this item. More... | |
| QStyledItemDelegate * | getDecorated () |
| Returns the pointer of decorated object. More... | |
| bool | isStached (const std::string &lName) |
| void | paint (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const |
| QStyledItemDelegate * | removeDecorator (QStyledItemDelegate *decorated) |
| Removes The decorator of the decorated. More... | |
| void | removeEdited (const std::string &lName) |
| void | removeStashed (const std::string &lName) |
| ~EditDelegate () | |
Protected Attributes | |
| QStyledItemDelegate * | m_decorated |
| The object decorated. More... | |
| bool | m_delDecorated |
| If true, also delete decorated pointer. More... | |
| std::set< std::string > | m_edited |
| QIcon | m_memory |
| QIcon | m_stash |
| std::set< std::string > | m_stashed |
Definition at line 38 of file EditedDelegate.h.
| EditDelegate::EditDelegate | ( | QStyledItemDelegate * | decorated, |
| QObject * | parent = 0 |
||
| ) |
Definition at line 78 of file EditedDelegate.cpp.
References GetIcon(), m_memory, m_stash, and ~EditDelegate().
|
default |
Referenced by EditDelegate().
| void EditDelegate::addEdited | ( | const std::string & | lName | ) |
Definition at line 138 of file EditedDelegate.cpp.
References m_edited, and removeStashed().
Referenced by te::qt::plugins::edit::Plugin::onGeometriesChanged().
| void EditDelegate::addStashed | ( | const std::string & | lName | ) |
Definition at line 127 of file EditedDelegate.cpp.
References m_stashed, and removeEdited().
Referenced by te::qt::plugins::edit::Plugin::onStashedLayer(), and te::qt::plugins::edit::Plugin::startup().
|
inherited |
Returns the Decorator that decorates this item.
| decorated | The decorated item that we are looking for. |
|
inherited |
Returns the pointer of decorated object.
| bool EditDelegate::isStached | ( | const std::string & | lName | ) |
Definition at line 149 of file EditedDelegate.cpp.
References m_stashed.
Referenced by te::qt::plugins::edit::Plugin::onApplicationTriggered(), and te::qt::plugins::edit::Plugin::onStashedLayer().
| void EditDelegate::paint | ( | QPainter * | painter, |
| const QStyleOptionViewItem & | option, | ||
| const QModelIndex & | index | ||
| ) | const |
Definition at line 89 of file EditedDelegate.cpp.
References te::qt::widgets::TreeItem::getType(), te::common::Decorator< QStyledItemDelegate >::m_decorated, m_edited, m_memory, m_stash, m_stashed, and paint().
|
inherited |
Removes The decorator of the decorated.
| decorated | The item that we are searching for the decorator. |
| void EditDelegate::removeEdited | ( | const std::string & | lName | ) |
| void EditDelegate::removeStashed | ( | const std::string & | lName | ) |
Definition at line 133 of file EditedDelegate.cpp.
References m_stashed.
Referenced by addEdited(), and te::qt::plugins::edit::Plugin::onStashedLayer().
|
protectedinherited |
The object decorated.
Definition at line 98 of file Decorator.h.
Referenced by te::qt::plugins::wfs::WFSItemDelegate::paint(), te::qt::plugins::wms::WMSItemDelegate::paint(), paint(), te::qt::plugins::st::STItemDelegate::paint(), te::qt::widgets::ThemeViewDelegate::paint(), te::qt::widgets::RasterLayerDelegate::paint(), te::ws::ogc::wms::qt::WMSItemDelegate::paint(), and te::qt::widgets::LayerViewDelegate::paint().
|
protectedinherited |
If true, also delete decorated pointer.
Definition at line 99 of file Decorator.h.
|
protected |
Definition at line 63 of file EditedDelegate.h.
Referenced by addEdited(), paint(), and removeEdited().
|
protected |
Definition at line 66 of file EditedDelegate.h.
Referenced by EditDelegate(), and paint().
|
protected |
Definition at line 65 of file EditedDelegate.h.
Referenced by EditDelegate(), and paint().
|
protected |
Definition at line 62 of file EditedDelegate.h.
Referenced by addStashed(), isStached(), paint(), and removeStashed().