1 | /* |
2 | * kdfconfig.h |
3 | * |
4 | * Copyright (c) 1999 Michael Kropfberger <michael.kropfberger@gmx.net> |
5 | * 2009 Dario Andres Rodriguez <andresbajotierra@gmail.com> |
6 | * |
7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by |
9 | * the Free Software Foundation; either version 2 of the License, or |
10 | * (at your option) any later version. |
11 | * |
12 | * This program is distributed in the hope that it will be useful, |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | * GNU General Public License for more details. |
16 | * |
17 | * You should have received a copy of the GNU General Public License |
18 | * along with this program; if not, write to the Free Software |
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
20 | */ |
21 | |
22 | #ifndef KDFCONFIG_H |
23 | #define KDFCONFIG_H |
24 | |
25 | #include "ui_kdfconfig.h" |
26 | #include "stdoption.h" |
27 | #include "kdfwidget.h" |
28 | |
29 | class QCloseEvent; |
30 | class QLabel; |
31 | class QCheckBox; |
32 | class QLCDNumber; |
33 | class QSlider; |
34 | class QPixmap; |
35 | class QTreeWidget; |
36 | class QTreeWidgetItem; |
37 | |
38 | class Column; |
39 | |
40 | class KLineEdit; |
41 | |
42 | class KDFConfigWidget : public QWidget, |
43 | private Ui_KDFConfigWidget |
44 | { |
45 | Q_OBJECT |
46 | |
47 | public: |
48 | explicit KDFConfigWidget( QWidget *parent=0, bool init=false); |
49 | ~KDFConfigWidget(); |
50 | |
51 | public slots: |
52 | void loadSettings( void ); |
53 | void applySettings( void ); |
54 | void defaultsBtnClicked( void ); |
55 | |
56 | protected slots: |
57 | void slotChanged(); |
58 | |
59 | private slots: |
60 | void toggleListText( QTreeWidgetItem *item, int column ); |
61 | |
62 | protected: |
63 | void closeEvent( QCloseEvent * ); |
64 | |
65 | private: |
66 | CStdOption mStd; |
67 | |
68 | QPixmap iconVisible; |
69 | QPixmap iconHidden; |
70 | |
71 | QList<Column> m_columnList; |
72 | |
73 | Q_SIGNALS: |
74 | void configChanged(); |
75 | }; |
76 | |
77 | #endif |
78 | |
79 | |