SVN_SILENT made messages (.desktop file)
[kdegraphics.git] / okular / ui / pagesizelabel.h
blobea508b87cfb5e307358cd2e67e1f152755bc2443
1 /***************************************************************************
2 * Copyright (C) 2006 by Albert Astals Cid <aacid@kde.org> *
3 * *
4 * This program is free software; you can redistribute it and/or modify *
5 * it under the terms of the GNU General Public License as published by *
6 * the Free Software Foundation; either version 2 of the License, or *
7 * (at your option) any later version. *
8 ***************************************************************************/
10 #ifndef _OKULAR_PAGESIZELABEL_H_
11 #define _OKULAR_PAGESIZELABEL_H_
13 #include <qlabel.h>
15 #include "core/observer.h"
17 namespace Okular {
18 class Document;
21 /**
22 * @short A widget to display page size.
24 class PageSizeLabel : public QLabel, public Okular::DocumentObserver
26 Q_OBJECT
28 public:
29 PageSizeLabel( QWidget *parent, Okular::Document * document );
30 ~PageSizeLabel();
32 QWidget *antiWidget();
34 // [INHERITED] from DocumentObserver
35 uint observerId() const { return PAGESIZELABEL_ID; }
36 void notifySetup( const QVector< Okular::Page * > & pages, int setupFlags );
37 void notifyViewportChanged( bool smoothMove );
39 private:
40 Okular::Document * m_document;
41 int m_currentPage;
42 QWidget *m_antiWidget;
45 #endif