00001 #ifndef NEWDOCUMENTDIALOG_H 00002 #define NEWDOCUMENTDIALOG_H 00003 00004 #include <QDialog> 00005 00006 #include "ui_NewDocumentDialog.h" 00007 #include "../Data/datadefinitions.h" 00008 class Settings; 00009 00010 class NewDocumentDialog : public QDialog, public Ui::NewDocumentDialog 00011 { 00012 Q_OBJECT 00013 00014 public: 00015 NewDocumentDialog(Settings &set, QWidget *parent = 0); 00016 00017 private slots: 00018 void ok(); 00019 void cancel(); 00020 00021 private: 00022 bool checkIfFileExists(QString name); 00023 Settings *settings; 00024 00025 signals: 00026 void createFile(FileType::Type type, QString name); 00027 }; 00028 00029 #endif