blob: 3eb3d1bc3bb513ab113137466d2b4252b19133a7 (
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
42
|
#ifndef CARDEDITDIALOG_H
#define CARDEDITDIALOG_H
#include <QDialog>
#include <QEvent>
class Card;
class Dictionary;
class CardFilterModel;
class DictTableView;
class DictTableModel;
class MainWindow;
class IStudyWindow;
class CardEditDialog : public QDialog
{
Q_OBJECT
public:
CardEditDialog(Card* aCurCard, MainWindow* aMainWindow, IStudyWindow* aStudyWindow);
~CardEditDialog();
const DictTableView* cardEditView() const;
protected:
void closeEvent( QCloseEvent* event );
bool event( QEvent* event );
private slots:
void goToDictionaryWindow();
private:
static const int CardEditViewHeight = 130;
static const int CardEditViewWidth = 600;
const Dictionary* m_dictionary;
CardFilterModel* m_cardEditModel;
DictTableView* m_cardEditView;
MainWindow* m_mainWindow;
};
#endif
|