File indexing completed on 2024-04-28 15:51:46
0001 /* 0002 SPDX-FileCopyrightText: 2006 Albert Astals Cid <aacid@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef _OKULAR_PAGESIZELABEL_H_ 0008 #define _OKULAR_PAGESIZELABEL_H_ 0009 0010 #include <KSqueezedTextLabel> 0011 0012 #include "core/observer.h" 0013 0014 namespace Okular 0015 { 0016 class Document; 0017 } 0018 0019 /** 0020 * @short A widget to display page size. 0021 */ 0022 class PageSizeLabel : public KSqueezedTextLabel, public Okular::DocumentObserver 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 PageSizeLabel(QWidget *parent, Okular::Document *document); 0028 ~PageSizeLabel() override; 0029 0030 // [INHERITED] from DocumentObserver 0031 void notifyCurrentPageChanged(int previous, int current) override; 0032 0033 private: 0034 Okular::Document *m_document; 0035 }; 0036 0037 #endif