00001 /*========================================================================= 00002 00003 Module: $RCSfile: vtkKWTclInteractor.h,v $ 00004 00005 Copyright (c) Kitware, Inc. 00006 All rights reserved. 00007 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00008 00009 This software is distributed WITHOUT ANY WARRANTY; without even 00010 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00011 PURPOSE. See the above copyright notice for more information. 00012 00013 =========================================================================*/ 00020 #ifndef __vtkKWTclInteractor_h 00021 #define __vtkKWTclInteractor_h 00022 00023 #include "vtkKWTopLevel.h" 00024 00025 class vtkKWApplication; 00026 class vtkKWFrame; 00027 class vtkKWPushButton; 00028 class vtkKWEntry; 00029 class vtkKWLabel; 00030 class vtkKWTextWithScrollbars; 00031 00032 class KWWIDGETS_EXPORT vtkKWTclInteractor : public vtkKWTopLevel 00033 { 00034 public: 00035 static vtkKWTclInteractor* New(); 00036 vtkTypeRevisionMacro(vtkKWTclInteractor, vtkKWTopLevel); 00037 void PrintSelf(ostream& os, vtkIndent indent); 00038 00040 virtual void Create(vtkKWApplication *app); 00041 00045 virtual void AppendText(const char* text); 00046 00048 virtual void EvaluateCallback(); 00049 00051 virtual void DownCallback(); 00052 00054 virtual void UpCallback(); 00055 00062 virtual void UpdateEnableState(); 00063 00064 protected: 00065 vtkKWTclInteractor(); 00066 ~vtkKWTclInteractor(); 00067 00068 vtkKWFrame *ButtonFrame; 00069 vtkKWPushButton *DismissButton; 00070 vtkKWFrame *CommandFrame; 00071 vtkKWLabel *CommandLabel; 00072 vtkKWEntry *CommandEntry; 00073 vtkKWTextWithScrollbars *DisplayText; 00074 00075 int TagNumber; 00076 int CommandIndex; 00077 00078 private: 00079 vtkKWTclInteractor(const vtkKWTclInteractor&); // Not implemented 00080 void operator=(const vtkKWTclInteractor&); // Not implemented 00081 }; 00082 00083 #endif 00084