File indexing completed on 2024-05-12 16:28:28
0001 /* This file is part of the KDE project 0002 Copyright (C) 2010 KO GmbH <jos.van.den.oever@kogmbh.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 #ifndef COMBINEDVIEW_H 0020 #define COMBINEDVIEW_H 0021 0022 #include <QWidget> 0023 0024 class SlideView; 0025 class DirSlideLoader; 0026 class KPresenterSlideLoader; 0027 class OoThread; 0028 class QGridLayout; 0029 0030 class CombinedView : public QWidget { 0031 private: 0032 Q_OBJECT 0033 QList<SlideView*> slideViews; 0034 DirSlideLoader * const ooodploader; 0035 KPresenterSlideLoader * const koodploader; 0036 DirSlideLoader * const oopptloader; 0037 KPresenterSlideLoader * const kopptloader; 0038 SlideView * const ooodpview; 0039 SlideView * const koodpview; 0040 SlideView * const oopptview; 0041 SlideView * const kopptview; 0042 OoThread * const oothread; 0043 QGridLayout * const layout; 0044 QString ooodpresult; 0045 QString nextodpfile; 0046 0047 void dragEnterEvent(QDragEnterEvent *event); 0048 void dropEvent(QDropEvent *event); 0049 void addSlideView(SlideView* slideview); 0050 private Q_SLOTS: 0051 void slotSetView(qreal zoomFactor, int h, int v); 0052 void slotHandleOoOdp(const QString& path); 0053 void slotHandleOoPng(const QString& path); 0054 public: 0055 explicit CombinedView(QWidget* parent=0); 0056 ~CombinedView(); 0057 void openFile(const QString& path); 0058 }; 0059 0060 #endif