summaryrefslogtreecommitdiff
path: root/tests/systemtests/map3d/camerawidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/systemtests/map3d/camerawidget.h')
-rw-r--r--tests/systemtests/map3d/camerawidget.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/tests/systemtests/map3d/camerawidget.h b/tests/systemtests/map3d/camerawidget.h
new file mode 100644
index 00000000..d3e8faa4
--- /dev/null
+++ b/tests/systemtests/map3d/camerawidget.h
@@ -0,0 +1,46 @@
+#ifndef CAMERAWIDGET_H
+#define CAMERAWIDGET_H
+
+#include <QWidget>
+
+#include "cameradata.h"
+
+class QLineEdit;
+class QPushButton;
+
+class CameraWidget : public QWidget
+{
+ Q_OBJECT
+public:
+ CameraWidget(QWidget *parent = 0);
+
+ CameraData camera() const;
+
+public slots:
+ void setCamera(const CameraData& camera);
+
+private slots:
+ void updateCamera();
+
+signals:
+ void updated();
+ void capture();
+
+private:
+ void setupUi();
+
+ CameraData cam_;
+
+ QLineEdit *lat_;
+ QLineEdit *lon_;
+ QLineEdit *distance_;
+ QLineEdit *zoomLevel_;
+ QLineEdit *zoomFactor_;
+ QLineEdit *bearing_;
+ QLineEdit *tilt_;
+ QLineEdit *roll_;
+ QPushButton *update_;
+ QPushButton *capture_;
+};
+
+#endif // CAMERAWIDGET_H