1/* This file is part of the KDE project
2 Copyright (C) 2000, 2007 David Faure <faure@kde.org>
3 Copyright (C) 2003 Waldo Bastian <bastian@kde.org>
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License version 2 or at your option version 3 as published by
8 the Free Software Foundation.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; see the file COPYING. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20#ifndef FILEGROUPDETAILS_H
21#define FILEGROUPDETAILS_H
22
23#include <QWidget>
24class MimeTypeData;
25class QButtonGroup;
26
27/**
28 * This widget contains the details for a filetype group.
29 * Currently this only involves the embedding configuration.
30 */
31class FileGroupDetails : public QWidget
32{
33 Q_OBJECT
34public:
35 FileGroupDetails(QWidget *parent = 0);
36
37 void setMimeTypeData( MimeTypeData * mimeTypeData );
38
39Q_SIGNALS:
40 void changed(bool);
41
42protected Q_SLOTS:
43 void slotAutoEmbedClicked(int button);
44
45private:
46 MimeTypeData * m_mimeTypeData;
47
48 // Embedding config
49 QButtonGroup *m_autoEmbed;
50};
51
52#endif
53