Merge branch 'gui'
[mdictionary] / trunk / src / plugins / xdxf / src / XdxfSettingsDialog.h
diff --git a/trunk/src/plugins/xdxf/src/XdxfSettingsDialog.h b/trunk/src/plugins/xdxf/src/XdxfSettingsDialog.h
new file mode 100644 (file)
index 0000000..d7ed8b5
--- /dev/null
@@ -0,0 +1,64 @@
+/*******************************************************************************
+
+    This file is part of mDictionary.
+
+    mDictionary is free software: you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation, either version 3 of the License, or
+    (at your option) any later version.
+
+    mDictionary is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with mDictionary.  If not, see <http://www.gnu.org/licenses/>.
+
+    Copyright 2010 Comarch S.A.
+
+*******************************************************************************/
+
+//Created by Mateusz Półrola
+
+#ifndef XDXFSETTINGSDIALOG_H
+#define XDXFSETTINGSDIALOG_H
+
+#include <QDialog>
+#include "../../../includes/settings.h"
+#include <QtGui>
+#include "xdxfplugin.h"
+
+class XdxfSettingsDialog : public QDialog
+{
+    Q_OBJECT
+public:
+    explicit XdxfSettingsDialog(XdxfPlugin* plugin, QWidget *parent = 0);
+
+    static Settings* getSettings(XdxfPlugin* plugin, QWidget *parent);
+
+    //! Returns choosen by user dictionary file path
+    //QString dicitonaryFilePath();
+
+    //! Returns if user want to cache dictionary
+   // bool generateCache();
+
+signals:
+
+public slots:
+
+private:
+    QLabel* infoLabel;
+    QPushButton* saveButton;
+    QPushButton* browseButton;
+    QLabel* browseLabel;
+    QPushButton* cacheButton;
+    QVBoxLayout* verticalLayout;
+    QHBoxLayout* browseLayout;
+    QHBoxLayout* cacheLayout;
+    QString _dicitonaryFilePath;
+    bool _generateCache;
+    XdxfPlugin* plugin;
+};
+
+#endif // XDXFSETTINGSDIALOG_H