]>
git.zerfleddert.de Git - proxmark3-svn/blob - client/proxguiqt.h
303a37d01cb66a48897f7003be6ae79453c08a6f
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
;
28 ProxWidget(QWidget
*parent
= 0);
31 void paintEvent(QPaintEvent
*event
);
32 void closeEvent(QCloseEvent
*event
);
33 void mouseMoveEvent(QMouseEvent
*event
);
34 void mousePressEvent(QMouseEvent
*event
) { mouseMoveEvent(event
); }
35 void keyPressEvent(QKeyEvent
*event
);
38 class ProxGuiQT
: public QObject
43 QApplication
*plotapp
;
44 ProxWidget
*plotwidget
;
47 void (*main_func
)(void);
50 ProxGuiQT(int argc
, char **argv
);
52 void ShowGraphWindow(void);
53 void RepaintGraphWindow(void);
54 void HideGraphWindow(void);
58 void _ShowGraphWindow(void);
59 void _RepaintGraphWindow(void);
60 void _HideGraphWindow(void);
63 void ShowGraphWindowSignal(void);
64 void RepaintGraphWindowSignal(void);
65 void HideGraphWindowSignal(void);