1 | /* This file is part of the KDE project |
2 | Copyright 2000 Kurt Granroth <granroth@kde.org> |
3 | |
4 | This program is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU General Public |
6 | License version 2 or at your option version 3 as published by |
7 | the Free Software Foundation. |
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 GNU |
12 | 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; see the file COPYING. If not, write to |
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 | Boston, MA 02110-1301, USA. |
18 | */ |
19 | |
20 | #ifndef _NEWTYPEDLG_H |
21 | #define _NEWTYPEDLG_H |
22 | |
23 | #include <kdialog.h> |
24 | |
25 | class QStringList; |
26 | class KLineEdit; |
27 | class QComboBox; |
28 | |
29 | /** |
30 | * A dialog for creating a new file type, with |
31 | * - a combobox for choosing the group |
32 | * - a line-edit for entering the name of the file type |
33 | * The rest (description, patterns, icon, apps) can be set later in the filetypesview anyway. |
34 | */ |
35 | class NewTypeDialog : public KDialog |
36 | { |
37 | public: |
38 | explicit NewTypeDialog(const QStringList &groups, QWidget *parent); |
39 | QString group() const; |
40 | QString text() const; |
41 | private: |
42 | KLineEdit *m_typeEd; |
43 | QComboBox *m_groupCombo; |
44 | }; |
45 | |
46 | #endif |
47 | |