1 /***************************************************************************
2 * Copyright (C) 2006 by Albert Astals Cid <aacid@kde.org> *
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_
15 #include "core/observer.h"
22 * @short A widget to display page size.
24 class PageSizeLabel
: public QLabel
, public Okular::DocumentObserver
29 PageSizeLabel( QWidget
*parent
, Okular::Document
* document
);
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
);
40 Okular::Document
* m_document
;
42 QWidget
*m_antiWidget
;