2013-09-08 10:06:28 +00:00
|
|
|
#ifndef CSV_DOC_NEWGAME_H
|
|
|
|
#define CSV_DOC_NEWGAME_H
|
|
|
|
|
2013-09-10 14:45:01 +00:00
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
|
2013-09-08 12:31:20 +00:00
|
|
|
#include <QDialog>
|
2013-09-10 14:45:01 +00:00
|
|
|
#include <QMetaType>
|
|
|
|
|
2013-09-23 09:26:29 +00:00
|
|
|
#ifndef CS_QT_BOOST_FILESYSTEM_PATH_DECLARED
|
|
|
|
#define CS_QT_BOOST_FILESYSTEM_PATH_DECLARED
|
2013-09-10 14:45:01 +00:00
|
|
|
Q_DECLARE_METATYPE (boost::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();
|
2013-09-08 12:31:20 +00:00
|
|
|
|
2013-09-10 14:45:01 +00:00
|
|
|
void setLocalData (const boost::filesystem::path& localData);
|
|
|
|
|
2013-09-08 12:31:20 +00:00
|
|
|
signals:
|
|
|
|
|
2013-09-10 14:45:01 +00:00
|
|
|
void createRequest (const boost::filesystem::path& file);
|
2013-09-08 12:31:20 +00:00
|
|
|
|
2015-05-29 22:37:58 +00:00
|
|
|
void cancelCreateGame ();
|
|
|
|
|
2013-09-08 12:31:20 +00:00
|
|
|
private slots:
|
|
|
|
|
|
|
|
void stateChanged (bool valid);
|
|
|
|
|
|
|
|
void create();
|
2015-05-29 22:37:58 +00:00
|
|
|
|
|
|
|
void reject();
|
2013-09-08 10:06:28 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|