68ae754d82c7688c7a11f9337336ba0b0b798822
[scorecard] / src / settings-dialog.h
1 /*
2  * Copyright (C) 2009 Sakari Poussa
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation, version 2.
7  */
8 #ifndef SETTINGS_DIALOG_H
9 #define SETTINGS_DIALOG_H
10
11 #include <QDialog>
12 #include <QList>
13 #include <QStandardItemModel>
14 #ifdef Q_WS_MAEMO_5
15 #include <QMaemo5ValueButton>
16 #endif
17
18 #include "data.h"
19 #include "score-common.h"
20
21 class SettingsDialog: public QDialog
22 {
23     Q_OBJECT
24
25 public:
26     SettingsDialog(QWidget *parent = 0);
27     void init(AppSettings &conf, QList<Club *> &list);
28     void results(AppSettings &conf);
29
30 private slots:
31     void okClicked();
32
33 private:
34     void createLayout(QWidget *parent);
35     QStandardItemModel *homeClubModel;
36     QStandardItemModel *hcpModel;
37     QStandardItemModel *defaultCoursesModel;
38
39     QList<Club *> clubList;
40 #ifdef Q_WS_MAEMO_5
41     QMaemo5ValueButton * hcpButton;
42     QMaemo5ValueButton * homeClubButton;
43     QMaemo5ValueButton * defaultCoursesButton;
44 #endif
45 };
46
47 #endif