mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-24 03:54:06 +00:00
b5349478cf
The next commit will add `.git-blame-ignore-revs` https://docs.github.com/en/repositories/working-with-files/using-files/viewing-a-file#ignore-commits-in-the-blame-view
39 lines
702 B
C++
39 lines
702 B
C++
#ifndef DICTINFO_HH
|
|
#define DICTINFO_HH
|
|
|
|
#include <QDialog>
|
|
#include "ui_dictinfo.h"
|
|
#include "dict/dictionary.hh"
|
|
#include "config.hh"
|
|
|
|
class DictInfo: public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
enum Actions {
|
|
REJECTED,
|
|
ACCEPTED,
|
|
OPEN_FOLDER,
|
|
EDIT_DICTIONARY,
|
|
SHOW_HEADWORDS
|
|
};
|
|
|
|
DictInfo( Config::Class & cfg_, QWidget * parent = nullptr );
|
|
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();
|
|
void on_OKButton_clicked();
|
|
void on_headwordsButton_clicked();
|
|
void on_openIndexFolder_clicked();
|
|
};
|
|
|
|
#endif // DICTINFO_HH
|