00001 /*========================================================================= 00002 00003 Module: $RCSfile: vtkKWDialog.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 =========================================================================*/ 00022 #ifndef __vtkKWDialog_h 00023 #define __vtkKWDialog_h 00024 00025 #include "vtkKWTopLevel.h" 00026 00027 class KWWidgets_EXPORT vtkKWDialog : public vtkKWTopLevel 00028 { 00029 // @cond section_public 00030 public: 00031 static vtkKWDialog* New(); 00032 vtkTypeRevisionMacro(vtkKWDialog,vtkKWTopLevel); 00033 void PrintSelf(ostream& os, vtkIndent indent); 00034 00041 virtual int Invoke(); 00042 00046 virtual void Display(); 00047 00049 00050 enum 00051 { 00052 StatusActive = 0, 00053 StatusCanceled = 1, 00054 StatusOK = 2 00055 }; 00056 //ETX 00057 int GetStatus() { return this->Done; }; 00059 00061 vtkKWWidget* GetFrame() { return this; } 00062 00064 00065 vtkSetClampMacro(Beep, int, 0, 1); 00066 vtkBooleanMacro(Beep, int); 00067 vtkGetMacro(Beep, int); 00069 00071 virtual void Cancel(); 00072 00074 virtual void OK(); 00075 00077 00082 virtual int PreInvoke(); 00083 virtual void PostInvoke(); 00084 virtual int IsUserDoneWithDialog(); 00086 00087 // @endcond 00088 // @cond section_protected 00089 protected: 00090 vtkKWDialog(); 00091 ~vtkKWDialog() {}; 00092 00094 virtual void CreateWidget(); 00095 00096 int Done; 00097 int Beep; 00098 00099 // @endcond 00100 // @cond section_private 00101 private: 00102 vtkKWDialog(const vtkKWDialog&); // Not implemented 00103 void operator=(const vtkKWDialog&); // Not Implemented 00104 }; 00105 00106 #endif 00107 // @endcond
1.6.1