ALBA
albaGUIContextualMenu.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUIContextualMenu
5 Authors: Paolo Quadrani
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16
17#ifndef __albaGUIContextualMenu_H__
18#define __albaGUIContextualMenu_H__
19
20#include "albaServiceClient.h"
21#include "albaAbsLogicManager.h"
22
23//----------------------------------------------------------------------------
24// forward references;
25//----------------------------------------------------------------------------
26class albaView;
27class albaEvent;
28class albaObserver;
29
34class ALBA_EXPORT albaGUIContextualMenu : public wxMenu, public albaServiceClient
35{
36public:
42 void SetListener(albaObserver *Listener) {m_Listener = Listener;};
43
45 void ShowContextualMenu(wxFrame *child, albaView *view, bool vme_menu);
46
47protected:
51
53 void OnContextualViewMenu(wxCommandEvent& event);
55 DECLARE_EVENT_TABLE()
56};
57#endif
albaEvent - Class implementing ALBA application events.
Definition: albaEvent.h:55
class name: albaGUIContextualMenu Class that handle menu' opened with right button click of the mouse...
void ShowContextualMenu(wxFrame *child, albaView *view, bool vme_menu)
Visualize contextual menù for the MDI child and selected view.
void OnContextualViewMenu(wxCommandEvent &event)
Answer contextual menù's selection.
albaGUIContextualMenu()
constructor
void SetListener(albaObserver *Listener)
function for setting the listener of events coming from another object
virtual ~albaGUIContextualMenu()
destructor
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36
albaView is the base class for Views in alba.
Definition: albaView.h:79