diff options
Diffstat (limited to 'examples/map3d/camerawidget.h')
-rw-r--r-- | examples/map3d/camerawidget.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/examples/map3d/camerawidget.h b/examples/map3d/camerawidget.h new file mode 100644 index 00000000..d3e8faa4 --- /dev/null +++ b/examples/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 |