KWWidgets
Main Page
Classes
Files
File List
File Members
debian
tmp
usr
include
KWWidgets
debian/tmp/usr/include/KWWidgets/vtkKWPopupFrame.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Module: $RCSfile: vtkKWPopupFrame.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 vtkKWPopupFrame - a popup frame
15
// .SECTION Description
16
// A class that provides a frame that can be collapsed as a popup button.
17
18
#ifndef __vtkKWPopupFrame_h
19
#define __vtkKWPopupFrame_h
20
21
#include "
vtkKWCompositeWidget.h
"
22
23
class
vtkKWFrameWithLabel
;
24
class
vtkKWPopupButton
;
25
26
class
KWWidgets_EXPORT
vtkKWPopupFrame
:
public
vtkKWCompositeWidget
27
{
28
public
:
29
static
vtkKWPopupFrame
*
New
();
30
vtkTypeRevisionMacro(
vtkKWPopupFrame
,
vtkKWCompositeWidget
);
31
void
PrintSelf
(ostream& os, vtkIndent indent);
32
33
// Description:
34
// Display the frame as a popup. This has to be called before Create().
35
vtkSetMacro(PopupMode,
int
);
36
vtkGetMacro(PopupMode,
int
);
37
vtkBooleanMacro(PopupMode,
int
);
38
39
// Description:
40
// Access to sub-widgets
41
vtkGetObjectMacro(PopupButton,
vtkKWPopupButton
);
42
vtkGetObjectMacro(Frame,
vtkKWFrameWithLabel
);
43
44
// Description:
45
// Update the "enable" state of the object and its internal parts.
46
// Depending on different Ivars (this->Enabled, the application's
47
// Limited Edition Mode, etc.), the "enable" state of the object is updated
48
// and propagated to its internal parts/subwidgets. This will, for example,
49
// enable/disable parts of the widget UI, enable/disable the visibility
50
// of 3D widgets, etc.
51
virtual
void
UpdateEnableState
();
52
53
protected
:
54
vtkKWPopupFrame
();
55
~
vtkKWPopupFrame
();
56
57
// Description:
58
// Create the widget.
59
virtual
void
CreateWidget
();
60
61
// GUI
62
63
int
PopupMode
;
64
65
vtkKWPopupButton
*
PopupButton
;
66
vtkKWFrameWithLabel
*
Frame
;
67
68
private
:
69
vtkKWPopupFrame
(
const
vtkKWPopupFrame
&);
// Not implemented
70
void
operator=(
const
vtkKWPopupFrame
&);
// Not Implemented
71
};
72
73
#endif
Generated on Sun Apr 28 2013 21:04:57 for KWWidgets by
1.8.3.1