summaryrefslogtreecommitdiff
path: root/src/dic-options/DictionaryOptionsDialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/dic-options/DictionaryOptionsDialog.h')
-rw-r--r--src/dic-options/DictionaryOptionsDialog.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/dic-options/DictionaryOptionsDialog.h b/src/dic-options/DictionaryOptionsDialog.h
new file mode 100644
index 0000000..3a57cb6
--- /dev/null
+++ b/src/dic-options/DictionaryOptionsDialog.h
@@ -0,0 +1,41 @@
+#ifndef DICTIONARYOPTIONSDIALOG_H
+#define DICTIONARYOPTIONSDIALOG_H
+
+#include <QtCore>
+#include <QtWidgets>
+
+#include "../dictionary/Field.h"
+#include "../dictionary/CardPack.h"
+#include "../dictionary/Dictionary.h"
+
+class Dictionary;
+class FieldsListModel;
+
+class DictionaryOptionsDialog : public QDialog
+{
+ Q_OBJECT
+
+public:
+ DictionaryOptionsDialog( Dictionary* aDict, QWidget* aParent );
+ ~DictionaryOptionsDialog();
+ QSize sizeHint() const;
+
+private:
+ void initData();
+ void createPages();
+ QLabel* createDictPathLabel();
+
+public:
+ FieldsListModel* m_fieldsListModel;
+ Field* m_emptyField;
+ Dictionary m_dict;
+
+private:
+ Dictionary* m_origDictPtr;
+ QListWidget* m_contentsWidget;
+ QTabWidget* m_pages;
+};
+
+Q_DECLARE_METATYPE(QList<QPersistentModelIndex>)
+
+#endif // DICTIONARYOPTIONSDIALOG_H