You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
944 B
C++
52 lines
944 B
C++
#ifndef CSV_DOC_NEWGAME_H
|
|
#define CSV_DOC_NEWGAME_H
|
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
#include <QDialog>
|
|
#include <QMetaType>
|
|
|
|
#ifndef CS_QT_BOOST_FILESYSTEM_PATH_DECLARED
|
|
#define CS_QT_BOOST_FILESYSTEM_PATH_DECLARED
|
|
Q_DECLARE_METATYPE (boost::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 boost::filesystem::path& localData);
|
|
|
|
signals:
|
|
|
|
void createRequest (const boost::filesystem::path& file);
|
|
|
|
void cancelCreateGame ();
|
|
|
|
private slots:
|
|
|
|
void stateChanged (bool valid);
|
|
|
|
void create();
|
|
|
|
void reject();
|
|
};
|
|
}
|
|
|
|
#endif
|