summaryrefslogtreecommitdiffstats
path: root/kfax
diff options
context:
space:
mode:
Diffstat (limited to 'kfax')
-rw-r--r--kfax/faxinput.cpp22
-rw-r--r--kfax/kfax.cpp154
-rw-r--r--kfax/kfax.h42
-rw-r--r--kfax/kfax_printsettings.cpp32
-rw-r--r--kfax/kfax_printsettings.h8
-rw-r--r--kfax/options.cpp104
-rw-r--r--kfax/options.h66
-rw-r--r--kfax/viewfax.cpp16
8 files changed, 222 insertions, 222 deletions
diff --git a/kfax/faxinput.cpp b/kfax/faxinput.cpp
index 8ca7fe85..47fdfa26 100644
--- a/kfax/faxinput.cpp
+++ b/kfax/faxinput.cpp
@@ -26,14 +26,14 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
#include <sys/time.h>
#include <fcntl.h>
#include "faxexpand.h"
-#include <qstring.h>
-#include <qfile.h>
+#include <tqstring.h>
+#include <tqfile.h>
#include <kapplication.h>
#include <klocale.h>
#include <kdebug.h>
void statusbarupdate(char* name,int width,int height,char* res);
-extern void kfaxerror(const QString& title, const QString& error);
+extern void kfaxerror(const TQString& title, const TQString& error);
#define FAXMAGIC "\000PC Research, Inc\000\000\000\000\000\000"
@@ -106,11 +106,11 @@ notetiff(const char *name)
int endian;
t32bits IFDoff;
struct pagenode *pn = NULL;
- QString str;
+ TQString str;
if ((tf = fopen(name, "r")) == NULL) {
- QString mesg = i18n("Unable to open:\n%1\n").arg(QFile::decodeName(name));
+ TQString mesg = i18n("Unable to open:\n%1\n").arg(TQFile::decodeName(name));
kfaxerror(i18n("Sorry"), mesg);
return 0;
}
@@ -147,7 +147,7 @@ notetiff(const char *name)
if (fseek(tf, IFDoff, SEEK_SET) < 0) {
realbad:
- str = i18n("Invalid tiff file:\n%1\n").arg(QFile::decodeName(name));
+ str = i18n("Invalid tiff file:\n%1\n").arg(TQFile::decodeName(name));
kfaxerror(i18n("Sorry"),str);
bad:
if (strips)
@@ -249,7 +249,7 @@ notetiff(const char *name)
case 279: /* StripByteCounts */
if (count != nstrips) {
str = i18n("In file %1\nStripsPerImage tag 273=%2,tag279=%3\n")
- .arg(QFile::decodeName(name)).arg(nstrips).arg(count);
+ .arg(TQFile::decodeName(name)).arg(nstrips).arg(count);
kfaxerror(i18n("Message"),str);
goto realbad;
}
@@ -395,7 +395,7 @@ getstrip(struct pagenode *pn, int strip)
struct stat sbuf;
unsigned char *Data;
union { t16bits s; unsigned char b[2]; } so;
- QString str;
+ TQString str;
#define ShortOrder so.b[1]
@@ -419,7 +419,7 @@ getstrip(struct pagenode *pn, int strip)
pn->length = pn->strips[strip].size;
}
else {
- str = i18n("Trying to expand too many strips\n%1%n").arg(QFile::decodeName(pn->pathname));
+ str = i18n("Trying to expand too many strips\n%1%n").arg(TQFile::decodeName(pn->pathname));
kfaxerror(i18n("Warning"),str);
return NULL;
}
@@ -448,7 +448,7 @@ getstrip(struct pagenode *pn, int strip)
/* handle ghostscript / PC Research fax file */
if (Data[24] != 1 || Data[25] != 0){
str = i18n("Only the first page of the PC Research multipage file\n%1\nwill be shown\n")
- .arg(QFile::decodeName(pn->pathname));
+ .arg(TQFile::decodeName(pn->pathname));
kfaxerror(i18n("Message"),str);
}
pn->length -= 64;
@@ -462,7 +462,7 @@ getstrip(struct pagenode *pn, int strip)
pn->height = G3count(pn, pn->expander == g32expand);
if (pn->height == 0) {
- str = i18n("No fax found in file:\n%1\n").arg(QFile::decodeName(pn->pathname));
+ str = i18n("No fax found in file:\n%1\n").arg(TQFile::decodeName(pn->pathname));
kfaxerror(i18n("Sorry"),str);
errno = 0;
badfile(pn);
diff --git a/kfax/kfax.cpp b/kfax/kfax.cpp
index 02661325..8a29f92c 100644
--- a/kfax/kfax.cpp
+++ b/kfax/kfax.cpp
@@ -31,13 +31,13 @@
#include <time.h>
#include <unistd.h>
-#include <qfile.h>
-#include <qstrlist.h>
-#include <qtimer.h>
-#include <qpopupmenu.h>
-#include <qpainter.h>
-#include <qpaintdevicemetrics.h>
-#include <qbitmap.h>
+#include <tqfile.h>
+#include <tqstrlist.h>
+#include <tqtimer.h>
+#include <tqpopupmenu.h>
+#include <tqpainter.h>
+#include <tqpaintdevicemetrics.h>
+#include <tqbitmap.h>
#include <klocale.h>
#include <kaboutdata.h>
@@ -187,7 +187,7 @@ bool MyApp::x11EventFilter( XEvent * ev)
}
-TopLevel::TopLevel (QWidget *, const char *name)
+TopLevel::TopLevel (TQWidget *, const char *name)
: KMainWindow (0, name)
{
setMinimumSize (100, 100);
@@ -203,21 +203,21 @@ TopLevel::TopLevel (QWidget *, const char *name)
readSettings();
- faxqtwin = new QFrame(this);
+ faxqtwin = new TQFrame(this);
qtwin = faxqtwin->winId();
- faxqtwin->setFrameStyle(QFrame::Panel | QFrame::Sunken);
+ faxqtwin->setFrameStyle(TQFrame::Panel | TQFrame::Sunken);
// Create a Vertical scroll bar
- vsb = new QScrollBar( QScrollBar::Vertical,faxqtwin,"scrollBar" );
+ vsb = new TQScrollBar( TQScrollBar::Vertical,faxqtwin,"scrollBar" );
vsb->hide();
- connect( vsb, SIGNAL(valueChanged(int)), SLOT(scrollVert(int)) );
+ connect( vsb, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(scrollVert(int)) );
// Create a Horizontal scroll bar
- hsb = new QScrollBar( QScrollBar::Horizontal,faxqtwin,"scrollBar" );
- connect( hsb, SIGNAL(valueChanged(int)), SLOT(scrollHorz(int)) );
+ hsb = new TQScrollBar( TQScrollBar::Horizontal,faxqtwin,"scrollBar" );
+ connect( hsb, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(scrollHorz(int)) );
hsb->hide();
setCentralWidget(faxqtwin);
@@ -235,43 +235,43 @@ TopLevel::~TopLevel()
void TopLevel::setupMenuBar()
{
// File menu
- KStdAction::open( this, SLOT( faxOpen() ), actionCollection() );
- actRecent = KStdAction::openRecent( this, SLOT( faxOpen( const KURL & ) ),
+ KStdAction::open( this, TQT_SLOT( faxOpen() ), actionCollection() );
+ actRecent = KStdAction::openRecent( this, TQT_SLOT( faxOpen( const KURL & ) ),
actionCollection() );
- actSave = KStdAction::save( this, SLOT( faxSave() ), actionCollection() );
- actSaveAs = KStdAction::saveAs( this, SLOT( faxSaveAs() ),
+ actSave = KStdAction::save( this, TQT_SLOT( faxSave() ), actionCollection() );
+ actSaveAs = KStdAction::saveAs( this, TQT_SLOT( faxSaveAs() ),
actionCollection() );
- actPrint = KStdAction::print( this, SLOT( print() ), actionCollection() );
- KStdAction::quit( this, SLOT( close() ), actionCollection() );
+ actPrint = KStdAction::print( this, TQT_SLOT( print() ), actionCollection() );
+ KStdAction::quit( this, TQT_SLOT( close() ), actionCollection() );
actAdd = new KAction( i18n( "A&dd..." ), "filenew", KShortcut(), this,
- SLOT( faxAdd() ), actionCollection(), "file_add_fax" );
+ TQT_SLOT( faxAdd() ), actionCollection(), "file_add_fax" );
actRecent->setMaxItems( 5 );
// View Menu
- actSize = KStdAction::actualSize( this, SLOT( actualSize() ),
+ actSize = KStdAction::actualSize( this, TQT_SLOT( actualSize() ),
actionCollection() );
- actZoomIn = KStdAction::zoomIn( this, SLOT( zoomin() ), actionCollection() );
- actZoomOut = KStdAction::zoomOut( this, SLOT( zoomout() ),
+ actZoomIn = KStdAction::zoomIn( this, TQT_SLOT( zoomin() ), actionCollection() );
+ actZoomOut = KStdAction::zoomOut( this, TQT_SLOT( zoomout() ),
actionCollection() );
actRotate = new KAction( i18n( "&Rotate Page" ), "rotate", KShortcut(), this,
- SLOT( rotatePage() ), actionCollection(), "view_rotate" );
+ TQT_SLOT( rotatePage() ), actionCollection(), "view_rotate" );
actMirror = new KAction( i18n( "Mirror Page" ), KShortcut(), this,
- SLOT( mirrorPage() ), actionCollection(), "view_mirror" );
+ TQT_SLOT( mirrorPage() ), actionCollection(), "view_mirror" );
actFlip = new KAction( i18n( "&Flip Page" ), KShortcut(), this,
- SLOT( flipPage() ), actionCollection(), "view_flip" );
+ TQT_SLOT( flipPage() ), actionCollection(), "view_flip" );
// Go menu
- actNext = KStdAction::next( this, SLOT( nextPage() ), actionCollection() );
- actPrev = KStdAction::prior( this, SLOT( prevPage() ), actionCollection() );
- actFirst = KStdAction::firstPage( this, SLOT( firstPage() ),
+ actNext = KStdAction::next( this, TQT_SLOT( nextPage() ), actionCollection() );
+ actPrev = KStdAction::prior( this, TQT_SLOT( prevPage() ), actionCollection() );
+ actFirst = KStdAction::firstPage( this, TQT_SLOT( firstPage() ),
actionCollection() );
- actLast = KStdAction::lastPage( this, SLOT( lastPage() ),
+ actLast = KStdAction::lastPage( this, TQT_SLOT( lastPage() ),
actionCollection() );
// Settings menu
- KStdAction::preferences( this, SLOT( faxoptions() ), actionCollection() );
+ KStdAction::preferences( this, TQT_SLOT( faxoptions() ), actionCollection() );
}
void TopLevel::setupStatusBar()
@@ -282,14 +282,14 @@ void TopLevel::setupStatusBar()
statusbar->insertFixedItem(i18n("Res: XXXXX"), ID_GENERAL);
statusbar->insertFixedItem(i18n("Type: XXXXXXX"), ID_TYPE);
statusbar->insertFixedItem(i18n("Page: XX of XX"), ID_PAGE_NO);
- statusbar->insertItem(QString::null, ID_FNAME, 1);
+ statusbar->insertItem(TQString::null, ID_FNAME, 1);
statusbar->setItemAlignment( ID_FNAME, AlignLeft );
- statusbar->changeItem(QString::null, ID_INS_OVR);
- statusbar->changeItem(QString::null, ID_GENERAL);
- statusbar->changeItem(QString::null, ID_TYPE);
- statusbar->changeItem(QString::null, ID_PAGE_NO);
- statusbar->changeItem(QString::null, ID_FNAME);
+ statusbar->changeItem(TQString::null, ID_INS_OVR);
+ statusbar->changeItem(TQString::null, ID_GENERAL);
+ statusbar->changeItem(TQString::null, ID_TYPE);
+ statusbar->changeItem(TQString::null, ID_PAGE_NO);
+ statusbar->changeItem(TQString::null, ID_FNAME);
}
void TopLevel::readSettings()
@@ -378,7 +378,7 @@ void TopLevel::writeSettings()
void TopLevel::faxOpen()
{
- KURL url = KFileDialog::getOpenURL(QString::null, KFAX_FILETYPES);
+ KURL url = KFileDialog::getOpenURL(TQString::null, KFAX_FILETYPES);
faxOpen( url );
@@ -400,7 +400,7 @@ void TopLevel::faxOpen( const KURL & url )
void TopLevel::faxAdd()
{
- KURL url = KFileDialog::getOpenURL(QString::null, KFAX_FILETYPES);
+ KURL url = KFileDialog::getOpenURL(TQString::null, KFAX_FILETYPES);
faxAdd( url );
@@ -424,7 +424,7 @@ void TopLevel::faxSave()
void TopLevel::faxSaveAs()
{
- fileURL = KFileDialog::getSaveURL(QString::null, KFAX_FILETYPES);
+ fileURL = KFileDialog::getSaveURL(TQString::null, KFAX_FILETYPES);
if (fileURL.isEmpty())
return;
@@ -509,24 +509,24 @@ void TopLevel::actualSize()
zoom( oz );
}
-void loadfile(QString filename)
+void loadfile(TQString filename)
{
// Typical FAX resolutions are:
// Standard: 203 dpi x 98 dpi
// Fine: 203 dpi x 196 lpi
// Super Fine: 203 dpi y 392 lpi, or
// 406 dpi x 392 lpi
- QSize dpi(203,196);
+ TQSize dpi(203,196);
KFileMetaInfo metaInfo(filename);
if (metaInfo.isValid() && metaInfo.item("Resolution").isValid())
{
- QSize s = metaInfo.item("Resolution").value().toSize();
+ TQSize s = metaInfo.item("Resolution").value().toSize();
if (s.width() >= 100 && s.height() >= 100)
dpi = s;
}
- (void) notetiff(QFile::encodeName(filename));
+ (void) notetiff(TQFile::encodeName(filename));
struct pagenode *pn;
for(pn = firstpage; pn; pn = pn->next)
@@ -536,7 +536,7 @@ void loadfile(QString filename)
}
}
-void TopLevel::openadd(QString filename)
+void TopLevel::openadd(TQString filename)
{
auxpage = lastpage;
@@ -557,14 +557,14 @@ void TopLevel::openadd(QString filename)
putImage();
}
-void TopLevel::resizeEvent(QResizeEvent *e)
+void TopLevel::resizeEvent(TQResizeEvent *e)
{
KMainWindow::resizeEvent(e);
resizeView();
}
-void TopLevel::wheelEvent( QWheelEvent *e )
+void TopLevel::wheelEvent( TQWheelEvent *e )
{
e->accept();
@@ -577,7 +577,7 @@ void TopLevel::wheelEvent( QWheelEvent *e )
}
else
{
- int offset = QApplication::wheelScrollLines()*vsb->lineStep();
+ int offset = TQApplication::wheelScrollLines()*vsb->lineStep();
if ( e->state() & ControlButton )
offset = vsb->pageStep();
offset = -e->delta()*offset/120;
@@ -697,11 +697,11 @@ void TopLevel::print(){
int pages, currentpage;
loadAllPages(pages, currentpage);
- KPrinter printer(true, QPrinter::HighResolution);
+ KPrinter printer(true, TQPrinter::HighResolution);
printer.setFullPage( true );
printer.setUsePrinterResolution( true );
printer.setCreator( i18n("KFax") + " " KFAXVERSION );
- printer.setDocName( QString("%1 - %2").arg(firstpage->name).arg(i18n("KFax")));
+ printer.setDocName( TQString("%1 - %2").arg(firstpage->name).arg(i18n("KFax")));
printer.setDocFileName( firstpage->name );
printer.setPageSelection( KPrinter::ApplicationSide );
printer.setMinMax( 1, pages );
@@ -710,18 +710,18 @@ void TopLevel::print(){
if ( !printer.setup( this ) )
return;
- QPainter painter;
+ TQPainter painter;
painter.begin( &printer );
printIt(printer, painter);
painter.end();
}
-void TopLevel::printIt( KPrinter &printer, QPainter &painter )
+void TopLevel::printIt( KPrinter &printer, TQPainter &painter )
{
- QPaintDeviceMetrics dm(painter.device());
+ TQPaintDeviceMetrics dm(painter.device());
- QApplication::setOverrideCursor( waitCursor );
+ TQApplication::setOverrideCursor( waitCursor );
kapp->processEvents();
const bool fullpage = printer.option(APP_KFAX_SCALE_FULLPAGE) == "true";
@@ -743,7 +743,7 @@ void TopLevel::printIt( KPrinter &printer, QPainter &painter )
continue;
// byte-swapping the image
- QByteArray bytes( Image->height*Image->bytes_per_line );
+ TQByteArray bytes( Image->height*Image->bytes_per_line );
for (int y=Image->height-1; y>=0; --y) {
Q_UINT32 offset = y*Image->bytes_per_line;
Q_UINT32 *source = (Q_UINT32 *) (Image->data + offset);
@@ -761,17 +761,17 @@ void TopLevel::printIt( KPrinter &printer, QPainter &painter )
}
}
- QImage image( (uchar *)bytes.data(), Image->bytes_per_line*8, Image->height, 1, NULL, 2, QImage::LittleEndian);
+ TQImage image( (uchar *)bytes.data(), Image->bytes_per_line*8, Image->height, 1, NULL, 2, TQImage::LittleEndian);
if (first_page_printed)
printer.newPage();
first_page_printed = true;
- const QSize printersize( dm.width(), dm.height() );
+ const TQSize printersize( dm.width(), dm.height() );
kdDebug() << "Printersize = " << printersize << endl;
// print Image in original size if possible, else scale it.
- const QSize size( // logical size of the image
+ const TQSize size( // logical size of the image
Image->width * dm.logicalDpiX() / pn->dpiX,
Image->height * dm.logicalDpiY() / pn->dpiY
);
@@ -788,15 +788,15 @@ void TopLevel::printIt( KPrinter &printer, QPainter &painter )
printer.margins( &top, &left, &bottom, &right );
kdDebug() << "Margins = " << top << " " << left << " " << bottom << " " << right << endl;
- const QSize maxSize( printersize.width()-left-right, printersize.height()-top-bottom );
- QSize scaledImageSize = size;
+ const TQSize maxSize( printersize.width()-left-right, printersize.height()-top-bottom );
+ TQSize scaledImageSize = size;
if (size.width() > maxSize.width() || size.height() > maxSize.height() ) {
// Image does not fit - scale it and print centered
- scaledImageSize.scale( maxSize, QSize::ScaleMin );
+ scaledImageSize.scale( maxSize, TQSize::ScaleMin );
kdDebug() << "Image does not fit - scaling to " << maxSize << endl;
} else {
// Image does fit - print it in original size, but centered
- scaledImageSize.scale( size, QSize::ScaleMin );
+ scaledImageSize.scale( size, TQSize::ScaleMin );
kdDebug() << "Image does fit - scaling to " << size << endl;
}
kdDebug() << "Final image size " << scaledImageSize << endl;
@@ -809,11 +809,11 @@ void TopLevel::printIt( KPrinter &printer, QPainter &painter )
y = (maxSize.height()-scaledImageSize.height())/2 + top;
else
y = top;
- painter.drawImage( QRect(x,y,scaledImageSize.width(), scaledImageSize.height()), image );
+ painter.drawImage( TQRect(x,y,scaledImageSize.width(), scaledImageSize.height()), image );
}
- QApplication::restoreOverrideCursor();
+ TQApplication::restoreOverrideCursor();
}
void TopLevel::saveNetFile( const KURL& dest)
@@ -846,7 +846,7 @@ void TopLevel::openNetFile( const KURL &u)
if ( u.isLocalFile() )
{
- QString string = i18n("Loading '%1'").arg(u.path());
+ TQString string = i18n("Loading '%1'").arg(u.path());
statusbar->message(string);
openadd( u.path());
statusbar->clear();
@@ -854,7 +854,7 @@ void TopLevel::openNetFile( const KURL &u)
else
{
statusbar->message(i18n("Downloading..."));
- QString tmpFile = QString::null;
+ TQString tmpFile = TQString::null;
if ( KIO::NetAccess::download( u, tmpFile, this ) )
{
openadd( tmpFile );
@@ -865,12 +865,12 @@ void TopLevel::openNetFile( const KURL &u)
}
}
-void TopLevel::dragEnterEvent( QDragEnterEvent * event)
+void TopLevel::dragEnterEvent( TQDragEnterEvent * event)
{
event->accept(KURLDrag::canDecode(event));
}
-void TopLevel::dropEvent( QDropEvent * event)
+void TopLevel::dropEvent( TQDropEvent * event)
{
KURL::List list;
@@ -1355,7 +1355,7 @@ void TopLevel::newPage(){
Image = Images[0] = Pimage(thispage);
- setCaption(QFile::decodeName(thispage->name));
+ setCaption(TQFile::decodeName(thispage->name));
Image = generateZoomImages(oz);
@@ -1382,7 +1382,7 @@ void TopLevel::faxClose()
vsb->hide();
hsb->hide();
- fileURL = QString::null;
+ fileURL = TQString::null;
updateActions();
}
@@ -1441,22 +1441,22 @@ void TopLevel::uiUpdate(){
currentpage = pages;
}
- QString pagestr = i18n("Page: %1 of %2").arg(currentpage).arg(pages);
+ TQString pagestr = i18n("Page: %1 of %2").arg(currentpage).arg(pages);
statusbar->changeItem(pagestr, ID_PAGE_NO);
if(Image){
- QString wh = i18n("W: %1 H: %2").arg(Image->width).arg(Image->height);
+ TQString wh = i18n("W: %1 H: %2").arg(Image->width).arg(Image->height);
statusbar->changeItem(wh, ID_INS_OVR);
}
- QString resolution = i18n("Res: %1").arg(thispage->vres?i18n("Fine"):i18n("Normal"));
- // TODO: resolution += QString("%1x%2").arg(thispage->dpiX).arg(thispage->dpiY);
+ TQString resolution = i18n("Res: %1").arg(thispage->vres?i18n("Fine"):i18n("Normal"));
+ // TODO: resolution += TQString("%1x%2").arg(thispage->dpiX).arg(thispage->dpiY);
statusbar->changeItem(resolution, ID_GENERAL);
statusbar->changeItem(thispage->name, ID_FNAME);
- QString typestring;
+ TQString typestring;
if(thispage->type == FAX_TIFF){
typestring = i18n("Type: Tiff ");
@@ -1479,7 +1479,7 @@ void TopLevel::uiUpdate(){
}
}
-void kfaxerror(const QString& title, const QString& error){
+void kfaxerror(const TQString& title, const TQString& error){
KMessageBox::error(toplevel, error, title);
}
diff --git a/kfax/kfax.h b/kfax/kfax.h
index 506a1452..99ad9940 100644
--- a/kfax/kfax.h
+++ b/kfax/kfax.h
@@ -30,19 +30,19 @@
#include <kapplication.h>
#include <kmainwindow.h>
-#include <qptrlist.h>
+#include <tqptrlist.h>
#include <kurl.h>
#define Pimage(p) ((XImage *)(p)->extra)
-class QPopupMenu;
+class TQPopupMenu;
class KConfig;
class KStatusBar;
class KAction;
class KRecentFilesAction;
class KPrinter;
-class QPainter;
-class QScrollBar;
+class TQPainter;
+class TQScrollBar;
typedef KToolBar::BarPosition BarPosition;
@@ -58,24 +58,24 @@ class TopLevel : public KMainWindow
public:
- TopLevel( QWidget *parent=0, const char *name=0 );
+ TopLevel( TQWidget *parent=0, const char *name=0 );
~TopLevel();
void openNetFile( const KURL& _url);
void saveNetFile( const KURL& _url );
- static QPtrList<TopLevel> windowList;
- QPopupMenu *right_mouse_button, *colors;
+ static TQPtrList<TopLevel> windowList;
+ TQPopupMenu *right_mouse_button, *colors;
void handle_X_event(XEvent Event);
void putImage();
protected:
- void resizeEvent( QResizeEvent * );
- void wheelEvent( QWheelEvent * );
- void dragEnterEvent( QDragEnterEvent * event );
- void dropEvent( QDropEvent * event );
+ void resizeEvent( TQResizeEvent * );
+ void wheelEvent( TQWheelEvent * );
+ void dragEnterEvent( TQDragEnterEvent * event );
+ void dropEvent( TQDropEvent * event );
void updateActions();
void updateGoActions();
@@ -95,11 +95,11 @@ protected:
private:
- QFrame *faxqtwin;
+ TQFrame *faxqtwin;
int indentID;
- QColor forecolor;
- QColor backcolor;
+ TQColor forecolor;
+ TQColor backcolor;
KURL fileURL;
KStatusBar *statusbar;
@@ -113,11 +113,11 @@ private:
KConfig *config;
- QScrollBar *hsb;
- QScrollBar *vsb;
- QFrame* mainpane;
+ TQScrollBar *hsb;
+ TQScrollBar *vsb;
+ TQFrame* mainpane;
- void printIt( KPrinter &printer, QPainter &painter );
+ void printIt( KPrinter &printer, TQPainter &painter );
bool loadAllPages( int &numpages, int &currentpage );
public slots:
@@ -146,14 +146,14 @@ public slots:
void lastPage();
void uiUpdate();
- void openadd(QString filename);
+ void openadd(TQString filename);
void FreeFax();
void scrollHorz(int);
void scrollVert(int);
};
-void kfaxerror(const QString&, const QString&);
-void loadfile(QString filename);
+void kfaxerror(const TQString&, const TQString&);
+void loadfile(TQString filename);
#endif // _KFAX_H_
diff --git a/kfax/kfax_printsettings.cpp b/kfax/kfax_printsettings.cpp
index 02aa4050..5382c2e5 100644
--- a/kfax/kfax_printsettings.cpp
+++ b/kfax/kfax_printsettings.cpp
@@ -20,14 +20,14 @@
#include "kfax_printsettings.h"
#include <klocale.h>
-#include <qcheckbox.h>
-#include <qlayout.h>
-#include <qwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqlayout.h>
+#include <tqwhatsthis.h>
-KFAXPrintSettings::KFAXPrintSettings(QWidget *parent, const char *name)
+KFAXPrintSettings::KFAXPrintSettings(TQWidget *parent, const char *name)
: KPrintDialogPage(parent, name)
{
- QString whatsThisScaleFullPage = i18n( "<qt>"
+ TQString whatsThisScaleFullPage = i18n( "<qt>"
"<p><strong>'Ignore Paper Margins'</strong></p>"
"<p>"
"If this checkbox is enabled, the paper margins will be ignored "
@@ -38,7 +38,7 @@ KFAXPrintSettings::KFAXPrintSettings(QWidget *parent, const char *name)
"margins and print the fax inside this printable area."
"</p>"
" </qt>" );
- QString whatsThisCenterHorz = i18n( "<qt>"
+ TQString whatsThisCenterHorz = i18n( "<qt>"
"<p><strong>'Horizontal centered'</strong></p>"
"<p>"
"If this checkbox is enabled, the fax will be centered horizontally "
@@ -49,7 +49,7 @@ KFAXPrintSettings::KFAXPrintSettings(QWidget *parent, const char *name)
"side of the page."
"</p>"
" </qt>" );
- QString whatsThisCenterVert = i18n( "<qt>"
+ TQString whatsThisCenterVert = i18n( "<qt>"
"<p><strong>'Vertical centered'</strong></p>"
"<p>"
"If this checkbox is enabled, the fax will be centered vertically "
@@ -63,14 +63,14 @@ KFAXPrintSettings::KFAXPrintSettings(QWidget *parent, const char *name)
setTitle(i18n("&Layout"));
- m_scaleFullPage = new QCheckBox(i18n("Ignore paper margins"), this);
- QWhatsThis::add(m_scaleFullPage, whatsThisScaleFullPage);
- m_center_horz = new QCheckBox(i18n("Horizontal centered"), this);
- QWhatsThis::add(m_center_horz, whatsThisCenterHorz);
- m_center_vert = new QCheckBox(i18n("Vertical centered"), this);
- QWhatsThis::add(m_center_vert, whatsThisCenterVert);
+ m_scaleFullPage = new TQCheckBox(i18n("Ignore paper margins"), this);
+ TQWhatsThis::add(m_scaleFullPage, whatsThisScaleFullPage);
+ m_center_horz = new TQCheckBox(i18n("Horizontal centered"), this);
+ TQWhatsThis::add(m_center_horz, whatsThisCenterHorz);
+ m_center_vert = new TQCheckBox(i18n("Vertical centered"), this);
+ TQWhatsThis::add(m_center_vert, whatsThisCenterVert);
- QVBoxLayout *l0 = new QVBoxLayout(this, 0, 10);
+ TQVBoxLayout *l0 = new TQVBoxLayout(this, 0, 10);
l0->addWidget(m_scaleFullPage);
l0->addWidget(m_center_horz);
l0->addWidget(m_center_vert);
@@ -81,14 +81,14 @@ KFAXPrintSettings::~KFAXPrintSettings()
{
}
-void KFAXPrintSettings::getOptions(QMap<QString,QString>& opts, bool /*incldef*/)
+void KFAXPrintSettings::getOptions(TQMap<TQString,TQString>& opts, bool /*incldef*/)
{
opts[APP_KFAX_SCALE_FULLPAGE] = (m_scaleFullPage->isChecked() ? "true" : "false");
opts[APP_KFAX_CENTER_HORZ] = (m_center_horz->isChecked() ? "true" : "false");
opts[APP_KFAX_CENTER_VERT] = (m_center_vert->isChecked() ? "true" : "false");
}
-void KFAXPrintSettings::setOptions(const QMap<QString,QString>& opts)
+void KFAXPrintSettings::setOptions(const TQMap<TQString,TQString>& opts)
{
m_scaleFullPage->setChecked(opts[APP_KFAX_SCALE_FULLPAGE] == "true");
m_center_horz->setChecked(opts[APP_KFAX_CENTER_HORZ] != "false");
diff --git a/kfax/kfax_printsettings.h b/kfax/kfax_printsettings.h
index e43e3530..3213b7d2 100644
--- a/kfax/kfax_printsettings.h
+++ b/kfax/kfax_printsettings.h
@@ -22,7 +22,7 @@
#include <kdeprint/kprintdialogpage.h>
-class QCheckBox;
+class TQCheckBox;
#define APP_KFAX_SCALE_FULLPAGE "app-kfax-scalefullpage"
#define APP_KFAX_CENTER_HORZ "app-kfax-center-horz"
@@ -32,11 +32,11 @@ class KFAXPrintSettings : public KPrintDialogPage
{
Q_OBJECT
public:
- KFAXPrintSettings(QWidget *parent = 0, const char *name = 0);
+ KFAXPrintSettings(TQWidget *parent = 0, const char *name = 0);
~KFAXPrintSettings();
- void getOptions(QMap<QString,QString>& opts, bool incldef = false);
- void setOptions(const QMap<QString,QString>& opts);
+ void getOptions(TQMap<TQString,TQString>& opts, bool incldef = false);
+ void setOptions(const TQMap<TQString,TQString>& opts);
private:
QCheckBox *m_scaleFullPage;
diff --git a/kfax/options.cpp b/kfax/options.cpp
index b8bf8067..b692b28d 100644
--- a/kfax/options.cpp
+++ b/kfax/options.cpp
@@ -27,142 +27,142 @@
#include <stdio.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klocale.h>
#include <knuminput.h>
-#include <qdir.h>
-#include <qprinter.h>
-#include <qframe.h>
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qcombobox.h>
-#include <qgroupbox.h>
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qlistbox.h>
-#include <qpushbutton.h>
-#include <qradiobutton.h>
-#include <qscrollbar.h>
-#include <qtooltip.h>
+#include <tqdir.h>
+#include <tqprinter.h>
+#include <tqframe.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqcombobox.h>
+#include <tqgroupbox.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqlistbox.h>
+#include <tqpushbutton.h>
+#include <tqradiobutton.h>
+#include <tqscrollbar.h>
+#include <tqtooltip.h>
#include "kfax.h"
#include "options.h"
-OptionsDialog::OptionsDialog( QWidget *parent, const char *name)
+OptionsDialog::OptionsDialog( TQWidget *parent, const char *name)
: KDialogBase( parent, name, true, i18n("Configure"), Ok|Cancel)
{
- QWidget *mainWidget = new QWidget(this);
+ TQWidget *mainWidget = new TQWidget(this);
setMainWidget(mainWidget);
- QVBoxLayout *mainLayout = new QVBoxLayout(mainWidget, 0, spacingHint());
+ TQVBoxLayout *mainLayout = new TQVBoxLayout(mainWidget, 0, spacingHint());
- bg = new QGroupBox(mainWidget,"bg");
+ bg = new TQGroupBox(mainWidget,"bg");
bg->setColumnLayout( 0, Qt::Horizontal );
mainLayout->addWidget( bg );
- QVBoxLayout *vbl = new QVBoxLayout(bg->layout());
+ TQVBoxLayout *vbl = new TQVBoxLayout(bg->layout());
- QHBoxLayout *hbl1 = new QHBoxLayout();
+ TQHBoxLayout *hbl1 = new TQHBoxLayout();
vbl->addLayout( hbl1 );
- displaylabel = new QLabel(i18n("Display options:"), bg,"displaylabel");
+ displaylabel = new TQLabel(i18n("Display options:"), bg,"displaylabel");
displaylabel->setFixedSize( displaylabel->sizeHint() );
hbl1->addWidget( displaylabel );
- landscape = new QCheckBox(i18n("Landscape"), bg,"Landscape");
+ landscape = new TQCheckBox(i18n("Landscape"), bg,"Landscape");
landscape->setFixedSize( landscape->sizeHint() );
hbl1->addSpacing( 10 );
hbl1->addWidget( landscape );
- flip = new QCheckBox(i18n("Upside down"), bg,"upsidedown");
+ flip = new TQCheckBox(i18n("Upside down"), bg,"upsidedown");
flip->setFixedSize( flip->sizeHint() );
hbl1->addSpacing( 10 );
hbl1->addWidget( flip );
- invert = new QCheckBox(i18n("Invert"), bg,"invert");
+ invert = new TQCheckBox(i18n("Invert"), bg,"invert");
invert->setFixedSize( invert->sizeHint() );
hbl1->addSpacing( 10 );
hbl1->addWidget( invert );
vbl->addSpacing( 20 );
- QHBoxLayout *hbl8 = new QHBoxLayout();
+ TQHBoxLayout *hbl8 = new TQHBoxLayout();
vbl->addLayout( hbl8 );
hbl8->addSpacing( 10 );
- resgroup = new QButtonGroup(bg,"resgroup");
- resgroup->setFrameStyle(QFrame::NoFrame);
+ resgroup = new TQButtonGroup(bg,"resgroup");
+ resgroup->setFrameStyle(TQFrame::NoFrame);
hbl8->addWidget( resgroup );
- QHBoxLayout *hbl2 = new QHBoxLayout(resgroup);
+ TQHBoxLayout *hbl2 = new TQHBoxLayout(resgroup);
- reslabel = new QLabel(i18n("Raw fax resolution:"),resgroup,"relabel");
+ reslabel = new TQLabel(i18n("Raw fax resolution:"),resgroup,"relabel");
hbl2->addWidget( reslabel );
- resauto = new QRadioButton(i18n("Auto"),resgroup,"resauto");
+ resauto = new TQRadioButton(i18n("Auto"),resgroup,"resauto");
hbl2->addSpacing( 20 );
hbl2->addWidget( resauto );
- fine = new QRadioButton(i18n("Fine"),resgroup,"fine");
+ fine = new TQRadioButton(i18n("Fine"),resgroup,"fine");
hbl2->addSpacing( 30 );
hbl2->addWidget( fine );
- normal = new QRadioButton(i18n("Normal"),resgroup,"normal");
+ normal = new TQRadioButton(i18n("Normal"),resgroup,"normal");
hbl2->addSpacing( 30 );
hbl2->addWidget( normal );
vbl->addSpacing( 20 );
- QHBoxLayout *hbl3 = new QHBoxLayout();
+ TQHBoxLayout *hbl3 = new TQHBoxLayout();
vbl->addLayout( hbl3 );
- lsblabel = new QLabel(i18n("Raw fax data are:"), bg,"lsblabel");
+ lsblabel = new TQLabel(i18n("Raw fax data are:"), bg,"lsblabel");
hbl3->addSpacing( 10 );
hbl3->addWidget( lsblabel );
- lsb = new QCheckBox(i18n("LS-Bit first"), bg,"lsbitfirst");
+ lsb = new TQCheckBox(i18n("LS-Bit first"), bg,"lsbitfirst");
hbl3->addSpacing( 10 );
hbl3->addWidget( lsb );
vbl->addSpacing( 15 );
- QHBoxLayout *hbl9 = new QHBoxLayout();
+ TQHBoxLayout *hbl9 = new TQHBoxLayout();
vbl->addLayout( hbl9 );
hbl9->addSpacing( 10 );
- rawgroup = new QButtonGroup(bg,"rawgroup");
+ rawgroup = new TQButtonGroup(bg,"rawgroup");
hbl9->addWidget( rawgroup );
- QHBoxLayout *hbl4 = new QHBoxLayout( rawgroup );
+ TQHBoxLayout *hbl4 = new TQHBoxLayout( rawgroup );
- rawgroup->setFrameStyle(QFrame::NoFrame);
+ rawgroup->setFrameStyle(TQFrame::NoFrame);
- rawlabel = new QLabel(i18n("Raw fax format:"),rawgroup,"rawlabel");
+ rawlabel = new TQLabel(i18n("Raw fax format:"),rawgroup,"rawlabel");
rawlabel->setFixedSize( rawlabel->sizeHint() );
hbl4->addWidget( rawlabel );
- g3 = new QRadioButton("G3",rawgroup,"g3");
- connect(g3,SIGNAL(clicked()), this, SLOT(g3toggled()));
+ g3 = new TQRadioButton("G3",rawgroup,"g3");
+ connect(g3,TQT_SIGNAL(clicked()), this, TQT_SLOT(g3toggled()));
hbl4->addSpacing( 20 );
hbl4->addWidget( g3 );
- g32d = new QRadioButton("G32d",rawgroup,"g32d");
- connect(g32d,SIGNAL(clicked()), this,SLOT(g32toggled()));
+ g32d = new TQRadioButton("G32d",rawgroup,"g32d");
+ connect(g32d,TQT_SIGNAL(clicked()), this,TQT_SLOT(g32toggled()));
hbl4->addSpacing( 30 );
hbl4->addWidget( g32d );
- g4 = new QRadioButton("G4",rawgroup,"g4");
- connect(g4,SIGNAL(clicked()), this, SLOT(g4toggled()));
+ g4 = new TQRadioButton("G4",rawgroup,"g4");
+ connect(g4,TQT_SIGNAL(clicked()), this, TQT_SLOT(g4toggled()));
hbl4->addSpacing( 30 );
hbl4->addWidget( g4 );
vbl->addSpacing( 20 );
- QHBoxLayout *hbl5 = new QHBoxLayout();
+ TQHBoxLayout *hbl5 = new TQHBoxLayout();
vbl->addLayout( hbl5 );
- widthlabel = new QLabel(i18n("Raw fax width:"),bg,"widthlabel");
+ widthlabel = new TQLabel(i18n("Raw fax width:"),bg,"widthlabel");
hbl5->addSpacing( 10 );
hbl5->addWidget( widthlabel );
@@ -170,7 +170,7 @@ OptionsDialog::OptionsDialog( QWidget *parent, const char *name)
widthedit->setRange(1, 10000, 1, false);
hbl5->addWidget( widthedit );
- heightlabel = new QLabel(i18n("Height:"),bg,"heightlabel");
+ heightlabel = new TQLabel(i18n("Height:"),bg,"heightlabel");
hbl5->addSpacing( 10 );
hbl5->addWidget( heightlabel );
@@ -178,8 +178,8 @@ OptionsDialog::OptionsDialog( QWidget *parent, const char *name)
heightedit->setRange(0, 100000, 1, false);
hbl5->addWidget( heightedit );
- geomauto = new QCheckBox(i18n("Auto"),bg,"geomauto");
- connect(geomauto,SIGNAL(clicked()),this,SLOT(geomtoggled()));
+ geomauto = new TQCheckBox(i18n("Auto"),bg,"geomauto");
+ connect(geomauto,TQT_SIGNAL(clicked()),this,TQT_SLOT(geomtoggled()));
hbl5->addSpacing( 10 );
hbl5->addWidget( geomauto );
}
diff --git a/kfax/options.h b/kfax/options.h
index fa9c61c9..693616e4 100644
--- a/kfax/options.h
+++ b/kfax/options.h
@@ -27,17 +27,17 @@
#ifndef _OPTIONS_DIALOG_H_
#define _OPTIONS_DIALOG_H_
-#include <qapplication.h>
-#include <qfiledialog.h>
+#include <tqapplication.h>
+#include <tqfiledialog.h>
#include <kdialogbase.h>
-#include <qstring.h>
+#include <tqstring.h>
-class QGroupBox;
-class QLabel;
-class QButtonGroup;
-class QRadioButton;
-class QCheckBox;
-class QRadioButton;
+class TQGroupBox;
+class TQLabel;
+class TQButtonGroup;
+class TQRadioButton;
+class TQCheckBox;
+class TQRadioButton;
struct optionsinfo {
@@ -60,7 +60,7 @@ class OptionsDialog : public KDialogBase {
Q_OBJECT
public:
- OptionsDialog( QWidget *parent = 0, const char *name = 0);
+ OptionsDialog( TQWidget *parent = 0, const char *name = 0);
struct optionsinfo* getInfo();
void setWidgets(struct optionsinfo *oi);
@@ -77,30 +77,30 @@ public slots:
private:
QGroupBox *bg;
- QLabel *reslabel;
- QButtonGroup *resgroup;
- QRadioButton *fine;
- QRadioButton *resauto;
- QRadioButton *normal;
+ TQLabel *reslabel;
+ TQButtonGroup *resgroup;
+ TQRadioButton *fine;
+ TQRadioButton *resauto;
+ TQRadioButton *normal;
QLabel *displaylabel;
- QButtonGroup *displaygroup;
- QCheckBox *landscape;
- QCheckBox *geomauto;
- QCheckBox *flip;
- QCheckBox *invert;
-
- QButtonGroup *lsbgroup;
- QLabel *lsblabel;
- QCheckBox *lsb;
- QButtonGroup *rawgroup;
- QRadioButton *g3;
- QRadioButton *g32d;
- QRadioButton *g4;
-
- QLabel *rawlabel;
-
- QLabel *widthlabel;
- QLabel *heightlabel;
+ TQButtonGroup *displaygroup;
+ TQCheckBox *landscape;
+ TQCheckBox *geomauto;
+ TQCheckBox *flip;
+ TQCheckBox *invert;
+
+ TQButtonGroup *lsbgroup;
+ TQLabel *lsblabel;
+ TQCheckBox *lsb;
+ TQButtonGroup *rawgroup;
+ TQRadioButton *g3;
+ TQRadioButton *g32d;
+ TQRadioButton *g4;
+
+ TQLabel *rawlabel;
+
+ TQLabel *widthlabel;
+ TQLabel *heightlabel;
KIntNumInput *widthedit;
KIntNumInput *heightedit;
diff --git a/kfax/viewfax.cpp b/kfax/viewfax.cpp
index fe1e4246..26a98613 100644
--- a/kfax/viewfax.cpp
+++ b/kfax/viewfax.cpp
@@ -36,12 +36,12 @@
#include <sys/time.h>
#include <unistd.h>
-#include <qglobal.h>
-#include <qdir.h>
-#include <qfile.h>
-#include <qevent.h>
-#include <qprinter.h>
-#include <qstring.h>
+#include <tqglobal.h>
+#include <tqdir.h>
+#include <tqfile.h>
+#include <tqevent.h>
+#include <tqprinter.h>
+#include <tqstring.h>
#include <kcmdlineargs.h>
#include <klocale.h>
@@ -222,7 +222,7 @@ int viewfaxmain()
defaultpage.width = args->getOption("width").toInt();
}
- QCString mem = args->getOption("mem");
+ TQCString mem = args->getOption("mem");
Memlimit = atoi(mem.data());
switch(mem[mem.length()-1]) {
case 'M':
@@ -240,7 +240,7 @@ int viewfaxmain()
firstpage = lastpage = thispage = helppage = auxpage = 0;
for (int i = 0; i < args->count(); i++){
- loadfile(QFile::decodeName(args->arg(i)));
+ loadfile(TQFile::decodeName(args->arg(i)));
}
args->clear();