//--------------------------------------------------------------------------- #ifndef CTVM200MFH #define CTVM200MFH //--------------------------------------------------------------------------- #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include "cxButtons.hpp" #include "cxContainer.hpp" #include "cxControls.hpp" #include "cxDropDownEdit.hpp" #include "cxEdit.hpp" #include "cxGraphics.hpp" #include "cxGroupBox.hpp" #include "cxLabel.hpp" #include "cxLookAndFeelPainters.hpp" #include "cxLookAndFeels.hpp" #include "cxMaskEdit.hpp" #include "cxSpinEdit.hpp" #include "cxSplitter.hpp" #include "cxTextEdit.hpp" #include "dxSkinBlue.hpp" #include "dxSkinsCore.hpp" #include "FRAME_OpenMapF.h" #include "dxSkinBlack.hpp" #include "dxSkinMcSkin.hpp" #include "FRAME_CctvListF.h" #include "cxButtonEdit.hpp" #include "cxCheckBox.hpp" //--------------------------------------------------------------------------- class TCTVM200M : public TForm { __published: // IDE-managed Components TTimer *TmrShow; TShape *ShpTitle; TcxButton *BtnClose; TLabel *LblCaption; TShape *ShpList; TEdit *EdFocus; TPanel *PnlBack; TPanel *PnlBottom; TcxGroupBox *GrpInfo; TPanel *PnlMenu; TcxButton *BtnEdit; TcxButton *BtnInsert; TcxButton *BtnDelete; TcxButton *BtnSave; TcxLabel *cxLabel11; TcxLabel *cxLabel12; TPanel *PnlEdit; TImage *ImgDesc02; TImage *ImgDesc03; TImage *ImgDesc06; TImage *ImgDesc11; TcxTextEdit *EdCtlrId; TcxTextEdit *EdCtlrNm; TcxTextEdit *EdNmbr; TcxLabel *cxLabel2; TcxLabel *cxLabel3; TcxLabel *cxLabel6; TcxLabel *cxLabel18; TcxMaskEdit *EdCtlrIp; TcxComboBox *CbType; TcxTextEdit *Ed_STRM_SESN_NM; TcxTextEdit *EdCmncPort; TcxSplitter *cxSplitter2; TcxLabel *lblText6; TcxLabel *lblText7; TcxLabel *lblText8; TcxLabel *lblText9; TImage *ImgDesc15; TcxLabel *cxLabel4; TcxTextEdit *Ed_STRM_RTSP_ADDR; TcxLabel *cxLabel7; TImage *ImgDesc16; TcxTextEdit *Ed_STRM_RTMP_ADDR; TcxLabel *cxLabel10; TImage *ImgDesc17; TcxTextEdit *Ed_STRM_HTTP_ADDR; TImage *ImgDesc18; TcxLabel *cxLabel13; TcxTextEdit *Ed_INTR_RTMP_ADDR; TcxGroupBox *cxGroupBox3; TFRAMECctvList *FRAMECctvList1; TcxLabel *lblText1; TcxLabel *lblText2; TcxLabel *lblText4; TcxLabel *lblText3; TcxLabel *lblText5; TPanel *Panel1; TImage *ImgDesc07; TImage *ImgDesc14; TImage *ImgDesc25; TImage *ImgDesc24; TcxLabel *cxLabel5; TcxLabel *cxLabel15; TcxSpinEdit *Se_TYPE; TcxLabel *cxLabel9; TcxMaskEdit *Ed_CCTV_ENCD_IP; TcxTextEdit *Ed_LINK_ID; TcxTextEdit *EdTmpLinkId; TButton *BtnApply; TcxMaskEdit *Ed_CCTV_CAPT_IP; TcxLabel *cxLabel16; TImage *ImgDesc04; TcxSpinEdit *SePosX; TcxSpinEdit *SePosY; TcxLabel *cxLabel8; TcxSpinEdit *Se_CCTV_CTLR_PORT; TImage *ImgDesc05; TcxLabel *cxLabel17; TcxTextEdit *ISTL_LCTN_ADDR; TcxTextEdit *ISTL_LCTN_NM; TcxLabel *cxLabel22; TcxLabel *cxLabel1; TImage *ImgDesc01; TcxLabel *cxLabel14; TImage *ImgDesc13; TPanel *PnlInfo2; TImage *ImgDspl; TcxComboBox *Cb_CCTV_SBST_DSPL_YN; TADOQuery *pADO; TSaveDialog *SaveDialog; TOpenPictureDialog *OpenBmp; TcxButtonEdit *EdImageFileName; TcxLabel *cxLabel19; TImage *ImgDesc23; TcxCheckBox *ChkAll; TcxButton *BtnClear; void __fastcall FormShow(TObject *Sender); void __fastcall TmrShowTimer(TObject *Sender); void __fastcall BtnCloseClick(TObject *Sender); void __fastcall FormClose(TObject *Sender, TCloseAction &Action); void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose); void __fastcall BtnEditClick(TObject *Sender); void __fastcall BtnInsertClick(TObject *Sender); void __fastcall BtnDeleteClick(TObject *Sender); void __fastcall BtnSaveClick(TObject *Sender); void __fastcall Ed_CMRA_PORTKeyPress(TObject *Sender, wchar_t &Key); void __fastcall Se_CMRA_CHNLPropertiesChange(TObject *Sender); void __fastcall FRAMECctvList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton, TShiftState AShift, bool &AHandled); void __fastcall BtnApplyClick(TObject *Sender); void __fastcall EdImageFileNameClick(TObject *Sender); void __fastcall OpenBmpCanClose(TObject *Sender, bool &CanClose); void __fastcall BtnClearClick(TObject *Sender); private: // User declarations void __fastcall CommClose(); TcxDataController *m_pGDC; String FTitle; bool FUpdate; bool FNewDb; bool EditMode; public: String sJs; int FLayerIdx; public: // User declarations __fastcall TCTVM200M(TComponent* Owner); void __fastcall FormInit(); void __fastcall UpdateIcon(); void __fastcall DisplayInfo(TCctvCtlr* AObj, bool AMoveObj=true); void __fastcall UpdateEditLink(); void __fastcall DisplayLink(TCctvCtlr* AObj); void __fastcall SelDsplImage(TCctvCtlr* AObj); bool __fastcall UpdateDsplInfo(String ANmbr, String ADsplYn, TMemoryStream *dataStream); void __fastcall ChangeEditMode(int AEdit); }; //--------------------------------------------------------------------------- extern PACKAGE TCTVM200M *CTVM200M; //--------------------------------------------------------------------------- #endif