FrmPCamViewerF.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmPCamViewerFH
  3. #define FrmPCamViewerFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ExtCtrls.hpp>
  10. #include <Graphics.hpp>
  11. #include <Menus.hpp>
  12. #include <ImgList.hpp>
  13. #include <ComCtrls.hpp>
  14. #include <jpeg.hpp>
  15. #include <AppEvnts.hpp>
  16. //---------------------------------------------------------------------------
  17. #include <windows.h>
  18. #include <Menus.hpp>
  19. #include <ADODB.hpp>
  20. #include <DB.hpp>
  21. #include "AppGlobalF.h"
  22. #include "cxButtons.hpp"
  23. #include "cxContainer.hpp"
  24. #include "cxControls.hpp"
  25. #include "cxEdit.hpp"
  26. #include "cxGraphics.hpp"
  27. #include "cxLookAndFeelPainters.hpp"
  28. #include "cxLookAndFeels.hpp"
  29. #include "cxProgressBar.hpp"
  30. #include "dxSkinBlack.hpp"
  31. #include "dxSkinBlue.hpp"
  32. #include "dxSkinsCore.hpp"
  33. #include "dxSkinsForm.hpp"
  34. #include "cxLabel.hpp"
  35. #include "cxDropDownEdit.hpp"
  36. #include "cxMaskEdit.hpp"
  37. #include "cxTextEdit.hpp"
  38. #include "dxSkinMcSkin.hpp"
  39. #include "dxGDIPlusClasses.hpp"
  40. //---------------------------------------------------------------------------
  41. //---------------------------------------------------------------------------
  42. class TFrmPCamViewer : public TForm//TdxCustomRibbonForm//TForm
  43. {
  44. __published: // IDE-managed Components
  45. TApplicationEvents *ApplicationEvents1;
  46. TEdit *EdFocus;
  47. TdxSkinController *dxSkinController1;
  48. TTimer *TmrShow;
  49. TPanel *PnlMenu;
  50. TPanel *PnlBack;
  51. TcxLabel *LblScreenList;
  52. TcxComboBox *CbScreenList;
  53. TcxButton *BtnMonitoringMngr;
  54. TPanel *PnlTitle;
  55. TImage *ImgCaption;
  56. TLabel *LblCaption;
  57. TImage *ImgCaptionLeft;
  58. TcxButton *BtnSearch;
  59. void __fastcall FormCreate(TObject *Sender);
  60. void __fastcall FormShow(TObject *Sender);
  61. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  62. void __fastcall ApplicationEvents1Minimize(TObject *Sender);
  63. void __fastcall ApplicationEvents1Restore(TObject *Sender);
  64. void __fastcall FormResize(TObject *Sender);
  65. void __fastcall BtnMonitoringMngrClick(TObject *Sender);
  66. void __fastcall TmrShowTimer(TObject *Sender);
  67. void __fastcall CbScreenListPropertiesChange(TObject *Sender);
  68. private: // User declarations
  69. public:
  70. void __fastcall SetColorScheme(String ASkinName);
  71. void __fastcall CreateMonitoringScreen();
  72. void __fastcall RecalFormSize();
  73. void __fastcall FillCameraList();
  74. void __fastcall CreateViewList();
  75. void __fastcall SaveViewList();
  76. bool IsLoading;
  77. bool IsFormResizing;
  78. int FOldWidth, FOldHeight;
  79. TcxTabSheet *FCurrPage;
  80. public: // User declarations
  81. __fastcall TFrmPCamViewer(TComponent* Owner);
  82. void __fastcall CommClose();
  83. void __fastcall FormInit();
  84. void __fastcall ResetScreenForm();
  85. void __fastcall WMEnterSizeMove(TMessage &Msg);
  86. void __fastcall WMExitSizeMove(TMessage &Msg);
  87. BEGIN_MESSAGE_MAP
  88. MESSAGE_HANDLER(WM_ENTERSIZEMOVE, TMessage, WMEnterSizeMove)
  89. MESSAGE_HANDLER(WM_EXITSIZEMOVE, TMessage, WMExitSizeMove)
  90. END_MESSAGE_MAP(TForm)
  91. };
  92. //---------------------------------------------------------------------------
  93. extern PACKAGE TFrmPCamViewer *FrmPCamViewer;
  94. //---------------------------------------------------------------------------
  95. #endif