File indexing completed on 2024-04-28 05:27:04

0001 /* This file is part of the KDE project
0002    SPDX-FileCopyrightText: 2000 Kurt Granroth <granroth@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
0005 */
0006 
0007 #ifndef _NEWTYPEDLG_H
0008 #define _NEWTYPEDLG_H
0009 
0010 #include <QDialog>
0011 
0012 class QDialogButtonBox;
0013 class KLineEdit;
0014 class QComboBox;
0015 
0016 /**
0017  * A dialog for creating a new file type, with
0018  * - a combobox for choosing the group
0019  * - a line-edit for entering the name of the file type
0020  * The rest (description, patterns, icon, apps) can be set later in the filetypesview anyway.
0021  */
0022 class NewTypeDialog : public QDialog
0023 {
0024 public:
0025     explicit NewTypeDialog(const QStringList &groups, QWidget *parent);
0026     QString group() const;
0027     QString text() const;
0028 
0029 private:
0030     KLineEdit *m_typeEd;
0031     QComboBox *m_groupCombo;
0032     QDialogButtonBox *m_buttonBox;
0033 };
0034 
0035 #endif