00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00020 #ifndef __vtkKWSplashScreen_h
00021 #define __vtkKWSplashScreen_h
00022
00023 #include "vtkKWTopLevel.h"
00024
00025 class vtkKWCanvas;
00026
00027 class KWWIDGETS_EXPORT vtkKWSplashScreen : public vtkKWTopLevel
00028 {
00029 public:
00030 static vtkKWSplashScreen* New();
00031 vtkTypeRevisionMacro(vtkKWSplashScreen, vtkKWTopLevel);
00032 void PrintSelf(ostream& os, vtkIndent indent);
00033
00035 virtual void Create(vtkKWApplication *app);
00036
00038 virtual void Display();
00039
00041 void SetProgressMessage(const char *);
00042
00044
00046 virtual void SetProgressMessageVerticalOffset(int);
00047 vtkGetMacro(ProgressMessageVerticalOffset, int);
00049
00051
00052 vtkGetStringMacro(ImageName);
00053 virtual void SetImageName(const char*);
00055
00061 virtual int ReadImage(const char *filename);
00062
00069 virtual void UpdateEnableState();
00070
00071 protected:
00072 vtkKWSplashScreen();
00073 ~vtkKWSplashScreen();
00074
00075 vtkKWCanvas *Canvas;
00076 char *ImageName;
00077 int ProgressMessageVerticalOffset;
00078
00079 void UpdateCanvasSize();
00080 void UpdateProgressMessagePosition();
00081
00083
00090 virtual int GetRequestedWidth();
00091 virtual int GetRequestedHeight();
00093
00094 private:
00095 vtkKWSplashScreen(const vtkKWSplashScreen&);
00096 void operator=(const vtkKWSplashScreen&);
00097 };
00098
00099
00100 #endif
00101
00102
00103