goldendict-ng/src/ui/dictinfo.hh
shenleban tongying 96ada0737c
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
clean: purge undocumented and useless editDictionaryCommandLine (#1794)
2024-09-30 20:02:20 -04:00

37 lines
645 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,
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_openFolder_clicked();
void on_OKButton_clicked();
void on_headwordsButton_clicked();
void on_openIndexFolder_clicked();
};
#endif // DICTINFO_HH