goldendict-ng/preferences.hh

61 lines
1.2 KiB
C++
Raw Normal View History

#ifndef __PREFERENCES_HH_INCLUDED__
#define __PREFERENCES_HH_INCLUDED__
#include <QDialog>
#include "config.hh"
2014-06-24 13:55:06 +00:00
#include "helpwindow.hh"
#include "ui_preferences.h"
/// Preferences dialog -- allows changing various program options.
class Preferences: public QDialog
{
Q_OBJECT
int prevInterfaceLanguage;
2014-06-24 13:55:06 +00:00
Help::HelpWindow * helpWindow;
Config::Class & cfg;
QAction helpAction;
public:
2014-06-24 13:55:06 +00:00
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 );
2014-04-01 17:00:13 +00:00
void customProxyToggled( bool );
2014-06-24 13:55:06 +00:00
void helpRequested();
void closeHelp();
};
#endif