2019-09-02 21:40:52 +00:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QMainWindow>
|
2019-09-06 12:07:13 +00:00
|
|
|
#include "bar.h"
|
2019-09-02 21:40:52 +00:00
|
|
|
#include "thr_play.h"
|
|
|
|
#include "update_data.h"
|
|
|
|
#include "record_format.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MainWindow(QWidget *parent = nullptr);
|
|
|
|
~MainWindow();
|
|
|
|
|
|
|
|
private:
|
2019-09-08 19:30:31 +00:00
|
|
|
void paintEvent(QPaintEvent *e);
|
|
|
|
void mouseMoveEvent(QMouseEvent *e);
|
2019-09-02 21:40:52 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
void on_update_data(update_data*);
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
2019-09-08 19:30:31 +00:00
|
|
|
//QImage m_bg;
|
2019-09-02 21:40:52 +00:00
|
|
|
bool m_shown;
|
2019-09-08 19:30:31 +00:00
|
|
|
bool m_show_default;
|
|
|
|
bool m_bar_shown;
|
|
|
|
QPixmap m_default_bg;
|
2019-09-02 21:40:52 +00:00
|
|
|
|
|
|
|
ThreadPlay m_thr_play;
|
|
|
|
|
2019-09-04 12:28:16 +00:00
|
|
|
QPixmap m_canvas;
|
|
|
|
|
2019-09-06 12:07:13 +00:00
|
|
|
Bar m_bar;
|
|
|
|
|
2019-09-02 21:40:52 +00:00
|
|
|
TS_RECORD_HEADER m_rec_hdr;
|
2019-09-03 12:19:09 +00:00
|
|
|
|
2019-09-08 19:30:31 +00:00
|
|
|
QPixmap m_pt_normal;
|
2019-09-02 21:40:52 +00:00
|
|
|
TS_RECORD_RDP_POINTER m_pt;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|