2012-09-24 12:51:51 +00:00
|
|
|
#ifndef DICTINFO_HH
|
|
|
|
#define DICTINFO_HH
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include "ui_dictinfo.h"
|
2023-04-17 20:55:34 +00:00
|
|
|
#include "dict/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
|
2023-07-20 08:02:22 +00:00
|
|
|
|
2012-09-24 12:51:51 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
|
2023-07-14 12:26:23 +00:00
|
|
|
DictInfo( Config::Class & cfg_, QWidget * parent = nullptr );
|
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();
|
2023-07-14 00:24:59 +00:00
|
|
|
void on_openIndexFolder_clicked();
|
2012-09-24 12:51:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DICTINFO_HH
|