QSapecNG
 All Classes Functions Enumerations Properties
qtbuttonpropertybrowser.h
00001 /****************************************************************************
00002 **
00003 ** This file is part of a Qt Solutions component.
00004 ** 
00005 ** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
00006 ** 
00007 ** Contact:  Qt Software Information (qt-info@nokia.com)
00008 ** 
00009 ** Commercial Usage  
00010 ** Licensees holding valid Qt Commercial licenses may use this file in
00011 ** accordance with the Qt Solutions Commercial License Agreement provided
00012 ** with the Software or, alternatively, in accordance with the terms
00013 ** contained in a written agreement between you and Nokia.
00014 ** 
00015 ** GNU Lesser General Public License Usage
00016 ** Alternatively, this file may be used under the terms of the GNU Lesser
00017 ** General Public License version 2.1 as published by the Free Software
00018 ** Foundation and appearing in the file LICENSE.LGPL included in the
00019 ** packaging of this file.  Please review the following information to
00020 ** ensure the GNU Lesser General Public License version 2.1 requirements
00021 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
00022 ** 
00023 ** In addition, as a special exception, Nokia gives you certain
00024 ** additional rights. These rights are described in the Nokia Qt LGPL
00025 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
00026 ** package.
00027 ** 
00028 ** GNU General Public License Usage 
00029 ** Alternatively, this file may be used under the terms of the GNU
00030 ** General Public License version 3.0 as published by the Free Software
00031 ** Foundation and appearing in the file LICENSE.GPL included in the
00032 ** packaging of this file.  Please review the following information to
00033 ** ensure the GNU General Public License version 3.0 requirements will be
00034 ** met: http://www.gnu.org/copyleft/gpl.html.
00035 ** 
00036 ** Please note Third Party Software included with Qt Solutions may impose
00037 ** additional restrictions and it is the user's responsibility to ensure
00038 ** that they have met the licensing requirements of the GPL, LGPL, or Qt
00039 ** Solutions Commercial license and the relevant license of the Third
00040 ** Party Software they are using.
00041 ** 
00042 ** If you are unsure which license is appropriate for your use, please
00043 ** contact the sales department at qt-sales@nokia.com.
00044 ** 
00045 ****************************************************************************/
00046 
00047 /****************************************************************************
00048 **
00049 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
00050 ** Contact: Qt Software Information (qt-info@nokia.com)
00051 **
00052 ** This file is part of the tools applications of the Qt Toolkit.
00053 **
00054 ** $QT_BEGIN_LICENSE:LGPL$
00055 ** No Commercial Usage
00056 ** This file contains pre-release code and may not be distributed.
00057 ** You may use this file in accordance with the terms and conditions
00058 ** contained in the either Technology Preview License Agreement or the
00059 ** Beta Release License Agreement.
00060 **
00061 ** GNU Lesser General Public License Usage
00062 ** Alternatively, this file may be used under the terms of the GNU Lesser
00063 ** General Public License version 2.1 as published by the Free Software
00064 ** Foundation and appearing in the file LICENSE.LGPL included in the
00065 ** packaging of this file.  Please review the following information to
00066 ** ensure the GNU Lesser General Public License version 2.1 requirements
00067 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
00068 **
00069 ** In addition, as a special exception, Nokia gives you certain
00070 ** additional rights. These rights are described in the Nokia Qt LGPL
00071 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
00072 ** package.
00073 **
00074 ** GNU General Public License Usage
00075 ** Alternatively, this file may be used under the terms of the GNU
00076 ** General Public License version 3.0 as published by the Free Software
00077 ** Foundation and appearing in the file LICENSE.GPL included in the
00078 ** packaging of this file.  Please review the following information to
00079 ** ensure the GNU General Public License version 3.0 requirements will be
00080 ** met: http://www.gnu.org/copyleft/gpl.html.
00081 **
00082 ** If you are unsure which license is appropriate for your use, please
00083 ** contact the sales department at qt-sales@nokia.com.
00084 ** $QT_END_LICENSE$
00085 **
00086 ****************************************************************************/
00087 
00088 #ifndef QTBUTTONPROPERTYBROWSER_H
00089 #define QTBUTTONPROPERTYBROWSER_H
00090 
00091 #include "qtpropertybrowser.h"
00092 
00093 #if QT_VERSION >= 0x040400
00094 QT_BEGIN_NAMESPACE
00095 #endif
00096 
00097 class QtButtonPropertyBrowserPrivate;
00098 
00099 class QT_QTPROPERTYBROWSER_EXPORT QtButtonPropertyBrowser : public QtAbstractPropertyBrowser
00100 {
00101     Q_OBJECT
00102 public:
00103 
00104     QtButtonPropertyBrowser(QWidget *parent = 0);
00105     ~QtButtonPropertyBrowser();
00106 
00107     void setExpanded(QtBrowserItem *item, bool expanded);
00108     bool isExpanded(QtBrowserItem *item) const;
00109 
00110 Q_SIGNALS:
00111 
00112     void collapsed(QtBrowserItem *item);
00113     void expanded(QtBrowserItem *item);
00114 
00115 protected:
00116     virtual void itemInserted(QtBrowserItem *item, QtBrowserItem *afterItem);
00117     virtual void itemRemoved(QtBrowserItem *item);
00118     virtual void itemChanged(QtBrowserItem *item);
00119 
00120 private:
00121 
00122     QtButtonPropertyBrowserPrivate *d_ptr;
00123     Q_DECLARE_PRIVATE(QtButtonPropertyBrowser)
00124     Q_DISABLE_COPY(QtButtonPropertyBrowser)
00125     Q_PRIVATE_SLOT(d_func(), void slotUpdate())
00126     Q_PRIVATE_SLOT(d_func(), void slotEditorDestroyed())
00127     Q_PRIVATE_SLOT(d_func(), void slotToggled(bool))
00128 
00129 };
00130 
00131 #if QT_VERSION >= 0x040400
00132 QT_END_NAMESPACE
00133 #endif
00134 
00135 #endif
 All Classes Functions Enumerations Properties