mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-23 23:54:05 +00:00
ad8008c37b
After select a word, show a flag window, click the flag to show popup window.
61 lines
1.2 KiB
C++
61 lines
1.2 KiB
C++
#ifndef __PREFERENCES_HH_INCLUDED__
|
|
#define __PREFERENCES_HH_INCLUDED__
|
|
|
|
#include <QDialog>
|
|
#include "config.hh"
|
|
#include "helpwindow.hh"
|
|
#include "ui_preferences.h"
|
|
|
|
/// Preferences dialog -- allows changing various program options.
|
|
class Preferences: public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
int prevInterfaceLanguage;
|
|
|
|
Help::HelpWindow * helpWindow;
|
|
Config::Class & cfg;
|
|
QAction helpAction;
|
|
|
|
public:
|
|
|
|
Preferences( QWidget * parent, Config::Class & cfg_ );
|
|
~Preferences()
|
|
{ if( helpWindow ) delete helpWindow; }
|
|
|
|
Config::Preferences getPreferences();
|
|
|
|
private:
|
|
|
|
Ui::Preferences ui;
|
|
|
|
private slots:
|
|
|
|
void enableScanPopupToggled( bool );
|
|
void enableScanPopupModifiersToggled( bool );
|
|
void showScanFlagToggled( bool b );
|
|
|
|
void wholeAltClicked( bool );
|
|
void wholeCtrlClicked( bool );
|
|
void wholeShiftClicked( bool );
|
|
|
|
void sideAltClicked( bool );
|
|
void sideCtrlClicked( bool );
|
|
void sideShiftClicked( bool );
|
|
|
|
void on_enableMainWindowHotkey_toggled( bool checked );
|
|
void on_enableClipboardHotkey_toggled( bool checked );
|
|
|
|
void on_buttonBox_accepted();
|
|
|
|
void on_useExternalPlayer_toggled( bool enabled );
|
|
|
|
void customProxyToggled( bool );
|
|
|
|
void helpRequested();
|
|
void closeHelp();
|
|
};
|
|
|
|
#endif
|
|
|