b30767e590ede9f6c9c6ad910c4c887af2ee9fb1
[lichviet-widget] / settingsdlg.h
1 /*
2 Copyright (C) 2011  by Cuong Le <metacuong@gmail.com>
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, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program.  If not, see <http://www.gnu.org/licenses/>
16 */
17
18 #ifndef SETTINGSDLG_H
19 #define SETTINGSDLG_H
20
21 #include <QDialog>
22 #include <QTableWidget>
23 #include <QDialogButtonBox>
24 #include <QHBoxLayout>
25 #include <QVBoxLayout>
26 #include <QGridLayout>
27 #include <QListWidget>
28 #include <QListWidgetItem>
29
30 class SettingsDlg : public QDialog
31 {
32     Q_OBJECT
33 public:
34     explicit SettingsDlg(QWidget *parent = 0);
35
36 private:
37     QTabWidget *tabWidget;
38     QDialogButtonBox *buttonBox;
39     QGridLayout *mainLayout;
40
41 signals:
42
43 public slots:
44     void showSettingsDialog();
45
46 };
47
48 class GeneralTab : public QWidget
49 {
50     Q_OBJECT
51
52 private:
53     QVBoxLayout *mainLayout;
54
55 public:
56     GeneralTab(QWidget *parent = 0);
57 };
58
59 class ThemeTab : public QWidget
60 {
61     Q_OBJECT
62
63 private:
64     QVBoxLayout *mainLayout;
65     QListWidget *themes;
66
67
68 public:
69     ThemeTab(QWidget *parent = 0);
70 };
71
72
73 #endif // SETTINGSDLG_H