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
53 virtual void VmeAdd(albaVME *vme) = 0;
54
56 virtual void VmeRemove(albaVME *vme) = 0;
57
59 virtual void VmeModified(albaVME *vme) = 0;
60
62 virtual void VmeShow(albaVME *vme, bool visibility) = 0;
63
65 virtual void VmeSelected(albaVME *vme) = 0;
66
68 virtual bool IsVMEExpanded(albaVME *vme) = 0;
69
71 virtual void CollapseVME(albaVME *vme) = 0;
72
74 virtual void ExpandVME(albaVME *vme) = 0;
75
77 virtual void OpShowGui(bool push_gui, albaGUIPanel *panel) = 0;
78
80 virtual void OpHideGui(bool view_closed) = 0;
81
83 virtual void ViewSelect(albaView *view) = 0;
84
86 virtual void ViewDeleted(albaView *view) = 0;
87
89 virtual void EnableSelect(bool enable) = 0;
90
92 virtual void Show() = 0;
93
95 virtual bool IsShown() = 0;
96
98 virtual void Show(bool show) = 0;
99
101 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;
102
104 virtual void FindVME() = 0;
105
106
107};
108#endif
@ REPRESENTATION_AS_TREE
virtual void VmeShow(albaVME *vme, bool visibility)=0
Notify to the tree the visibility of the vme.
virtual void EnableSelect(bool enable)=0
Enable/Disable the vme selection when an operation ends/start.
virtual bool IsShown()=0
Return true if the panel is showed.
virtual ~albaAbsSideBar()
virtual void FindVME()=0
Open a Find VME dialog.
virtual void Show(bool show)=0
Sets the visibility of the panel.
virtual void ExpandVME(albaVME *vme)=0
Expand the VME on the Tree
virtual void OpShowGui(bool push_gui, albaGUIPanel *panel)=0
Show the operation's parameters gui on the tabbed panel.
virtual void VmeModified(albaVME *vme)=0
Notify to the tree that a vme is modified.
virtual void ViewDeleted(albaView *view)=0
Notify to the tree that a view has been deleted.
virtual void VmeAdd(albaVME *vme)=0
Add a new vme into the tree.
virtual void OpHideGui(bool view_closed)=0
Hide the view/operation's gui from the tabbed panel.
virtual void CollapseVME(albaVME *vme)=0
Collapse the VME on the Tree.
virtual void VmeSelected(albaVME *vme)=0
Notify to the tree that the vme has been selected.
virtual void Show()=0
Switch the visibility of the panel.
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
virtual void VmeRemove(albaVME *vme)=0
Remove a vme from the tree.
virtual void ViewSelect(albaView *view)=0
Plug the view settings on the tabbed panel.
virtual bool IsVMEExpanded(albaVME *vme)=0
Return True if the VME is Expanded on Tree.
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