Debian Codegraph @

libUnionImage/ImageDemo/mainwindow.h

raw
1 /*
2 * Copyright (C) 2020 ~ 2021 Uniontech Software Technology Co., Ltd.
3 *
4 * Author: ZhangYong <[email protected]>
5 *
6 * Maintainer: ZhangYong <[email protected]>
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21 #ifndef MAINWINDOW_H
22 #define MAINWINDOW_H
23
24 #include "imagedemothread.h"
25 #include "moviegraphicsitem.h"
26
27 #include <QGraphicsPixmapItem>
28 #include <QGraphicsView>
29 #include <QGraphicsScene>
30 #include <QMainWindow>
31 #include <QLabel>
32 #include <unionimage.h>
33 #include <QFileDialog>
34 #include <QDebug>
35 #include <QRunnable>
36 #include <QThreadPool>
37 #include <QPainter>
38 #include <QTime>
39
40
41 using namespace UnionImage_NameSpace;
42
43 namespace Ui {
44 class MainWindow;
45 }
46
47 class MainWindow : public QMainWindow
48 {
49 Q_OBJECT
50 public:
51 explicit MainWindow(QWidget *parent = nullptr);
52 ~MainWindow();
53
54 private slots:
55 void updateRotateAngel(int angel);
56 void loaddynamicImage();
57 void on_pushButton_clicked();
58 void on_leftrotate_pushButton_pressed();
59 void on_rightrotate_pushButton_pressed();
60 private:
61 UnionMovieImage ici;
62 Ui::MainWindow *ui;
63 QImage *currentImage = nullptr;
64 QTimer *dynamicImageTimer = nullptr;
65 QString currentImagePath;
66 QGraphicsScene *m_scence;
67 QGraphicsPixmapItem *m_item;
68 MovieGraphicsItem *m_movie;
69 ImageDemoThreadControler controler;
70 };
71
72 //ImageSupporter *ImageSupporter::m_instance = nullptr;
73
74 #endif // MAINWINDOW_H