diff options
Diffstat (limited to 'kfax/kfax.cpp')
-rw-r--r-- | kfax/kfax.cpp | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/kfax/kfax.cpp b/kfax/kfax.cpp index 716bcbb6..0388c05e 100644 --- a/kfax/kfax.cpp +++ b/kfax/kfax.cpp @@ -41,7 +41,7 @@ #include <tdelocale.h> #include <tdeaboutdata.h> -#include <kstandarddirs.h> +#include <tdestandarddirs.h> #include <kiconloader.h> #include <tdefiledialog.h> #include <tdefilemetainfo.h> @@ -58,7 +58,7 @@ #include <kurldrag.h> #include <kstatusbar.h> #include <tdeaction.h> -#include <kprocess.h> +#include <tdeprocess.h> #include <kprinter.h> #include <tdeio/job.h> #include <kdebug.h> @@ -147,8 +147,8 @@ Window qtwin; // the qt window Window Win; int qwindow_height; int qwindow_width; -bool have_no_fax = TRUE; -bool display_is_setup = FALSE; +bool have_no_fax = true; +bool display_is_setup = false; struct optionsinfo fop; // contains the fax options extern struct pagenode *firstpage, *lastpage, *thispage; @@ -161,7 +161,7 @@ bool buttondown; bool MyApp::x11EventFilter( XEvent * ev) { if (TDEApplication::x11EventFilter(ev)) - return TRUE; + return true; if (ev->type == ButtonRelease){ /* this is so that the cursor goes back to normal on leaving the fax window @@ -177,14 +177,14 @@ bool MyApp::x11EventFilter( XEvent * ev) ev->xany.window == Win){ if(startingup || have_no_fax) - return FALSE; + return false; toplevel->handle_X_event(*ev); ev->xany.window = qtwin; } - return FALSE; + return false; } @@ -211,14 +211,14 @@ TopLevel::TopLevel (TQWidget *, const char *name) // Create a Vertical scroll bar - vsb = new TQScrollBar( Qt::Vertical,faxqtwin,"scrollBar" ); + vsb = new TQScrollBar( TQt::Vertical,faxqtwin,"scrollBar" ); vsb->hide(); - connect( vsb, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(scrollVert(int)) ); + connect( vsb, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(scrollVert(int)) ); // Create a Horizontal scroll bar - hsb = new TQScrollBar( Qt::Horizontal,faxqtwin,"scrollBar" ); - connect( hsb, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(scrollHorz(int)) ); + hsb = new TQScrollBar( TQt::Horizontal,faxqtwin,"scrollBar" ); + connect( hsb, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(scrollHorz(int)) ); hsb->hide(); setCentralWidget(faxqtwin); @@ -236,43 +236,43 @@ TopLevel::~TopLevel() void TopLevel::setupMenuBar() { // File menu - KStdAction::open( TQT_TQOBJECT(this), TQT_SLOT( faxOpen() ), actionCollection() ); - actRecent = KStdAction::openRecent( TQT_TQOBJECT(this), TQT_SLOT( faxOpen( const KURL & ) ), + KStdAction::open( this, TQ_SLOT( faxOpen() ), actionCollection() ); + actRecent = KStdAction::openRecent( this, TQ_SLOT( faxOpen( const KURL & ) ), actionCollection() ); - actSave = KStdAction::save( TQT_TQOBJECT(this), TQT_SLOT( faxSave() ), actionCollection() ); - actSaveAs = KStdAction::saveAs( TQT_TQOBJECT(this), TQT_SLOT( faxSaveAs() ), + actSave = KStdAction::save( this, TQ_SLOT( faxSave() ), actionCollection() ); + actSaveAs = KStdAction::saveAs( this, TQ_SLOT( faxSaveAs() ), actionCollection() ); - actPrint = KStdAction::print( TQT_TQOBJECT(this), TQT_SLOT( print() ), actionCollection() ); - KStdAction::quit( TQT_TQOBJECT(this), TQT_SLOT( close() ), actionCollection() ); - actAdd = new TDEAction( i18n( "A&dd..." ), "document-new", TDEShortcut(), TQT_TQOBJECT(this), - TQT_SLOT( faxAdd() ), actionCollection(), "file_add_fax" ); + actPrint = KStdAction::print( this, TQ_SLOT( print() ), actionCollection() ); + KStdAction::quit( this, TQ_SLOT( close() ), actionCollection() ); + actAdd = new TDEAction( i18n( "A&dd..." ), "document-new", TDEShortcut(), this, + TQ_SLOT( faxAdd() ), actionCollection(), "file_add_fax" ); actRecent->setMaxItems( 5 ); // View Menu - actSize = KStdAction::actualSize( TQT_TQOBJECT(this), TQT_SLOT( actualSize() ), + actSize = KStdAction::actualSize( this, TQ_SLOT( actualSize() ), actionCollection() ); - actZoomIn = KStdAction::zoomIn( TQT_TQOBJECT(this), TQT_SLOT( zoomin() ), actionCollection() ); - actZoomOut = KStdAction::zoomOut( TQT_TQOBJECT(this), TQT_SLOT( zoomout() ), + actZoomIn = KStdAction::zoomIn( this, TQ_SLOT( zoomin() ), actionCollection() ); + actZoomOut = KStdAction::zoomOut( this, TQ_SLOT( zoomout() ), actionCollection() ); - actRotate = new TDEAction( i18n( "&Rotate Page" ), "rotate", TDEShortcut(), TQT_TQOBJECT(this), - TQT_SLOT( rotatePage() ), actionCollection(), "view_rotate" ); - actMirror = new TDEAction( i18n( "Mirror Page" ), TDEShortcut(), TQT_TQOBJECT(this), - TQT_SLOT( mirrorPage() ), actionCollection(), "view_mirror" ); - actFlip = new TDEAction( i18n( "&Flip Page" ), TDEShortcut(), TQT_TQOBJECT(this), - TQT_SLOT( flipPage() ), actionCollection(), "view_flip" ); + actRotate = new TDEAction( i18n( "&Rotate Page" ), "rotate", TDEShortcut(), this, + TQ_SLOT( rotatePage() ), actionCollection(), "view_rotate" ); + actMirror = new TDEAction( i18n( "Mirror Page" ), TDEShortcut(), this, + TQ_SLOT( mirrorPage() ), actionCollection(), "view_mirror" ); + actFlip = new TDEAction( i18n( "&Flip Page" ), TDEShortcut(), this, + TQ_SLOT( flipPage() ), actionCollection(), "view_flip" ); // Go menu - actNext = KStdAction::next( TQT_TQOBJECT(this), TQT_SLOT( nextPage() ), actionCollection() ); - actPrev = KStdAction::prior( TQT_TQOBJECT(this), TQT_SLOT( prevPage() ), actionCollection() ); - actFirst = KStdAction::firstPage( TQT_TQOBJECT(this), TQT_SLOT( firstPage() ), + actNext = KStdAction::next( this, TQ_SLOT( nextPage() ), actionCollection() ); + actPrev = KStdAction::prior( this, TQ_SLOT( prevPage() ), actionCollection() ); + actFirst = KStdAction::firstPage( this, TQ_SLOT( firstPage() ), actionCollection() ); - actLast = KStdAction::lastPage( TQT_TQOBJECT(this), TQT_SLOT( lastPage() ), + actLast = KStdAction::lastPage( this, TQ_SLOT( lastPage() ), actionCollection() ); // Settings menu - KStdAction::preferences( TQT_TQOBJECT(this), TQT_SLOT( faxoptions() ), actionCollection() ); + KStdAction::preferences( this, TQ_SLOT( faxoptions() ), actionCollection() ); } void TopLevel::setupStatusBar() @@ -295,7 +295,7 @@ void TopLevel::setupStatusBar() void TopLevel::readSettings() { - config = kapp->config(); + config = tdeApp->config(); applyMainWindowSettings( config, "MainWindowSettings" ); @@ -358,7 +358,7 @@ bool TopLevel::queryClose() void TopLevel::writeSettings() { - config = kapp->config(); + config = tdeApp->config(); config->setGroup("General Options"); @@ -723,7 +723,7 @@ void TopLevel::printIt( KPrinter &printer, TQPainter &painter ) TQPaintDeviceMetrics dm(painter.device()); TQApplication::setOverrideCursor( waitCursor ); - kapp->processEvents(); + tdeApp->processEvents(); const bool fullpage = printer.option(APP_KFAX_SCALE_FULLPAGE) == "true"; const bool center_h = printer.option(APP_KFAX_CENTER_HORZ) == "true"; @@ -890,7 +890,7 @@ void SetupDisplay(){ return; } - display_is_setup = TRUE; + display_is_setup = true; xpos = ypos = ox = oy = 0; ExpectConfNotify = 1; @@ -957,7 +957,7 @@ void TopLevel::handle_X_event(XEvent Event) if(!Image) break; - putimage = TRUE; + putimage = true; } break; @@ -983,19 +983,19 @@ void TopLevel::handle_X_event(XEvent Event) case XK_Up: ypos-= qwindow_height / 3; - putimage = TRUE; + putimage = true; break; case XK_Down: ypos+= qwindow_height / 3; - putimage = TRUE; + putimage = true; break; case XK_Left: xpos-= qwindow_width / 4; - putimage = TRUE; + putimage = true; break; case XK_Right: xpos+= qwindow_width / 4; - putimage = TRUE; + putimage = true; break; case XK_Home: case XK_R7: @@ -1117,7 +1117,7 @@ void TopLevel::handle_X_event(XEvent Event) offx = nx; offy = ny; - putimage = TRUE; + putimage = true; break; @@ -1134,7 +1134,7 @@ void TopLevel::handle_X_event(XEvent Event) } while (XCheckWindowEvent(qtdisplay, Win, KeyPressMask|ButtonPressMask, &Event)); - if(putimage == TRUE) { + if(putimage) { Refresh = Resize = 1; putImage(); } |