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;
28 
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:
75 
76  // Description:
77  // Create the widget.
78  virtual void CreateWidget();
79 
86 
87  int TagNumber;
89 
90 private:
91  vtkKWTclInteractor(const vtkKWTclInteractor&); // Not implemented
92  void operator=(const vtkKWTclInteractor&); // Not implemented
93 };
94 
95 #endif
96