mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 16:54:08 +00:00
7599b8e33e
Note: The "Edit dictionary" is optional an enabled only if the command line for editor is specified in the config file (manually).
35 lines
566 B
C++
35 lines
566 B
C++
#ifndef DICTINFO_HH
|
|
#define DICTINFO_HH
|
|
|
|
#include <QDialog>
|
|
#include "ui_dictinfo.h"
|
|
#include "dictionary.hh"
|
|
#include "config.hh"
|
|
|
|
class DictInfo: public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
|
|
enum Actions
|
|
{
|
|
REJECTED,
|
|
ACCEPTED,
|
|
OPEN_FOLDER,
|
|
EDIT_DICTIONARY
|
|
};
|
|
|
|
DictInfo( Config::Class &cfg_, QWidget * parent = 0 );
|
|
void showInfo( sptr< Dictionary::Class > dict );
|
|
|
|
private:
|
|
Ui::DictInfo ui;
|
|
Config::Class &cfg;
|
|
private slots:
|
|
void savePos( int );
|
|
void on_editDictionary_clicked();
|
|
void on_openFolder_clicked();
|
|
};
|
|
|
|
#endif // DICTINFO_HH
|