X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=src%2Fextrainfodialog.h;fp=src%2Fextrainfodialog.h;h=712a2120c00a566cd60d640e6b3ef9131276f1bc;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=0000000000000000000000000000000000000000;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git diff --git a/src/extrainfodialog.h b/src/extrainfodialog.h new file mode 100644 index 0000000..712a212 --- /dev/null +++ b/src/extrainfodialog.h @@ -0,0 +1,35 @@ +#ifndef EXTRAINFODIALOG_H +#define EXTRAINFODIALOG_H + +#include "ui_extrainfodialog.h" + +/* \brief Dialog to display and edit map specific information like author, + * comment, etc. + */ + +class ExtraInfoDialog : public QDialog { + Q_OBJECT + + public: + ExtraInfoDialog(QWidget *parent = 0); + + virtual QString getComment(); + virtual QString getAuthor(); + virtual QString getMapTitle(); + virtual void setStats(const QString &s); + void setReadOnly(bool b); + bool isReadOnly(); + + public slots: + virtual void setMapName(const QString &s); + virtual void setFileLocation(const QString &s); + virtual void setMapTitle(const QString &s); + virtual void setComment(const QString &s); + virtual void setAuthor(const QString &s); + + private: + Ui::ExtraInfoDialog ui; + bool readOnly; +}; + +#endif // EXTRAINFODIALOG_H