File indexing completed on 2024-05-19 15:27:53
0001 /* This file is part of KGraphViewer. 0002 Copyright (C) 2005-2007 Gael de Chalendar <kleag@free.fr> 0003 0004 KGraphViewer is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU General Public 0006 License as published by the Free Software Foundation, version 2. 0007 0008 This program is distributed in the hope that it will be useful, 0009 but WITHOUT ANY WARRANTY; without even the implied warranty of 0010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0011 General Public License for more details. 0012 0013 You should have received a copy of the GNU General Public License 0014 along with this program; if not, write to the Free Software 0015 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 0016 02110-1301, USA 0017 */ 0018 0019 /* This file was part of the KDE project 0020 Copyright (C) 2005 Jarosław Staniek <staniek@kde.org> 0021 0022 This program is free software; you can redistribute it and/or 0023 modify it under the terms of the GNU Library General Public 0024 License as published by the Free Software Foundation; either 0025 version 2 of the License, or (at your option) any later version. 0026 */ 0027 0028 #ifndef KGVSIMPLEPRINTPREVIEWWINDOW_P_H 0029 #define KGVSIMPLEPRINTPREVIEWWINDOW_P_H 0030 0031 #include "simpleprintpreviewwindow.h" 0032 // Added by qt3to4: 0033 #include <QPaintEvent> 0034 #include <QResizeEvent> 0035 #include <QScrollArea> 0036 0037 namespace KGraphViewer 0038 { 0039 class KGVSimplePrintPreviewView : public QWidget 0040 { 0041 Q_OBJECT 0042 public: 0043 explicit KGVSimplePrintPreviewView(KGVSimplePrintPreviewWindow *window); 0044 0045 void paintEvent(QPaintEvent *pe) override; 0046 0047 protected: 0048 KGVSimplePrintPreviewWindow *m_window; 0049 }; 0050 0051 class KGVSimplePrintPreviewScrollView : public QScrollArea 0052 { 0053 Q_OBJECT 0054 0055 public: 0056 explicit KGVSimplePrintPreviewScrollView(KGVSimplePrintPreviewWindow *window); 0057 0058 KGVSimplePrintPreviewView *m_view; 0059 0060 public Q_SLOTS: 0061 void setFullWidth(); 0062 // void setContentsPos(int x, int y); 0063 0064 protected: 0065 void paintEvent(QPaintEvent *pe) override; 0066 0067 // virtual void resizeEvent( QResizeEvent *re ); 0068 KGVSimplePrintPreviewWindow *m_window; 0069 }; 0070 0071 } 0072 0073 #endif