te::qt::widgets::LayerViewMenuManager Class Reference

Class for manage the menus of the LayerViewItem. More...

#include <LayerViewMenuManager.h>

Inheritance diagram for te::qt::widgets::LayerViewMenuManager:

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::auto_ptr< QueueActionm_AL_actions
 All kinds of items action list. More...
 
std::auto_ptr< QueueActionm_FL_actions
 Folder layers action list. More...
 
std::auto_ptr< QueueActionm_IL_actions
 Invalid layers action list. More...
 
std::auto_ptr< QueueActionm_ML_actions
 Multiple selected items action list. More...
 
std::auto_ptr< QueueActionm_NL_actions
 No selected items action list. More...
 
std::auto_ptr< QueueActionm_RL_actions
 Raster layers action list. More...
 
std::auto_ptr< QueueActionm_TL_actions
 Tabular layers action list. More...
 
LayerItemViewm_view
 View being inspected. More...
 
std::auto_ptr< QueueActionm_VL_actions
 Vector layers action list. More...
 

Detailed Description

Class for manage the menus of the LayerViewItem.

Definition at line 60 of file LayerViewMenuManager.h.

Member Enumeration Documentation

Defines the type of actions we can use.

Enumerator
VECTOR_LAYER 

Vector layers menu.

RASTER_LAYER 

Raster layers menu.

TABULAR_LAYER 

Tabular layers menu.

FOLDER_LAYER 

Folder layers menu.

MULTI_LAYERS 

Multiple layers selected menu.

NO_LAYERS 

No selected layers menu.

ALL_LAYERS 

All kinds of items menu.

INVALID_LAYERS 

Invalid layers menu.

Definition at line 71 of file LayerViewMenuManager.h.

Constructor & Destructor Documentation

te::qt::widgets::LayerViewMenuManager::LayerViewMenuManager ( LayerItemView view)

Contructor.

Parameters
viewThe view that is being used.
te::qt::widgets::LayerViewMenuManager::~LayerViewMenuManager ( )

Destructor.

Member Function Documentation

void te::qt::widgets::LayerViewMenuManager::addAction ( LMENUACTIONS  mnu,
QAction *  act,
int  pos = -1 
)

Adds an action to some menu.

Parameters
mnuThe menu we will update.
actThe new action to be added.
posThe position of the menu. pos = -1 signs to append the action.
bool te::qt::widgets::LayerViewMenuManager::eventFilter ( QObject *  watched,
QEvent *  event 
)

Member Data Documentation

std::auto_ptr<QueueAction> te::qt::widgets::LayerViewMenuManager::m_AL_actions
protected

All kinds of items action list.

Definition at line 129 of file LayerViewMenuManager.h.

std::auto_ptr<QueueAction> te::qt::widgets::LayerViewMenuManager::m_FL_actions
protected

Folder layers action list.

Definition at line 126 of file LayerViewMenuManager.h.

std::auto_ptr<QueueAction> te::qt::widgets::LayerViewMenuManager::m_IL_actions
protected

Invalid layers action list.

Definition at line 130 of file LayerViewMenuManager.h.

std::auto_ptr<QueueAction> te::qt::widgets::LayerViewMenuManager::m_ML_actions
protected

Multiple selected items action list.

Definition at line 127 of file LayerViewMenuManager.h.

std::auto_ptr<QueueAction> te::qt::widgets::LayerViewMenuManager::m_NL_actions
protected

No selected items action list.

Definition at line 128 of file LayerViewMenuManager.h.

std::auto_ptr<QueueAction> te::qt::widgets::LayerViewMenuManager::m_RL_actions
protected

Raster layers action list.

Definition at line 124 of file LayerViewMenuManager.h.

std::auto_ptr<QueueAction> te::qt::widgets::LayerViewMenuManager::m_TL_actions
protected

Tabular layers action list.

Definition at line 125 of file LayerViewMenuManager.h.

LayerItemView* te::qt::widgets::LayerViewMenuManager::m_view
protected

View being inspected.

Definition at line 121 of file LayerViewMenuManager.h.

std::auto_ptr<QueueAction> te::qt::widgets::LayerViewMenuManager::m_VL_actions
protected

Vector layers action list.

Definition at line 123 of file LayerViewMenuManager.h.


The documentation for this class was generated from the following file: