-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdebug.h
More file actions
61 lines (46 loc) · 1016 Bytes
/
Copy pathdebug.h
File metadata and controls
61 lines (46 loc) · 1016 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifdef DEBUG
#ifndef DEBUG_H
#define DEBUG_H
#include "define.h"
#include "cdeck.h"
#include <QWidget>
#include <QLabel>
#include <QScrollBar>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QImage>
const int MAX_HISTORY_SIZE = 1000;
class CDebug : public QWidget
{
Q_OBJECT
private: // variables;
QVBoxLayout *layout;
QHBoxLayout *box1;
QHBoxLayout *box2;
QScrollBar *bar;
CDeck *deck;
QLabel *labels[14];
const char *plr_names[MAX_HISTORY_SIZE];
bool connected;
bool winners[MAX_HISTORY_SIZE];
int cards[MAX_HISTORY_SIZE];
int ptr_screen;
int history_size;
int cards_saved;
int suit;
int best;
int best_pos;
private: // functions
void show_history(int slide);
public:
CDebug(CDeck *d);
~CDebug();
void save_card(int card, const char *name);
void reset(bool conn_state = false);
void refresh();
void Translate();
public slots:
void handle_bar(int value);
};
#endif // DEBUG_H
#endif // DEBUG