1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-24 05:23:53 +00:00
openmw/apps/opencs/view/doc/newgame.hpp

51 lines
866 B
C++
Raw Normal View History

#ifndef CSV_DOC_NEWGAME_H
#define CSV_DOC_NEWGAME_H
#include <QDialog>
2013-09-10 14:45:01 +00:00
#include <QMetaType>
#include <filesystem>
#ifndef CS_QT_STD_FILESYSTEM_PATH_DECLARED
#define CS_QT_STD_FILESYSTEM_PATH_DECLARED
2022-09-22 18:26:05 +00:00
Q_DECLARE_METATYPE(std::filesystem::path)
#endif
class QPushButton;
namespace CSVDoc
{
class FileWidget;
2013-09-10 14:45:01 +00:00
class AdjusterWidget;
class NewGameDialogue : public QDialog
{
2022-09-22 18:26:05 +00:00
Q_OBJECT
2022-09-22 18:26:05 +00:00
QPushButton* mCreate;
FileWidget* mFileWidget;
AdjusterWidget* mAdjusterWidget;
2022-09-22 18:26:05 +00:00
public:
NewGameDialogue();
2022-09-22 18:26:05 +00:00
void setLocalData(const std::filesystem::path& localData);
2022-09-22 18:26:05 +00:00
signals:
2013-09-10 14:45:01 +00:00
2022-09-22 18:26:05 +00:00
void createRequest(const std::filesystem::path& file);
2022-09-22 18:26:05 +00:00
void cancelCreateGame();
2022-09-22 18:26:05 +00:00
private slots:
2022-09-22 18:26:05 +00:00
void stateChanged(bool valid);
2022-09-22 18:26:05 +00:00
void create();
2022-09-22 18:26:05 +00:00
void reject() override;
};
}
#endif