~jaromil/freej/master

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef QQWIDGET_H
#define QQWIDGET_H
#include <QWidget>
#include <text_layer.h>
#include <video_layer.h>
//#include <v4l2_layer.h>
#include <QTabWidget>
#include <QTextEdit>
#include <QComboBox>
#include <QPushButton>
#include <context.h>
#include <qfreej.h>
#include <QBoxLayout>
#include <QDoubleSpinBox>
#include <QPainter>
#include <FakeWindow.h>
#include <QqTabWidget.h>
#include <generator_layer.h>
#include <qqcombores.h>

class Qfreej;
class QqComboRes;


class QqWidget : public QWidget
{
    Q_OBJECT
public:
    QqWidget();
    QqWidget(Context *,  QqTabWidget*, Qfreej*, QString);   //Layer
    QqWidget(Context *, QqTabWidget*, Qfreej*);             //TextLayer
    QqWidget(Context *, QqTabWidget*, Qfreej*, QAction*);   //Geometry
    ~QqWidget();
    FakeWindow* getFake();
    Layer* getLayer();
    TextLayer* getTextLayer();
    GeneratorLayer* getGeneLayer();
    Context* getContext();
    void setAngle(double);
    double getAngle();
    QqTabWidget* getTabWidget();

public slots:
    void changeFps(int);
    void modTextLayer();
    void changeFontSize(int);
    void clean();
    void changeAngle(double);
    void redrawFake();
    void playPause();
    void resetZoom();

private:
    int newIdx;
    Layer *qLayer;
    TextLayer *qTextLayer;
    GeneratorLayer *m_qGeneLayer;
    QTextEdit *text;
    QPushButton *textButton;
    QPushButton *slowButton;
    QSlider *slowFps;
    double normalFps;
    double actualFps;
    int	fpsP;
    QPushButton *playButton;
    bool isPlaying;
    QComboBox *fontSizeBox;
    Context *ctx;
    FakeWindow* fakeView;
    FakeWindow* fakeLay;
    QVBoxLayout* layoutV;
    QHBoxLayout* layoutH;
    QDoubleSpinBox *m_angleBox;
    double m_angle;
    QqTabWidget *m_tabWidg;
    QqComboRes *m_comboRes;
};
#endif // QQWIDGET_H