]> git.zerfleddert.de Git - proxmark3-svn/blame - linux/proxguiqt.h
fix Mifare AUTH for hi14areader command
[proxmark3-svn] / linux / proxguiqt.h
CommitLineData
6658905f 1#include <QApplication>
2#include <QPushButton>
3#include <QObject>
4#include <QWidget>
5#include <QPainter>
6
7class ProxWidget : public QWidget
8{
9 Q_OBJECT;
10
11 private:
12 int GraphStart;
13 double GraphPixelsPerPoint;
14 int CursorAPos;
15 int CursorBPos;
16
17 public:
18 ProxWidget(QWidget *parent = 0);
19
20 protected:
21 void paintEvent(QPaintEvent *event);
22 void closeEvent(QCloseEvent *event);
23 void mouseMoveEvent(QMouseEvent *event);
24 void mousePressEvent(QMouseEvent *event) { mouseMoveEvent(event); }
25 void keyPressEvent(QKeyEvent *event);
26};
27
28class ProxGuiQT : public QObject
29{
30 Q_OBJECT;
31
32 private:
33 QApplication *plotapp;
34 ProxWidget *plotwidget;
35 int argc;
36 char **argv;
37 void (*main_func)(void);
38
39 public:
40 ProxGuiQT(int argc, char **argv);
41 ~ProxGuiQT(void);
42 void ShowGraphWindow(void);
43 void RepaintGraphWindow(void);
44 void HideGraphWindow(void);
45 void MainLoop(void);
46
47 private slots:
48 void _ShowGraphWindow(void);
49 void _RepaintGraphWindow(void);
50 void _HideGraphWindow(void);
51
52 signals:
53 void ShowGraphWindowSignal(void);
54 void RepaintGraphWindowSignal(void);
55 void HideGraphWindowSignal(void);
56};
Impressum, Datenschutz