File indexing completed on 2024-05-12 16:36:46

0001 /* This file is part of the KDE project
0002  * Copyright (C) 2008 Fredy Yanardi <fyanardi@gmail.com>
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 KPRPRESENTERVIEWINTERFACE
0021 #define KPRPRESENTERVIEWINTERFACE
0022 
0023 #include "KPrPresenterViewBaseInterface.h"
0024 
0025 #include <QFrame>
0026 
0027 class QLabel;
0028 class QTextEdit;
0029 
0030 class KoPACanvas;
0031 class KoPAPageBase;
0032 
0033 /**
0034  * KPrPresenterViewInterface
0035  * This widget is the main interface, this widget shows current slide, next slide
0036  * and the presenter's notes
0037  */
0038 class KPrPresenterViewInterface : public KPrPresenterViewBaseInterface
0039 {
0040     Q_OBJECT
0041 public:
0042     KPrPresenterViewInterface( const QList<KoPAPageBase *> &pages, KoPACanvas *canvas, QWidget *parent = 0 );
0043 
0044     void setPreviewSize( const QSize &size );
0045 
0046 public Q_SLOTS:
0047     /// reimplemented
0048     void setActivePage( int pageIndex ) override;
0049 
0050 private:
0051     KoPACanvas *m_canvas;
0052     QLabel *m_currentSlideLabel;
0053     QLabel *m_nextSlideLabel;
0054     QLabel *m_nextSlidePreview;
0055     QTextEdit *m_notesTextEdit;
0056     QSize m_previewSize;
0057 };
0058 
0059 #endif
0060