ALBA
albaGUIVMEChooser.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUIVMEChooser
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 __albaGUIVmeChooser_H__
18#define __albaGUIVmeChooser_H__
19
20//----------------------------------------------------------------------------
21// Include:
22//----------------------------------------------------------------------------
23#include "albaGUIDialog.h"
25
26//----------------------------------------------------------------------------
27// forward references :
28//----------------------------------------------------------------------------
30class albaVME;
31
32//----------------------------------------------------------------------------
33// albaGUIVMEChooser :
34//----------------------------------------------------------------------------
40class ALBA_EXPORT albaGUIVMEChooser : public albaGUIDialog
41{
42
43public:
44 albaGUIVMEChooser(albaGUICheckTree *tree, wxString dialog_title = "Vme Chooser", void *vme_accept_function = 0, long style = REPRESENTATION_AS_TREE, bool multiSelect = false, albaVME *subTree = NULL);
45
47
48 std::vector<albaVME*> ShowChooserDialog();
49 void OnEvent(albaEventBase *alba_event);
50
51protected:
53 ValidateCallBackType m_ValidateCallback; // pointer to the callback
54
55 void LoadLayout();
56 void SaveLayout();
57};
58#endif
@ REPRESENTATION_AS_TREE
bool(* ValidateCallBackType)(albaVME *)
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
class Name : albaGUICheckTree.
albaGUIDialog is the base class for albaDialogs.
Definition: albaGUIDialog.h:76
Widget representing the tree that allow the user to choose a VME.
Display a modal dialog filled with a vme tree and return the choosed vme.
ValidateCallBackType m_ValidateCallback
void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
std::vector< albaVME * > ShowChooserDialog()
albaGUIVMEChooser(albaGUICheckTree *tree, wxString dialog_title="Vme Chooser", void *vme_accept_function=0, long style=REPRESENTATION_AS_TREE, bool multiSelect=false, albaVME *subTree=NULL)
albaGUIVMEChooserTree * m_ChooserTree
albaVME -
Definition: albaVME.h:150