-
Notifications
You must be signed in to change notification settings - Fork 0
/
problemspecsdialog.h
executable file
·80 lines (58 loc) · 1.53 KB
/
problemspecsdialog.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/*
* 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 PROBLEMSPECSDIALOG_H
#define PROBLEMSPECSDIALOG_H
#include <QDialog>
#include <QList>
#include "general.h"
class QLabel;
class QLineEdit;
class QGridLayout;
class QDialogButtonBox;
class QCheckBox;
class QVBoxLayout;
class QComboBox;
class ProblemSpecsDialog : public QDialog
{
Q_OBJECT
private:
QLabel *nameLabel;
QLineEdit *nameEdit;
QLabel *folderLabel;
QLineEdit *folderEdit;
QLabel *descLabel;
QLineEdit *descEdit;
QLabel *descFileLabel;
QLineEdit *descFileEdit;
QLabel *ntLabel;
QLineEdit *ntEdit;
QLabel *tlLabel;
QLineEdit *tlEdit;
QLabel *mlLabel;
QLineEdit *mlEdit;
QLabel *scpLabel;
QComboBox *scpComboBox;
QLabel *contestLabel;
QComboBox *contestComboBox;
QLabel *pubsubLabel;
QComboBox *pubsub;
QLabel *othsubLabel;
QComboBox *othsub;
QCheckBox *completed;
QCheckBox *enabled;
QGridLayout *glayout;
QVBoxLayout *totalLayout;
QDialogButtonBox *buttons;
Problem cur;
public:
explicit ProblemSpecsDialog(const Problem &prob, const QList<QString> &scps,
const QList<QString> &cons, QWidget *parent = Q_NULLPTR);
Problem resultProblem() const;
private slots:
void validateForm();
};
#endif // PROBLEMSPECSDIALOG_H