2012-09-24 12:51:51 +00:00
|
|
|
#ifndef DICTINFO_HH
|
|
|
|
#define DICTINFO_HH
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include "ui_dictinfo.h"
|
|
|
|
#include "dictionary.hh"
|
2012-09-27 13:00:40 +00:00
|
|
|
#include "config.hh"
|
2012-09-24 12:51:51 +00:00
|
|
|
|
|
|
|
class DictInfo: public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
|
2013-06-11 15:40:45 +00:00
|
|
|
enum Actions
|
|
|
|
{
|
|
|
|
REJECTED,
|
|
|
|
ACCEPTED,
|
|
|
|
OPEN_FOLDER,
|
2014-02-28 12:36:28 +00:00
|
|
|
EDIT_DICTIONARY,
|
|
|
|
SHOW_HEADWORDS
|
2013-06-11 15:40:45 +00:00
|
|
|
};
|
|
|
|
|
2012-09-27 13:00:40 +00:00
|
|
|
DictInfo( Config::Class &cfg_, QWidget * parent = 0 );
|
2012-09-24 12:51:51 +00:00
|
|
|
void showInfo( sptr< Dictionary::Class > dict );
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::DictInfo ui;
|
2012-09-27 13:00:40 +00:00
|
|
|
Config::Class &cfg;
|
|
|
|
private slots:
|
|
|
|
void savePos( int );
|
2013-06-11 15:40:45 +00:00
|
|
|
void on_editDictionary_clicked();
|
|
|
|
void on_openFolder_clicked();
|
2014-02-28 12:36:28 +00:00
|
|
|
void on_OKButton_clicked();
|
|
|
|
void on_headwordsButton_clicked();
|
2012-09-24 12:51:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DICTINFO_HH
|