From 83d875d84fc70f4771214267954f0240c3500615 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sat, 4 Sep 2004 22:52:25 +0000 Subject: [PATCH] some include removing Update the nice design document Enrico produced svn path=/trunk/kdegraphics/kpdf/; revision=344031 --- DESIGN.kpdf | 8 +++++--- kpdf/kpdf_pagewidget.cc | 7 ++----- kpdf/kpdf_pagewidget.h | 7 +++---- kpdf/kpdf_part.h | 2 -- kpdf/kpdf_shell.cpp | 4 +--- kpdf/kpdf_shell.h | 2 -- kpdf/thumbnaillist.h | 2 -- 7 files changed, 11 insertions(+), 21 deletions(-) diff --git a/DESIGN.kpdf b/DESIGN.kpdf index c1d082861..9881f8c88 100644 --- a/DESIGN.kpdf +++ b/DESIGN.kpdf @@ -12,7 +12,7 @@ all virtuals from the interface and draws text/image into an inner pixmap. the rendering of a page is finished (and some other features such as collection of per-page text that permits to implement search). -- Kpdf's QOutputDevPixmap returns a pixmap containing a single redered page. +- Kpdf's QOutputDevPixmap returns a image containing a single redered page. *** Architecture: @@ -44,12 +44,14 @@ keys, scrolling and scrollbars as well. This widget is a qscrollview. Architecture::Part:CentralWidget:ThumbnailList (kpdf_pagewidget.cc/.h) -Note: This may change. This widget is a vertical single column table where cells are thumbnails. This supports thumbnail scaling and emits a signal when a page is selected between -the list of thumbnails. +the list of thumbnails. That widget also generates the thumbnails of the +document using the ThumbnailCreator class. *** Last Revisions to this document: +2004-10-04 : 0.2 - Albert Astals Cid + - ThumbnailList creates the thumbnails itself 2004-10-04 : 0.1 - Enrico Ros - just read the code and created this file diff --git a/kpdf/kpdf_pagewidget.cc b/kpdf/kpdf_pagewidget.cc index 5b5758f1f..32cbda8fa 100644 --- a/kpdf/kpdf_pagewidget.cc +++ b/kpdf/kpdf_pagewidget.cc @@ -13,21 +13,18 @@ * (at your option) any later version. * ***************************************************************************/ -#include "QOutputDevPixmap.h" - -#include #include #include #include -#include -#include #include +#include #include "PDFDoc.h" #include "kpdf_pagewidget.h" #include "kpdf_pagewidget.moc" +#include "QOutputDevPixmap.h" namespace KPDF { diff --git a/kpdf/kpdf_pagewidget.h b/kpdf/kpdf_pagewidget.h index 32fa2daff..b6dc4eac9 100644 --- a/kpdf/kpdf_pagewidget.h +++ b/kpdf/kpdf_pagewidget.h @@ -15,15 +15,14 @@ #ifndef _KPDF_PAGEWIDGET_H_ #define _KPDF_PAGEWIDGET_H_ -#include -#include #include -#include - #include "CharTypes.h" +class KURL; + class QMutex; +class QWidget; class LinkAction; class PDFDoc; diff --git a/kpdf/kpdf_part.h b/kpdf/kpdf_part.h index a7ae9985f..7bb084685 100644 --- a/kpdf/kpdf_part.h +++ b/kpdf/kpdf_part.h @@ -22,8 +22,6 @@ #include #include -#include "QOutputDev.h" - class QWidget; class KAboutData; diff --git a/kpdf/kpdf_shell.cpp b/kpdf/kpdf_shell.cpp index 8918c16fb..7b2c18ce7 100644 --- a/kpdf/kpdf_shell.cpp +++ b/kpdf/kpdf_shell.cpp @@ -24,17 +24,15 @@ #include "kpdf_pagewidget.h" #include +#include #include -#include #include -#include #include #include #include #include #include #include -#include #include #include #include diff --git a/kpdf/kpdf_shell.h b/kpdf/kpdf_shell.h index 85df012c8..b764475e8 100644 --- a/kpdf/kpdf_shell.h +++ b/kpdf/kpdf_shell.h @@ -20,10 +20,8 @@ #include #endif -#include #include class KPopupMenu; -class KAction; namespace KPDF { diff --git a/kpdf/thumbnaillist.h b/kpdf/thumbnaillist.h index 2b2893e10..53aab2fe9 100644 --- a/kpdf/thumbnaillist.h +++ b/kpdf/thumbnaillist.h @@ -13,8 +13,6 @@ #include -#include "GString.h" - class QImage; class PDFDoc;