SlugsVideoCamControl.h 1.12 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 30
public slots:
    void changeViewCamBorderAtMapStatus(bool status);
31 32 33 34 35 36
    void getDeltaPositionPad(double dir, double dist, QString dirText);


    void mousePadPressEvent(int x, int y);
    void mousePadReleaseEvent(int x, int y);
    void mousePadMoveEvent(int x, int y);
37 38 39 40 41

signals:
    void changeCamPosition(double dist, double dir, QString textDir);
    void viewCamBorderAtMap(bool status);

42
protected:
43 44 45
   void mousePressEvent(QMouseEvent* event);
   void mouseReleaseEvent(QMouseEvent* event);
   void mouseMoveEvent(QMouseEvent* event);
46

47 48


tecnosapiens's avatar
tecnosapiens committed
49

50 51
private:
    Ui::SlugsVideoCamControl *ui;
52

53
    SlugsPadCameraControl* padCamera;
54

55 56 57
};

#endif // SLUGSVIDEOCAMCONTROL_H