goldendict-ng/preferences.hh
shenleban tongying aa3778bb64 Remove enableScanPopup: Complete. Remove from config file and ui file
At here, all code working exactly same as before
The only change is that ScanPopup always enabled for all users
2022-11-19 09:50:20 -05:00

66 lines
1.4 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;
QString prevWebFontFamily;
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 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 on_maxNetworkCacheSize_valueChanged( int value );
void on_collapseBigArticles_toggled( bool checked );
void on_limitInputPhraseLength_toggled( bool checked );
void helpRequested();
void closeHelp();
};
#endif