123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381 |
- //---------------------------------------------------------------------------
- #ifndef FrmVmsRemoteCtrlFH
- #define FrmVmsRemoteCtrlFH
- //---------------------------------------------------------------------------
- #include <Classes.hpp>
- #include <Controls.hpp>
- #include <StdCtrls.hpp>
- #include <Forms.hpp>
- #include <DB.hpp>
- #include <Menus.hpp>
- #include <ExtCtrls.hpp>
- #include <ADODB.hpp>
- #include <ImgList.hpp>
- #include <Graphics.hpp>
- #include <ComCtrls.hpp>
- //---------------------------------------------------------------------------
- #include "CenterCommF.h"
- #include "WindowMsgF.h"
- #include "CDSVmsCtlrF.h"
- #include "CDSCenterCommF.h"
- //---------------------------------------------------------------------------
- #include "cxContainer.hpp"
- #include "cxControls.hpp"
- #include "cxEdit.hpp"
- #include "cxGraphics.hpp"
- #include "cxGroupBox.hpp"
- #include "cxLabel.hpp"
- #include "cxLookAndFeelPainters.hpp"
- #include "cxLookAndFeels.hpp"
- #include "cxPC.hpp"
- #include "cxPCdxBarPopupMenu.hpp"
- #include "cxSplitter.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 "dxSkinscxPCPainter.hpp"
- #include "dxSkinSeven.hpp"
- #include "dxSkinSharp.hpp"
- #include "dxSkinSilver.hpp"
- #include "dxSkinStardust.hpp"
- #include "cxClasses.hpp"
- #include "cxCustomData.hpp"
- #include "cxData.hpp"
- #include "cxDataStorage.hpp"
- #include "cxFilter.hpp"
- #include "cxGrid.hpp"
- #include "cxGridCustomTableView.hpp"
- #include "cxGridCustomView.hpp"
- #include "cxGridLevel.hpp"
- #include "cxGridTableView.hpp"
- #include "cxStyles.hpp"
- #include "cxTextEdit.hpp"
- #include "cxGridCardView.hpp"
- #include "cxGridCustomLayoutView.hpp"
- #include "cxCheckBox.hpp"
- #include "cxDropDownEdit.hpp"
- #include "cxImage.hpp"
- #include "cxButtons.hpp"
- #include "cxCalc.hpp"
- #include "cxGridBandedTableView.hpp"
- #include "FRAME_VmsStateListF.h"
- #include "FRAME_VmsStateF.h"
- #include "FRAME_VmsMsgListF.h"
- #include "ImageBtn.h"
- #include "cxMaskEdit.hpp"
- #include "cxRadioGroup.hpp"
- #include "cxSpinEdit.hpp"
- #include "cxTimeEdit.hpp"
- #include <OleCtrls.hpp>
- #include <SHDocVw.hpp>
- //---------------------------------------------------------------------------
- #include "IdBaseComponent.hpp"
- #include "IdComponent.hpp"
- #include "IdIcmpClient.hpp"
- #include "IdRawBase.hpp"
- #include "IdRawClient.hpp"
- #include "FFBaseComponent.hpp"
- #include "FFBasePlay.hpp"
- #include "FFPlay.hpp"
- #include "IdHTTP.hpp"
- #include "IdTCPClient.hpp"
- #include "IdTCPConnection.hpp"
- #include "IdAuthenticationDigest.hpp"
- #include "cxHint.hpp"
- #include "dxCustomHint.hpp"
- #include "dxScreenTip.hpp"
- #include "dxSkinsForm.hpp"
- #include "dxGDIPlusClasses.hpp" /* idhttp 권한 설정을 위해 필요함 */
- //---------------------------------------------------------------------------
- class TFrmVmsRemoteCtrl : public TForm
- {
- __published: // IDE-managed Components
- TTimer *TmrShow;
- TPanel *PnlCenter;
- TPanel *PnlBottom;
- TPanel *PnlLeft;
- TPanel *PnlRTop;
- TcxGroupBox *GrpList;
- TcxGroupBox *cxGroupBox1;
- TcxGroupBox *cxGroupBox2;
- TcxPageControl *PgControl;
- TcxTabSheet *TsControl;
- TcxTabSheet *cxTabSheet1;
- TcxTabSheet *cxTabSheet2;
- TImageList *ImageList1;
- TcxButton *BtnAllClear;
- TcxButton *BtnReverse;
- TcxButton *BtnAllSelect;
- TPanel *PnlVms;
- TPanel *Panel2;
- TcxRadioButton *RdbOn;
- TcxRadioButton *RdbOff;
- TcxRadioButton *RdbReset;
- TcxTimeEdit *cxTimeOn;
- TcxTimeEdit *cxTimeOff;
- TImage *ImgDesc11;
- TImage *ImgDesc01;
- TcxButton *BtnOnOffSet;
- TImage *ImgDesc40;
- TLabel *Label5;
- TImage *ImgDesc41;
- TLabel *Label8;
- TLabel *Label13;
- TImage *ImgDesc42;
- TLabel *Label2;
- TImage *ImgDesc43;
- TLabel *Label15;
- TImage *ImgDesc44;
- TImage *ImgDesc61;
- TImage *ImgDesc62;
- TLabel *Label6;
- TLabel *Label4;
- TLabel *Label16;
- TLabel *Label7;
- TLabel *Label9;
- TLabel *Label10;
- TLabel *Label11;
- TLabel *Label12;
- TLabel *Label17;
- TcxSpinEdit *Se03;
- TcxSpinEdit *Se04;
- TcxSpinEdit *Se02;
- TcxSpinEdit *Se05;
- TcxSpinEdit *Se01;
- TcxSpinEdit *Se06;
- TcxSpinEdit *Se07;
- TLabel *Label1;
- TLabel *Label14;
- TcxButton *BtnConfig;
- TcxTabSheet *TsOperMode;
- TcxRadioButton *RdbAuto;
- TcxRadioButton *RdbFix;
- TcxRadioButton *RdbBase;
- TcxButton *BtnModeControl;
- TLabel *Label18;
- TcxRadioButton *RdbLuminance;
- TLabel *Label3;
- TcxButton *BtnWebCamUrl;
- TcxButton *BtnBlankDisplay;
- TcxTabSheet *cxTabSheet5;
- TcxButton *BtnParamSetting;
- TLabel *Label23;
- TLabel *Label24;
- TLabel *Label25;
- TLabel *Label26;
- TLabel *Label27;
- TLabel *Label32;
- TcxSpinEdit *SeDAY_LUMI;
- TcxSpinEdit *SeNGHT_LUMI;
- TcxSpinEdit *SeCUR_LUMI;
- TcxSpinEdit *SeCMNC_RTRY_NOCS;
- TcxSpinEdit *SeCommErrTime;
- TcxSpinEdit *SeSlotCommErr;
- TcxSpinEdit *SeSlotPowerErr;
- TcxButton *BtnDefMsgDownload;
- TcxTabSheet *cxTabSheet6;
- TGroupBox *GroupBox1;
- TImage *ImgDesc59;
- TLabel *Label22;
- TcxSpinEdit *SeFormCycleTime;
- TLabel *Label34;
- TcxButton *BtnDisplayTimeSet;
- TcxButton *BtnMsgImmediateDownload;
- TTimer *TmrCommand;
- TLabel *Label35;
- TLabel *Label36;
- TLabel *Label37;
- TLabel *Label38;
- TLabel *Label47;
- TImage *ImgDesc33;
- TcxTimeEdit *cxDispStrTm;
- TcxTimeEdit *cxDispEndTm;
- TcxButton *BtnModuleOn;
- TcxButton *BtnModuleOff;
- TcxButton *BtnBrghControl0;
- TcxButton *BtnResetProgress;
- TcxButton *BtnBrghControl1;
- TcxButton *BtnBrghControl2;
- TLabel *Label43;
- TFFPlayer *FFPlayer1;
- TcxCheckBox *ChkFullScreen;
- TdxSkinController *dxSkinController1;
- TcxHintStyleController *cxHintStyleController1;
- TMemo *reMsg;
- TPanel *PnlVmsCam;
- TPanel *PnlRtspStream;
- TcxLabel *LblErrMsg;
- TPanel *PnlTitleBack;
- TImage *ImgCaption;
- TLabel *LblCaption;
- TImage *ImgCaptionLeft;
- TcxGrid *CxList;
- TcxGridBandedTableView *TvList;
- TcxGridBandedColumn *ColVMS_CTLR_ID;
- TcxGridBandedColumn *ColVMS_NM;
- TcxGridBandedColumn *ColRPRS_STTS;
- TcxGridBandedColumn *ColDOOR_STTS;
- TcxGridBandedColumn *ColFAN_STTS;
- TcxGridBandedColumn *ColHTER_STTS;
- TcxGridBandedColumn *ColPS_STTS;
- TcxGridBandedColumn *ColRSET_YN;
- TcxGridBandedColumn *ColOPER_MODE;
- TcxGridBandedColumn *ColHUM;
- TcxGridBandedColumn *ColBOX_TEMP;
- TcxGridBandedColumn *ColHeaterOn;
- TcxGridBandedColumn *ColBattS;
- TcxGridBandedColumn *ColHamS;
- TcxGridBandedColumn *ColCMNC_STTS;
- TcxGridBandedColumn *ColTEMP;
- TcxGridBandedColumn *ColMsgDt;
- TcxGridBandedColumn *ColMsgCnt;
- TcxGridBandedColumn *ColLAST_DT_FMT;
- TcxGridBandedColumn *ColNmbr;
- TcxGridBandedColumn *ColVMS_MODL_KIND_NM;
- TcxGridLevel *GlList;
- TcxGridBandedColumn *ColumnSel;
- TcxGridBandedColumn *Col99;
- TcxButton *BtnSearch;
- TEdit *EdFocus;
- TcxComboBox *CbCMNC_STTS;
- TcxComboBox *CbPS_STTS;
- TcxComboBox *CbRPRS_STTS;
- TcxComboBox *CbFAN_STTS;
- TcxComboBox *CbHTER_STTS;
- TcxComboBox *CbDOOR_STTS;
- TcxComboBox *CbOPER_MODE;
- TcxSplitter *cxSplitter2;
- TLabel *Label20;
- TLabel *Label21;
- TLabel *Label28;
- TLabel *Label45;
- TLabel *Label50;
- TLabel *Label51;
- TLabel *Label46;
- TLabel *Label44;
- TLabel *Label49;
- TLabel *Label29;
- TcxComboBox *CbLUMI_MODE;
- TcxComboBox *CbFAN_MODE;
- TcxComboBox *CbHTER_MODE;
- TcxSpinEdit *SeERR_MODL_RT;
- TLabel *Label19;
- TcxButton *BtnModlErrRate;
- TcxSpinEdit *SeDFLT_SCNR_RUN_TM;
- TLabel *Label30;
- TcxButton *BtnDfltScnrRunTm;
- TLabel *Label31;
- TcxSpinEdit *SeNghtBrgh;
- TcxSpinEdit *SeWeekBrgh;
- TcxSpinEdit *SeCurrBrgh;
- TcxSpinEdit *SeUserBrgh;
- TcxButton *BtnBrghControl3;
- TcxComboBox *CbDFLT_SCNR_RUN_TM;
- void __fastcall FormShow(TObject *Sender);
- void __fastcall TmrShowTimer(TObject *Sender);
- void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
- void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender,
- TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
- TShiftState AShift, bool &AHandled);
- void __fastcall Se01PropertiesChange(TObject *Sender);
- void __fastcall BtnOnOffSetClick(TObject *Sender);
- void __fastcall BtnModeControlClick(TObject *Sender);
- void __fastcall BtnWebCamUrlClick(TObject *Sender);
- void __fastcall TmrCommandTimer(TObject *Sender);
- void __fastcall PgControlPageChanging(TObject *Sender, TcxTabSheet *NewPage,
- bool &AllowChange);
- void __fastcall Col08CustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
- TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
- void __fastcall BtnModuleControlClick(TObject *Sender);
- void __fastcall BtnResetClick(TObject *Sender);
- void __fastcall BtnBrghControl0Click(TObject *Sender);
- void __fastcall FFPlayer1State(TObject *Sender, TPlayState APlayState);
- void __fastcall FFPlayer1OpenFailed(TObject *Sender);
- void __fastcall ChkFullScreenClick(TObject *Sender);
- void __fastcall BtnSearchClick(TObject *Sender);
- void __fastcall BtnAllSelectClick(TObject *Sender);
- void __fastcall BtnBlankDisplayClick(TObject *Sender);
- void __fastcall BtnModlErrRateClick(TObject *Sender);
- void __fastcall BtnDfltScnrRunTmClick(TObject *Sender);
- void __fastcall ColRPRS_STTSCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
- bool &ADone);
- void __fastcall CbDFLT_SCNR_RUN_TMClick(TObject *Sender);
- private: // User declarations
- void __fastcall CommClose();
- public:
- bool FStrmPlay;
- String FStrmUser;
- String FStrmPswd;
- String FStrmHttp;
- String FStrmAddr;
- void __fastcall ErrorMsg(String AErrMsg);
- void __fastcall WebCamPlay(String AVmsNo);
- void __fastcall WebCamStop();
- public:
- TForm *FPalyerForm;
- TVmsCtlr *FSelVmsObj;
- TStringList *FVmsIds;
- String FTitle;
- long FRtspHandle;
- TcxTabSheet *FCtrlTab;
- TCommTarget *FCommCtrlTarget; // VMS 통신
- public: // User declarations
- __fastcall TFrmVmsRemoteCtrl(TComponent* Owner);
- void __fastcall SetColorScheme(String ASkinName);
- void __fastcall LoadLocalSkin();
- void __fastcall InitDbLoading();
- void __fastcall DisplayInfo();
- void __fastcall UpdateList();
- void __fastcall RefreshStatusInfo();
- void __fastcall ClearCheckList();
- bool __fastcall GetSelListItems(bool ACommCheck=true);
- bool __fastcall UpdateVmsParam(String AVmsNmbr, void *pData);
- bool __fastcall UpdateVmsParam2(String AVmsNmbr, void *pData);
- void __fastcall OnVmsStateRefreshMessage(TMessage &Msg);
- BEGIN_MESSAGE_MAP
- MESSAGE_HANDLER(WM_VMS_STATE_REFRESH, TMessage, OnVmsStateRefreshMessage)
- END_MESSAGE_MAP(TForm)
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TFrmVmsRemoteCtrl *FrmVmsRemoteCtrl;
- //---------------------------------------------------------------------------
- #endif
|