VMSM430MF.h 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. //---------------------------------------------------------------------------
  2. #ifndef VMSM430MFH
  3. #define VMSM430MFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <DB.hpp>
  10. #include <DBClient.hpp>
  11. #include <FMTBcd.hpp>
  12. #include <Provider.hpp>
  13. #include <SqlExpr.hpp>
  14. #include <Menus.hpp>
  15. #include <ExtCtrls.hpp>
  16. #include <Graphics.hpp>
  17. #include <ComCtrls.hpp>
  18. #include <ADODB.hpp>
  19. #include <Dialogs.hpp>
  20. #include <ExtDlgs.hpp>
  21. //---------------------------------------------------------------------------
  22. //---------------------------------------------------------------------------
  23. #include "WindowMsgF.h"
  24. #include "cxButtons.hpp"
  25. #include "cxCalendar.hpp"
  26. #include "cxContainer.hpp"
  27. #include "cxControls.hpp"
  28. #include "cxDropDownEdit.hpp"
  29. #include "cxEdit.hpp"
  30. #include "cxGraphics.hpp"
  31. #include "cxGroupBox.hpp"
  32. #include "cxLabel.hpp"
  33. #include "cxLookAndFeelPainters.hpp"
  34. #include "cxLookAndFeels.hpp"
  35. #include "cxMaskEdit.hpp"
  36. #include "cxPC.hpp"
  37. #include "cxPCdxBarPopupMenu.hpp"
  38. #include "cxSpinEdit.hpp"
  39. #include "cxSplitter.hpp"
  40. #include "cxTextEdit.hpp"
  41. #include "cxTimeEdit.hpp"
  42. #include "dxSkinBlack.hpp"
  43. #include "dxSkinBlue.hpp"
  44. #include "dxSkinCaramel.hpp"
  45. #include "dxSkinCoffee.hpp"
  46. #include "dxSkinDarkRoom.hpp"
  47. #include "dxSkinDarkSide.hpp"
  48. #include "dxSkinFoggy.hpp"
  49. #include "dxSkinGlassOceans.hpp"
  50. #include "dxSkiniMaginary.hpp"
  51. #include "dxSkinLilian.hpp"
  52. #include "dxSkinLiquidSky.hpp"
  53. #include "dxSkinLondonLiquidSky.hpp"
  54. #include "dxSkinMcSkin.hpp"
  55. #include "dxSkinMoneyTwins.hpp"
  56. #include "dxSkinOffice2007Black.hpp"
  57. #include "dxSkinOffice2007Blue.hpp"
  58. #include "dxSkinOffice2007Green.hpp"
  59. #include "dxSkinOffice2007Pink.hpp"
  60. #include "dxSkinOffice2007Silver.hpp"
  61. #include "dxSkinOffice2010Black.hpp"
  62. #include "dxSkinOffice2010Blue.hpp"
  63. #include "dxSkinOffice2010Silver.hpp"
  64. #include "dxSkinsCore.hpp"
  65. #include "dxSkinscxPCPainter.hpp"
  66. #include "dxSkinSeven.hpp"
  67. #include "dxSkinSharp.hpp"
  68. #include "dxSkinSilver.hpp"
  69. #include "dxSkinStardust.hpp"
  70. #include "cxRadioGroup.hpp"
  71. #include "cxClasses.hpp"
  72. #include "cxCustomData.hpp"
  73. #include "cxData.hpp"
  74. #include "cxDataStorage.hpp"
  75. #include "cxDBData.hpp"
  76. #include "cxFilter.hpp"
  77. #include "cxGrid.hpp"
  78. #include "cxGridCustomTableView.hpp"
  79. #include "cxGridCustomView.hpp"
  80. #include "cxGridDBTableView.hpp"
  81. #include "cxGridLevel.hpp"
  82. #include "cxGridTableView.hpp"
  83. #include "cxStyles.hpp"
  84. #include "cxCheckBox.hpp"
  85. #include "FRAME_VmsListF.h"
  86. #include "cxImage.hpp"
  87. #include "cxButtonEdit.hpp"
  88. #include "cxBlobEdit.hpp"
  89. #include "dxGDIPlusClasses.hpp"
  90. #include "FFBaseComponent.hpp"
  91. #include "FFBasePlay.hpp"
  92. #include "FFPlay.hpp"
  93. #include "FFDecode.hpp"
  94. #include "IdAntiFreeze.hpp"
  95. #include "IdAntiFreezeBase.hpp"
  96. #include "IdBaseComponent.hpp"
  97. #include "IdComponent.hpp"
  98. #include "IdExplicitTLSClientServerBase.hpp"
  99. #include "IdFTP.hpp"
  100. #include "IdTCPClient.hpp"
  101. #include "IdTCPConnection.hpp"
  102. #define MAX_PLAYER 1
  103. class TVMSM430M : public TForm
  104. {
  105. __published: // IDE-managed Components
  106. TTimer *TmrShow;
  107. TShape *ShpTitle;
  108. TcxButton *BtnClose;
  109. TLabel *LblCaption;
  110. TShape *ShpList;
  111. TEdit *EdFocus;
  112. TPanel *PnlBack;
  113. TPanel *PnlLeft;
  114. TcxSplitter *cxSplitter1;
  115. TcxGroupBox *GrpList;
  116. TPanel *Panel1;
  117. TPanel *PnlVmsList;
  118. TPanel *PnlSymbol;
  119. TcxSplitter *cxSplitter2;
  120. TcxGroupBox *cxGroupBox1;
  121. TcxGroupBox *cxGroupBox2;
  122. TFRAMEVmsList *FRAMEVmsList1;
  123. TcxGrid *CxList;
  124. TcxGridTableView *TvList;
  125. TcxGridColumn *ColLink1;
  126. TcxGridColumn *ColLink2;
  127. TcxGridColumn *ColLink3;
  128. TcxGridColumn *ColLink4;
  129. TcxGridColumn *ColLink5;
  130. TcxGridColumn *ColLink6;
  131. TcxGridLevel *GlList;
  132. TPanel *PnlMenu;
  133. TcxButton *BtnEdit;
  134. TcxButton *BtnInsert;
  135. TcxButton *BtnDelete;
  136. TcxButton *BtnSave;
  137. TPanel *Panel4;
  138. TcxButton *BtnDownload;
  139. TPanel *PnlCmd;
  140. TPanel *PnlPlayer;
  141. TImage *ImgPreView;
  142. TcxLabel *cxLabel18;
  143. TImage *ImgDesc01;
  144. TcxLabel *cxLabel1;
  145. TImage *ImgDesc02;
  146. TcxTextEdit *EdNmbr;
  147. TcxLabel *cxLabel2;
  148. TImage *ImgDesc03;
  149. TcxTextEdit *EdExpl;
  150. TcxButtonEdit *EdImageFileName;
  151. TcxLabel *cxLabel3;
  152. TImage *ImgDesc04;
  153. TcxButton *BtnSaveImgFile;
  154. TSaveDialog *SaveDialog;
  155. TOpenPictureDialog *OpenBmp;
  156. TcxTextEdit *EdVmsCd;
  157. TcxLabel *lblText1;
  158. TcxLabel *lblText2;
  159. TcxLabel *lblText3;
  160. TcxLabel *lblText4;
  161. TcxLabel *lblText5;
  162. TcxTextEdit *EdFileNamexxx;
  163. TFFPlayer *FFPlayer1;
  164. TTrackBar *TrackBar1;
  165. TLabel *lblDuration1;
  166. TLabel *lblCurrentPTS1;
  167. TcxCheckBox *ChkFullScreen;
  168. TcxLabel *lblImage1;
  169. TcxLabel *lblImage2;
  170. TcxLabel *lblImage3;
  171. TcxLabel *lblImage4;
  172. TcxLabel *lblImage5;
  173. TcxLabel *lblImage9;
  174. TcxLabel *lblImage8;
  175. TcxLabel *lblImage7;
  176. TcxLabel *lblImage6;
  177. TcxLabel *lblImage12;
  178. TImage *ImgTemp;
  179. TFFDecoder *FFDecoder1;
  180. TcxButton *BtnPlay;
  181. TcxButton *BtnStop;
  182. TcxButton *BtnPause;
  183. TImage *ImgDesc07;
  184. TcxLabel *cxLabel4;
  185. TcxTextEdit *EdFileName;
  186. TcxLabel *lblImage21;
  187. TcxLabel *lblImage22;
  188. TIdFTP *IdFtp;
  189. TcxLabel *lblSameFile;
  190. TcxLabel *lblFtpServer;
  191. TcxLabel *cxLabel5;
  192. void __fastcall FormShow(TObject *Sender);
  193. void __fastcall TmrShowTimer(TObject *Sender);
  194. void __fastcall BtnCloseClick(TObject *Sender);
  195. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  196. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  197. void __fastcall BtnEditClick(TObject *Sender);
  198. void __fastcall BtnSaveClick(TObject *Sender);
  199. void __fastcall BtnInsertClick(TObject *Sender);
  200. void __fastcall BtnDeleteClick(TObject *Sender);
  201. void __fastcall BtnSaveImgFileClick(TObject *Sender);
  202. void __fastcall EdImageFileNameClick(TObject *Sender);
  203. void __fastcall OpenBmpCanClose(TObject *Sender, bool &CanClose);
  204. void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  205. TMouseButton AButton, TShiftState AShift,
  206. bool &AHandled);
  207. void __fastcall BtnDownloadClick(TObject *Sender);
  208. void __fastcall TvListFocusedRecordChanged(TcxCustomGridTableView *Sender, TcxCustomGridRecord *APrevFocusedRecord,
  209. TcxCustomGridRecord *AFocusedRecord, bool ANewItemRecordFocusingChanged);
  210. void __fastcall BtnPlayClick(TObject *Sender);
  211. void __fastcall FFPlayer1FileOpen(TObject *Sender, const __int64 ADuration, int AFrameWidth, int AFrameHeight, int &AScreenWidth,
  212. int &AScreenHeight);
  213. void __fastcall BtnStopClick(TObject *Sender);
  214. void __fastcall BtnPauseClick(TObject *Sender);
  215. void __fastcall ChkFullScreenClick(TObject *Sender);
  216. void __fastcall TrackBar1Change(TObject *Sender);
  217. void __fastcall FFPlayer1OpenFailed(TObject *Sender);
  218. void __fastcall FFPlayer1Position(TObject *Sender, const __int64 APTS);
  219. void __fastcall FFPlayer1State(TObject *Sender, TPlayState APlayState);
  220. private: // User declarations
  221. void __fastcall CommClose();
  222. TcxDataController *m_pGDC;
  223. String FTitle;
  224. bool FUpdate;
  225. bool FNewDb;
  226. bool EditMode;
  227. TList *FListSymb;
  228. bool FPlayStream;
  229. int FThumbNail;
  230. bool FMakeThumbNail;
  231. DWORD FPlayTime;
  232. DWORD FFileSize;
  233. String FFileName;
  234. String FFileExt;
  235. __int64 FDuration[MAX_PLAYER];
  236. bool FTrackChanging[MAX_PLAYER];
  237. TTrackBar *FTrackBar[MAX_PLAYER];
  238. TLabel *FLblDuration[MAX_PLAYER];
  239. TLabel *FLblCurrPTS[MAX_PLAYER];
  240. TFFPlayer *FFPlayer[MAX_PLAYER];
  241. TPanel *FDispArea[MAX_PLAYER];
  242. String PlayerFile[MAX_PLAYER];
  243. public:
  244. public: // User declarations
  245. __fastcall TVMSM430M(TComponent* Owner);
  246. void __fastcall FormInit();
  247. void __fastcall ClearSymbloList();
  248. void __fastcall LoadImageSymbol();
  249. void __fastcall DisplayInfo();
  250. bool __fastcall UpdateVmsImage(String ANmbr, String AExpl);
  251. bool __fastcall InsertVmsImage(String ANmbr, String AExpl, String AFileName, String ATypeCd);
  252. bool __fastcall IsUsedVideoFileName(String AFileName);
  253. bool __fastcall UploadFtpServer();
  254. void __fastcall DeleteFtpFile(AnsiString AFileName);
  255. void __fastcall ChangeEditMode(int AEdit);
  256. };
  257. //---------------------------------------------------------------------------
  258. extern PACKAGE TVMSM430M *VMSM430M;
  259. //---------------------------------------------------------------------------
  260. #endif