teleport/client/tp-player/mainwindow.h

56 lines
961 B
C
Raw Normal View History

2019-09-02 21:40:52 +00:00
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QVector>
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:
void paintEvent(QPaintEvent *);
private slots:
void on_update_data(update_data*);
private:
Ui::MainWindow *ui;
QImage m_bg;
bool m_shown;
ThreadPlay m_thr_play;
2019-09-04 12:28:16 +00:00
QPixmap m_canvas;
2019-09-02 21:40:52 +00:00
bool m_show_bg;
TS_RECORD_HEADER m_rec_hdr;
2019-09-03 12:19:09 +00:00
QImage m_pt_normal;
2019-09-02 21:40:52 +00:00
TS_RECORD_RDP_POINTER m_pt;
QVector<TS_RECORD_RDP_POINTER> m_pt_history;
2019-09-02 21:40:52 +00:00
2019-09-03 12:19:09 +00:00
QImage m_img_update;
int m_win_board_w;
int m_win_board_h;
2019-09-02 21:40:52 +00:00
int m_img_update_x;
int m_img_update_y;
int m_img_update_w;
int m_img_update_h;
};
#endif // MAINWINDOW_H