SlugsVideoCamControl.h 2.01 KB
Newer Older
1 2 3 4 5 6 7 8
#ifndef SLUGSVIDEOCAMCONTROL_H
#define SLUGSVIDEOCAMCONTROL_H

#include <QWidget>
#include <QMouseEvent>
#include <QGraphicsView>
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsScene>
tecnosapiens's avatar
tecnosapiens committed
9
#include "SlugsPadCameraControl.h"
10 11
#include <QPushButton>

tecnosapiens's avatar
tecnosapiens committed
12

13

14 15
#define DELTA 1000

16 17 18 19
namespace Ui {
    class SlugsVideoCamControl;
}

20
class SlugsVideoCamControl : public QWidget
21 22 23 24 25 26 27 28

{
    Q_OBJECT

public:
    explicit SlugsVideoCamControl(QWidget *parent = 0);
    ~SlugsVideoCamControl();

29
public slots:
30 31 32
    /**
         * @brief status = true: emit signal to draw a border cam over the map
    */
33
    void changeViewCamBorderAtMapStatus(bool status);
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
    /**
         * @brief show the values of mousepad on ui (labels) and emit a changeCamPosition(signal)
         *        with values:
         *       bearing and distance from mouse over the pad
         *          dirText: direction of mouse movement in text format (up, right,right up,right down,
         *                   left, left up, left down, down)
    */
    void getDeltaPositionPad(double bearing, double distance, QString dirText);

//    /**
//         * @brief
//    */
//    void mousePadPressEvent(int x, int y);
//    void mousePadReleaseEvent(int x, int y);
//    void mousePadMoveEvent(int x, int y);
49 50

signals:
51 52 53 54 55 56 57 58 59 60
    /**
         * @brief emit values from mousepad:
         *       bearing and distance from mouse over the pad
         *          dirText: direction of mouse movement in text format (up, right,right up,right down,
         *                   left, left up, left down, down)
    */
    void changeCamPosition(double distance, double bearing, QString textDir);
    /**
         * @brief emit signal to draw a border cam over the map if status is true
    */
61 62
    void viewCamBorderAtMap(bool status);

63
protected:
64 65 66
//   void mousePressEvent(QMouseEvent* event);
//   void mouseReleaseEvent(QMouseEvent* event);
//   void mouseMoveEvent(QMouseEvent* event);
67

68 69


tecnosapiens's avatar
tecnosapiens committed
70

71 72
private:
    Ui::SlugsVideoCamControl *ui;
73

74
    SlugsPadCameraControl* padCamera;
75

76 77 78
};

#endif // SLUGSVIDEOCAMCONTROL_H