Warning, file /office/calligra/libs/kundo2/kundo2view.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* This file is part of the KDE project 0002 * Copyright (C) 2010 Matus Talcik <matus.talcik@gmail.com> 0003 * 0004 * This library is free software; you can redistribute it and/or 0005 * modify it under the terms of the GNU Library General Public 0006 * License as published by the Free Software Foundation; either 0007 * version 2 of the License, or (at your option) any later version. 0008 * 0009 * This library is distributed in the hope that it will be useful, 0010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0012 * Library General Public License for more details. 0013 * 0014 * You should have received a copy of the GNU Library General Public License 0015 * along with this library; see the file COPYING.LIB. If not, write to 0016 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0017 * Boston, MA 02110-1301, USA. 0018 */ 0019 /**************************************************************************** 0020 ** 0021 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 0022 ** All rights reserved. 0023 ** Contact: Nokia Corporation (qt-info@nokia.com) 0024 ** 0025 ** This file is part of the QtGui module of the Qt Toolkit. 0026 ** 0027 ** $QT_BEGIN_LICENSE:LGPL$ 0028 ** No Commercial Usage 0029 ** This file contains pre-release code and may not be distributed. 0030 ** You may use this file in accordance with the terms and conditions 0031 ** contained in the Technology Preview License Agreement accompanying 0032 ** this package. 0033 ** 0034 ** GNU Lesser General Public License Usage 0035 ** Alternatively, this file may be used under the terms of the GNU Lesser 0036 ** General Public License version 2.1 as published by the Free Software 0037 ** Foundation and appearing in the file LICENSE.LGPL included in the 0038 ** packaging of this file. Please review the following information to 0039 ** ensure the GNU Lesser General Public License version 2.1 requirements 0040 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 0041 ** 0042 ** In addition, as a special exception, Nokia gives you certain additional 0043 ** rights. These rights are described in the Nokia Qt LGPL Exception 0044 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 0045 ** 0046 ** If you have questions regarding the use of this file, please contact 0047 ** Nokia at qt-info@nokia.com. 0048 ** 0049 ** 0050 ** 0051 ** 0052 ** 0053 ** 0054 ** 0055 ** 0056 ** $QT_END_LICENSE$ 0057 ** 0058 ****************************************************************************/ 0059 #ifndef KUNDO2VIEW_H 0060 #define KUNDO2VIEW_H 0061 0062 #include <QListView> 0063 #include <QString> 0064 0065 #include "kundo2_export.h" 0066 0067 #ifndef QT_NO_UNDOVIEW 0068 0069 class KUndo2ViewPrivate; 0070 class KUndo2QStack; 0071 class KUndo2Group; 0072 class QIcon; 0073 0074 class KUNDO2_EXPORT KUndo2View : public QListView 0075 { 0076 Q_OBJECT 0077 Q_PROPERTY(QString emptyLabel READ emptyLabel WRITE setEmptyLabel) 0078 Q_PROPERTY(QIcon cleanIcon READ cleanIcon WRITE setCleanIcon) 0079 0080 public: 0081 explicit KUndo2View(QWidget *parent = 0); 0082 explicit KUndo2View(KUndo2QStack *stack, QWidget *parent = 0); 0083 #ifndef QT_NO_UNDOGROUP 0084 explicit KUndo2View(KUndo2Group *group, QWidget *parent = 0); 0085 #endif 0086 ~KUndo2View() override; 0087 0088 KUndo2QStack *stack() const; 0089 #ifndef QT_NO_UNDOGROUP 0090 KUndo2Group *group() const; 0091 #endif 0092 0093 void setEmptyLabel(const QString &label); 0094 QString emptyLabel() const; 0095 0096 void setCleanIcon(const QIcon &icon); 0097 QIcon cleanIcon() const; 0098 0099 public Q_SLOTS: 0100 void setStack(KUndo2QStack *stack); 0101 #ifndef QT_NO_UNDOGROUP 0102 void setGroup(KUndo2Group *group); 0103 #endif 0104 0105 private: 0106 KUndo2ViewPrivate* const d; 0107 Q_DISABLE_COPY(KUndo2View) 0108 }; 0109 0110 #endif // QT_NO_UNDOVIEW 0111 #endif // KUNDO2VIEW_H