VMSM630MF.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. //---------------------------------------------------------------------------
  2. #ifndef VMSM630MFH
  3. #define VMSM630MFH
  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. //---------------------------------------------------------------------------
  25. #include "VmsDesignerF.h"
  26. #include "CDSVmsObjTypeF.h"
  27. #include "FFBaseComponent.hpp"
  28. #include "FFBasePlay.hpp"
  29. #include "FFPlay.hpp"
  30. #include "cxButtons.hpp"
  31. #include "cxCheckBox.hpp"
  32. #include "cxClasses.hpp"
  33. #include "cxContainer.hpp"
  34. #include "cxControls.hpp"
  35. #include "cxCustomData.hpp"
  36. #include "cxData.hpp"
  37. #include "cxDataStorage.hpp"
  38. #include "cxEdit.hpp"
  39. #include "cxFilter.hpp"
  40. #include "cxGraphics.hpp"
  41. #include "cxGrid.hpp"
  42. #include "cxGridCustomTableView.hpp"
  43. #include "cxGridCustomView.hpp"
  44. #include "cxGridLevel.hpp"
  45. #include "cxGridTableView.hpp"
  46. #include "cxGroupBox.hpp"
  47. #include "cxImage.hpp"
  48. #include "cxLabel.hpp"
  49. #include "cxLookAndFeelPainters.hpp"
  50. #include "cxLookAndFeels.hpp"
  51. #include "cxMaskEdit.hpp"
  52. #include "cxStyles.hpp"
  53. #include "cxTextEdit.hpp"
  54. #include "dxSkinBlack.hpp"
  55. #include "dxSkinBlue.hpp"
  56. #include "dxSkinCaramel.hpp"
  57. #include "dxSkinCoffee.hpp"
  58. #include "dxSkinDarkRoom.hpp"
  59. #include "dxSkinDarkSide.hpp"
  60. #include "dxSkinFoggy.hpp"
  61. #include "dxSkinGlassOceans.hpp"
  62. #include "dxSkiniMaginary.hpp"
  63. #include "dxSkinLilian.hpp"
  64. #include "dxSkinLiquidSky.hpp"
  65. #include "dxSkinLondonLiquidSky.hpp"
  66. #include "dxSkinMcSkin.hpp"
  67. #include "dxSkinMoneyTwins.hpp"
  68. #include "dxSkinOffice2007Black.hpp"
  69. #include "dxSkinOffice2007Blue.hpp"
  70. #include "dxSkinOffice2007Green.hpp"
  71. #include "dxSkinOffice2007Pink.hpp"
  72. #include "dxSkinOffice2007Silver.hpp"
  73. #include "dxSkinOffice2010Black.hpp"
  74. #include "dxSkinOffice2010Blue.hpp"
  75. #include "dxSkinOffice2010Silver.hpp"
  76. #include "dxSkinsCore.hpp"
  77. #include "dxSkinscxPCPainter.hpp"
  78. #include "dxSkinSeven.hpp"
  79. #include "dxSkinSharp.hpp"
  80. #include "dxSkinSilver.hpp"
  81. #include "dxSkinStardust.hpp"
  82. #include "cxBlobEdit.hpp"
  83. //---------------------------------------------------------------------------
  84. class TVMSM630M : public TForm
  85. {
  86. __published: // IDE-managed Components
  87. TTimer *TmrShow;
  88. TShape *ShpTitle;
  89. TLabel *LblCaption;
  90. TShape *ShpList;
  91. TEdit *EdFocus;
  92. TPanel *PanelBack;
  93. TcxButton *BtnSearch;
  94. TcxMaskEdit *EdObjId;
  95. TcxTextEdit *EdFormId;
  96. TPanel *PnlMenu;
  97. TcxButton *BtnEdit;
  98. TcxButton *BtnInsert;
  99. TcxButton *BtnDelete;
  100. TcxButton *BtnSavex;
  101. TcxGroupBox *cxGroupBox1;
  102. TPanel *PnlCmd;
  103. TPanel *Panel2;
  104. TPanel *PnlEdtBack;
  105. TPanel *PnlEditForm;
  106. TcxGroupBox *GrpObj;
  107. TcxButton *BtnClose;
  108. TcxButton *BtnSave;
  109. TcxButton *BtnClosex;
  110. TImage *ImgForm;
  111. TFFPlayer *FFPlayer1;
  112. TPanel *Panel1;
  113. TLabel *lblCurrentPTS1;
  114. TLabel *lblDuration1;
  115. TTrackBar *TrackBar1;
  116. TcxButton *BtnPlay;
  117. TcxButton *BtnStop;
  118. TcxButton *BtnPause;
  119. TcxCheckBox *ChkFullScreen;
  120. TcxGrid *CxList;
  121. TcxGridTableView *TvList;
  122. TcxGridColumn *Col00;
  123. TcxGridColumn *Col03;
  124. TcxGridColumn *Col01;
  125. TcxGridColumn *Col02;
  126. TcxGridColumn *Col04;
  127. TcxGridLevel *GlList;
  128. VmsDesigner *VmsDesigner1;
  129. TImage *ImgDesc20;
  130. TLabel *Label10;
  131. TcxTextEdit *EdSymbLibNmbr;
  132. TImage *ImgDesc21;
  133. TLabel *Label13;
  134. TcxTextEdit *EdStreamAddr;
  135. void __fastcall FormShow(TObject *Sender);
  136. void __fastcall TmrShowTimer(TObject *Sender);
  137. void __fastcall BtnClosexClick(TObject *Sender);
  138. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  139. void __fastcall BtnSearchClick(TObject *Sender);
  140. void __fastcall FormCreate(TObject *Sender);
  141. void __fastcall BtnSaveClick(TObject *Sender);
  142. void __fastcall TrackBar1Change(TObject *Sender);
  143. void __fastcall FFPlayer1FileOpen(TObject *Sender, const __int64 ADuration, int AFrameWidth, int AFrameHeight, int &AScreenWidth,
  144. int &AScreenHeight);
  145. void __fastcall FFPlayer1OpenFailed(TObject *Sender);
  146. void __fastcall FFPlayer1Position(TObject *Sender, const __int64 APTS);
  147. void __fastcall FFPlayer1State(TObject *Sender, TPlayState APlayState);
  148. void __fastcall BtnPlayClick(TObject *Sender);
  149. void __fastcall BtnStopClick(TObject *Sender);
  150. void __fastcall BtnPauseClick(TObject *Sender);
  151. void __fastcall TvListFocusedRecordChanged(TcxCustomGridTableView *Sender, TcxCustomGridRecord *APrevFocusedRecord, TcxCustomGridRecord *AFocusedRecord,
  152. bool ANewItemRecordFocusingChanged);
  153. private: // User declarations
  154. void __fastcall CommClose();
  155. String FTitle;
  156. bool FUpdate;
  157. bool FNewDb;
  158. bool EditMode;
  159. int FSelIdx;
  160. __int64 FDuration;
  161. bool FTrackChanging;
  162. TTrackBar *FTrackBar;
  163. TLabel *FLblDuration;
  164. TLabel *FLblCurrPTS;
  165. TFFPlayer *FFPlayer;
  166. TPanel *FDispArea;
  167. String FPlayerFile;
  168. TList *FListSymb;
  169. public:
  170. TVmsFormDesigner *m_pEdtDesigner;
  171. String FVmsTypeCd;
  172. int FVmsWidth;
  173. int FVmsHeight;
  174. String FVmsNmbr;
  175. String FFormId;
  176. int FFormType;
  177. String FFormColor;
  178. String FSymbLibNmbr;
  179. String FStreamAddr;
  180. bool FSelected;
  181. public: // User declarations
  182. __fastcall TVMSM630M(TComponent* Owner);
  183. void __fastcall FormInit();
  184. void __fastcall RefreshData();
  185. void __fastcall ClearSymbloList();
  186. void __fastcall LoadStreamInfo();
  187. void __fastcall FormClear();
  188. void __fastcall InitObjectList();
  189. void __fastcall LoadFormObjectInfo(String AFormId, TVmsFormDesigner *ADesigner);
  190. void __fastcall DispObjectListData();
  191. };
  192. //---------------------------------------------------------------------------
  193. extern PACKAGE TVMSM630M *VMSM630M;
  194. //---------------------------------------------------------------------------
  195. #endif