You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.7 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
7 years ago
  1. #ifndef __GUI_ADD_DEVICE_DIALOG_HEADER__
  2. #define __GUI_ADD_DEVICE_DIALOG_HEADER__
  3. #include "../guiClass.h"
  4. #include "../../components/object/objectLGS.h"
  5. class DeviceChooser;
  6. class guiAddDeviceDialog : public QDialog{
  7. private:
  8. DeviceChooser *m_pParent;
  9. QVBoxLayout *m_pStage3Layout;
  10. uint8_t m_nAddSourceDialogStage;
  11. SENSOR_INFO m_sTSensorInfo;
  12. QDialogButtonBox *m_pButtonBox;
  13. QTabWidget *m_pDialogTabWidget;
  14. QWidget *m_pPage1;
  15. QLabel *m_pLabel1;
  16. QLabel *m_pLabel2;
  17. QLabel *m_pLabel3;
  18. QFrame *m_pFrame1;
  19. QFrame *m_pFrame2;
  20. QSpacerItem *m_pVerticalSpacer;
  21. QLabel *m_pLabel4;
  22. QWidget *m_pPage2;
  23. QWidget *m_pPage3;
  24. QWidget *m_pPage4;
  25. QWidget *m_pPage5;
  26. QWidget *m_pPage6;
  27. QPushButton *m_pButtonCmdCancelNet;
  28. QPushButton *m_pButtonCmdFinishNet;
  29. QPushButton *m_pButtonCmdShowDeviceSettings;
  30. QPushButton *m_pButtonCmdStartOnvif;
  31. QComboBox *m_pDeviceTypeCombo;
  32. QComboBox *m_pSourceTypeCombo;
  33. QComboBox *m_pLocalDevicesCombo;
  34. QComboBox *m_pDeviceResolutionCombo;
  35. QComboBox *m_pScaledResolutionCombo;
  36. QComboBox *m_pInputPinCombo;
  37. QFormLayout *m_pStage6Layout;
  38. QLabel *m_pPTZProtocolLabel;
  39. QLabel *m_pPTZComPortLabel;
  40. QLabel *m_pPTZComSpeedLabel;
  41. QLabel *m_pPTZCamIDLabel;
  42. QComboBox *m_pPTZProtocolCombo;
  43. QComboBox *m_pPTZComPortCombo;
  44. QSpinBox *m_pPTZComSpeedBox;
  45. QSpinBox *m_pPTZCamIDBox;
  46. QCheckBox *m_pPTZPanEna;
  47. QCheckBox *m_pPTZPanReversed;
  48. QDoubleSpinBox *m_pPTZPanStartBox;
  49. QDoubleSpinBox *m_pPTZPanEndBox;
  50. QCheckBox *m_pPTZTiltEna;
  51. QCheckBox *m_pPTZTiltReversed;
  52. QDoubleSpinBox *m_pPTZTiltStartBox;
  53. QDoubleSpinBox *m_pPTZTiltEndBox;
  54. QCheckBox *m_pPTZZoomEna;
  55. QDoubleSpinBox *m_pPTZMaxZoomBox;
  56. QCheckBox *m_pPTZDZoomEna;
  57. QSpinBox *m_pPTZMaxDZoomBox;
  58. QRadioButton *m_p16x9resolution;
  59. QRadioButton *m_p4x3resolution;
  60. QCheckBox *m_pScalePicture;
  61. QVBoxLayout *m_pStage1Layout;
  62. QVBoxLayout *m_pStage2Layout;
  63. QVBoxLayout *m_pStage4Layout;
  64. QHBoxLayout *m_pS2HMLayout;
  65. QVBoxLayout *m_pS2VMLayout;
  66. QSpacerItem *verticalSpacer;
  67. QSpacerItem *horizontalSpacer;
  68. QLineEdit *m_pLineText;
  69. public:
  70. explicit guiAddDeviceDialog( QWidget *parent);
  71. ~guiAddDeviceDialog();
  72. public slots:
  73. void addSensor();
  74. void cancelDialog();
  75. void setNetworkSourcePath(CSTR Path, CSTR device = NULL, CSTR user = NULL, CSTR pass = NULL);
  76. void setDialogStage(uint8_t Stage);
  77. void nextDialogStage();
  78. void setDeviceType(int index);
  79. void setComType(int index);
  80. //void setNetPort(int index);
  81. void setComPort(int index);
  82. };
  83. #endif