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.
|
|
#ifndef __GUI_ADD_SOURCE_DIALOG_HEADER__
#define __GUI_ADD_SOURCE_DIALOG_HEADER__
#ifdef __linux__
#include <QDialog>
#else
#include "../gui.h"
#endif
#include "../controls/VideoThumbWidget.h"
#include "OnvifVideoSourceFinderDialog.h"
#include "../../data/media/mediaVideoSourceManager.h"
#include "../../data/media/video/videoAVLIBSource.h"
class VideoSourceChooser;
namespace Ui { class guiAddSourceDialog;}
class guiAddSourceDialog : public QDialog{#ifdef __linux__
Q_OBJECT#endif
private: VideoSourceChooser *m_pParent; OnvifSourceFinderDialog *m_pOnvifObserver; VideoThumbWidget *m_pSourcePreview; videoAVLIBSource *m_pSourcePreviewInput; QVBoxLayout *m_pStage3Layout; uint8_t m_nAddSourceDialogStage; QDialogButtonBox *m_pButtonBox; QTabWidget *m_pDialogTabWidget; QWidget *m_pPage1; QLabel *m_pLabel1; QLabel *m_pLabel2; QLabel *m_pLabel3; QFrame *m_pFrame1; QFrame *m_pFrame2; QSpacerItem *m_pVerticalSpacer; QLabel *m_pLabel4; QWidget *m_pPage2; QWidget *m_pPage3; QWidget *m_pPage4; QWidget *m_pPage5; QWidget *m_pPage6; QPushButton *m_pButtonCmdCancelNet; QPushButton *m_pButtonCmdFinishNet; QPushButton *m_pButtonCmdShowDeviceSettings; QPushButton *m_pButtonCmdStartOnvif; QComboBox *m_pDeviceTypeCombo; QComboBox *m_pSourceTypeCombo; QComboBox *m_pLocalDevicesCombo; QComboBox *m_pDeviceResolutionCombo; QComboBox *m_pScaledResolutionCombo; QComboBox *m_pInputPinCombo;
QFormLayout *m_pStage6Layout; QLabel *m_pPTZProtocolLabel; QLabel *m_pPTZComPortLabel; QLabel *m_pPTZComSpeedLabel; QLabel *m_pPTZCamIDLabel;
QComboBox *m_pPTZProtocolCombo; QComboBox *m_pPTZComPortCombo; QSpinBox *m_pPTZComSpeedBox; QSpinBox *m_pPTZCamIDBox;
QCheckBox *m_pPTZPanEna; QCheckBox *m_pPTZPanReversed; QDoubleSpinBox *m_pPTZPanStartBox; QDoubleSpinBox *m_pPTZPanEndBox;
QCheckBox *m_pPTZTiltEna; QCheckBox *m_pPTZTiltReversed; QDoubleSpinBox *m_pPTZTiltStartBox; QDoubleSpinBox *m_pPTZTiltEndBox; QCheckBox *m_pPTZZoomEna; QDoubleSpinBox *m_pPTZMaxZoomBox; QCheckBox *m_pPTZDZoomEna; QSpinBox *m_pPTZMaxDZoomBox;
QRadioButton *m_p16x9resolution; QRadioButton *m_p4x3resolution; QCheckBox *m_pScalePicture; QVBoxLayout *m_pStage1Layout; QVBoxLayout *m_pStage2Layout; QVBoxLayout *m_pStage4Layout; QHBoxLayout *m_pS2HMLayout; QVBoxLayout *m_pS2VMLayout; QSpacerItem *verticalSpacer; QSpacerItem *horizontalSpacer; QLineEdit *m_pOnvifVideoMRL; QLineEdit *m_pOnvifDevice; QLineEdit *m_pOnvifPictureMRL; QLineEdit *m_pOnvifUser; QLineEdit *m_pOnvifPassword; /* Data */ mediaVideoSourceManager *m_pSourceManager; /* Temp Data */ SOURCE_INFO m_sTemporarySource;
bool m_bTScaled; bool m_bTUseDeviceMenu; int m_iTScaledSizeIndex;
void turnOnVideo(void); Ui::guiAddSourceDialog *ui; public: explicit guiAddSourceDialog(VideoSourceChooser *pPtr, QWidget *parent = 0); ~guiAddSourceDialog(); public slots: void addSource(); void cancelDialog(); void setNetworkSourcePath(CSTR videoMRL, CSTR pictureMRL = NULL, CSTR profileTOKEN = NULL, CSTR device = NULL, CSTR user = NULL, CSTR pass = NULL); void setDialogStage(uint8_t Stage); void nextDialogStage(); void setPreviewLocalSource(int index); void setSourceType(int index); void setCameraType(int index); void setProportions4(bool ch); void setProportions16(bool ch); void setResolution(int index); void setInputPin(int index); void setColorSystem(int index); void setStrechMode(bool mode); void setPTZProto(int index); void setPTZComPort(int index); void showOnvifObserverDialog(void); void showDeviceSettings(void);};
#endif
|