From c25efeb7c4af380809edf209792fc1dcf3d978c6 Mon Sep 17 00:00:00 2001 From: Enrico Ros Date: Sun, 2 Jan 2005 14:29:37 +0000 Subject: [PATCH] Copying kpdf_experiments into branch and reordering directories. Look there for the file naming map and file versioning. Please wait until the commit storm ends to report any bug. Albert and Enrico Includes change. svn path=/trunk/kdegraphics/kpdf/; revision=374922 --- main.cpp | 2 +- part.cpp | 26 +++++++++++++------------- part.h | 4 ++-- shell.cpp | 12 ++++++------ ui/pageview.cpp | 6 +++--- ui/pageview.h | 2 +- 6 files changed, 26 insertions(+), 26 deletions(-) diff --git a/main.cpp b/main.cpp index e1f0714bb..835893027 100644 --- a/main.cpp +++ b/main.cpp @@ -12,7 +12,7 @@ * (at your option) any later version. * ***************************************************************************/ -#include "kpdf_shell.h" +#include "shell.h" #include #include #include diff --git a/part.cpp b/part.cpp index 18ada4169..07b6508f9 100644 --- a/part.cpp +++ b/part.cpp @@ -50,17 +50,17 @@ #include "xpdf/GlobalParams.h" -#include "kpdf_part.h" -#include "pageview.h" -#include "thumbnaillist.h" -#include "searchwidget.h" -#include "document.h" -#include "page.h" -#include "toc.h" -#include "preferencesdialog.h" -#include "propertiesdialog.h" -#include "presentationwidget.h" -#include "settings.h" +#include "part.h" +#include "ui/pageview.h" +#include "ui/thumbnaillist.h" +#include "ui/searchwidget.h" +#include "ui/toc.h" +#include "ui/propertiesdialog.h" +#include "ui/presentationwidget.h" +#include "conf/preferencesdialog.h" +#include "conf/settings.h" +#include "core/document.h" +#include "core/page.h" typedef KParts::GenericFactory KPDFPartFactory; K_EXPORT_COMPONENT_FACTORY(libkpdfpart, KPDFPartFactory) @@ -203,7 +203,7 @@ Part::Part(QWidget *parentWidget, const char *widgetName, connect( m_dirtyHandler, SIGNAL( timeout() ),this, SLOT( slotDoFileDirty() ) ); // set our XML-UI resource file - setXMLFile("kpdf_part.rc"); + setXMLFile("part.rc"); updateActions(); slotWatchFile(); } @@ -688,4 +688,4 @@ void BrowserExtension::print() static_cast(parent())->slotPrint(); } -#include "kpdf_part.moc" +#include "part.moc" diff --git a/part.h b/part.h index 846d9b25f..91bc61db4 100644 --- a/part.h +++ b/part.h @@ -19,8 +19,8 @@ #include #include -#include "kpdf_dcop.h" -#include "document.h" +#include "dcop.h" +#include "core/document.h" class QWidget; class QSplitter; diff --git a/shell.cpp b/shell.cpp index 5d0f07f6f..6536114c4 100644 --- a/shell.cpp +++ b/shell.cpp @@ -17,9 +17,8 @@ * (at your option) any later version. * ***************************************************************************/ -#include "kpdf_shell.h" -#include "kpdf_shell.moc" - +// qt/kde includes +#include #include #include #include @@ -36,7 +35,8 @@ #include #include -#include +// local includes +#include "shell.h" using namespace KPDF; @@ -44,7 +44,7 @@ Shell::Shell() : KParts::MainWindow(0, "KPDF::Shell"), m_menuBarWasShown(true), m_toolBarWasShown(true) { // set the shell's ui resource file - setXMLFile("kpdf_shell.rc"); + setXMLFile("shell.rc"); // this routine will find and load our Part. it finds the Part by // name which is a bad idea usually.. but it's alright in this @@ -259,4 +259,4 @@ void Shell::slotUpdateFullScreen() } } -// vim:ts=2:sw=2:tw=78:et +#include "shell.moc" diff --git a/ui/pageview.cpp b/ui/pageview.cpp index e56eeba21..bfc6110d5 100644 --- a/ui/pageview.cpp +++ b/ui/pageview.cpp @@ -2,7 +2,7 @@ * Copyright (C) 2004 by Enrico Ros * * Copyright (C) 2004 by Albert Astals Cid * * * - * With portions of code from kpdf_pagewidget.cc by: * + * With portions of code from kpdf/kpdf_pagewidget.cc by: * * Copyright (C) 2002 by Wilco Greven * * Copyright (C) 2003 by Christophe Devriese * * * @@ -128,8 +128,8 @@ PageView::PageView( QWidget *parent, KPDFDocument *document ) // conntect the padding of the viewport to pixmaps requests connect( this, SIGNAL(contentsMoving(int, int)), this, SLOT(slotRequestVisiblePixmaps(int, int)) ); - // ### [RELEASE: REMOVE] show initial warning for dev_version > 2004-Dec-04 - d->messageWindow->display( "kpdf_experiments is taking its way to HEAD! ;-)", PageViewMessage::Warning, 8000 ); + // show initial welcome text + d->messageWindow->display( i18n( "Welcome" ), PageViewMessage::Info, 2000 ); // set a corner button to resize the view to the page size // QPushButton * resizeButton = new QPushButton( viewport() ); diff --git a/ui/pageview.h b/ui/pageview.h index 5440137aa..7c25ea990 100644 --- a/ui/pageview.h +++ b/ui/pageview.h @@ -2,7 +2,7 @@ * Copyright (C) 2004 by Enrico Ros * * Copyright (C) 2004 by Albert Astals Cid * * * - * With portions of code from kpdf_pagewidget.h by: * + * With portions of code from kpdf/kpdf_pagewidget.h by: * * Copyright (C) 2002 by Wilco Greven * * Copyright (C) 2003 by Christophe Devriese * * *