[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdegraphics/kdvi
From: Stefan Kebekus <stefan.kebekus () uni-bayreuth ! de>
Date: 2005-03-08 9:07:53
Message-ID: 20050308090753.875E0103CB () office ! kde ! org
[Download RAW message or body]
CVS commit by kebekus:
API cleanup for opening files
M +1 -15 kdvi_multipage.cpp 1.171
M +2 -3 kdvi_multipage.h 1.62
--- kdegraphics/kdvi/kdvi_multipage.cpp #1.170:1.171
@@ -193,22 +193,8 @@ KDVIMultiPage::~KDVIMultiPage()
-bool KDVIMultiPage::openFile()
+void KDVIMultiPage::setFile(bool r)
{
- document_history.clear();
- emit setStatusBarText(i18n("Loading file %1").arg(m_file));
-
- bool r = DVIRenderer.setFile(m_file);
setEmbedPostScriptAction();
- if (!r)
- emit setStatusBarText(QString::null);
-
- generateDocumentWidgets();
- emit numberOfPages(DVIRenderer.totalPages());
enableActions(r);
-
- QString reference = url().ref();
- if (!reference.isEmpty())
- gotoPage(DVIRenderer.parseReference(reference));
- return r;
}
--- kdegraphics/kdvi/kdvi_multipage.h #1.61:1.62
@@ -23,6 +23,5 @@ public:
virtual QStringList fileFormats();
- /// opens a file
- virtual bool openFile();
+ virtual void setFile(bool r);
virtual bool print(const QStringList &pages, int current);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic