Toshihiro Shimizu 890ddd
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
Toshihiro Shimizu 890ddd
class DVAPI TSplashWindow
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
protected:
Toshihiro Shimizu 890ddd
	class TSplashWindowImp;
Toshihiro Shimizu 890ddd
	TSplashWindowImp *m_imp;
Toshihiro Shimizu 890ddd
	//TThread::Executor  m_thrExecutor;
Toshihiro Shimizu 890ddd
	//TRasterP					 m_raster;
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
protected:
Toshihiro Shimizu 890ddd
	TSplashWindow(TRaster32P splash_image, unsigned int timeout_msec);
Toshihiro Shimizu 890ddd
	TSplashWindow(const TFilePath &splash_image, unsigned int timeout_msec);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
public:
Toshihiro Shimizu 890ddd
	virtual ~TSplashWindow();
Toshihiro Shimizu 890ddd
	void close();
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
	static TSplashWindow *create(TRaster32P splash_image, unsigned int timeout_msec);
Toshihiro Shimizu 890ddd
	static TSplashWindow *create(const TFilePath &splash_image, unsigned int timeout_msec);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
protected:
Toshihiro Shimizu 890ddd
	void createWindow(TRaster32P splash_image, unsigned int timeout_msec);
Toshihiro Shimizu 890ddd
	void createWindow(const TFilePath &splash_image, unsigned int timeout_msec);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
private:
Toshihiro Shimizu 890ddd
	// cloning is forbidden
Toshihiro Shimizu 890ddd
	TSplashWindow(const TSplashWindow &);
Toshihiro Shimizu 890ddd
	TSplashWindow &operator=(const TSplashWindow &);
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif