ALBA
albaAbsSideBar.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaSideBar
5 Authors: Silvano Imboden
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#ifndef __albaAbsSideBar_H__
17#define __albaAbsSideBar_H__
18//----------------------------------------------------------------------------
19// Include:
20//----------------------------------------------------------------------------
21#include <wx/notebook.h>
22#include <wx/splitter.h>
23#include <wx/utils.h>
24
25#include "albaEvent.h"
26#include "albaObserver.h"
27#include "albaGUICheckTree.h"
29//----------------------------------------------------------------------------
30// forward reference
31//----------------------------------------------------------------------------
32class albaGUIHolder;
33class albaGUI;
35class albaGUIPanel;
36class albaVME;
37class albaView;
40class albaGUIMDIFrame;
41//----------------------------------------------------------------------------
42// albaSideBar :
43//----------------------------------------------------------------------------
46class ALBA_EXPORT albaAbsSideBar
47{
48public:
50 virtual ~albaAbsSideBar() {};
51
52 // Description:
53 // Add a new vme into the tree.
54 virtual void VmeAdd(albaVME *vme) = 0;
55
56 // Description:
57 // Remove a vme from the tree.
58 virtual void VmeRemove(albaVME *vme) = 0;
59
60 // Description:
61 // Notify to the tree that a vme is modified.
62 virtual void VmeModified(albaVME *vme) = 0;
63
64 // Description:
65 // Notify to the tree the visibility of the vme.
66 virtual void VmeShow(albaVME *vme, bool visibility) = 0;
67
68 // Description:
69 // Notify to the tree that the vme has been selected.
70 virtual void VmeSelected(albaVME *vme) = 0;
71
72 // Description:
73 // Show the operation's parameters gui on the tabbed panel.
74 virtual void OpShowGui(bool push_gui, albaGUIPanel *panel) = 0;
75
76 // Description:
77 // Hide the view/operation's gui from the tabbed panel.
78 virtual void OpHideGui(bool view_closed) = 0;
79
80 // Description:
81 // Plug the view settings on the tabbed panel.
82 virtual void ViewSelect(albaView *view) = 0;
83
84 // Description:
85 // Notify to the tree that a view has been deleted.
86 virtual void ViewDeleted(albaView *view) = 0;
87
88 // Description:
89 // Enable/Disable the vme selection when an operation ends/start.
90 virtual void EnableSelect(bool enable) = 0;
91
92 // Description:
93 // Switch the visibility of the panel.
94 virtual void Show() = 0;
95
96 virtual bool IsShown() = 0;
97 virtual void Show(bool show) = 0;
98
100 virtual std::vector<albaVME*> VmeChoose(void *vme_accept_function = 0, long style = REPRESENTATION_AS_TREE, albaString title = "Choose Node", bool multiSelect = false, albaVME *vme = NULL) = 0;
101
103 virtual void FindVME() = 0;
104};
105#endif
@ REPRESENTATION_AS_TREE
virtual void VmeShow(albaVME *vme, bool visibility)=0
virtual void EnableSelect(bool enable)=0
virtual bool IsShown()=0
virtual ~albaAbsSideBar()
virtual void FindVME()=0
Open a Find VME dialog.
virtual void Show(bool show)=0
virtual void OpShowGui(bool push_gui, albaGUIPanel *panel)=0
virtual void VmeModified(albaVME *vme)=0
virtual void ViewDeleted(albaView *view)=0
virtual void VmeAdd(albaVME *vme)=0
virtual void OpHideGui(bool view_closed)=0
virtual void VmeSelected(albaVME *vme)=0
virtual void Show()=0
virtual std::vector< albaVME * > VmeChoose(void *vme_accept_function=0, long style=REPRESENTATION_AS_TREE, albaString title="Choose Node", bool multiSelect=false, albaVME *vme=NULL)=0
Respond to a VME_CHOOSE evt.
virtual void VmeRemove(albaVME *vme)=0
virtual void ViewSelect(albaView *view)=0
class name: albaGUIHolder Secialized panel in which a developer can put a albaGUI.
Definition: albaGUIHolder.h:32
Class Name: albaGUIMDIFrame.
Class Name: albaGUINamedPanel.
class name: albaGUIPanelStack Panel with the same behaviour of a stack container (push and pop method...
class name: albaGUIPanel Inherits directly from wxPanel and adds the pointer to the next panel
Definition: albaGUIPanel.h:27
albaGUISplittedPanel is a wxPanel with a user-draggable splitter that divide it in two sections verti...
albaGUI is a panel with function to easily create GUI.
Definition: albaGUI.h:110
albaString - performs common string operations on c-strings.
Definition: albaString.h:43
albaVME -
Definition: albaVME.h:150
albaView is the base class for Views in alba.
Definition: albaView.h:79