2 This file is part of the KDE libraries
3 Copyright (C) 2005 Daniel Molkentin <molkentin@kde.org>
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License version 2 as published by the Free Software Foundation.
9 This library 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 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #ifndef COLLAPSIBLEWIDGET_H
21 #define COLLAPSIBLEWIDGET_H
23 #include <QScrollArea>
30 @short A widget that has a caption and a collapsible widget
31 @author Daniel Molkentin <molkentin@kde.org>
33 class Q_GUI_EXPORT CollapsibleWidget
: public QWidget
37 CollapsibleWidget( QWidget
*parent
= 0 );
40 bool isExpanded() const;
42 QWidget
* innerWidget() const;
43 void setInnerWidget( QWidget
*w
);
46 void setExpanded(bool collapsed
);
49 void expandCompleted();
50 void collapseCompleted();
56 void animateCollapse(qreal
);
57 void signalCompletion();
60 Q_DISABLE_COPY( CollapsibleWidget
)
67 @short A scrollable container that contains groups of settings,
68 usually in the form of CollapsibleWidgets.
69 @author Daniel Molkentin <molkentin@kde.org>
71 class Q_GUI_EXPORT SettingsContainer
: public QScrollArea
73 Q_ENUMS( CollapseState
)
76 enum CollapseState
{ Collapsed
, Uncollapsed
};
77 SettingsContainer( QWidget
*parent
= 0 );
80 CollapsibleWidget
* insertWidget( QWidget
* w
, const QString
& name
);
83 Q_DISABLE_COPY( SettingsContainer
)
90 #endif // COLLAPSIBLEWIDGET_H