00001 /*========================================================================= 00002 00003 Program: ParaView 00004 Module: $RCSfile: vtkPVSaveBatchScriptDialog.h,v $ 00005 00006 Copyright (c) Kitware, Inc. 00007 All rights reserved. 00008 See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00021 #ifndef __vtkPVSaveBatchScriptDialog_h 00022 #define __vtkPVSaveBatchScriptDialog_h 00023 00024 #include "vtkKWDialog.h" 00025 00026 class vtkKWApplication; 00027 class vtkKWPushButton; 00028 class vtkKWEntry; 00029 class vtkKWLabel; 00030 class vtkKWWindow; 00031 class vtkKWEntry; 00032 class vtkKWCheckButton; 00033 class vtkPVApplication; 00034 class vtkKWFrame; 00035 00036 class VTK_EXPORT vtkPVSaveBatchScriptDialog : public vtkKWDialog 00037 { 00038 public: 00039 static vtkPVSaveBatchScriptDialog* New(); 00040 vtkTypeRevisionMacro(vtkPVSaveBatchScriptDialog, vtkKWDialog); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00044 virtual void Create(vtkKWApplication *app); 00045 00047 00048 int GetOffScreen(); 00049 const char* GetImagesFileName(); 00050 const char* GetGeometryFileName(); 00052 00054 00055 vtkSetStringMacro(FilePath); 00056 vtkSetStringMacro(FileRoot); 00058 00060 00061 void SaveImagesCheckCallback(); 00062 void SaveGeometryCheckCallback(); 00063 void ImageFileNameBrowseButtonCallback(); 00064 void GeometryFileNameBrowseButtonCallback(); 00066 00068 vtkPVApplication *GetPVApplication(); 00069 00070 protected: 00071 vtkPVSaveBatchScriptDialog(); 00072 ~vtkPVSaveBatchScriptDialog(); 00073 00074 char* FilePath; 00075 char* FileRoot; 00076 00077 vtkKWCheckButton* OffScreenCheck; 00078 00079 vtkKWCheckButton* SaveImagesCheck; 00080 vtkKWFrame* ImageFileNameFrame; 00081 vtkKWEntry* ImageFileNameEntry; 00082 vtkKWPushButton* ImageFileNameBrowseButton; 00083 00084 vtkKWCheckButton* SaveGeometryCheck; 00085 vtkKWFrame* GeometryFileNameFrame; 00086 vtkKWEntry* GeometryFileNameEntry; 00087 vtkKWPushButton* GeometryFileNameBrowseButton; 00088 00089 vtkKWFrame* ButtonFrame; 00090 vtkKWPushButton* AcceptButton; 00091 vtkKWPushButton* CancelButton; 00092 00093 private: 00094 vtkPVSaveBatchScriptDialog(const vtkPVSaveBatchScriptDialog&); // Not implemented 00095 void operator=(const vtkPVSaveBatchScriptDialog&); // Not implemented 00096 }; 00097 00098 #endif