//---------------------------------------------------------------------------

#ifndef VMSMODL0FH
#define VMSMODL0FH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <DB.hpp>
#include <DBClient.hpp>
#include <Provider.hpp>
//---------------------------------------------------------------------------
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <jpeg.hpp>
#include <Menus.hpp>
#include <GIFImg.hpp>
#include <OleCtrls.hpp>
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxGroupBox.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinMcSkin.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinCaramel.hpp"
#include "dxSkinCoffee.hpp"
#include "dxSkinDarkRoom.hpp"
#include "dxSkinDarkSide.hpp"
#include "dxSkinFoggy.hpp"
#include "dxSkinGlassOceans.hpp"
#include "dxSkiniMaginary.hpp"
#include "dxSkinLilian.hpp"
#include "dxSkinLiquidSky.hpp"
#include "dxSkinLondonLiquidSky.hpp"
#include "dxSkinMoneyTwins.hpp"
#include "dxSkinOffice2007Black.hpp"
#include "dxSkinOffice2007Blue.hpp"
#include "dxSkinOffice2007Green.hpp"
#include "dxSkinOffice2007Pink.hpp"
#include "dxSkinOffice2007Silver.hpp"
#include "dxSkinOffice2010Black.hpp"
#include "dxSkinOffice2010Blue.hpp"
#include "dxSkinOffice2010Silver.hpp"
#include "dxSkinSeven.hpp"
#include "dxSkinSharp.hpp"
#include "dxSkinSilver.hpp"
#include "dxSkinStardust.hpp"

//---------------------------------------------------------------------------
#include "CDSVmsCtlrF.h"
#include "cxClasses.hpp"
#include "cxCustomData.hpp"
#include "cxData.hpp"
#include "cxDataStorage.hpp"
#include "cxFilter.hpp"
#include "cxGrid.hpp"
#include "cxGridCustomTableView.hpp"
#include "cxGridCustomView.hpp"
#include "cxGridLevel.hpp"
#include "cxGridTableView.hpp"
#include "cxStyles.hpp"
#include "cxTextEdit.hpp"
#include "dxSkinscxPCPainter.hpp"
#include "FRAME_VmsStatusF.h"
//---------------------------------------------------------------------------
class TVMSMODL0 : public TForm
{
__published:	// IDE-managed Components
    TPopupMenu *PopupMenu1;
    TMenuItem *MnuCtlrPing;
    TTimer *TmrShow;
    TPanel *PnlMain;
    TPanel *PnlTitle;
    TPanel *PnlBottom;
    TPanel *PnFormBack;
    TPanel *PnlName;
    TImage *ImgCommError;
    TPanel *PnlForm;
    TPanel *PnlComm;
    TMenuItem *MnuVmsInfId;
    TMenuItem *N2;
    TMenuItem *MnuWebcamPing;
    TPanel *PnlSeq;
    TcxGrid *CxModStatusList;
    TcxGridTableView *TvModStatusList;
    TcxGridColumn *Col00;
    TcxGridColumn *Col01;
    TcxGridColumn *Col02;
    TcxGridColumn *Col03;
    TcxGridColumn *Col04;
    TcxGridColumn *Col05;
    TcxGridColumn *Col06;
    TcxGridColumn *Col07;
    TcxGridColumn *Col08;
    TcxGridColumn *Col09;
    TcxGridColumn *Col10;
    TcxGridColumn *Col11;
    TcxGridColumn *Col12;
    TcxGridColumn *Col13;
    TcxGridColumn *Col14;
    TcxGridColumn *Col15;
    TcxGridColumn *Col16;
    TcxGridColumn *Col17;
    TcxGridColumn *Col18;
    TcxGridColumn *Col19;
    TcxGridColumn *Col20;
    TcxGridLevel *GlModStatusList;
    TcxGridColumn *TvModStatusListColumn1;
    TcxGridColumn *TvModStatusListColumn2;
    TcxGridColumn *TvModStatusListColumn3;
    TcxGridColumn *TvModStatusListColumn4;
    TcxGridColumn *TvModStatusListColumn5;
    TcxGridColumn *TvModStatusListColumn6;
    TcxGridColumn *TvModStatusListColumn7;
    TcxGridColumn *TvModStatusListColumn8;
    TcxGridColumn *TvModStatusListColumn9;
    TcxGridColumn *TvModStatusListColumn10;
    TcxGridColumn *TvModStatusListColumn11;
    TcxGridColumn *TvModStatusListColumn12;
    TcxGridColumn *TvModStatusListColumn13;
    TcxGridColumn *TvModStatusListColumn14;
    TcxGridColumn *TvModStatusListColumn15;
    TcxGridColumn *TvModStatusListColumn16;
    TcxGridColumn *TvModStatusListColumn17;
    TcxGridColumn *TvModStatusListColumn18;
    TcxGridColumn *TvModStatusListColumn19;
    TcxGridColumn *TvModStatusListColumn20;
    TImage *ImgState1;
    TImage *ImgState2;
    TImage *ImgCommNormal;
    TImage *ImgState0x;
    TImage *ImgState0;
    TFRAME_VmsStatus *FRAME_VmsStatus1;
    void __fastcall FormDestroy(TObject *Sender);
    void __fastcall FormShow(TObject *Sender);
    void __fastcall MnuNetworkPingClick(TObject *Sender);
    void __fastcall TmrShowTimer(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall PnlNameClick(TObject *Sender);
    void __fastcall OnFormClick(TObject *Sender);
    void __fastcall PopupMenu1Popup(TObject *Sender);
    void __fastcall TvModStatusListCustomDrawCell(TcxCustomGridTableView *Sender,
          TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
          bool &ADone);


private:	// User declarations
    bool        FSelected;
    int         FDisplayMode;
    float       FZoomRate;
    int         FDispIndex;
    bool        FPlay;

    int         FGapH, FGapW;
public:
    TScrollBox *FScrollBox;
    TVmsCtlr   *FVmsObj;
    bool        FZoomView;
    HWND        FWndParent;
    float       FDispW, FDispH;

    String      FStrmAddr;
    String      FId;
    String      FLoc;
    String      FProg;

public:		// User declarations
    __fastcall TVMSMODL0(TComponent* Owner, TVmsCtlr *AVmsObj);

    void __fastcall LoadLocalSkin();

    void __fastcall SetFormSize(int AFormW);

    void __fastcall InitVmsModule();
    void __fastcall RefreshVmsStatus();
    void __fastcall RefreshVmsMessage();
    void __fastcall RefreshVmsModuleStatus();

    void __fastcall CamPlay();
    void __fastcall CamStop();

    void __fastcall SelectForm(bool ASelect);
    void __fastcall SetPlay(bool APlay);

    __property bool Selected = { read = FSelected, write = SelectForm };
    __property bool Play     = { read = FPlay,     write = SetPlay };
};
//---------------------------------------------------------------------------
//extern PACKAGE TVMSMODL0 *VMSMODL0;
//---------------------------------------------------------------------------
#endif

