2013-09-08 10:06:28 +00:00
|
|
|
#ifndef CSV_DOC_NEWGAME_H
|
|
|
|
#define CSV_DOC_NEWGAME_H
|
|
|
|
|
2013-09-08 12:31:20 +00:00
|
|
|
#include <QDialog>
|
2013-09-10 14:45:01 +00:00
|
|
|
#include <QMetaType>
|
|
|
|
|
2022-06-11 17:23:44 +00:00
|
|
|
#include <filesystem>
|
|
|
|
|
2022-06-11 21:38:09 +00:00
|
|
|
#ifndef CS_QT_STD_FILESYSTEM_PATH_DECLARED
|
|
|
|
#define CS_QT_STD_FILESYSTEM_PATH_DECLARED
|
2022-06-08 21:25:50 +00:00
|
|
|
Q_DECLARE_METATYPE(std::filesystem::path)
|
2013-09-23 09:26:29 +00:00
|
|
|
#endif
|
2013-09-08 12:31:20 +00:00
|
|
|
|
|
|
|
class QPushButton;
|
2013-09-08 10:06:28 +00:00
|
|
|
|
|
|
|
namespace CSVDoc
|
|
|
|
{
|
2013-09-08 12:31:20 +00:00
|
|
|
class FileWidget;
|
2013-09-10 14:45:01 +00:00
|
|
|
class AdjusterWidget;
|
2013-09-08 12:31:20 +00:00
|
|
|
|
|
|
|
class NewGameDialogue : public QDialog
|
2013-09-08 10:06:28 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2013-09-08 12:31:20 +00:00
|
|
|
QPushButton* mCreate;
|
|
|
|
FileWidget* mFileWidget;
|
2013-09-10 14:45:01 +00:00
|
|
|
AdjusterWidget* mAdjusterWidget;
|
2013-09-08 12:31:20 +00:00
|
|
|
|
2013-09-08 10:06:28 +00:00
|
|
|
public:
|
|
|
|
NewGameDialogue();
|
|
|
|
|
|
|
|
void setLocalData(const std::filesystem::path& localData);
|
2013-09-08 12:31:20 +00:00
|
|
|
|
2022-06-08 21:25:50 +00:00
|
|
|
signals:
|
2013-09-10 14:45:01 +00:00
|
|
|
|
2013-09-08 12:31:20 +00:00
|
|
|
void createRequest(const std::filesystem::path& file);
|
|
|
|
|
2022-06-08 21:25:50 +00:00
|
|
|
void cancelCreateGame();
|
2013-09-08 12:31:20 +00:00
|
|
|
|
2015-05-29 22:37:58 +00:00
|
|
|
private slots:
|
|
|
|
|
2013-09-08 12:31:20 +00:00
|
|
|
void stateChanged(bool valid);
|
|
|
|
|
|
|
|
void create();
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void reject() override;
|
2013-09-08 10:06:28 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|