Added dictionaries settings dialog
[mdictionary] / trunk / src / base / gui / DictTypeSelectDialog.h
diff --git a/trunk/src/base/gui/DictTypeSelectDialog.h b/trunk/src/base/gui/DictTypeSelectDialog.h
new file mode 100644 (file)
index 0000000..f71ba22
--- /dev/null
@@ -0,0 +1,49 @@
+/*******************************************************************************
+
+    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 DICTTYPESELECTDIALOG_H
+#define DICTTYPESELECTDIALOG_H
+
+#include <QDialog>
+#include <QtGui>
+#include "../../includes/settings.h"
+
+class DictTypeSelectDialog : public QDialog {
+    Q_OBJECT
+public:    
+    static Settings* addNewDict(QList<CommonDictInterface* > plugins,
+                                QWidget *parent = 0);
+
+protected:
+    explicit DictTypeSelectDialog(QList<CommonDictInterface* > plugins,
+                                  QWidget *parent = 0);
+
+private Q_SLOTS:
+    //void pluginSelected
+private:
+    QListWidget* pluginsListWidget;
+    QList<CommonDictInterface*> plugins;
+
+};
+
+#endif // DICTTYPESELECTDIALOG_H