123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203 |
- //---------------------------------------------------------------------------
- #ifndef CTVM100MFH
- #define CTVM100MFH
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <DB.hpp>
- #include <DBClient.hpp>
- #include <FMTBcd.hpp>
- #include <Provider.hpp>
- #include <SqlExpr.hpp>
- #include <Menus.hpp>
- #include <ExtCtrls.hpp>
- #include <Graphics.hpp>
- #include <ComCtrls.hpp>
- #include <ADODB.hpp>
- #include <Dialogs.hpp>
- #include <ExtDlgs.hpp>
- //---------------------------------------------------------------------------
- #include "cxButtons.hpp"
- #include "cxCheckBox.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 "cxTimeEdit.hpp"
- #include "dxSkinBlack.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 "dxSkinMcSkin.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 "dxSkinsCore.hpp"
- #include "dxSkinSeven.hpp"
- #include "dxSkinSharp.hpp"
- #include "dxSkinSilver.hpp"
- #include "dxSkinStardust.hpp"
- #include "FRAME_CctvListF.h"
- #include "FRAME_OpenMapF.h"
- //---------------------------------------------------------------------------
- #include "CDSCctvCtlrF.h"
- //---------------------------------------------------------------------------
- class TCTVM100M : public TForm
- {
- __published: // IDE-managed Components
- TTimer *TmrShow;
- TShape *ShpTitle;
- TcxButton *BtnClose;
- TLabel *LblCaption;
- TShape *ShpList;
- TEdit *EdFocus;
- TPanel *PnlBack;
- TPanel *PnlLeft;
- TcxSplitter *cxSplitter1;
- TcxGroupBox *cxGroupBox3;
- TPanel *PnlBottom;
- TcxGroupBox *GrpInfo;
- TPanel *PnlMenu;
- TcxButton *BtnEdit;
- TcxButton *BtnInsert;
- TcxButton *BtnDelete;
- TcxButton *BtnSave;
- TcxLabel *cxLabel11;
- TcxLabel *cxLabel12;
- TPanel *PnlEdit;
- TImage *ImgDesc01;
- TImage *ImgDesc02;
- TImage *ImgDesc03;
- TImage *ImgDesc04;
- TImage *ImgDesc05;
- TImage *ImgDesc06;
- TImage *ImgDesc07;
- TImage *ImgDesc11;
- TcxTextEdit *EdCctvId;
- TcxTextEdit *EdCctvNm;
- TcxTextEdit *EdNmbr;
- TcxSpinEdit *SePosX;
- TcxSpinEdit *SePosY;
- TcxLabel *cxLabel1;
- TcxLabel *cxLabel2;
- TcxLabel *cxLabel3;
- TcxLabel *cxLabel6;
- TcxLabel *cxLabel18;
- TcxMaskEdit *EdCtlrIp;
- TcxComboBox *CbType;
- TcxLabel *cxLabel8;
- TcxLabel *cxLabel22;
- TcxLabel *cxLabel5;
- TcxMaskEdit *Ed_CCTV_IP;
- TcxTextEdit *Ed_CCTV_PORT;
- TcxLabel *cxLabel15;
- TcxTextEdit *Ed_CCTV_ID;
- TcxTextEdit *Ed_CCTV_PSWD;
- TcxTextEdit *Ed_STRM_SESN_NM;
- TcxLabel *cxLabel16;
- TcxTextEdit *EdCmncPort;
- TcxSplitter *cxSplitter2;
- TcxGroupBox *GrpMap;
- TcxSpinEdit *Se_CCTV_CHNL;
- TImage *ImgDesc14;
- TcxLabel *cxLabel9;
- TcxLabel *lblText1;
- TcxLabel *lblText2;
- TcxLabel *lblText3;
- TcxLabel *lblText4;
- TcxLabel *lblText5;
- TcxLabel *lblText6;
- TcxLabel *lblText7;
- TcxLabel *lblText8;
- TcxLabel *lblText9;
- TcxLabel *lblText10;
- TcxLabel *lblText11;
- TFRAMEOpenMap *FRAMEOpenMap1;
- 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;
- TcxMaskEdit *Ed_STRM_SVR_IP;
- TImage *ImgDesc18;
- TcxLabel *cxLabel13;
- TcxLabel *cxLabel14;
- TFRAMECctvList *FRAMECctvList1;
- 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 FRAMECctvList1TvListCellDblClick(TcxCustomGridTableView *Sender,
- TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
- TShiftState AShift, bool &AHandled);
- void __fastcall Ed_CCTV_PORTKeyPress(TObject *Sender, wchar_t &Key);
- void __fastcall Se_CCTV_CHNLPropertiesChange(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 TCTVM100M(TComponent* Owner);
- void __fastcall FormInit();
- void __fastcall UpdateIcon();
- void __fastcall DisplayInfo(TCctvCtlr* AObj, bool AMoveObj=true);
- void __fastcall ChangeEditMode(int AEdit);
- void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TCTVM100M *CTVM100M;
- //---------------------------------------------------------------------------
- #endif
|