2009-02-05 20:55:00 +00:00
|
|
|
#ifndef __PREFERENCES_HH_INCLUDED__
|
|
|
|
#define __PREFERENCES_HH_INCLUDED__
|
|
|
|
|
|
|
|
#include <QDialog>
|
2023-04-17 02:23:39 +00:00
|
|
|
#include <QAction>
|
2009-02-05 20:55:00 +00:00
|
|
|
#include "config.hh"
|
|
|
|
#include "ui_preferences.h"
|
|
|
|
|
|
|
|
/// Preferences dialog -- allows changing various program options.
|
|
|
|
class Preferences: public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2023-06-01 11:52:16 +00:00
|
|
|
int prevInterfaceLanguage = 0;
|
2009-04-12 20:46:25 +00:00
|
|
|
|
2023-07-20 12:10:44 +00:00
|
|
|
#if !defined( Q_OS_WIN )
|
|
|
|
int prevInterfaceStyle = 0;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
2023-07-16 10:54:07 +00:00
|
|
|
Config::CustomFonts prevWebFontFamily;
|
2023-09-07 01:53:51 +00:00
|
|
|
QString prevSysFont;
|
2022-05-08 08:00:08 +00:00
|
|
|
|
2014-06-24 13:55:06 +00:00
|
|
|
Config::Class & cfg;
|
|
|
|
QAction helpAction;
|
|
|
|
|
2009-02-05 20:55:00 +00:00
|
|
|
public:
|
|
|
|
|
2014-06-24 13:55:06 +00:00
|
|
|
Preferences( QWidget * parent, Config::Class & cfg_ );
|
2023-06-01 11:52:16 +00:00
|
|
|
void buildDisabledTypes( QString & disabledTypes, bool is_checked, QString name );
|
|
|
|
~Preferences() override = default;
|
2009-02-05 20:55:00 +00:00
|
|
|
|
|
|
|
Config::Preferences getPreferences();
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
Ui::Preferences ui;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void enableScanPopupModifiersToggled( bool );
|
2022-11-17 08:41:51 +00:00
|
|
|
void showScanFlagToggled( bool b );
|
|
|
|
|
|
|
|
void wholeAltClicked( bool );
|
|
|
|
void wholeCtrlClicked( bool );
|
|
|
|
void wholeShiftClicked( bool );
|
|
|
|
|
|
|
|
void sideAltClicked( bool );
|
|
|
|
void sideCtrlClicked( bool );
|
|
|
|
void sideShiftClicked( bool );
|
2009-02-05 20:55:00 +00:00
|
|
|
|
2009-04-21 18:27:26 +00:00
|
|
|
void on_enableMainWindowHotkey_toggled( bool checked );
|
|
|
|
void on_enableClipboardHotkey_toggled( bool checked );
|
|
|
|
|
2009-04-12 20:46:25 +00:00
|
|
|
void on_buttonBox_accepted();
|
2010-01-02 18:16:22 +00:00
|
|
|
|
|
|
|
void on_useExternalPlayer_toggled( bool enabled );
|
2014-04-01 17:00:13 +00:00
|
|
|
|
|
|
|
void customProxyToggled( bool );
|
2020-11-12 15:57:10 +00:00
|
|
|
void on_maxNetworkCacheSize_valueChanged( int value );
|
2014-06-24 13:55:06 +00:00
|
|
|
|
2020-11-19 12:10:36 +00:00
|
|
|
void on_collapseBigArticles_toggled( bool checked );
|
|
|
|
void on_limitInputPhraseLength_toggled( bool checked );
|
2009-02-05 20:55:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|