KWWidgets
Main Page
Classes
Files
File List
File Members
debian
tmp
usr
include
KWWidgets
debian/tmp/usr/include/KWWidgets/vtkKWTclInteractor.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Module: $RCSfile: vtkKWTclInteractor.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 vtkKWTclInteractor - a KW version of interactor.tcl
15
// .SECTION Description
16
// A widget to interactively execute Tcl commands
17
18
#ifndef __vtkKWTclInteractor_h
19
#define __vtkKWTclInteractor_h
20
21
#include "
vtkKWTopLevel.h
"
22
23
class
vtkKWFrame
;
24
class
vtkKWPushButton
;
25
class
vtkKWEntry
;
26
class
vtkKWLabel
;
27
class
vtkKWTextWithScrollbars
;
28
29
class
KWWidgets_EXPORT
vtkKWTclInteractor
:
public
vtkKWTopLevel
30
{
31
public
:
32
static
vtkKWTclInteractor
*
New
();
33
vtkTypeRevisionMacro(
vtkKWTclInteractor
,
vtkKWTopLevel
);
34
void
PrintSelf
(ostream& os, vtkIndent indent);
35
36
// Description:
37
// Append text to the display window. Can be used for sending
38
// debugging information to the command prompt when no standard
39
// output is available.
40
virtual
void
AppendText(
const
char
* text);
41
42
// Description:
43
// Update the "enable" state of the object and its internal parts.
44
// Depending on different Ivars (this->Enabled, the application's
45
// Limited Edition Mode, etc.), the "enable" state of the object is updated
46
// and propagated to its internal parts/subwidgets. This will, for example,
47
// enable/disable parts of the widget UI, enable/disable the visibility
48
// of 3D widgets, etc.
49
virtual
void
UpdateEnableState
();
50
51
// Description:
52
// Specifies the font to use when drawing text inside the widget.
53
// You can use predefined font names (e.g. 'system'), or you can specify
54
// a set of font attributes with a platform-independent name, for example,
55
// 'times 12 bold'. In this example, the font is specified with a three
56
// element list: the first element is the font family, the second is the
57
// size, the third is a list of style parameters (normal, bold, roman,
58
// italic, underline, overstrike). Example: 'times 12 {bold italic}'.
59
// The Times, Courier and Helvetica font families are guaranteed to exist
60
// and will be matched to the corresponding (closest) font on your system.
61
// If you are familiar with the X font names specification, you can also
62
// describe the font that way (say, '*times-medium-r-*-*-12*').
63
virtual
void
SetFont(
const
char
*font);
64
virtual
const
char
* GetFont();
65
66
// Description:
67
// Callbacks. Internal, do not use.
68
virtual
void
EvaluateCallback();
69
virtual
void
DownCallback();
70
virtual
void
UpCallback();
71
72
protected
:
73
vtkKWTclInteractor
();
74
~
vtkKWTclInteractor
();
75
76
// Description:
77
// Create the widget.
78
virtual
void
CreateWidget
();
79
80
vtkKWFrame
*
ButtonFrame
;
81
vtkKWPushButton
*
DismissButton
;
82
vtkKWFrame
*
CommandFrame
;
83
vtkKWLabel
*
CommandLabel
;
84
vtkKWEntry
*
CommandEntry
;
85
vtkKWTextWithScrollbars
*
DisplayText
;
86
87
int
TagNumber
;
88
int
CommandIndex
;
89
90
private
:
91
vtkKWTclInteractor
(
const
vtkKWTclInteractor
&);
// Not implemented
92
void
operator=(
const
vtkKWTclInteractor
&);
// Not implemented
93
};
94
95
#endif
96
Generated on Mon Mar 24 2014 05:21:25 for KWWidgets by
1.8.1.2