Warning, file /utilities/okteta/kasten/controllers/document/info/documentinfoview.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002     This file is part of the Okteta Kasten module, made within the KDE community.
0003 
0004     SPDX-FileCopyrightText: 2008 Friedrich W. H. Kossebau <kossebau@kde.org>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0007 */
0008 
0009 #ifndef KASTEN_DOCUMENTINFOVIEW_HPP
0010 #define KASTEN_DOCUMENTINFOVIEW_HPP
0011 
0012 // Qt
0013 #include <QWidget>
0014 
0015 class KSqueezedTextLabel;
0016 class QString;
0017 class QMimeType;
0018 class QLabel;
0019 
0020 namespace Kasten {
0021 
0022 class DocumentInfoTool;
0023 
0024 class DocumentInfoView : public QWidget
0025 {
0026     Q_OBJECT
0027 
0028 public:
0029     explicit DocumentInfoView(DocumentInfoTool* tool, QWidget* parent = nullptr);
0030     ~DocumentInfoView() override;
0031 
0032 public:
0033     DocumentInfoTool* tool() const;
0034 
0035 private Q_SLOTS:
0036     void onDocumentTitleChanged(const QString& documentTitle);
0037     void onMimeTypeChanged(const QMimeType& mimeType);
0038     void onLocationChanged(const QString& location);
0039     void onDocumentSizeChanged(int newSize);
0040 
0041 private:
0042     DocumentInfoTool* mTool;
0043 
0044     QLabel* mIconLabel;
0045     QLabel* mDocumentTitleLabel;
0046     QLabel* mMimeTypeLabel;
0047     KSqueezedTextLabel* mLocationLabel;
0048     QLabel* mSizeLabel;
0049 };
0050 
0051 inline DocumentInfoTool* DocumentInfoView::tool() const { return mTool; }
0052 
0053 }
0054 
0055 #endif