OSCAR-code/preferencesdialog.h

52 lines
1.1 KiB
C
Raw Normal View History

/*
SleepyHead Preferences Dialog GUI Headers
Copyright (c)2011 Mark Watkins <jedimark@users.sourceforge.net>
License: GPL
*/
2011-08-02 22:37:15 +00:00
#ifndef PREFERENCESDIALOG_H
#define PREFERENCESDIALOG_H
#include <QDialog>
2011-08-03 03:09:57 +00:00
#include <QModelIndex>
#include <QStringListModel>
#include "SleepLib/profiles.h"
2011-08-02 22:37:15 +00:00
namespace Ui {
class PreferencesDialog;
}
class PreferencesDialog : public QDialog
{
Q_OBJECT
public:
explicit PreferencesDialog(QWidget *parent, Profile * _profile);
2011-08-02 22:37:15 +00:00
~PreferencesDialog();
void Save();
void RefreshLastChecked();
2011-08-03 03:09:57 +00:00
private slots:
2011-08-05 07:52:32 +00:00
void on_eventTable_doubleClicked(const QModelIndex &index);
void on_combineSlider_valueChanged(int value);
2011-08-03 03:09:57 +00:00
void on_IgnoreSlider_valueChanged(int value);
2011-08-03 03:09:57 +00:00
void on_useGraphSnapshots_toggled(bool checked);
void on_checkForUpdatesButton_clicked();
void on_addImportLocation_clicked();
void on_removeImportLocation_clicked();
2011-08-02 22:37:15 +00:00
private:
Ui::PreferencesDialog *ui;
Profile * profile;
QHash<int,QColor> m_new_colors;
QStringList importLocations;
QStringListModel *importModel;
2011-08-02 22:37:15 +00:00
};
#endif // PREFERENCESDIALOG_H