2009-02-05 20:55:00 +00:00
|
|
|
#ifndef __PREFERENCES_HH_INCLUDED__
|
|
|
|
#define __PREFERENCES_HH_INCLUDED__
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
#include "config.hh"
|
|
|
|
#include "ui_preferences.h"
|
|
|
|
|
|
|
|
/// Preferences dialog -- allows changing various program options.
|
|
|
|
class Preferences: public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
2009-04-12 20:46:25 +00:00
|
|
|
int prevInterfaceLanguage;
|
|
|
|
|
2009-02-05 20:55:00 +00:00
|
|
|
public:
|
|
|
|
|
|
|
|
Preferences( QWidget * parent, Config::Preferences const & );
|
|
|
|
|
|
|
|
Config::Preferences getPreferences();
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
Ui::Preferences ui;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void enableScanPopupToggled( bool );
|
|
|
|
void enableScanPopupModifiersToggled( bool );
|
|
|
|
|
|
|
|
void wholeAltClicked( bool );
|
|
|
|
void wholeCtrlClicked( bool );
|
|
|
|
void wholeShiftClicked( bool );
|
|
|
|
|
|
|
|
void sideAltClicked( bool );
|
|
|
|
void sideCtrlClicked( bool );
|
|
|
|
void sideShiftClicked( bool );
|
2009-04-12 20:46:25 +00:00
|
|
|
|
|
|
|
void on_buttonBox_accepted();
|
2009-02-05 20:55:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|