KWWidgets
debian/tmp/usr/include/KWWidgets/vtkKWPushButtonWithMenu.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Module: $RCSfile: vtkKWPushButtonWithMenu.h,v $
4 
5  Copyright (c) Kitware, Inc.
6  All rights reserved.
7  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 
13 =========================================================================*/
14 // .NAME vtkKWPushButtonWithMenu - PushButton with left mouse bound to menu.
15 // .SECTION Description
16 // vtkKWPushButtonWithMenu was created for the reset view. The menu
17 // will change the behavior of the button.
18 
19 #ifndef __vtkKWPushButtonWithMenu_h
20 #define __vtkKWPushButtonWithMenu_h
21 
22 #include "vtkKWCompositeWidget.h"
23 
24 class vtkKWMenu;
25 class vtkKWPushButton;
26 class vtkKWMenuButton;
27 
29 {
30 public:
31  static vtkKWPushButtonWithMenu* New();
33  void PrintSelf(ostream& os, vtkIndent indent);
34 
35  // Description:
36  // Get internal objects.
37  virtual vtkKWMenu* GetMenu();
38  vtkGetObjectMacro(MenuButton, vtkKWMenuButton);
39  vtkGetObjectMacro(PushButton, vtkKWPushButton);
40 
41  // Description:
42  // Update the "enable" state of the object and its internal parts.
43  // Depending on different Ivars (this->Enabled, the application's
44  // Limited Edition Mode, etc.), the "enable" state of the object is updated
45  // and propagated to its internal parts/subwidgets. This will, for example,
46  // enable/disable parts of the widget UI, enable/disable the visibility
47  // of 3D widgets, etc.
48  virtual void UpdateEnableState();
49 
50 protected:
53 
54  // Description:
55  // Create the widget.
56  virtual void CreateWidget();
57 
60 
61 private:
62  vtkKWPushButtonWithMenu(const vtkKWPushButtonWithMenu&); // Not implemented
63  void operator=(const vtkKWPushButtonWithMenu&); // Not implemented
64 };
65 
66 #endif
67