]>
git.zerfleddert.de Git - proxmark3-svn/blob - client/proxguiqt.h
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2009 Michael Gernoth <michael at gernoth.net>
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
7 //-----------------------------------------------------------------------------
9 //-----------------------------------------------------------------------------
11 #include <QApplication>
12 #include <QPushButton>
17 class ProxWidget
: public QWidget
23 double GraphPixelsPerPoint
;
30 ProxWidget(QWidget
*parent
= 0);
33 void paintEvent(QPaintEvent
*event
);
34 void closeEvent(QCloseEvent
*event
);
35 void mouseMoveEvent(QMouseEvent
*event
);
36 void mousePressEvent(QMouseEvent
*event
) { mouseMoveEvent(event
); }
37 void keyPressEvent(QKeyEvent
*event
);
40 class ProxGuiQT
: public QObject
45 QApplication
*plotapp
;
46 ProxWidget
*plotwidget
;
49 void (*main_func
)(void);
52 ProxGuiQT(int argc
, char **argv
);
54 void ShowGraphWindow(void);
55 void RepaintGraphWindow(void);
56 void HideGraphWindow(void);
60 void _ShowGraphWindow(void);
61 void _RepaintGraphWindow(void);
62 void _HideGraphWindow(void);
65 void ShowGraphWindowSignal(void);
66 void RepaintGraphWindowSignal(void);
67 void HideGraphWindowSignal(void);