home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 March
/
VPR9703A.ISO
/
VPR_DATA
/
DOGA
/
SOURCES
/
TCH2AVI.LZH
/
TCH2VAPP.H
< prev
next >
Wrap
C/C++ Source or Header
|
1996-07-05
|
3KB
|
114 lines
#if !defined(__tch2vapp_h) // 番兵。まだインクルードされていない場合にのみ,このファイルを使用
#define __tch2vapp_h
/* Project tch2avi
Project Team DoGA
Copyright (c) 1996. All Rights Reserved.
サブシステム: tch2avi.exe Application
ファイル: tch2vapp.h
作成者: Masamichi Takatsu
概要
====
tch2aviApp (TApplication) 用のクラス定義
*/
#include <owl\owlpch.h>
#pragma hdrstop
#include <classlib\bags.h>
#include <owl\opensave.h>
#include "tch2vapp.rh" // すべてのリソースの定義
#include "tshwwndw.h"
#include "vfw.h"
// TFileDrop クラスは,ドロップされたファイル,その名前,ドロップされた位置,そして
// それがクライアント領域中かどうかを管理する
class TFileDrop {
public:
operator == (const TFileDrop& other) const {return this == &other;}
char* FileName;
TPoint Point;
BOOL InClientArea;
TFileDrop (char*, TPoint&, BOOL, TModule*);
~TFileDrop ();
const char* WhoAmI ();
private:
//
// アクシデントによって,コピーや代入が起こらないように,隠蔽する
//
TFileDrop (const TFileDrop&);
TFileDrop & operator = (const TFileDrop&);
};
typedef TIBagAsVector<TFileDrop> TFileList;
typedef TIBagAsVectorIterator<TFileDrop> TFileListIter;
//{{TApplication = tch2aviApp}}
class tch2aviApp : public TApplication {
public:
TOpenSaveDialog::TData FileData; // 「開く」「名前を付けて保存」標準ダイアログ用の制御データ
AVICOMPRESSOPTIONS AviCompOpts;
int idle;
private:
void AddFile (const char *fileName);
public:
tch2aviApp ();
virtual ~tch2aviApp ();
void OpenFile (const char *fileName = 0);
//{{tch2aviAppVIRTUAL_BEGIN}}
public:
virtual void InitMainWindow();
virtual void InitInstance();
virtual BOOL IdleAction (long idleCount);
virtual BOOL CanClose ();
//{{tch2aviAppVIRTUAL_END}}
//{{tch2aviAppRSP_TBL_BEGIN}}
protected:
void CmFileOpen ();
void CmHelpAbout ();
void EvDropFiles (TDropInfo drop);
void CmFileSaveAs ();
public:
void CmFileOption ();
protected:
void CmFIleSaveEnable (TCommandEnabler &tce);
void CmFileOpenEnable (TCommandEnabler &tce);
void CmFileOptionEnable (TCommandEnabler &tce);
void CmPicExt ();
void CmPicExtEnable (TCommandEnabler &tce);
void CmPicExtBmp ();
void CmPicExtBmpEnable (TCommandEnabler &tce);
void CmPicExtPic ();
void CmPicExtPicEnable (TCommandEnabler &tce);
void CmPicExtPpm ();
void CmPicExtPpmEnable (TCommandEnabler &tce);
//{{tch2aviAppRSP_TBL_END}}
DECLARE_RESPONSE_TABLE(tch2aviApp);
}; //{{tch2aviApp}}
int tch2avi(TShowWindow *client, char *tchfile, char *avifile,
AVICOMPRESSOPTIONS *opts, int waitflag, int removeflag);
int tchcheck(TShowWindow *client);
class TDib;
TDib *LoadDib(char *filename);
#endif // __tch2vapp_h の番兵