Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef TW_SPLASH_INCLUDED
Toshihiro Shimizu 890ddd
#define TW_SPLASH_INCLUDED
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//#include "tfilepath.h"
Toshihiro Shimizu 890ddd
//#include "tthread.h"
Toshihiro Shimizu 890ddd
#include "traster.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#undef DVAPI
Toshihiro Shimizu 890ddd
#undef DVVAR
Toshihiro Shimizu 890ddd
#ifdef TWIN_EXPORTS
Toshihiro Shimizu 890ddd
#define DVAPI DV_EXPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_EXPORT_VAR
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define DVAPI DV_IMPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_IMPORT_VAR
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
class TFilePath;
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
class DVAPI TSplashWindow {
Toshihiro Shimizu 890ddd
protected:
Shinya Kitaoka 120a6e
  class TSplashWindowImp;
Shinya Kitaoka 120a6e
  TSplashWindowImp *m_imp;
Shinya Kitaoka 120a6e
  // TThread::Executor  m_thrExecutor;
Shinya Kitaoka 120a6e
  // TRasterP					 m_raster;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
protected:
Shinya Kitaoka 120a6e
  TSplashWindow(TRaster32P splash_image, unsigned int timeout_msec);
Shinya Kitaoka 120a6e
  TSplashWindow(const TFilePath &splash_image, unsigned int timeout_msec);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Shinya Kitaoka 120a6e
  virtual ~TSplashWindow();
Shinya Kitaoka 120a6e
  void close();
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
  static TSplashWindow *create(TRaster32P splash_image,
Shinya Kitaoka 120a6e
                               unsigned int timeout_msec);
Shinya Kitaoka 120a6e
  static TSplashWindow *create(const TFilePath &splash_image,
Shinya Kitaoka 120a6e
                               unsigned int timeout_msec);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
protected:
Shinya Kitaoka 120a6e
  void createWindow(TRaster32P splash_image, unsigned int timeout_msec);
Shinya Kitaoka 120a6e
  void createWindow(const TFilePath &splash_image, unsigned int timeout_msec);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
private:
Shinya Kitaoka 120a6e
  // cloning is forbidden
Shinya Kitaoka 120a6e
  TSplashWindow(const TSplashWindow &);
Shinya Kitaoka 120a6e
  TSplashWindow &operator=(const TSplashWindow &);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif