123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397 |
- //---------------------------------------------------------------------------
- #ifndef FrmVmsSymbMngrFH
- #define FrmVmsSymbMngrFH
- //---------------------------------------------------------------------------
- #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 "WindowMsgF.h"
- #include "cxButtons.hpp"
- #include "cxCalendar.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 "cxPC.hpp"
- #include "cxPCdxBarPopupMenu.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 "dxSkinscxPCPainter.hpp"
- #include "dxSkinSeven.hpp"
- #include "dxSkinSharp.hpp"
- #include "dxSkinSilver.hpp"
- #include "dxSkinStardust.hpp"
- #include "cxRadioGroup.hpp"
- #include "cxClasses.hpp"
- #include "cxCustomData.hpp"
- #include "cxData.hpp"
- #include "cxDataStorage.hpp"
- #include "cxDBData.hpp"
- #include "cxFilter.hpp"
- #include "cxGrid.hpp"
- #include "cxGridCustomTableView.hpp"
- #include "cxGridCustomView.hpp"
- #include "cxGridDBTableView.hpp"
- #include "cxGridLevel.hpp"
- #include "cxGridTableView.hpp"
- #include "cxStyles.hpp"
- #include "cxCheckBox.hpp"
- #include "cxImage.hpp"
- #include "cxButtonEdit.hpp"
- #include "cxBlobEdit.hpp"
- #include "cxHint.hpp"
- #include "dxCustomHint.hpp"
- #include "dxScreenTip.hpp"
- #include "dxSkinsForm.hpp"
- #include "FFBaseComponent.hpp"
- #include "FFBasePlay.hpp"
- #include "FFPlay.hpp"
- #include "dxGDIPlusClasses.hpp"
- #include "FFDecode.hpp"
- #include "cxCalc.hpp"
- class TSymbFmt {
- public:
- TSymbFmt(String AFmt, String AFmtType) {
- fmt = AFmt;
- fmtType = AFmtType;
- };
- ~TSymbFmt() {};
- public:
- String fmt;
- String fmtType;
- };
- class TFrmVmsSymbMngr : 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 *GrpList;
- TPanel *Panel1;
- TPanel *PnlSymbol;
- TcxGroupBox *GrpSymbBox;
- TcxGrid *CxList;
- TcxGridTableView *TvList;
- TcxGridColumn *ColSYMB_NMBR;
- TcxGridColumn *ColSYMB_DATA;
- TcxGridColumn *ColSYMB_NM;
- TcxGridColumn *ColSYMB_TYPE_DESC;
- TcxGridColumn *ColSYMB_EXPL;
- TcxGridColumn *ColSYMB_FILE_NM;
- TcxGridLevel *GlList;
- TPanel *PnlMenu;
- TcxButton *BtnEdit;
- TcxButton *BtnInsert;
- TcxButton *BtnDelete;
- TcxButton *BtnSave;
- TcxButton *BtnSaveImgFile;
- TSaveDialog *SaveDialog;
- TOpenPictureDialog *OpenBmp;
- TcxLabel *lblText1;
- TcxLabel *lblText2;
- TcxLabel *lblText3;
- TcxLabel *lblText4;
- TcxLabel *lblText5;
- TcxHintStyleController *cxHintStyleController1;
- TdxSkinController *dxSkinController1;
- TPopupMenu *PopupAdd;
- TMenuItem *MnuGeneral;
- TMenuItem *MnuTraffic;
- TMenuItem *MnuAtmp;
- TMenuItem *MnuWeather;
- TMenuItem *MnuVideo;
- TMenuItem *MnuIncident;
- TPanel *PnlCmd;
- TImage *ImgDesc02;
- TImage *ImgDesc03;
- TImage *ImgDesc04;
- TImage *ImgDesc14;
- TImage *ImgTemp;
- TcxLabel *cxLabel1;
- TcxTextEdit *EdNmbr;
- TcxLabel *cxLabel2;
- TcxTextEdit *EdExpl;
- TcxButtonEdit *EdImageFileName;
- TcxLabel *cxLabel3;
- TcxTextEdit *EdVmsCd;
- TcxComboBox *CbType;
- TcxLabel *cxLabel6;
- TcxTextEdit *EdName;
- TcxLabel *cxLabel4;
- TcxSpinEdit *SeSize;
- TcxSpinEdit *SeWidth;
- TcxSpinEdit *SeHeight;
- TcxPageControl *PgSymb;
- TcxTabSheet *TsSbt1;
- TPanel *PnlInfo2;
- TImage *ImgGeneral;
- TcxTabSheet *TsSbt2;
- TcxTabSheet *TsSbt3;
- TcxTabSheet *TsSbt4;
- TcxTabSheet *TsSbt5;
- TcxTabSheet *TsSbt6;
- TcxTabSheet *TsSbt7;
- TPanel *Panel2;
- TcxCheckBox *ChkFitScreen;
- TcxButton *BtnPlay;
- TcxButton *BtnStop;
- TcxButton *BtnPause;
- TPanel *PnlPlayer;
- TFFPlayer *FFPlayer1;
- TFFDecoder *FFDecoder1;
- TPanel *Panel3;
- TTrackBar *TrackBar;
- TLabel *lblDuration;
- TLabel *lblCurrentPTS;
- TMenuItem *MnuTrafficBack;
- TImage *ImgVideo;
- TPanel *Panel5;
- TPanel *Panel6;
- TImage *ImagTrafBack;
- TImage *ImagTraffic;
- TGridPanel *GridPanel1;
- TImage *ImagTraffic1;
- TImage *ImagTraffic2;
- TImage *ImagTraffic3;
- TcxLabel *cxLabel5;
- TcxLabel *cxLabel7;
- TcxLabel *cxLabel8;
- TPanel *Panel7;
- TcxLabel *cxLabel18;
- TImage *ImgDesc01;
- TPanel *Panel8;
- TImage *ImagAtmp;
- TPanel *Panel9;
- TImage *Image2;
- TcxLabel *cxLabel9;
- TGridPanel *GridPanel2;
- TImage *ImagAtmp1;
- TImage *ImagAtmp2;
- TImage *ImagAtmp3;
- TImage *ImagAtmp4;
- TOpenPictureDialog *OpenSubImag;
- TPanel *Panel10;
- TImage *ImagIncident;
- TPanel *Panel11;
- TImage *Image3;
- TcxLabel *cxLabel10;
- TcxButton *BtnAtmp1;
- TcxButton *cxButton1;
- TcxButton *cxButton2;
- TcxButton *cxButton3;
- TPanel *Panel12;
- TImage *ImagWeather;
- TPanel *Panel13;
- TImage *Image8;
- TcxLabel *cxLabel15;
- TGridPanel *GridPanel4;
- TImage *ImagWeather1;
- TImage *ImagWeather2;
- TImage *ImagWeather3;
- TImage *ImagWeather4;
- TcxButton *cxButton4;
- TcxButton *cxButton5;
- TcxButton *cxButton6;
- TcxButton *cxButton7;
- TGridPanel *GridPanel3;
- TImage *ImagIncident1;
- TImage *ImagIncident2;
- TImage *ImagIncident3;
- TImage *ImagIncident4;
- TcxButton *cxButton8;
- TcxButton *cxButton9;
- TcxButton *cxButton10;
- TcxButton *cxButton11;
- TcxGridColumn *ColSYMB_FILE_EXT;
- TcxGridColumn *ColSYMB_SIZE;
- TcxGridColumn *ColSYMB_WDTH;
- TcxGridColumn *ColSYMB_HGHT;
- TcxGridColumn *ColPLAY_TM;
- TcxGridColumn *ColBASE_YN;
- TcxGridColumn *ColUSE_YN;
- TcxGridColumn *ColSYMB_TYPE;
- TcxGridColumn *Column99;
- TcxGridColumn *TvListColumn1;
- TcxGridColumn *ColImagePath;
- TcxGridColumn *ColVideoPath;
- TImage *Image1;
- void __fastcall FormShow(TObject *Sender);
- void __fastcall TmrShowTimer(TObject *Sender);
- void __fastcall BtnCloseClick(TObject *Sender);
- void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
- void __fastcall BtnEditClick(TObject *Sender);
- void __fastcall BtnSaveClick(TObject *Sender);
- void __fastcall BtnInsertClick(TObject *Sender);
- void __fastcall BtnDeleteClick(TObject *Sender);
- void __fastcall BtnSaveImgFileClick(TObject *Sender);
- void __fastcall EdImageFileNameClick(TObject *Sender);
- void __fastcall OpenBmpCanClose(TObject *Sender, bool &CanClose);
- void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
- TMouseButton AButton, TShiftState AShift,
- bool &AHandled);
- void __fastcall ColSYMB_DATACustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas,
- TcxGridTableDataCellViewInfo *AViewInfo, bool &ADone);
- void __fastcall TvListFocusedRecordChanged(TcxCustomGridTableView *Sender, TcxCustomGridRecord *APrevFocusedRecord,
- TcxCustomGridRecord *AFocusedRecord, bool ANewItemRecordFocusingChanged);
- void __fastcall CbTypePropertiesChange(TObject *Sender);
- void __fastcall PnlMenuDblClick(TObject *Sender);
- void __fastcall MnuAddVmsSymbClick(TObject *Sender);
- void __fastcall FFPlayer1FileOpen(TObject *Sender, const __int64 ADuration, int AFrameWidth, int AFrameHeight, int &AScreenWidth,
- int &AScreenHeight);
- void __fastcall FFPlayer1OpenFailed(TObject *Sender);
- void __fastcall FFPlayer1Position(TObject *Sender, const __int64 APTS);
- void __fastcall FFPlayer1State(TObject *Sender, TPlayState APlayState);
- void __fastcall TrackBarChange(TObject *Sender);
- void __fastcall BtnPlayClick(TObject *Sender);
- void __fastcall BtnStopClick(TObject *Sender);
- void __fastcall BtnPauseClick(TObject *Sender);
- void __fastcall ChkFitScreenClick(TObject *Sender);
- void __fastcall ImagTrafficMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
- void __fastcall OpenSubImagCanClose(TObject *Sender, bool &CanClose);
- void __fastcall BtnSubImageSelectClick(TObject *Sender);
- private: // User declarations
- void __fastcall CommClose();
- String FTitle;
- bool FUpdate;
- bool FNewDb;
- bool EditMode;
- DWORD FFileSize;
- bool FImageUpdate;
- bool FIsUpdate;
- int FOldWidth, FOldHeight;
- int FNewWidth, FNewHeight;
- int CURR_SYMB_NMBR;
- String CURR_SYMB_NM;
- String CURR_SYMB_EXPL;
- String CURR_SYMB_TYPE;
- String CURR_SYMB_FILE_NM;
- String CURR_SYMB_FILE_EXT;
- int CURR_SYMB_SIZE;
- int CURR_SYMB_WDTH;
- int CURR_SYMB_HGHT;
- int CURR_PLAY_TM;
- TMemoryStream *CURR_SYMB_DATA;
- TMemoryStream *CURR_SYMB_AVI_DATA;
- String CURR_BASE_YN;
- String CURR_USE_YN;
- String CURR_LOCAL_FILE_NM;
- DWORD FPlayTime;
- __int64 FDuration;
- bool FTrackChanging;
- int FThumbNail;
- bool FPlayStream;
- bool FMakeThumbNail;
- TImage *FSymbImag;
- TImage *FSelImag;
- public:
- public: // User declarations
- __fastcall TFrmVmsSymbMngr(TComponent* Owner);
- void __fastcall SetColorScheme(String ASkinName);
- void __fastcall FormInit();
- void __fastcall ClearListMemory();
- void __fastcall LoadImageSymbol();
- void __fastcall DisplayInfo();
- TImage* __fastcall GetPreviewSymb(String ASymbType);
- void __fastcall ImageClear(TImage *AImage);
- String __fastcall GetSymbTypeDesc(String ASymbType);
- bool __fastcall UpdateVmsImage(String ANmbr, String AExpl, String ATypeCd);
- bool __fastcall DeleteVmsSymbLib(int SYMB_NMBR, bool ADelete);
- bool __fastcall UpdateVmsSymbLib(int SYMB_NMBR, String SYMB_NM, String SYMB_EXPL);
- bool __fastcall InsertVmsSymbLib(int SYMB_NMBR,
- String SYMB_TYPE,
- String SYMB_NM,
- String SYMB_EXPL,
- TMemoryStream *SYMB_DATA,
- TMemoryStream *SYMB_AVI_DATA,
- String SYMB_FILE_NM,
- String SYMB_FILE_EXT,
- int SYMB_SIZE,
- int SYMB_WDTH,
- int SYMB_HGHT,
- int PLAY_TM,
- String BASE_YN,
- String USE_YN);
- bool __fastcall GetNextVmsSymbNmbr(int &ANmbr, int AFromId, int AToId);
- void __fastcall ChangeSymbPage(String ASymbType);
- void __fastcall ChangeEditMode(int AEdit);
- };
- //---------------------------------------------------------------------------
- extern PACKAGE TFrmVmsSymbMngr *FrmVmsSymbMngr;
- //---------------------------------------------------------------------------
- #endif
|