summaryrefslogtreecommitdiff
path: root/src/dic-options/DictionaryOptionsDialog.h
blob: 3a57cb68027f904a3bbc175dfde2957eb91f3aec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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