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

#ifndef FrmCctvCamViewerFH
#define FrmCctvCamViewerFH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ExtCtrls.hpp>
#include <Graphics.hpp>
#include <Menus.hpp>
#include <ImgList.hpp>
#include <ComCtrls.hpp>
#include <jpeg.hpp>
#include <AppEvnts.hpp>
//---------------------------------------------------------------------------
#include <windows.h>
#include <Menus.hpp>
#include <ADODB.hpp>
#include <DB.hpp>
#include "AppGlobalF.h"
#include "cxButtons.hpp"
#include "cxContainer.hpp"
#include "cxControls.hpp"
#include "cxEdit.hpp"
#include "cxGraphics.hpp"
#include "cxLookAndFeelPainters.hpp"
#include "cxLookAndFeels.hpp"
#include "cxProgressBar.hpp"
#include "dxSkinBlack.hpp"
#include "dxSkinBlue.hpp"
#include "dxSkinsCore.hpp"
#include "dxSkinsForm.hpp"
#include "cxLabel.hpp"
#include "cxDropDownEdit.hpp"
#include "cxMaskEdit.hpp"
#include "cxTextEdit.hpp"
//---------------------------------------------------------------------------

//---------------------------------------------------------------------------
class TFrmCctvCamViewer : public TForm//TdxCustomRibbonForm//TForm
{
__published:	// IDE-managed Components
    TApplicationEvents *ApplicationEvents1;
    TEdit *EdFocus;
    TdxSkinController *dxSkinController1;
    TTimer *TmrShow;
    TPanel *PnlMenu;
    TPanel *PnlBack;
    TcxLabel *LblScreenList;
    TcxComboBox *CbScreenList;
    TcxButton *BtnMonitoringMngr;
    void __fastcall FormCreate(TObject *Sender);
    void __fastcall FormShow(TObject *Sender);
    void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
    void __fastcall ApplicationEvents1Minimize(TObject *Sender);
    void __fastcall ApplicationEvents1Restore(TObject *Sender);
    void __fastcall FormResize(TObject *Sender);
    void __fastcall BtnMonitoringMngrClick(TObject *Sender);
    void __fastcall TmrShowTimer(TObject *Sender);
    void __fastcall CbScreenListPropertiesChange(TObject *Sender);

private:	// User declarations
public:

    void __fastcall SetColorScheme(String ASkinName);

    void __fastcall CreateMonitoringScreen();

    void __fastcall RecalFormSize();
    void __fastcall FillCameraList();
    void __fastcall CreateViewList();
    void __fastcall SaveViewList();
    void __fastcall UpdateCctvMasger();

    bool         IsLoading;
    bool         IsFormResizing;
    int          FOldWidth, FOldHeight;
    TcxTabSheet *FCurrPage;

public:		// User declarations
    __fastcall TFrmCctvCamViewer(TComponent* Owner);

	void __fastcall CommClose();
    void __fastcall FormInit();
    void __fastcall ResetScreenForm();

    void __fastcall WMEnterSizeMove(TMessage &Msg);
    void __fastcall WMExitSizeMove(TMessage &Msg);

    BEGIN_MESSAGE_MAP
        MESSAGE_HANDLER(WM_ENTERSIZEMOVE, TMessage, WMEnterSizeMove)
        MESSAGE_HANDLER(WM_EXITSIZEMOVE, TMessage, WMExitSizeMove)
    END_MESSAGE_MAP(TForm)
};
//---------------------------------------------------------------------------
extern PACKAGE TFrmCctvCamViewer *FrmCctvCamViewer;
//---------------------------------------------------------------------------
#endif

