KWWidgets
Main Page
Classes
Files
File List
File Members
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
28
class
KWWidgets_EXPORT
vtkKWPushButtonWithMenu
:
public
vtkKWCompositeWidget
29
{
30
public
:
31
static
vtkKWPushButtonWithMenu
*
New
();
32
vtkTypeRevisionMacro(
vtkKWPushButtonWithMenu
,
vtkKWCompositeWidget
);
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
:
51
vtkKWPushButtonWithMenu
();
52
~
vtkKWPushButtonWithMenu
();
53
54
// Description:
55
// Create the widget.
56
virtual
void
CreateWidget
();
57
58
vtkKWMenuButton
*MenuButton;
59
vtkKWPushButton
*PushButton;
60
61
private
:
62
vtkKWPushButtonWithMenu
(
const
vtkKWPushButtonWithMenu
&);
// Not implemented
63
void
operator=(
const
vtkKWPushButtonWithMenu
&);
// Not implemented
64
};
65
66
#endif
67
Generated on Sun Apr 28 2013 21:04:57 for KWWidgets by
1.8.3.1