barrier/gui/src/SettingsDialog.h

35 lines
798 B
C
Raw Normal View History

2009-10-26 07:57:53 +00:00
#if !defined(SETTINGSDIALOG_H)
#define SETTINGSDIALOG_H
#include <QDialog>
#include "ui_SettingsDialogBase.h"
class AppConfig;
class SettingsDialog : public QDialog, public Ui::SettingsDialogBase
{
Q_OBJECT
public:
SettingsDialog(QWidget* parent, AppConfig& config);
public:
static QString browseForSynergyc(QWidget* parent, const QString& programDir, const QString& synergycName);
static QString browseForSynergys(QWidget* parent, const QString& programDir, const QString& synergysName);
protected slots:
bool on_m_pButtonBrowseSynergys_clicked();
bool on_m_pButtonBrowseSynergyc_clicked();
2010-06-11 21:36:11 +00:00
void on_m_pCheckBoxAutoDetectPaths_stateChanged(int i);
2009-10-26 07:57:53 +00:00
protected:
void accept();
AppConfig& appConfig() { return m_AppConfig; }
private:
AppConfig& m_AppConfig;
};
#endif