-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.h
31 lines (26 loc) · 913 Bytes
/
global.h
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
#ifndef GLOBAL_H
#define GLOBAL_H
#include "header.h"
#include "player.h"
#include "problem.h"
class Global
{
public:
static int playerNum,problemNum,sumScore;
static vector<Player> players;
static vector<Problem> problems;
static QList<int> problemOrder;
static QString testPath,srcPath,dataPath,resultPath,testName;
static QFont font,boldFont;
static QString labelStyle1[17],labelStyle2[17];
static bool alreadyJudging,isListUsed;
static Qt::SortOrder preSortOrder;
static QElapsedTimer clickTimer;
static QList<pair<int,int>> judgeList;
static void clear();
static int logicalRow(int visualRow);
static QColor ratioColor(int rl, int gl, int bl, int rr, int gr, int br, int x, int y);
static Problem::CompilerInfo getCompiler(Player *player, Problem *problem);
static void saveProblemOrder(const QStringList &list);
};
#endif // GLOBAL_H