Minor fix for another change in Google's movie pages and a fix in
[movie-schedule] / src / ui / optionsdialog.h
1 #ifndef OPTIONSDIALOG_H
2 #define OPTIONSDIALOG_H
3
4 #include "data/settings.h"
5
6 #include <QDialog>
7
8 class QStandardItemModel;
9 class QMaemo5ListPickSelector;
10
11 namespace Ui {
12     class OptionsDialog;
13 }
14
15 class OptionsDialog : public QDialog
16 {
17     Q_OBJECT
18
19 public:
20     explicit OptionsDialog(QWidget *parent = 0);
21     ~OptionsDialog();
22
23     void SetSettings(const Settings &settings);
24     Settings GetSettings();
25
26 public:
27     Q_SIGNAL void Accept(const Settings &);
28     Q_SIGNAL void Cancel(const Settings &);
29
30 private:
31     Q_SLOT void Accept();
32     Q_SLOT void Cancel();
33     Q_SLOT void Rotate();
34
35 private:
36     Ui::OptionsDialog *ui;
37     QStandardItemModel *_rotation_model;
38     QMaemo5ListPickSelector *_rotation_selector;
39     Settings _settings;
40 };
41
42 #endif // OPTIONSDIALOG_H