summaryrefslogtreecommitdiffstats
path: root/kviewshell/plugins
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kviewshell/plugins
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kviewshell/plugins')
-rw-r--r--kviewshell/plugins/djvu/djvumultipage.cpp48
-rw-r--r--kviewshell/plugins/djvu/djvumultipage.h8
-rw-r--r--kviewshell/plugins/djvu/djvurenderer.cpp76
-rw-r--r--kviewshell/plugins/djvu/djvurenderer.h14
-rw-r--r--kviewshell/plugins/djvu/kprintDialogPage_DJVUconversionoptions.cpp24
-rw-r--r--kviewshell/plugins/djvu/kprintDialogPage_DJVUconversionoptions.h10
-rw-r--r--kviewshell/plugins/djvu/kprintDialogPage_DJVUpageoptions.cpp36
-rw-r--r--kviewshell/plugins/djvu/kprintDialogPage_DJVUpageoptions.h18
-rw-r--r--kviewshell/plugins/djvu/pageRangeWidget.cpp6
-rw-r--r--kviewshell/plugins/djvu/pageRangeWidget.h2
10 files changed, 121 insertions, 121 deletions
diff --git a/kviewshell/plugins/djvu/djvumultipage.cpp b/kviewshell/plugins/djvu/djvumultipage.cpp
index 2599cc29..0f0c7074 100644
--- a/kviewshell/plugins/djvu/djvumultipage.cpp
+++ b/kviewshell/plugins/djvu/djvumultipage.cpp
@@ -28,10 +28,10 @@
#include <kprinter.h>
#include <ktempfile.h>
#include "kvsprefs.h"
-#include <qapplication.h>
-#include <qpaintdevicemetrics.h>
-#include <qprinter.h>
-#include <qtooltip.h>
+#include <tqapplication.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqprinter.h>
+#include <tqtooltip.h>
#include "ByteStream.h"
#include "DjVuToPS.h"
@@ -47,8 +47,8 @@ typedef KParts::GenericFactory<DjVuMultiPage> DjVuMultiPageFactory;
K_EXPORT_COMPONENT_FACTORY(djvuviewpart, DjVuMultiPageFactory)
-DjVuMultiPage::DjVuMultiPage(QWidget *parentWidget, const char *widgetName, QObject *parent,
- const char *name, const QStringList&)
+DjVuMultiPage::DjVuMultiPage(TQWidget *parentWidget, const char *widgetName, TQObject *parent,
+ const char *name, const TQStringList&)
: KMultiPage(parentWidget, widgetName, parent, name), djvuRenderer(parentWidget)
{
/* This is kparts wizardry that cannot be understood by man. Simply
@@ -57,7 +57,7 @@ DjVuMultiPage::DjVuMultiPage(QWidget *parentWidget, const char *widgetName, QObj
djvuRenderer.setName("DjVu renderer");
// Render modes
- QStringList renderModes;
+ TQStringList renderModes;
renderModes.append(i18n("Color"));
renderModes.append(i18n("Black and White"));
renderModes.append(i18n("Show foreground only"));
@@ -67,10 +67,10 @@ DjVuMultiPage::DjVuMultiPage(QWidget *parentWidget, const char *widgetName, QObj
renderModeAction->setCurrentItem(Prefs::renderMode());
- deletePagesAction = new KAction(i18n("Delete Pages..."), 0, this, SLOT(slotDeletePages()), actionCollection(), "delete_pages");
+ deletePagesAction = new KAction(i18n("Delete Pages..."), 0, this, TQT_SLOT(slotDeletePages()), actionCollection(), "delete_pages");
// change the rendermode
- connect(renderModeAction, SIGNAL(activated(int)), this, SLOT(setRenderMode(int)));
+ connect(renderModeAction, TQT_SIGNAL(activated(int)), this, TQT_SLOT(setRenderMode(int)));
/* It is very important that this method is called in the
constructor. Otherwise kmultipage does not know how to render
@@ -122,11 +122,11 @@ void DjVuMultiPage::setFile(bool r)
enableActions(r);
}
-QStringList DjVuMultiPage::fileFormats() const
+TQStringList DjVuMultiPage::fileFormats() const
{
/* This list is used in the file selection dialog when the file is
saved */
- QStringList r;
+ TQStringList r;
r << i18n("*.djvu|DjVu file (*.djvu)");
return r;
}
@@ -164,10 +164,10 @@ void DjVuMultiPage::slotDeletePages()
KDialogBase dialog( parentWdg, "urldialog", true, i18n("Delete Pages"), KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true );
PageRangeWidget range( 1, numberOfPages(), currentPageNumber(), &dialog, "range widget" );
- QToolTip::add( &range, i18n( "Select the pages you wish to delete." ) );
+ TQToolTip::add( &range, i18n( "Select the pages you wish to delete." ) );
dialog.setButtonOK(i18n("Delete Pages"));
dialog.setMainWidget(&range);
- if (dialog.exec() != QDialog::Accepted)
+ if (dialog.exec() != TQDialog::Accepted)
return;
djvuRenderer.deletePages(range.getFrom(), range.getTo());
@@ -188,7 +188,7 @@ void DjVuMultiPage::slotDeletePages()
//@@@@@@@@@@ tableOfContents->setContents(renderer->getBookmarks());
// Clear Statusbar
- emit setStatusBarText(QString::null);
+ emit setStatusBarText(TQString::null);
}
@@ -222,7 +222,7 @@ void DjVuMultiPage::print()
// initialize the printer using the print dialog
if ( printer->setup(parentWdg, i18n("Print %1").arg(m_file.section('/', -1))) ) {
// Now do the printing.
- QValueList<int> pageList = printer->pageList();
+ TQValueList<int> pageList = printer->pageList();
if (pageList.isEmpty())
printer->abort();
else {
@@ -236,7 +236,7 @@ void DjVuMultiPage::print()
// Set PostScript Language Level, taking 3 as the default
options.set_format(DjVuToPS::Options::PS);
- QString op = printer->option( "kde-kdjvu-pslevel" );
+ TQString op = printer->option( "kde-kdjvu-pslevel" );
if (op == "1")
options.set_level(1);
else
@@ -279,12 +279,12 @@ void DjVuMultiPage::print()
else
options.set_zoom(100);
- KTempFile tmpPSFile(QString::null, "ps");
+ KTempFile tmpPSFile(TQString::null, "ps");
tmpPSFile.close();
tmpPSFile.setAutoDelete(true);
if (djvuRenderer.convertToPSFile(converter, tmpPSFile.name(), pageList ) == true)
- printer->printFiles( QStringList(tmpPSFile.name()), true );
+ printer->printFiles( TQStringList(tmpPSFile.name()), true );
else
printer->abort();
}
@@ -312,18 +312,18 @@ void DjVuMultiPage::slotSave()
return;
// Try to guess the proper ending...
- QString formats;
- QString ending;
+ TQString formats;
+ TQString ending;
int rindex = m_file.findRev(".");
if (rindex == -1) {
- ending = QString::null;
- formats = QString::null;
+ ending = TQString::null;
+ formats = TQString::null;
} else {
ending = m_file.mid(rindex); // e.g. ".dvi"
formats = fileFormats().grep(ending).join("\n");
}
- QString fileName = KFileDialog::getSaveFileName(QString::null, formats, 0, i18n("Save File As"));
+ TQString fileName = KFileDialog::getSaveFileName(TQString::null, formats, 0, i18n("Save File As"));
if (fileName.isEmpty())
return;
@@ -333,7 +333,7 @@ void DjVuMultiPage::slotSave()
if (!ending.isEmpty() && fileName.find(ending) == -1)
fileName = fileName+ending;
- if (QFile(fileName).exists()) {
+ if (TQFile(fileName).exists()) {
int r = KMessageBox::warningContinueCancel(parentWdg, i18n("The file %1\nalready exists. Do you want to overwrite it?").arg(fileName),
i18n("Overwrite File"), i18n("Overwrite"));
if (r == KMessageBox::Cancel)
diff --git a/kviewshell/plugins/djvu/djvumultipage.h b/kviewshell/plugins/djvu/djvumultipage.h
index b417144b..c460e6b3 100644
--- a/kviewshell/plugins/djvu/djvumultipage.h
+++ b/kviewshell/plugins/djvu/djvumultipage.h
@@ -24,7 +24,7 @@
#ifndef __DJVUMULTIPAGE_H
#define __DJVUMULTIPAGE_H
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include "kmultipage.h"
#include "djvurenderer.h"
@@ -95,8 +95,8 @@ public:
kmultipage. Please have a look at the constructor's source code to
see how to adjust this for your implementation.
*/
- DjVuMultiPage(QWidget *parentWidget, const char *widgetName, QObject *parent,
- const char *name, const QStringList& args = QStringList());
+ DjVuMultiPage(TQWidget *parentWidget, const char *widgetName, TQObject *parent,
+ const char *name, const TQStringList& args = TQStringList());
/** Destructor
@@ -111,7 +111,7 @@ public:
This method returns the list of supported file formats for saving
the file.
*/
- virtual QStringList fileFormats() const;
+ virtual TQStringList fileFormats() const;
/** Author information
diff --git a/kviewshell/plugins/djvu/djvurenderer.cpp b/kviewshell/plugins/djvu/djvurenderer.cpp
index 54a96b38..49413818 100644
--- a/kviewshell/plugins/djvu/djvurenderer.cpp
+++ b/kviewshell/plugins/djvu/djvurenderer.cpp
@@ -24,9 +24,9 @@
#include <kmessagebox.h>
#include <kdebug.h>
#include <klocale.h>
-#include <qfileinfo.h>
-#include <qimage.h>
-#include <qpainter.h>
+#include <tqfileinfo.h>
+#include <tqimage.h>
+#include <tqpainter.h>
#include <kapp.h>
#include "GBitmap.h"
@@ -44,21 +44,21 @@
//#define KF_DEBUG
-inline GUTF8String GStringFromQString(const QString& x)
+inline GUTF8String GStringFromQString(const TQString& x)
{
GUTF8String retval=(const char*)x.utf8();
return retval;
}
-inline QString QStringFromGString(const GUTF8String& x)
+inline TQString QStringFromGString(const GUTF8String& x)
{
- QString retval=QString::fromUtf8((const char*)x);
+ TQString retval=TQString::fromUtf8((const char*)x);
return retval;
}
-DjVuRenderer::DjVuRenderer(QWidget* par)
+DjVuRenderer::DjVuRenderer(TQWidget* par)
: DocumentRenderer(par)
{
#ifdef KF_DEBUG
@@ -77,7 +77,7 @@ DjVuRenderer::~DjVuRenderer()
#endif
// Wait for all access to this documentRenderer to finish
- QMutexLocker locker( &mutex );
+ TQMutexLocker locker( &mutex );
}
@@ -98,7 +98,7 @@ void DjVuRenderer::drawPage(double resolution, RenderedDocumentPage* page)
}
// Wait for all access to this documentRenderer to finish
- QMutexLocker locker( &mutex );
+ TQMutexLocker locker( &mutex );
// more paranoid safety checks
if (page->getPageNumber() > numPages) {
@@ -151,7 +151,7 @@ void DjVuRenderer::drawPage(double resolution, RenderedDocumentPage* page)
else if (Prefs::renderMode() == Prefs::EnumRenderMode::Background)
djvuPixmap = djvuPage->get_bg_pixmap(pageRect, pageRect);
- QPainter* foreGroundPaint = page->getPainter();
+ TQPainter* foreGroundPaint = page->getPainter();
if (foreGroundPaint != 0)
{
if(djvuPixmap && Prefs::renderMode() != Prefs::EnumRenderMode::BlackAndWhite)
@@ -180,7 +180,7 @@ void DjVuRenderer::drawPage(double resolution, RenderedDocumentPage* page)
for (int j = 0; j < pageWidth; j++)
{
GPixel pixel = pixmapRow[j];
- foreGroundPaint->setPen(QColor(pixel.r, pixel.g, pixel.b));
+ foreGroundPaint->setPen(TQColor(pixel.r, pixel.g, pixel.b));
foreGroundPaint->drawPoint(j, pageHeight - i - 1);
}
}*/
@@ -217,7 +217,7 @@ void DjVuRenderer::drawPage(double resolution, RenderedDocumentPage* page)
for (int j = 0; j < pageWidth; j++)
{
unsigned char pixel = 255-bitmapRow[j];
- foreGroundPaint->setPen(QColor(pixel, pixel, pixel));
+ foreGroundPaint->setPen(TQColor(pixel, pixel, pixel));
foreGroundPaint->drawPoint(j, pageHeight - i - 1);
}
}*/
@@ -237,7 +237,7 @@ void DjVuRenderer::drawPage(double resolution, RenderedDocumentPage* page)
if (pageText)
{
- QSize djvuPageSize(djvuPage->get_width(), djvuPage->get_real_height());
+ TQSize djvuPageSize(djvuPage->get_width(), djvuPage->get_real_height());
fillInText(page, pageText, pageText->page_zone, djvuPageSize);
//kdDebug() << "Text of page " << pageNumber << endl;
//kdDebug() << (const char*)pageText->textUTF8 << endl;
@@ -249,14 +249,14 @@ void DjVuRenderer::drawPage(double resolution, RenderedDocumentPage* page)
}
-bool DjVuRenderer::setFile(const QString &fname, const KURL &)
+bool DjVuRenderer::setFile(const TQString &fname, const KURL &)
{
#ifdef KF_DEBUG
kdDebug() << "DjVuRenderer::setFile(" << fname << ") called" << endl;
#endif
// Wait for all access to this documentRenderer to finish
- QMutexLocker locker( &mutex );
+ TQMutexLocker locker( &mutex );
// If fname is the empty string, then this means: "close".
if (fname.isEmpty()) {
@@ -267,8 +267,8 @@ bool DjVuRenderer::setFile(const QString &fname, const KURL &)
// Paranoid saftey checks: make sure the file actually exists, and
// that it is a file, not a directory. Otherwise, show an error
// message and exit..
- QFileInfo fi(fname);
- QString filename = fi.absFilePath();
+ TQFileInfo fi(fname);
+ TQString filename = fi.absFilePath();
if (!fi.exists() || fi.isDir()) {
KMessageBox::error( parentWidget,
i18n("<qt><strong>File error.</strong> The specified file '%1' does not exist.</qt>").arg(filename),
@@ -353,12 +353,12 @@ void DjVuRenderer::getAnnotations(RenderedDocumentPage* page, GP<DjVuImage> djvu
GRect rect = map[pos]->get_bound_rect();
- QRect hyperlinkRect((int)(rect.xmin*scaleX+0.5), (int)((djvuPage->get_height()-rect.ymax)*scaleY+0.5),
+ TQRect hyperlinkRect((int)(rect.xmin*scaleX+0.5), (int)((djvuPage->get_height()-rect.ymax)*scaleY+0.5),
(int)(rect.width()*scaleX +0.5), (int)(rect.height()*scaleY+0.5));
- QString url((const char*)map[pos]->url);
- QString target((const char*)map[pos]->target);
- QString comment((const char*)map[pos]->comment);
+ TQString url((const char*)map[pos]->url);
+ TQString target((const char*)map[pos]->target);
+ TQString comment((const char*)map[pos]->comment);
// Create an anchor for this link.
if (!anchorList.contains(url))
@@ -418,7 +418,7 @@ bool DjVuRenderer::initializeDocument()
pageSizes[i].setPageSize(w, h);
}
}
- emit setStatusBarText(QString::null);
+ emit setStatusBarText(TQString::null);
// We will also generate a list of hyperlink-anchors in the document.
// So declare the existing lists empty.
@@ -459,7 +459,7 @@ GP<DjVuTXT> DjVuRenderer::getText(PageNumber pageNumber)
return 0;
}
-void DjVuRenderer::fillInText(RenderedDocumentPage* page, const GP<DjVuTXT>& text, DjVuTXT::Zone& zone, QSize& djvuPageSize)
+void DjVuRenderer::fillInText(RenderedDocumentPage* page, const GP<DjVuTXT>& text, DjVuTXT::Zone& zone, TQSize& djvuPageSize)
{
if (zone.children.isempty())
{
@@ -469,11 +469,11 @@ void DjVuRenderer::fillInText(RenderedDocumentPage* page, const GP<DjVuTXT>& tex
double scaleX = pageWidth / (double)djvuPageSize.width();
double scaleY = pageHeight / (double)djvuPageSize.height();
- QString zoneString = QStringFromGString(text->textUTF8.substr(zone.text_start, zone.text_length));
+ TQString zoneString = QStringFromGString(text->textUTF8.substr(zone.text_start, zone.text_length));
//kdDebug() << "zone text: " << zoneString << endl;
- QRect textRect((int)(zone.rect.xmin*scaleX+0.5), (int)((djvuPageSize.height()-zone.rect.ymax)*scaleY+0.5),
+ TQRect textRect((int)(zone.rect.xmin*scaleX+0.5), (int)((djvuPageSize.height()-zone.rect.ymax)*scaleY+0.5),
(int)(zone.rect.width()*scaleX+0.5), (int)(zone.rect.height()*scaleY+0.5));
//kdDebug() << "zone rect: " << textRect.x() << ", " << textRect.y() << ", " << textRect.width() << ", " << textRect.height() << endl;
TextBox textBox(textRect, zoneString);
@@ -545,7 +545,7 @@ bool DjVuRenderer::getPageInfo(GP<DjVuFile> file, int& width, int& height, int&
void DjVuRenderer::getText(RenderedDocumentPage* page)
{
- QMutexLocker locker( &mutex );
+ TQMutexLocker locker( &mutex );
int pageNumber = page->getPageNumber() - 1;
GP<DjVuTXT> pageText = getText(pageNumber);
@@ -560,37 +560,37 @@ void DjVuRenderer::getText(RenderedDocumentPage* page)
if (ok)
{
- QSize djvuPageSize(pageWidth, pageHeight);
+ TQSize djvuPageSize(pageWidth, pageHeight);
fillInText(page, pageText, pageText->page_zone, djvuPageSize);
}
}
}
-bool DjVuRenderer::convertToPSFile( DjVuToPS &converter, QString filename, QValueList<int> &pageList )
+bool DjVuRenderer::convertToPSFile( DjVuToPS &converter, TQString filename, TQValueList<int> &pageList )
{
if (document == 0) {
kdError(1223) << "DjVuRenderer::convertToPSFile(..) called when document was 0" << endl;
return false;
}
- QMutexLocker locker( &mutex );
+ TQMutexLocker locker( &mutex );
// Set up progress dialog
KProgressDialog *pdialog = new KProgressDialog(parentWidget, "Printing-ProgressDialog", i18n("Printing..."), i18n("Preparing pages for printing..."), true);
pdialog->setButtonText(i18n("Abort"));
pdialog->showCancelButton(true);
pdialog->progressBar()->setTotalSteps(pageList.size());
- pdialog->progressBar()->setFormat(QString::null);
+ pdialog->progressBar()->setFormat(TQString::null);
// Open output file
GURL outname = GURL::Filename::UTF8(GStringFromQString(filename));
GP<ByteStream> obs = ByteStream::create(outname, "w");
- QString pagename;
- QValueList<int>::ConstIterator it = pageList.begin();
+ TQString pagename;
+ TQValueList<int>::ConstIterator it = pageList.begin();
while (true) {
- pagename += QString::number(*it);
+ pagename += TQString::number(*it);
++it;
if (it == pageList.end())
break;
@@ -630,14 +630,14 @@ void DjVuRenderer::deletePages(Q_UINT16 from, Q_UINT16 to)
return;
}
- QMutexLocker locker( &mutex );
+ TQMutexLocker locker( &mutex );
KProgressDialog *pdialog = 0;
if (to-from > 9) {
pdialog = new KProgressDialog(parentWidget, "Printing-ProgressDialog", i18n("Deleting pages..."), i18n("Please wait while pages are removed..."), true);
pdialog->showCancelButton(false);
pdialog->progressBar()->setTotalSteps(to-from+1);
- pdialog->progressBar()->setFormat(QString::null);
+ pdialog->progressBar()->setFormat(TQString::null);
pdialog->show();
kapp->processEvents();
}
@@ -669,14 +669,14 @@ void DjVuRenderer::deletePages(Q_UINT16 from, Q_UINT16 to)
}
-bool DjVuRenderer::save(const QString &filename)
+bool DjVuRenderer::save(const TQString &filename)
{
if (document == 0) {
kdError() << "DjVuRenderer::save(..) called when document==0" << endl;
return false;
}
- QMutexLocker locker( &mutex );
+ TQMutexLocker locker( &mutex );
G_TRY {
document->save_as(GURL::Filename::UTF8(GStringFromQString(filename)), true);
@@ -688,7 +688,7 @@ bool DjVuRenderer::save(const QString &filename)
document->save_as(GURL::Filename::UTF8(filename.ascii()), true);
- if (QFile::exists(filename) == false)
+ if (TQFile::exists(filename) == false)
return false;
_isModified = false;
diff --git a/kviewshell/plugins/djvu/djvurenderer.h b/kviewshell/plugins/djvu/djvurenderer.h
index 40418c23..85b40626 100644
--- a/kviewshell/plugins/djvu/djvurenderer.h
+++ b/kviewshell/plugins/djvu/djvurenderer.h
@@ -25,7 +25,7 @@
#define _DJVURENDERER_H_
#include <kprogress.h>
-#include <qpixmap.h>
+#include <tqpixmap.h>
#include "DjVuImage.h"
#include "DjVuDocEditor.h"
@@ -57,7 +57,7 @@ public:
This constructor simply prints a message and calls the default constructor.
*/
- DjVuRenderer(QWidget* parent);
+ DjVuRenderer(TQWidget* parent);
/** Destructor
@@ -77,7 +77,7 @@ public:
@param fname the name of the file that should be opened.
*/
- virtual bool setFile(const QString& fname, const KURL &);
+ virtual bool setFile(const TQString& fname, const KURL &);
/** Rendering a page
@param res resolution at which drawing should take place
@@ -110,13 +110,13 @@ public:
wasn't. The conversion can fail, for example, when the user aborts
the operation.
*/
- bool convertToPSFile( DjVuToPS &converter, QString filename, QValueList<int> &pageList );
+ bool convertToPSFile( DjVuToPS &converter, TQString filename, TQValueList<int> &pageList );
/** Deletes pages from the document */
void deletePages(Q_UINT16 from, Q_UINT16 to);
/** Saves the file */
- bool save(const QString &filename);
+ bool save(const TQString &filename);
private:
/* This method is called after a document is loaded with
@@ -131,7 +131,7 @@ private:
GP<DjVuTXT> getText(PageNumber pageNumber);
- void fillInText(RenderedDocumentPage* page, const GP<DjVuTXT>& text, DjVuTXT::Zone& zone, QSize& djvuPageSize);
+ void fillInText(RenderedDocumentPage* page, const GP<DjVuTXT>& text, DjVuTXT::Zone& zone, TQSize& djvuPageSize);
GP<DjVuDocEditor> document;
@@ -139,7 +139,7 @@ private:
PostScript conversion */
static void printerInfoCallBack(int page_num, int page_count, int tot_pages, DjVuToPS::Stage, void *);
- QPixmap pixmap;
+ TQPixmap pixmap;
GP<ByteStream> PPMstream;
};
diff --git a/kviewshell/plugins/djvu/kprintDialogPage_DJVUconversionoptions.cpp b/kviewshell/plugins/djvu/kprintDialogPage_DJVUconversionoptions.cpp
index aea7d6b7..24b7dfbb 100644
--- a/kviewshell/plugins/djvu/kprintDialogPage_DJVUconversionoptions.cpp
+++ b/kviewshell/plugins/djvu/kprintDialogPage_DJVUconversionoptions.cpp
@@ -19,22 +19,22 @@
***************************************************************************/
#include <klocale.h>
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
#include <kdebug.h>
#include "kprintDialogPage_DJVUconversionoptions.h"
#include "kprintDialogPage_DJVUconversionoptions_basewidget.h"
-KPrintDialogPage_DJVUConversionOptions::KPrintDialogPage_DJVUConversionOptions( QWidget *parent, const char *name )
+KPrintDialogPage_DJVUConversionOptions::KPrintDialogPage_DJVUConversionOptions( TQWidget *parent, const char *name )
: KPrintDialogPage( parent, name )
{
setTitle( i18n("DJVU to PS Conversion") );
- kprintDialogPage_pageoptions_baseLayout = new QVBoxLayout( this, 11, 6, "kprintDialogPage_pageoptions_baseLayout");
+ kprintDialogPage_pageoptions_baseLayout = new TQVBoxLayout( this, 11, 6, "kprintDialogPage_pageoptions_baseLayout");
if (kprintDialogPage_pageoptions_baseLayout == 0) {
kdError(1223) << "KPrintDialogPage_DJVUPageOptions::KPrintDialogPage_DJVUPageOptions() cannot create layout" << endl;
return;
@@ -48,12 +48,12 @@ KPrintDialogPage_DJVUConversionOptions::KPrintDialogPage_DJVUConversionOptions(
-void KPrintDialogPage_DJVUConversionOptions::getOptions( QMap<QString,QString>& opts, bool )
+void KPrintDialogPage_DJVUConversionOptions::getOptions( TQMap<TQString,TQString>& opts, bool )
{
if (wdg == 0)
return;
- opts["kde-kdjvu-pslevel"] = QString::number(wdg->psLevel->currentItem() + 1);
+ opts["kde-kdjvu-pslevel"] = TQString::number(wdg->psLevel->currentItem() + 1);
kdDebug() << "getOptions: renderMode = " << wdg->renderMode->currentItem() << endl;
switch (wdg->renderMode->currentItem())
@@ -73,7 +73,7 @@ void KPrintDialogPage_DJVUConversionOptions::getOptions( QMap<QString,QString>&
}
-void KPrintDialogPage_DJVUConversionOptions::setOptions( const QMap<QString,QString>& opts )
+void KPrintDialogPage_DJVUConversionOptions::setOptions( const TQMap<TQString,TQString>& opts )
{
if (wdg == 0)
return;
@@ -92,7 +92,7 @@ void KPrintDialogPage_DJVUConversionOptions::setOptions( const QMap<QString,QStr
}
// Set render mode, taking "color" as default
- QString op = opts["kde-kdjvu-rendermode"];
+ TQString op = opts["kde-kdjvu-rendermode"];
if (op == "black-and-white")
{
wdg->renderMode->setCurrentItem(1);
@@ -112,7 +112,7 @@ void KPrintDialogPage_DJVUConversionOptions::setOptions( const QMap<QString,QStr
}
-bool KPrintDialogPage_DJVUConversionOptions::isValid( QString& )
+bool KPrintDialogPage_DJVUConversionOptions::isValid( TQString& )
{
return true;
}
diff --git a/kviewshell/plugins/djvu/kprintDialogPage_DJVUconversionoptions.h b/kviewshell/plugins/djvu/kprintDialogPage_DJVUconversionoptions.h
index 9e3faa90..c1ec4b3c 100644
--- a/kviewshell/plugins/djvu/kprintDialogPage_DJVUconversionoptions.h
+++ b/kviewshell/plugins/djvu/kprintDialogPage_DJVUconversionoptions.h
@@ -34,16 +34,16 @@ class kprintDialogPage_DJVUconversionoptions_basewidget;
class KPrintDialogPage_DJVUConversionOptions : public KPrintDialogPage
{
public:
- KPrintDialogPage_DJVUConversionOptions( QWidget *parent = 0, const char *name = 0 );
+ KPrintDialogPage_DJVUConversionOptions( TQWidget *parent = 0, const char *name = 0 );
- void getOptions( QMap<QString,QString>& opts, bool incldef = false );
- void setOptions( const QMap<QString,QString>& opts );
- bool isValid( QString& msg );
+ void getOptions( TQMap<TQString,TQString>& opts, bool incldef = false );
+ void setOptions( const TQMap<TQString,TQString>& opts );
+ bool isValid( TQString& msg );
kprintDialogPage_DJVUconversionoptions_basewidget* wdg;
private:
- QVBoxLayout* kprintDialogPage_pageoptions_baseLayout;
+ TQVBoxLayout* kprintDialogPage_pageoptions_baseLayout;
};
diff --git a/kviewshell/plugins/djvu/kprintDialogPage_DJVUpageoptions.cpp b/kviewshell/plugins/djvu/kprintDialogPage_DJVUpageoptions.cpp
index cd77fa0e..e6872648 100644
--- a/kviewshell/plugins/djvu/kprintDialogPage_DJVUpageoptions.cpp
+++ b/kviewshell/plugins/djvu/kprintDialogPage_DJVUpageoptions.cpp
@@ -19,16 +19,16 @@
***************************************************************************/
#include <klocale.h>
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qtooltip.h>
-#include <qwhatsthis.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqtooltip.h>
+#include <tqwhatsthis.h>
#include <kdebug.h>
#include "kprintDialogPage_DJVUpageoptions.h"
-KPrintDialogPage_DJVUPageOptions::KPrintDialogPage_DJVUPageOptions( QWidget *parent, const char *name )
+KPrintDialogPage_DJVUPageOptions::KPrintDialogPage_DJVUPageOptions( TQWidget *parent, const char *name )
: KPrintDialogPage( parent, name )
{
setTitle( i18n("Page Size & Placement") );
@@ -38,17 +38,17 @@ KPrintDialogPage_DJVUPageOptions::KPrintDialogPage_DJVUPageOptions( QWidget *par
checkBox_fitpage = 0;
- kprintDialogPage_pageoptions_baseLayout = new QVBoxLayout( this, 11, 6, "kprintDialogPage_pageoptions_baseLayout");
+ kprintDialogPage_pageoptions_baseLayout = new TQVBoxLayout( this, 11, 6, "kprintDialogPage_pageoptions_baseLayout");
if (kprintDialogPage_pageoptions_baseLayout == 0) {
kdError(1223) << "KPrintDialogPage_DJVUPageOptions::KPrintDialogPage_DJVUPageOptions() cannot create layout" << endl;
return;
}
- checkBox_rotate = new QCheckBox( this, "checkBox_rotate" );
+ checkBox_rotate = new TQCheckBox( this, "checkBox_rotate" );
if (checkBox_rotate != 0) {
checkBox_rotate->setText( i18n( "Automatically choose landscape or portrait orientation" ) );
- QToolTip::add( checkBox_rotate, i18n( "If this option is enabled, some pages might be rotated to better fit the paper size." ) );
- QWhatsThis::add( checkBox_rotate, i18n( "<qt><p>If this option is enabled, landscape or portrait orientation are automatically chosen on a "
+ TQToolTip::add( checkBox_rotate, i18n( "If this option is enabled, some pages might be rotated to better fit the paper size." ) );
+ TQWhatsThis::add( checkBox_rotate, i18n( "<qt><p>If this option is enabled, landscape or portrait orientation are automatically chosen on a "
"page-by-page basis. This makes better use of the paper and gives more visually-"
"appealing printouts.</p>"
"<p><b>Note:</b> This option overrides the Portrait/Landscape option chosen in the printer "
@@ -57,11 +57,11 @@ KPrintDialogPage_DJVUPageOptions::KPrintDialogPage_DJVUPageOptions( QWidget *par
kprintDialogPage_pageoptions_baseLayout->addWidget( checkBox_rotate );
}
- checkBox_fitpage = new QCheckBox( this, "checkBox_shrink" );
+ checkBox_fitpage = new TQCheckBox( this, "checkBox_shrink" );
if (checkBox_fitpage != 0) {
checkBox_fitpage->setText( i18n( "Scale pages to fit paper size" ) );
- QToolTip::add( checkBox_fitpage, i18n( "If this option is enabled, all pages will be scaled to optimally fit the printer's paper size." ) );
- QWhatsThis::add( checkBox_fitpage, i18n( "<qt><p>If this option is enabled, all pages will be scaled to optimally fit the printer's "
+ TQToolTip::add( checkBox_fitpage, i18n( "If this option is enabled, all pages will be scaled to optimally fit the printer's paper size." ) );
+ TQWhatsThis::add( checkBox_fitpage, i18n( "<qt><p>If this option is enabled, all pages will be scaled to optimally fit the printer's "
"paper size.</p>"
"<p><b>Note:</b> If this option is enabled, and if the pages in your document have different sizes, "
"then different pages might be scaled by different scaling factors.</p></qt>" ) );
@@ -70,13 +70,13 @@ KPrintDialogPage_DJVUPageOptions::KPrintDialogPage_DJVUPageOptions( QWidget *par
kprintDialogPage_pageoptions_baseLayout->addStretch();
- resize( QSize(319, 166).expandedTo(minimumSizeHint()) );
+ resize( TQSize(319, 166).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
}
-void KPrintDialogPage_DJVUPageOptions::getOptions( QMap<QString,QString>& opts, bool )
+void KPrintDialogPage_DJVUPageOptions::getOptions( TQMap<TQString,TQString>& opts, bool )
{
// Save options, taking default values into consideration. Warning:
// The default values are also coded into setOptions() and
@@ -96,13 +96,13 @@ void KPrintDialogPage_DJVUPageOptions::getOptions( QMap<QString,QString>& opts,
}
-void KPrintDialogPage_DJVUPageOptions::setOptions( const QMap<QString,QString>& opts )
+void KPrintDialogPage_DJVUPageOptions::setOptions( const TQMap<TQString,TQString>& opts )
{
// Warning: All default values are also coded into getOptions() and
// kmultipage::print(..).
// same for rotation
- QString op = opts[ "kde-kviewshell-rotatepage" ];
+ TQString op = opts[ "kde-kviewshell-rotatepage" ];
if (checkBox_rotate != 0)
checkBox_rotate->setChecked( op != "false" );
@@ -113,7 +113,7 @@ void KPrintDialogPage_DJVUPageOptions::setOptions( const QMap<QString,QString>&
}
-bool KPrintDialogPage_DJVUPageOptions::isValid( QString& )
+bool KPrintDialogPage_DJVUPageOptions::isValid( TQString& )
{
return true;
}
diff --git a/kviewshell/plugins/djvu/kprintDialogPage_DJVUpageoptions.h b/kviewshell/plugins/djvu/kprintDialogPage_DJVUpageoptions.h
index 0121c1a0..5bb5833e 100644
--- a/kviewshell/plugins/djvu/kprintDialogPage_DJVUpageoptions.h
+++ b/kviewshell/plugins/djvu/kprintDialogPage_DJVUpageoptions.h
@@ -14,8 +14,8 @@
#include <kdeprint/kprintdialogpage.h>
-class QVBoxLayout;
-class QCheckBox;
+class TQVBoxLayout;
+class TQCheckBox;
// This is a fairly standard KPrintDialogPage that allows the user to
@@ -25,17 +25,17 @@ class QCheckBox;
class KPrintDialogPage_DJVUPageOptions : public KPrintDialogPage
{
public:
- KPrintDialogPage_DJVUPageOptions( QWidget *parent = 0, const char *name = 0 );
+ KPrintDialogPage_DJVUPageOptions( TQWidget *parent = 0, const char *name = 0 );
- void getOptions( QMap<QString,QString>& opts, bool incldef = false );
- void setOptions( const QMap<QString,QString>& opts );
- bool isValid( QString& msg );
+ void getOptions( TQMap<TQString,TQString>& opts, bool incldef = false );
+ void setOptions( const TQMap<TQString,TQString>& opts );
+ bool isValid( TQString& msg );
- QCheckBox* checkBox_rotate;
- QCheckBox* checkBox_fitpage;
+ TQCheckBox* checkBox_rotate;
+ TQCheckBox* checkBox_fitpage;
private:
- QVBoxLayout* kprintDialogPage_pageoptions_baseLayout;
+ TQVBoxLayout* kprintDialogPage_pageoptions_baseLayout;
};
diff --git a/kviewshell/plugins/djvu/pageRangeWidget.cpp b/kviewshell/plugins/djvu/pageRangeWidget.cpp
index 338624b8..ddff8299 100644
--- a/kviewshell/plugins/djvu/pageRangeWidget.cpp
+++ b/kviewshell/plugins/djvu/pageRangeWidget.cpp
@@ -23,7 +23,7 @@
#include "pageRangeWidget.h"
-PageRangeWidget::PageRangeWidget( Q_UINT16 _from, Q_UINT16 _to, Q_UINT16 _current, QWidget *parent, const char *name) : PageRangeWidget_base(parent, name)
+PageRangeWidget::PageRangeWidget( Q_UINT16 _from, Q_UINT16 _to, Q_UINT16 _current, TQWidget *parent, const char *name) : PageRangeWidget_base(parent, name)
{
// Paranoid security checks
if ((from == 0) || (to == 0))
@@ -41,8 +41,8 @@ PageRangeWidget::PageRangeWidget( Q_UINT16 _from, Q_UINT16 _to, Q_UINT16 _curren
_current = _to;
}
- connect(from, SIGNAL(valueChanged(int)), this, SLOT(fromValueChanged(int)));
- connect(to, SIGNAL(valueChanged(int)), this, SLOT(toValueChanged(int)));
+ connect(from, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(fromValueChanged(int)));
+ connect(to, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(toValueChanged(int)));
from->setRange(_from, _to);
from->setValue(_current);
diff --git a/kviewshell/plugins/djvu/pageRangeWidget.h b/kviewshell/plugins/djvu/pageRangeWidget.h
index ca9b4a00..3ddb497b 100644
--- a/kviewshell/plugins/djvu/pageRangeWidget.h
+++ b/kviewshell/plugins/djvu/pageRangeWidget.h
@@ -31,7 +31,7 @@ class PageRangeWidget : public PageRangeWidget_base
Q_OBJECT
public:
- PageRangeWidget( Q_UINT16 _from, Q_UINT16 _to, Q_UINT16 _current, QWidget *parent = 0, const char *name = 0 );
+ PageRangeWidget( Q_UINT16 _from, Q_UINT16 _to, Q_UINT16 _current, TQWidget *parent = 0, const char *name = 0 );
Q_UINT16 getFrom() const {return (from == 0) ? 0 : from->value(); }
Q_UINT16 getTo() const {return (to == 0) ? 0 : to->value(); }