Class for manage the menus of the LayerViewItem. More...
#include <LayerViewMenuManager.h>
Public Types | |
| enum | LMENUACTIONS { VECTOR_LAYER, RASTER_LAYER, TABULAR_LAYER, FOLDER_LAYER, MULTI_LAYERS, NO_LAYERS, ALL_LAYERS, INVALID_LAYERS } |
| Defines the type of actions we can use. More... | |
Public Member Functions | |
| void | addAction (LMENUACTIONS mnu, QAction *act, int pos=-1) |
| Adds an action to some menu. More... | |
Instantiation Methods | |
Methods related to creation and destruction of the object. | |
| LayerViewMenuManager (LayerItemView *view) | |
| Contructor. More... | |
| ~LayerViewMenuManager () | |
| Destructor. More... | |
Reimplementation of QObject | |
Methods reimplemented of the QObject class. | |
| bool | eventFilter (QObject *watched, QEvent *event) |
Protected Attributes | |
| std::unique_ptr< QueueAction > | m_AL_actions |
| All kinds of items action list. More... | |
| std::unique_ptr< QueueAction > | m_FL_actions |
| Folder layers action list. More... | |
| std::unique_ptr< QueueAction > | m_IL_actions |
| Invalid layers action list. More... | |
| std::unique_ptr< QueueAction > | m_ML_actions |
| Multiple selected items action list. More... | |
| std::unique_ptr< QueueAction > | m_NL_actions |
| No selected items action list. More... | |
| std::unique_ptr< QueueAction > | m_RL_actions |
| Raster layers action list. More... | |
| std::unique_ptr< QueueAction > | m_TL_actions |
| Tabular layers action list. More... | |
| LayerItemView * | m_view |
| View being inspected. More... | |
| std::unique_ptr< QueueAction > | m_VL_actions |
| Vector layers action list. More... | |
Class for manage the menus of the LayerViewItem.
Definition at line 60 of file LayerViewMenuManager.h.
Defines the type of actions we can use.
Definition at line 71 of file LayerViewMenuManager.h.
| te::qt::widgets::LayerViewMenuManager::LayerViewMenuManager | ( | LayerItemView * | view | ) |
Contructor.
| view | The view that is being used. |
Definition at line 37 of file LayerViewMenuManager.cpp.
References m_AL_actions, m_FL_actions, m_IL_actions, m_ML_actions, m_NL_actions, m_RL_actions, m_TL_actions, m_VL_actions, and ~LayerViewMenuManager().
|
default |
Destructor.
Referenced by LayerViewMenuManager().
| void te::qt::widgets::LayerViewMenuManager::addAction | ( | LayerViewMenuManager::LMENUACTIONS | mnu, |
| QAction * | act, | ||
| int | pos = -1 |
||
| ) |
Adds an action to some menu.
| mnu | The menu we will update. |
| act | The new action to be added. |
| pos | The position of the menu. pos = -1 signs to append the action. |
Definition at line 53 of file LayerViewMenuManager.cpp.
References te::common::QueueT< T >::add(), ALL_LAYERS, FOLDER_LAYER, te::common::QueueT< T >::insert(), INVALID_LAYERS, m_AL_actions, m_FL_actions, m_IL_actions, m_ML_actions, m_NL_actions, m_RL_actions, m_TL_actions, m_VL_actions, MULTI_LAYERS, RASTER_LAYER, TABULAR_LAYER, and VECTOR_LAYER.
Referenced by te::qt::widgets::LayerItemView::addAllLayerAction(), te::qt::widgets::LayerItemView::addFolderLayerAction(), te::qt::widgets::LayerItemView::addInvalidLayerAction(), te::qt::widgets::LayerItemView::addMultipleSelectionAction(), te::qt::widgets::LayerItemView::addNoLayerAction(), te::qt::widgets::LayerItemView::addRasterLayerAction(), te::qt::widgets::LayerItemView::addTabularLayerAction(), and te::qt::widgets::LayerItemView::addVectorLayerAction().
Definition at line 107 of file LayerViewMenuManager.cpp.
References te::qt::widgets::GetMenu(), te::qt::widgets::TreeItem::getType(), m_AL_actions, m_FL_actions, m_IL_actions, m_ML_actions, m_NL_actions, m_RL_actions, m_TL_actions, m_view, and m_VL_actions.
|
protected |
All kinds of items action list.
Definition at line 129 of file LayerViewMenuManager.h.
Referenced by addAction(), eventFilter(), and LayerViewMenuManager().
|
protected |
Folder layers action list.
Definition at line 126 of file LayerViewMenuManager.h.
Referenced by addAction(), eventFilter(), and LayerViewMenuManager().
|
protected |
Invalid layers action list.
Definition at line 130 of file LayerViewMenuManager.h.
Referenced by addAction(), eventFilter(), and LayerViewMenuManager().
|
protected |
Multiple selected items action list.
Definition at line 127 of file LayerViewMenuManager.h.
Referenced by addAction(), eventFilter(), and LayerViewMenuManager().
|
protected |
No selected items action list.
Definition at line 128 of file LayerViewMenuManager.h.
Referenced by addAction(), eventFilter(), and LayerViewMenuManager().
|
protected |
Raster layers action list.
Definition at line 124 of file LayerViewMenuManager.h.
Referenced by addAction(), eventFilter(), and LayerViewMenuManager().
|
protected |
Tabular layers action list.
Definition at line 125 of file LayerViewMenuManager.h.
Referenced by addAction(), eventFilter(), and LayerViewMenuManager().
|
protected |
View being inspected.
Definition at line 121 of file LayerViewMenuManager.h.
Referenced by eventFilter().
|
protected |
Vector layers action list.
Definition at line 123 of file LayerViewMenuManager.h.
Referenced by addAction(), eventFilter(), and LayerViewMenuManager().