Warning, file /office/calligra/libs/main/KoRecentDocumentsPane.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) 2005-2006 Peter Simonsson <psn@linux.se> 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 #ifndef KORECENTDOCUMENTSPANE_H 0021 #define KORECENTDOCUMENTSPANE_H 0022 0023 #include "KoDetailsPane.h" 0024 0025 class KFileItem; 0026 class QPixmap; 0027 class KJob; 0028 0029 class KoRecentDocumentsPanePrivate; 0030 0031 /** 0032 * This widget is the recent doc part of the template opening widget. 0033 * The parent widget is initial widget in the document space of each Calligra component. 0034 * This widget shows a list of recent documents and can show their details or open it. 0035 */ 0036 class KoRecentDocumentsPane : public KoDetailsPane 0037 { 0038 Q_OBJECT 0039 public: 0040 /** 0041 * Constructor. 0042 * @param parent the parent widget 0043 * @param header string used as header text in the listview 0044 */ 0045 KoRecentDocumentsPane(QWidget* parent, const QString& header); 0046 ~KoRecentDocumentsPane() override; 0047 0048 protected Q_SLOTS: 0049 void selectionChanged(const QModelIndex& index) override; 0050 void openFile() override; 0051 void openFile(const QModelIndex& index) override; 0052 0053 void previewResult(KJob* job); 0054 void updatePreview(const KFileItem& fileItem, const QPixmap& preview); 0055 void updateIcon(const KFileItem& fileItem, const QPixmap& pixmap); 0056 0057 private: 0058 KoRecentDocumentsPanePrivate * const d; 0059 }; 0060 0061 #endif