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

#ifndef FrmCameraScreenFH
#define FrmCameraScreenFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
//---------------------------------------------------------------------------
#include "FrmCameraPlayerF.h"
#include "CDSMonitoringObjF.h"

typedef struct
{
    int screenCnt;
    struct
    {
        bool              show;
        bool              installed;
        String            CCAM_ID;
        TFrmCameraPlayer *frmCam;
    } info[MAX_CAMERA_PER_SCREEM];
} SCREEN_FORM;

class TFrmCameraScreen : public TForm
{
__published:	// IDE-managed Components
    TPanel *PnlCamera;
    TTimer *TmrFullScreen;
    TTimer *TmrStop;
    void __fastcall TmrFullScreenTimer(TObject *Sender);
    void __fastcall TmrStopTimer(TObject *Sender);
private:	// User declarations
public:		// User declarations
    __fastcall TFrmCameraScreen(TComponent* Owner);

public:
    String FTitle;
    int    FCols, FRows;
    int    FLayout;
    int    FScreenCnt;

    int    FFullScreenIdx;

    SCREEN_FORM screeForm;

    void __fastcall SetLayout(int ALayout);
    void __fastcall ResetScreenForm(String AScreenName);
    void __fastcall RecalFormSize();
    void __fastcall Play();
    void __fastcall Stop();

    __property int Layout = { read=FLayout, write=SetLayout };
};
//---------------------------------------------------------------------------
extern PACKAGE TFrmCameraScreen *FrmCameraScreen;
//---------------------------------------------------------------------------
#endif

