1 #ifndef DICTINFO_HH
2 #define DICTINFO_HH
3 
4 #include <QDialog>
5 #include "ui_dictinfo.h"
6 #include "dictionary.hh"
7 #include "config.hh"
8 
9 class DictInfo: public QDialog
10 {
11   Q_OBJECT
12 public:
13 
14   enum Actions
15   {
16     REJECTED,
17     ACCEPTED,
18     OPEN_FOLDER,
19     EDIT_DICTIONARY,
20     SHOW_HEADWORDS
21   };
22 
23   DictInfo( Config::Class &cfg_, QWidget * parent = 0 );
24   void showInfo( sptr< Dictionary::Class > dict );
25 
26 private:
27   Ui::DictInfo ui;
28   Config::Class &cfg;
29 private slots:
30   void savePos( int );
31   void on_editDictionary_clicked();
32   void on_openFolder_clicked();
33   void on_OKButton_clicked();
34   void on_headwordsButton_clicked();
35 };
36 
37 #endif // DICTINFO_HH
38