VMSFORM0F.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. //---------------------------------------------------------------------------
  2. #ifndef VMSFORM0FH
  3. #define VMSFORM0FH
  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 <Provider.hpp>
  12. //---------------------------------------------------------------------------
  13. #include <ExtCtrls.hpp>
  14. #include <Graphics.hpp>
  15. #include <jpeg.hpp>
  16. #include <Menus.hpp>
  17. #include <GIFImg.hpp>
  18. #include <OleCtrls.hpp>
  19. #include "cxContainer.hpp"
  20. #include "cxControls.hpp"
  21. #include "cxEdit.hpp"
  22. #include "cxGraphics.hpp"
  23. #include "cxGroupBox.hpp"
  24. #include "cxLookAndFeelPainters.hpp"
  25. #include "cxLookAndFeels.hpp"
  26. #include "dxSkinBlack.hpp"
  27. #include "dxSkinMcSkin.hpp"
  28. #include "dxSkinsCore.hpp"
  29. #include "dxSkinBlue.hpp"
  30. #include "dxSkinCaramel.hpp"
  31. #include "dxSkinCoffee.hpp"
  32. #include "dxSkinDarkRoom.hpp"
  33. #include "dxSkinDarkSide.hpp"
  34. #include "dxSkinFoggy.hpp"
  35. #include "dxSkinGlassOceans.hpp"
  36. #include "dxSkiniMaginary.hpp"
  37. #include "dxSkinLilian.hpp"
  38. #include "dxSkinLiquidSky.hpp"
  39. #include "dxSkinLondonLiquidSky.hpp"
  40. #include "dxSkinMoneyTwins.hpp"
  41. #include "dxSkinOffice2007Black.hpp"
  42. #include "dxSkinOffice2007Blue.hpp"
  43. #include "dxSkinOffice2007Green.hpp"
  44. #include "dxSkinOffice2007Pink.hpp"
  45. #include "dxSkinOffice2007Silver.hpp"
  46. #include "dxSkinOffice2010Black.hpp"
  47. #include "dxSkinOffice2010Blue.hpp"
  48. #include "dxSkinOffice2010Silver.hpp"
  49. #include "dxSkinSeven.hpp"
  50. #include "dxSkinSharp.hpp"
  51. #include "dxSkinSilver.hpp"
  52. #include "dxSkinStardust.hpp"
  53. //---------------------------------------------------------------------------
  54. #include "CDSVmsCtlrF.h"
  55. #include "cxLabel.hpp"
  56. #include "FFBaseComponent.hpp"
  57. #include "FFBasePlay.hpp"
  58. #include "FFPlay.hpp"
  59. #include "FRAME_VmsStatusF.h"
  60. //---------------------------------------------------------------------------
  61. class TVMSFORM0 : public TForm
  62. {
  63. __published: // IDE-managed Components
  64. TPopupMenu *PopupMenu1;
  65. TMenuItem *menuitem1;
  66. TMenuItem *menuitem2;
  67. TMenuItem *menuitem3;
  68. TMenuItem *menuitem4;
  69. TMenuItem *menuitem5;
  70. TMenuItem *MnuCtlrPing;
  71. TMenuItem *N1;
  72. TTimer *TmrShow;
  73. TTimer *TmrVmsDisp;
  74. TPanel *PnlMain;
  75. TPanel *PnlTitle;
  76. TPanel *PnlSeq;
  77. TPanel *PnlBottom;
  78. TPanel *PnFormBack;
  79. TPanel *PnlName;
  80. TImage *ImgCommError;
  81. TPanel *PnlSvcTime;
  82. TPanel *PnlForm;
  83. TImage *ImgForm;
  84. TPanel *PnlComm;
  85. TMenuItem *MnuVmsInfId;
  86. TMenuItem *N2;
  87. TMenuItem *MnuWebcamPing;
  88. TImage *ImgCommNormal;
  89. TImage *ImgState1;
  90. TImage *ImgState2;
  91. TImage *ImgState0x;
  92. TImage *ImgState0;
  93. TLabel *LblTicker;
  94. TTimer *TmrTicker;
  95. TFFPlayer *FFPlayer1;
  96. TFRAME_VmsStatus *FRAME_VmsStatus1;
  97. TTimer *TmrLcsDisp;
  98. TPanel *PnlLcsForm;
  99. TPanel *PnlLcsFormTemp;
  100. TImage *ImgLcsForm;
  101. TPopupMenu *PopupMenu2;
  102. TMenuItem *MnuVmsInfo;
  103. TMenuItem *MenuItem7;
  104. TMenuItem *MnuVmsUserMsg;
  105. void __fastcall FormDestroy(TObject *Sender);
  106. void __fastcall FormShow(TObject *Sender);
  107. void __fastcall TmrShowTimer(TObject *Sender);
  108. void __fastcall TmrVmsDispTimer(TObject *Sender);
  109. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  110. void __fastcall PnlNameClick(TObject *Sender);
  111. void __fastcall OnFormClick(TObject *Sender);
  112. void __fastcall PnlNameDblClick(TObject *Sender);
  113. void __fastcall TmrTickerTimer(TObject *Sender);
  114. void __fastcall FFPlayer1State(TObject *Sender, TPlayState APlayState);
  115. void __fastcall TmrLcsDispTimer(TObject *Sender);
  116. void __fastcall PopupMenu2Popup(TObject *Sender);
  117. void __fastcall MnuVmsUserMsgClick(TObject *Sender);
  118. private: // User declarations
  119. bool FSelected;
  120. int FDisplayMode;
  121. int FVmsDispIndex;
  122. int FLcsDispIndex;
  123. bool FPlay;
  124. float FZoomRate;
  125. int FGapH, FGapW;
  126. int FCycle;
  127. public:
  128. TScrollBox *FScrollBox;
  129. TVmsCtlr *FVmsObj;
  130. bool FZoomView;
  131. HWND FWndParent;
  132. float FDispW, FDispH;
  133. ST_WM_IPC_DATA wmData1;
  134. public: // User declarations
  135. __fastcall TVMSFORM0(TComponent* Owner, TVmsCtlr *AVmsObj);
  136. void __fastcall LoadLocalSkin();
  137. void __fastcall SetFormSizeFitWindow(int AFormW = 0, float AZoomRate = 1.0);
  138. void __fastcall SetFormSize(int AFormW = 0, float AZoomRate = 1.0);
  139. void __fastcall SetFormSizeOrg(int AFormW = 0, float AZoomRate = 1.0);
  140. void __fastcall RefreshVmsStatus();
  141. void __fastcall RefreshVmsMessage();
  142. void __fastcall SelectForm(bool ASelect);
  143. void __fastcall SetPlay(bool APlay);
  144. void __fastcall ExecuteVmsProgram(String AClassName, String AExeName, String ATitle, String AModlType, String AVmsCtlrId);
  145. __property bool Selected = { read = FSelected, write = SelectForm };
  146. __property bool Play = { read = FPlay, write = SetPlay };
  147. };
  148. //---------------------------------------------------------------------------
  149. //extern PACKAGE TVMSFORM0 *VMSFORM0;
  150. //---------------------------------------------------------------------------
  151. #endif