COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 
13 namespace covise
14 {
15 
16 class coUifElem; // use only prt in header, include in cpp
17 class coUifSwitch; // we don't know anything about it, we can only hold a pointer
18 
24 {
25 
26 private:
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];
50  int d_numElem;
51 
52 public:
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
coUifSwitch * d_master
Definition: coUifSwitchCase.h:40
GLuint const GLchar * name
Definition: khronos-glext.h:6722
char * d_name
case name == label on the Choice
Definition: coUifSwitchCase.h:37
Definition: coUifElem.h:20
Definition: coUifSwitch.h:25
int d_numElem
Definition: coUifSwitchCase.h:50
#define APIEXPORT
Definition: coExport.h:251
Definition: coUifSwitchCase.h:23