1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 12:42:11 +00:00
OpenMW/apps/opencs/view/doc/newgame.hpp
2022-09-22 21:35:26 +03:00

51 lines
866 B
C++

#ifndef CSV_DOC_NEWGAME_H
#define CSV_DOC_NEWGAME_H
#include <QDialog>
#include <QMetaType>
#include <filesystem>
#ifndef CS_QT_STD_FILESYSTEM_PATH_DECLARED
#define CS_QT_STD_FILESYSTEM_PATH_DECLARED
Q_DECLARE_METATYPE(std::filesystem::path)
#endif
class QPushButton;
namespace CSVDoc
{
class FileWidget;
class AdjusterWidget;
class NewGameDialogue : public QDialog
{
Q_OBJECT
QPushButton* mCreate;
FileWidget* mFileWidget;
AdjusterWidget* mAdjusterWidget;
public:
NewGameDialogue();
void setLocalData(const std::filesystem::path& localData);
signals:
void createRequest(const std::filesystem::path& file);
void cancelCreateGame();
private slots:
void stateChanged(bool valid);
void create();
void reject() override;
};
}
#endif