OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
coGenericSubMenuItem.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_SUBMENU_H
9 #define CO_SUBMENU_H
10 
11 #include <util/coTypes.h>
12 
16 namespace vrui
17 {
18 
19 class coMenu;
20 class coMenuItem;
21 
22 class OPENVRUIEXPORT coGenericSubMenuItem
23 {
24 protected:
26  bool open;
28 public:
29  coGenericSubMenuItem(coMenuItem *container);
30  virtual ~coGenericSubMenuItem();
31 
32  virtual void setMenu(coMenu *menu);
33 
34  virtual void closeSubmenu() = 0;
35  virtual void openSubmenu() = 0;
36  virtual void positionSubmenu() = 0;
37  bool isOpen() const;
38 
39  coMenu *getMenu();
40 private:
42 };
43 }
44 #endif
Definition: coMenu.h:50
bool open
current state of the menu (open or closed)
Definition: coGenericSubMenuItem.h:26
Definition: coGenericSubMenuItem.h:22
coMenuItem * container_
containing menu item
Definition: coGenericSubMenuItem.h:27
coMenu * subMenu
the subMenu which is opened and closed by thes button
Definition: coGenericSubMenuItem.h:25
Definition: coMenuItem.h:44