You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
754 B
C++
31 lines
754 B
C++
#ifndef QTPCAMERAESWINDOW_H
|
|
#define QTPCAMERAESWINDOW_H
|
|
|
|
#include <QtWidgets\qscrollarea.h>
|
|
#include <QtWidgets\qgridlayout.h>
|
|
#include <QtCore\qmap.h>
|
|
#include <QtCore\qjsonobject.h>
|
|
#include "QTpCamera.h"
|
|
|
|
class QTpCameraesWindow : public QScrollArea
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QTpCameraesWindow(const QString& objName, const QJsonObject& jsonCfg, QWidget *parent);
|
|
virtual ~QTpCameraesWindow();
|
|
|
|
//callback interfaces
|
|
void AddCameraes(const QJsonObject& jsonCfg);
|
|
// QString GetShowName(const QString& objName);
|
|
QGridLayout& GetGridLayout() {
|
|
return m_topLayout;
|
|
}
|
|
private:
|
|
QWidget m_topWidget;
|
|
QGridLayout m_topLayout;
|
|
QMap<QString, class QTpCamera*> m_tpCameraes;
|
|
};
|
|
|
|
#endif // QTPCAMERAESWINDOW_H
|