//--------------------------------------------------------------------------- #ifndef FrmWebCamViewerFH #define FrmWebCamViewerFH //--------------------------------------------------------------------------- #include #include #include #include #include #include #include #include #include #include #include //--------------------------------------------------------------------------- #include #include #include #include #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" #include "dxSkinMcSkin.hpp" //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- class TFrmWebCamViewer : 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(); bool IsLoading; bool IsFormResizing; int FOldWidth, FOldHeight; TcxTabSheet *FCurrPage; public: // User declarations __fastcall TFrmWebCamViewer(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 TFrmWebCamViewer *FrmWebCamViewer; //--------------------------------------------------------------------------- #endif