-
Notifications
You must be signed in to change notification settings - Fork 2
/
startanalysis.hpp
51 lines (46 loc) · 1.42 KB
/
startanalysis.hpp
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
#ifndef STARTANALYSIS_HPP
#define STARTANALYSIS_HPP
class QSettings;
#include <QDialog>
#include <QVBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QPushButton>
#include <QGroupBox>
#include <QTextEdit>
#include <QFormLayout>
#include <QDialogButtonBox>
struct Globals;
class Game;
#include "gamestate.hpp"
class StartAnalysis : public QDialog {
Q_OBJECT
public:
StartAnalysis(Globals& globals_,const NodePtr& node_,const std::pair<Placements,ExtendedSteps>& partialMove_,Game* const game=nullptr);
private:
static QStringList split(const QTextEdit& textEdit);
void setWindowTitle();
void readSettings(QSettings& settings);
void writeSettings(QSettings& settings) const;
Globals& globals;
const NodePtr node;
const std::pair<Placements,ExtendedSteps> partialMove;
QVBoxLayout vBoxLayout;
QHBoxLayout executable;
QLabel executableLabel;
QLineEdit executableLineEdit;
QPushButton executablePushButton;
QGroupBox argumentGroupBox;
QVBoxLayout argumentLayout;
std::array<QTextEdit,3> arguments;
QFormLayout moveFileLayout;
QLineEdit moveFileContent;
QGroupBox partialMoveGroupBox;
QVBoxLayout partialMoveLayout;
std::array<QTextEdit,2> partialMoveArguments;
QLineEdit partialMoveLine;
QFormLayout passSynonymLayout;
QLineEdit passSynonyms;
QDialogButtonBox dialogButtonBox;
};
#endif // STARTANALYSIS_HPP