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 class vtkKWIcon;
00027
00028 class KWWidgets_EXPORT vtkKWSplashScreen : public vtkKWTopLevel
00029 {
00030
00031 public:
00032 static vtkKWSplashScreen* New();
00033 vtkTypeRevisionMacro(vtkKWSplashScreen, vtkKWTopLevel);
00034 void PrintSelf(ostream& os, vtkIndent indent);
00035
00037 void SetProgressMessage(const char *);
00038
00040
00042 virtual void SetProgressMessageVerticalOffset(int);
00043 vtkGetMacro(ProgressMessageVerticalOffset, int);
00045
00047
00059 virtual void SetImageToIcon(vtkKWIcon *icon);
00060 virtual void SetImageToPredefinedIcon(int icon_index);
00061 virtual void SetImageToPixels(
00062 const unsigned char *pixels, int width, int height, int pixel_size,
00063 unsigned long buffer_length = 0);
00065
00069 virtual int ReadImage(const char *filename);
00070
00072
00076 vtkGetStringMacro(ImageName);
00077 virtual void SetImageName(const char*);
00079
00086 virtual void UpdateEnableState();
00087
00089 virtual void Display();
00090
00092 virtual void ButtonPressCallback();
00093
00094
00095
00096 protected:
00097 vtkKWSplashScreen();
00098 ~vtkKWSplashScreen();
00099
00101 virtual void CreateWidget();
00102
00103 vtkKWCanvas *Canvas;
00104 char *ImageName;
00105 int ProgressMessageVerticalOffset;
00106 int Discard;
00107
00108 virtual void UpdateImageInCanvas();
00109 virtual void UpdateCanvasSize();
00110 virtual void UpdateProgressMessagePosition();
00111
00113
00120 virtual int GetRequestedWidth();
00121 virtual int GetRequestedHeight();
00123
00124
00125
00126 private:
00127 vtkKWSplashScreen(const vtkKWSplashScreen&);
00128 void operator=(const vtkKWSplashScreen&);
00129 };
00130
00131
00132 #endif
00133
00134
00135
00136