ALBA
albaGUITreeContextualMenu.h
Go to the documentation of this file.
1#include "albaOpManager.h"
2/*=========================================================================
3
4 Program: ALBA (Agile Library for Biomedical Applications)
5 Module: albaGUITreeContextualMenu
6 Authors: Paolo Quadrani
7
8 Copyright (c) BIC
9 All rights reserved. See Copyright.txt or
10
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notice for more information.
15
16=========================================================================*/
17#ifndef __albaGUITreeContextualMenu_H__
18#define __albaGUITreeContextualMenu_H__
19
20#include "albaServiceClient.h"
21#include "albaAbsLogicManager.h"
22
23//----------------------------------------------------------------------------
24// forward references;
25//----------------------------------------------------------------------------
26class albaView;
27class albaGUIMDIChild;
28class albaEvent;
29class albaObserver;
31class albaVME;
32class albaSceneGraph;
33class albaVME;
34class albaOpManager;
35
36//----------------------------------------------------------------------------
37// const
38//----------------------------------------------------------------------------
40{
65};
66
67//----------------------------------------------------------------------------
68// albaGUITreeContextualMenu :
69//----------------------------------------------------------------------------
73class ALBA_EXPORT albaGUITreeContextualMenu : public wxMenu, public albaServiceClient
74{
75
76public:
79 void SetListener(albaObserver *Listener) {m_Listener = Listener;};
80
82 virtual void CreateContextualMenu(albaGUICheckTree *tree, albaView *view, albaVME *vme, bool vme_menu);
83
86
87 void SetOpManager(albaOpManager *opManager);
88
89protected:
95
97
99
101
104
106 void CryptSubTree(bool crypt);
107
110
112 virtual void OnContextualMenu(wxCommandEvent& event);
113 DECLARE_EVENT_TABLE()
114};
115#endif
MINID
Definition: albaDecl.h:420
@ RMENU_HIDE_SUBTREE
@ RMENU_SHOW_SAMETYPE
@ RMENU_SHOW_HISTORY
@ RMENU_COLLAPSE_SUBTREE
@ RMENU_SHOW_SUBTREE
@ RMENU_CRYPT_SUBMENU
@ CONTEXTUAL_TREE_MENU_STOP
@ RMENU_ENABLE_CRYPT_SUBTREE
@ CONTEXTUAL_TREE_MENU_START
@ RMENU_HIDE_SAMETYPE
@ RMENU_DISABLE_CRYPT_SUBTREE
@ RMENU_EXPAND_SUBTREE
@ RMENU_DISPLAY_SUBMENU
albaEvent - Class implementing ALBA application events.
Definition: albaEvent.h:55
class Name : albaGUICheckTree.
Class Name: albaGUIMDIChild.
Used to create and manage contextual menu' for tree widget used in side bar.
virtual void OnContextualMenu(wxCommandEvent &event)
Answer contextual men's selection.
void ExpandSubTree(albaVME *vme)
void ShowContextualMenu()
Visualize contextual men for the MDI child and selected view.
void SetListener(albaObserver *Listener)
void CollapseSubTree(albaVME *vme)
void SetOpManager(albaOpManager *opManager)
void CryptSubTree(bool crypt)
Enable/disable crypto for a subtree.
virtual ~albaGUITreeContextualMenu()
virtual void CreateContextualMenu(albaGUICheckTree *tree, albaView *view, albaVME *vme, bool vme_menu)
Create a contextual menu.
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36
albaVME -
Definition: albaVME.h:150
albaView is the base class for Views in alba.
Definition: albaView.h:79