COVISE Core
coUifSwitchCase.h
Go to the documentation of this file.
1/* This file is part of COVISE.
2
3 You can use it under the terms of the GNU Lesser General Public License
4 version 2.1 or later, see lgpl-2.1.txt.
5
6 * License: LGPL 2+ */
7
8#ifndef _CO_UIF_SWITCH_CASE_H_
9#define _CO_UIF_SWITCH_CASE_H_
10
11// 15.09.99
12
13namespace covise
14{
15
16class coUifElem; // use only prt in header, include in cpp
17class coUifSwitch; // we don't know anything about it, we can only hold a pointer
18
24{
25
26private:
29
31 coUifSwitchCase &operator=(const coUifSwitchCase &);
32
35
37 char *d_name;
38
39 // pointer to my master ... whatever tyhis might be, we don't use it
41
43 enum
44 {
45 MAX_PORTS = 4096
46 };
47
48 // list of all Elements and number of Elements in list
49 coUifElem *d_elemList[MAX_PORTS];
51
52public:
54 virtual ~coUifSwitchCase();
55
57 coUifSwitchCase(const char *name, coUifSwitch *master);
58
60 void add(coUifElem *elem);
61
63 const char *getName() const;
64
66 coUifSwitch *getMaster() const;
67
69 virtual void hide();
70
72 virtual void show();
73};
74}
75#endif
#define APIEXPORT
Definition: coExport.h:275
GLuint const GLchar * name
Definition: khronos-glext.h:6722
list of all chemical elements
Definition: coConfig.h:27
Definition: coUifElem.h:21
Definition: coUifSwitch.h:26
Definition: coUifSwitchCase.h:24
coUifSwitch * d_master
Definition: coUifSwitchCase.h:40
char * d_name
case name == label on the Choice
Definition: coUifSwitchCase.h:37
int d_numElem
Definition: coUifSwitchCase.h:50