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 | |
Instantiation Methods | |
Methods related to creation and destruction of the object. | |
| LayerViewMenuManager (LayerItemView *view) | |
| Contructor. More... | |
| ~LayerViewMenuManager () | |
| Destructor. More... | |
| void | addAction (LMENUACTIONS mnu, QAction *act, int pos=-1) |
| Adds an action to some menu. More... | |
Reimplementation of QObject | |
| LayerItemView * | m_view |
| View being inspected. More... | |
| std::unique_ptr< QueueAction > | m_VL_actions |
| Vector layers 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... | |
| std::unique_ptr< QueueAction > | m_FL_actions |
| Folder 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_AL_actions |
| All kinds of items action list. More... | |
| std::unique_ptr< QueueAction > | m_IL_actions |
| Invalid layers action list. More... | |
| bool | eventFilter (QObject *watched, QEvent *event) |
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. |
| te::qt::widgets::LayerViewMenuManager::~LayerViewMenuManager | ( | ) |
Destructor.
| void te::qt::widgets::LayerViewMenuManager::addAction | ( | 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. |
| bool te::qt::widgets::LayerViewMenuManager::eventFilter | ( | QObject * | watched, |
| QEvent * | event | ||
| ) |
|
protected |
All kinds of items action list.
Definition at line 129 of file LayerViewMenuManager.h.
|
protected |
Folder layers action list.
Definition at line 126 of file LayerViewMenuManager.h.
|
protected |
Invalid layers action list.
Definition at line 130 of file LayerViewMenuManager.h.
|
protected |
Multiple selected items action list.
Definition at line 127 of file LayerViewMenuManager.h.
|
protected |
No selected items action list.
Definition at line 128 of file LayerViewMenuManager.h.
|
protected |
Raster layers action list.
Definition at line 124 of file LayerViewMenuManager.h.
|
protected |
Tabular layers action list.
Definition at line 125 of file LayerViewMenuManager.h.
|
protected |
View being inspected.
Definition at line 121 of file LayerViewMenuManager.h.
|
protected |
Vector layers action list.
Definition at line 123 of file LayerViewMenuManager.h.