-
Notifications
You must be signed in to change notification settings - Fork 0
/
submission.h
executable file
·62 lines (46 loc) · 1.15 KB
/
submission.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
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
62
/*
* This file is part of community judge client project developed by Shervin Kh.
* Copyright (C) 2014 Shervin Kh.
* License: GPLv3 Or Later
* Full license could be found in License file shipped with program or at http://www.gnu.org/licenses/
*/
#ifndef SUBMISSION_H
#define SUBMISSION_H
#include <QWidget>
#include "general.h"
class QLabel;
class QLineEdit;
class QHBoxLayout;
class QVBoxLayout;
class QPushButton;
class Connection;
class MainWidget;
class QGridLayout;
class Submission : public QWidget
{
Q_OBJECT
private:
MainWidget *mw;
QLabel *problemLabel;
QLineEdit *problemEdit;
QLabel *fileLabel;
QLineEdit *fileEdit;
QPushButton *fileOpen;
QPushButton *submit;
QGridLayout *upLayout;
QHBoxLayout *buttonLayout;
QVBoxLayout *totalLayout;
QLabel *title;
QHBoxLayout *titleLayout;
QHBoxLayout *inputLayout;
public:
explicit Submission(MainWidget *MW, QWidget *parent = Q_NULLPTR);
void init();
void onSwitch();
private slots:
void validateForm();
void submitAction();
void submitDone(StatCode stat, const QByteArray &);
void handleOpen();
};
#endif // SUBMISSION_H