OpenCOVER
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
coIconSubMenuToolboxItem.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_ICONSUBMENU_TOOLBOXITEM_H
9 #define CO_ICONSUBMENU_TOOLBOXITEM_H
10 
12 #include <OpenVRUI/coButton.h>
13 
19 namespace vrui
20 {
21 
22 class OPENVRUIEXPORT coIconSubMenuToolboxItem
23  : public coSubMenuToolboxItem,
24  public coButtonActor
25 {
26 protected:
28 
29 public:
30  coIconSubMenuToolboxItem(const std::string &name);
31  virtual ~coIconSubMenuToolboxItem();
32 
33  // not really used but there because of coButton Constructor :-/
34  virtual void buttonEvent(coButton *)
35  {
36  }
37 
38  // only for not shadowing the coRotButton buttonEvent
39  virtual void buttonEvent(coRotButton *b)
40  {
42  }
43 
44  virtual void setAttachment(int);
45 
47  virtual const char *getClassName() const;
49  virtual bool isOfClassName(const char *name) const;
50 
51 private:
52  float smallGap, largeGap;
53 };
54 }
55 #endif
Action listener for events triggered by coButton.
Definition: coButton.h:23
Definition: coRotButton.h:35
virtual void buttonEvent(coRotButton *b)
Definition: coIconSubMenuToolboxItem.h:39
Definition: coSubMenuToolboxItem.h:29
Definition: coButton.h:36
virtual void buttonEvent(coButton *)
Definition: coIconSubMenuToolboxItem.h:34
coToggleButton * myButton
Definition: coIconSubMenuToolboxItem.h:27
Definition: coIconSubMenuToolboxItem.h:22
Definition: coButton.h:124
virtual void buttonEvent(coRotButton *button)=0