FrmWebCamViewerF.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmWebCamViewerFH
  3. #define FrmWebCamViewerFH
  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. //---------------------------------------------------------------------------
  40. //---------------------------------------------------------------------------
  41. class TFrmWebCamViewer : public TForm//TdxCustomRibbonForm//TForm
  42. {
  43. __published: // IDE-managed Components
  44. TApplicationEvents *ApplicationEvents1;
  45. TEdit *EdFocus;
  46. TdxSkinController *dxSkinController1;
  47. TTimer *TmrShow;
  48. TPanel *PnlMenu;
  49. TPanel *PnlBack;
  50. TcxLabel *LblScreenList;
  51. TcxComboBox *CbScreenList;
  52. TcxButton *BtnMonitoringMngr;
  53. void __fastcall FormCreate(TObject *Sender);
  54. void __fastcall FormShow(TObject *Sender);
  55. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  56. void __fastcall ApplicationEvents1Minimize(TObject *Sender);
  57. void __fastcall ApplicationEvents1Restore(TObject *Sender);
  58. void __fastcall FormResize(TObject *Sender);
  59. void __fastcall BtnMonitoringMngrClick(TObject *Sender);
  60. void __fastcall TmrShowTimer(TObject *Sender);
  61. void __fastcall CbScreenListPropertiesChange(TObject *Sender);
  62. private: // User declarations
  63. public:
  64. void __fastcall SetColorScheme(String ASkinName);
  65. void __fastcall CreateMonitoringScreen();
  66. void __fastcall RecalFormSize();
  67. void __fastcall FillCameraList();
  68. void __fastcall CreateViewList();
  69. void __fastcall SaveViewList();
  70. bool IsLoading;
  71. bool IsFormResizing;
  72. int FOldWidth, FOldHeight;
  73. TcxTabSheet *FCurrPage;
  74. public: // User declarations
  75. __fastcall TFrmWebCamViewer(TComponent* Owner);
  76. void __fastcall CommClose();
  77. void __fastcall FormInit();
  78. void __fastcall ResetScreenForm();
  79. void __fastcall WMEnterSizeMove(TMessage &Msg);
  80. void __fastcall WMExitSizeMove(TMessage &Msg);
  81. BEGIN_MESSAGE_MAP
  82. MESSAGE_HANDLER(WM_ENTERSIZEMOVE, TMessage, WMEnterSizeMove)
  83. MESSAGE_HANDLER(WM_EXITSIZEMOVE, TMessage, WMExitSizeMove)
  84. END_MESSAGE_MAP(TForm)
  85. };
  86. //---------------------------------------------------------------------------
  87. extern PACKAGE TFrmWebCamViewer *FrmWebCamViewer;
  88. //---------------------------------------------------------------------------
  89. #endif