diff options
Diffstat (limited to 'karbon/karbon_view.cc')
-rw-r--r-- | karbon/karbon_view.cc | 408 |
1 files changed, 204 insertions, 204 deletions
diff --git a/karbon/karbon_view.cc b/karbon/karbon_view.cc index 3eb1c19c..db540aa0 100644 --- a/karbon/karbon_view.cc +++ b/karbon/karbon_view.cc @@ -19,13 +19,13 @@ #include "karbon_view.h" -#include <qdragobject.h> -#include <qiconset.h> -#include <qapplication.h> -#include <qclipboard.h> -#include <qpopupmenu.h> -#include <qpaintdevicemetrics.h> -#include <qpainter.h> +#include <tqdragobject.h> +#include <tqiconset.h> +#include <tqapplication.h> +#include <tqclipboard.h> +#include <tqpopupmenu.h> +#include <tqpaintdevicemetrics.h> +#include <tqpainter.h> #include <kaction.h> #include <kcolordrag.h> @@ -107,8 +107,8 @@ const int rulerWidth = 20; // vertical ruler width const int rulerHeight = 20; // horizontal ruler height -KarbonView::KarbonView( KarbonPart* p, QWidget* parent, const char* name ) - : KoView( p, parent, name ), KXMLGUIBuilder( shell() ), m_part( p ) +KarbonView::KarbonView( KarbonPart* p, TQWidget* tqparent, const char* name ) + : KoView( p, tqparent, name ), KXMLGUIBuilder( shell() ), m_part( p ) { m_toolbox = 0L; m_toolController = new VToolController( this ); @@ -119,20 +119,20 @@ KarbonView::KarbonView( KarbonPart* p, QWidget* parent, const char* name ) setClientBuilder( this ); if( !p->isReadWrite() ) - setXMLFile( QString::fromLatin1( "karbon_readonly.rc" ) ); + setXMLFile( TQString::tqfromLatin1( "karbon_readonly.rc" ) ); else - setXMLFile( QString::fromLatin1( "karbon.rc" ) ); + setXMLFile( TQString::tqfromLatin1( "karbon.rc" ) ); m_dcop = 0L; dcopObject(); // build it // set up status bar message - m_status = new KStatusBarLabel( QString::null, 0, statusBar() ); - m_status->setAlignment( AlignLeft | AlignVCenter ); + m_status = new KStatusBarLabel( TQString(), 0, statusBar() ); + m_status->tqsetAlignment( AlignLeft | AlignVCenter ); m_status->setMinimumWidth( 300 ); addStatusBarItem( m_status, 1 ); - m_cursorCoords = new KStatusBarLabel( QString::null, 0, statusBar() ); - m_cursorCoords->setAlignment( AlignLeft | AlignVCenter ); + m_cursorCoords = new KStatusBarLabel( TQString(), 0, statusBar() ); + m_cursorCoords->tqsetAlignment( AlignLeft | AlignVCenter ); m_cursorCoords->setMinimumWidth( 50 ); addStatusBarItem( m_cursorCoords, 0 ); m_smallPreview = new VSmallPreview( this, name ); @@ -159,26 +159,26 @@ KarbonView::KarbonView( KarbonPart* p, QWidget* parent, const char* name ) reorganizeGUI(); - connect( p, SIGNAL( unitChanged( KoUnit::Unit ) ), this, SLOT( setUnit( KoUnit::Unit ) ) ); + connect( p, TQT_SIGNAL( unitChanged( KoUnit::Unit ) ), TQT_TQOBJECT(this), TQT_SLOT( setUnit( KoUnit::Unit ) ) ); // widgets: m_horizRuler = new VRuler( Qt::Horizontal, this ); m_horizRuler->setUnit(p->unit()); - connect( p, SIGNAL( unitChanged( KoUnit::Unit ) ), m_horizRuler, SLOT( setUnit( KoUnit::Unit ) ) ); + connect( p, TQT_SIGNAL( unitChanged( KoUnit::Unit ) ), m_horizRuler, TQT_SLOT( setUnit( KoUnit::Unit ) ) ); m_vertRuler = new VRuler( Qt::Vertical, this ); m_vertRuler->setUnit(p->unit()); - connect( p, SIGNAL( unitChanged( KoUnit::Unit ) ), m_vertRuler, SLOT( setUnit( KoUnit::Unit ) ) ); + connect( p, TQT_SIGNAL( unitChanged( KoUnit::Unit ) ), m_vertRuler, TQT_SLOT( setUnit( KoUnit::Unit ) ) ); m_canvas = new VCanvas( this, this, p ); - connect( m_canvas, SIGNAL( contentsMoving( int, int ) ), this, SLOT( canvasContentsMoving( int, int ) ) ); + connect( m_canvas, TQT_SIGNAL( contentsMoving( int, int ) ), TQT_TQOBJECT(this), TQT_SLOT( canvasContentsMoving( int, int ) ) ); m_canvas->show(); // set up factory m_painterFactory = new VPainterFactory; - m_painterFactory->setPainter( canvasWidget()->pixmap(), width(), height() ); - m_painterFactory->setEditPainter( canvasWidget()->viewport(), width(), height() ); + m_painterFactory->setPainter( TQT_TQPAINTDEVICE(canvasWidget()->pixmap()), width(), height() ); + m_painterFactory->setEditPainter( TQT_TQPAINTDEVICE(canvasWidget()->viewport()), width(), height() ); if( shell() ) { @@ -227,29 +227,29 @@ KarbonView::~KarbonView() delete m_toolController; } -static Qt::Dock stringToDock( const QString& attrPosition ) +static TQt::Dock stringToDock( const TQString& attrPosition ) { KToolBar::Dock dock = KToolBar::DockTop; if ( !attrPosition.isEmpty() ) { if ( attrPosition == "top" ) - dock = Qt::DockTop; + dock = TQt::DockTop; else if ( attrPosition == "left" ) - dock = Qt::DockLeft; + dock = TQt::DockLeft; else if ( attrPosition == "right" ) - dock = Qt::DockRight; + dock = TQt::DockRight; else if ( attrPosition == "bottom" ) - dock = Qt::DockBottom; + dock = TQt::DockBottom; else if ( attrPosition == "floating" ) - dock = Qt::DockTornOff; + dock = TQt::DockTornOff; else if ( attrPosition == "flat" ) - dock = Qt::DockMinimized; + dock = TQt::DockMinimized; } return dock; } -QWidget * -KarbonView::createContainer( QWidget *parent, int index, const QDomElement &element, int &id ) +TQWidget * +KarbonView::createContainer( TQWidget *tqparent, int index, const TQDomElement &element, int &id ) { if( element.attribute( "name" ) == "Tools" ) { @@ -262,27 +262,27 @@ KarbonView::createContainer( QWidget *parent, int index, const QDomElement &elem mainWindow()->addDockWindow( m_toolbox, dock, false); mainWindow()->moveDockWindow( m_toolbox, dock, false, 0, 0 ); - //connect( m_toolbox, SIGNAL( activeToolChanged( VTool * ) ), this, SLOT( slotActiveToolChanged( VTool * ) ) ); + //connect( m_toolbox, TQT_SIGNAL( activeToolChanged( VTool * ) ), TQT_TQOBJECT(this), TQT_SLOT( slotActiveToolChanged( VTool * ) ) ); if( shell() ) { m_strokeFillPreview = new VStrokeFillPreview( part(), m_toolbox ); m_typeButtonBox = new VTypeButtonBox( part(), m_toolbox ); - connect( m_strokeFillPreview, SIGNAL( fillSelected() ), m_typeButtonBox, SLOT( setFill() ) ); - connect( m_strokeFillPreview, SIGNAL( strokeSelected() ), m_typeButtonBox, SLOT( setStroke() ) ); + connect( m_strokeFillPreview, TQT_SIGNAL( fillSelected() ), m_typeButtonBox, TQT_SLOT( setFill() ) ); + connect( m_strokeFillPreview, TQT_SIGNAL( strokeSelected() ), m_typeButtonBox, TQT_SLOT( setStroke() ) ); - connect( m_strokeFillPreview, SIGNAL( strokeChanged( const VStroke & ) ), this, SLOT( slotStrokeChanged( const VStroke & ) ) ); - connect( m_strokeFillPreview, SIGNAL( fillChanged( const VFill & ) ), this, SLOT( slotFillChanged( const VFill & ) ) ); + connect( m_strokeFillPreview, TQT_SIGNAL( strokeChanged( const VStroke & ) ), TQT_TQOBJECT(this), TQT_SLOT( slotStrokeChanged( const VStroke & ) ) ); + connect( m_strokeFillPreview, TQT_SIGNAL( fillChanged( const VFill & ) ), TQT_TQOBJECT(this), TQT_SLOT( slotFillChanged( const VFill & ) ) ); - connect( m_strokeFillPreview, SIGNAL( strokeSelected() ), m_ColorManager, SLOT( setStrokeDocker() ) ); - connect( m_strokeFillPreview, SIGNAL( fillSelected( ) ), m_ColorManager, SLOT( setFillDocker() ) ); + connect( m_strokeFillPreview, TQT_SIGNAL( strokeSelected() ), m_ColorManager, TQT_SLOT( setStrokeDocker() ) ); + connect( m_strokeFillPreview, TQT_SIGNAL( fillSelected( ) ), m_ColorManager, TQT_SLOT( setFillDocker() ) ); - connect( m_part->commandHistory(), SIGNAL( commandExecuted( VCommand* ) ), this, SLOT( commandExecuted( VCommand* ) ) ); + connect( m_part->commandHistory(), TQT_SIGNAL( commandExecuted( VCommand* ) ), TQT_TQOBJECT(this), TQT_SLOT( commandExecuted( VCommand* ) ) ); - connect( m_ColorManager, SIGNAL(modeChanged( KDualColorButton::DualColor)), this, SLOT( strokeFillSelectionChanged(KDualColorButton::DualColor) ) ); - connect( m_ColorManager, SIGNAL(bgColorChanged( const QColor & )), this, SLOT(colorChanged( const QColor & )) ); - connect( m_ColorManager, SIGNAL(fgColorChanged( const QColor & )), this, SLOT(colorChanged( const QColor & )) ); + connect( m_ColorManager, TQT_SIGNAL(modeChanged( KDualColorButton::DualColor)), TQT_TQOBJECT(this), TQT_SLOT( strokeFillSelectionChanged(KDualColorButton::DualColor) ) ); + connect( m_ColorManager, TQT_SIGNAL(bgColorChanged( const TQColor & )), TQT_TQOBJECT(this), TQT_SLOT(colorChanged( const TQColor & )) ); + connect( m_ColorManager, TQT_SIGNAL(fgColorChanged( const TQColor & )), TQT_TQOBJECT(this), TQT_SLOT(colorChanged( const TQColor & )) ); selectionChanged(); //create toolbars @@ -291,22 +291,22 @@ KarbonView::createContainer( QWidget *parent, int index, const QDomElement &elem } } - return KXMLGUIBuilder::createContainer( parent, index, element, id ); + return KXMLGUIBuilder::createContainer( tqparent, index, element, id ); } void -KarbonView::removeContainer( QWidget *container, QWidget *parent, - QDomElement &element, int id ) +KarbonView::removeContainer( TQWidget *container, TQWidget *tqparent, + TQDomElement &element, int id ) { if( container ) kdDebug(38000) << container << endl; if( shell() && container == m_toolbox ) { - disconnect( m_part->commandHistory(), SIGNAL( commandExecuted( VCommand* ) ), this, SLOT( commandExecuted( VCommand* ) ) ); - disconnect( m_ColorManager, SIGNAL(modeChanged( KDualColorButton::DualColor)), this, SLOT( strokeFillSelectionChanged(KDualColorButton::DualColor) ) ); - disconnect( m_ColorManager, SIGNAL(bgColorChanged( const QColor & )), this, SLOT(colorChanged( const QColor & )) ); - disconnect( m_ColorManager, SIGNAL(fgColorChanged( const QColor & )), this, SLOT(colorChanged( const QColor & )) ); + disconnect( m_part->commandHistory(), TQT_SIGNAL( commandExecuted( VCommand* ) ), TQT_TQOBJECT(this), TQT_SLOT( commandExecuted( VCommand* ) ) ); + disconnect( m_ColorManager, TQT_SIGNAL(modeChanged( KDualColorButton::DualColor)), TQT_TQOBJECT(this), TQT_SLOT( strokeFillSelectionChanged(KDualColorButton::DualColor) ) ); + disconnect( m_ColorManager, TQT_SIGNAL(bgColorChanged( const TQColor & )), TQT_TQOBJECT(this), TQT_SLOT(colorChanged( const TQColor & )) ); + disconnect( m_ColorManager, TQT_SIGNAL(fgColorChanged( const TQColor & )), TQT_TQOBJECT(this), TQT_SLOT(colorChanged( const TQColor & )) ); delete m_toolbox; m_toolbox = 0L; m_toolController->youAintGotNoToolBox(); @@ -318,7 +318,7 @@ KarbonView::removeContainer( QWidget *container, QWidget *parent, // m_selectToolBar = 0L; } else - KXMLGUIBuilder::removeContainer( container, parent, element, id ); + KXMLGUIBuilder::removeContainer( container, tqparent, element, id ); } @@ -331,14 +331,14 @@ KarbonView::dcopObject() return m_dcop; } -QWidget* +TQWidget* KarbonView::canvas() const { return m_canvas; } void -KarbonView::resizeEvent( QResizeEvent* /*event*/ ) +KarbonView::resizeEvent( TQResizeEvent* /*event*/ ) { if( shell() && m_showRulerAction->isChecked()) { @@ -357,10 +357,10 @@ KarbonView::resizeEvent( QResizeEvent* /*event*/ ) } void -KarbonView::dropEvent( QDropEvent *e ) +KarbonView::dropEvent( TQDropEvent *e ) { - //Accepts QColor - from Color Manager's KColorPatch - QColor color; + //Accepts TQColor - from Color Manager's KColorPatch + TQColor color; VColor realcolor; VObjectList selection; @@ -383,7 +383,7 @@ KarbonView::dropEvent( QDropEvent *e ) VObject *clipart = selection.first(); KoPoint p( e->pos() ); p = m_canvas->toContents( p ); - QWMatrix mat( 1, 0, 0, 1, p.x(), p.y() ); + TQWMatrix mat( 1, 0, 0, 1, p.x(), p.y() ); VTransformCmd trafo( 0L, mat ); trafo.visit( *clipart ); @@ -396,10 +396,10 @@ KarbonView::dropEvent( QDropEvent *e ) void KarbonView::print( KPrinter &printer ) { - // TODO : ultimately use plain QPainter here as that is better suited to print system + // TODO : ultimately use plain TQPainter here as that is better suited to print system kdDebug(38000) << "KarbonView::print" << endl; - QPaintDeviceMetrics metrics( ( QPaintDevice * ) & printer ); + TQPaintDeviceMetrics metrics( ( TQPaintDevice * ) & printer ); printer.setFullPage( true ); KoPageLayout pageLayout = part()->pageLayout(); @@ -409,7 +409,7 @@ KarbonView::print( KPrinter &printer ) // we are using 72 dpi internally double zoom = metrics.logicalDpiX() / 72.0; - QWMatrix mat; + TQWMatrix mat; mat.scale( 1, -1 ); mat.translate( 0, -part()->document().height()*zoom ); @@ -418,10 +418,10 @@ KarbonView::print( KPrinter &printer ) KoRect rect( 0, 0, w, h ); - QPixmap img( static_cast<int>( w ), static_cast<int>( h ) ); + TQPixmap img( static_cast<int>( w ), static_cast<int>( h ) ); // first use the libarts painter to draw into the pixmap - VKoPainter kop( ( QPaintDevice * )&img, static_cast<int>( w ), static_cast<int>( h ) ); + VKoPainter kop( ( TQPaintDevice * )&img, static_cast<int>( w ), static_cast<int>( h ) ); kop.setZoomFactor( zoom ); kop.setWorldMatrix( mat ); @@ -432,7 +432,7 @@ KarbonView::print( KPrinter &printer ) kop.end(); - QPainter p; + TQPainter p; // us kopainter to draw the pixmap // note that it is looking unsmooth when previewing, @@ -445,15 +445,15 @@ KarbonView::print( KPrinter &printer ) void KarbonView::fileImportGraphic() { - QStringList filter; + TQStringList filter; filter << "application/x-karbon" << "image/svg+xml" << "image/x-wmf" << "image/x-eps" << "application/postscript"; - KFileDialog *dialog = new KFileDialog( "foo", QString::null, 0L, "Choose Graphic to Add", true); + KFileDialog *dialog = new KFileDialog( "foo", TQString(), 0L, "Choose Graphic to Add", true); dialog->setMimeFilter( filter, "application/x-karbon" ); - if(dialog->exec()!=QDialog::Accepted) { + if(dialog->exec()!=TQDialog::Accepted) { delete dialog; return; } - QString fname = dialog->selectedFile(); + TQString fname = dialog->selectedFile(); //kdDebug(38000) << "in : " << fname.latin1() << endl; //kdDebug(38000) << "part()->document()->nativeFormatMimeType().latin1() : " << part()->nativeFormatMimeType() << endl; //kdDebug(38000) << "dialog->currentMimeFilter().latin1() : " << dialog->currentMimeFilter().latin1() << endl; @@ -462,14 +462,14 @@ KarbonView::fileImportGraphic() else { KoFilterManager man( part() ); - KoFilter::ConversionStatus status; - QString importedFile = man.import( fname, status ); + KoFilter::ConversiontqStatus status; + TQString importedFile = man.import( fname, status ); part()->mergeNativeFormat( importedFile ); if( !importedFile.isEmpty() ) - unlink( QFile::encodeName( importedFile ) ); + unlink( TQFile::encodeName( importedFile ) ); } delete dialog; - part()->repaintAllViews(); + part()->tqrepaintAllViews(); } void @@ -494,7 +494,7 @@ KarbonView::addSelectionToClipboard() const KarbonDrag* kd = new KarbonDrag(); kd->setObjectList( part()->document().selection()->objects() ); - QApplication::clipboard()->setData( kd ); + TQApplication::tqclipboard()->setData( kd ); } void @@ -503,7 +503,7 @@ KarbonView::editPaste() KarbonDrag kd; VObjectList objects; - if( !kd.decode( QApplication::clipboard()->data(), objects, part()->document() ) ) + if( !kd.decode( TQApplication::tqclipboard()->data(), objects, part()->document() ) ) return; // Paste with a small offset. @@ -515,7 +515,7 @@ KarbonView::editPaste() &objects, copyOffset ), true ); - part()->repaintAllViews(); + part()->tqrepaintAllViews(); selectionChanged(); } @@ -525,7 +525,7 @@ KarbonView::editSelectAll() part()->document().selection()->append(); if( part()->document().selection()->objects().count() > 0 ) - part()->repaintAllViews(); + part()->tqrepaintAllViews(); selectionChanged(); } @@ -536,7 +536,7 @@ KarbonView::editDeselectAll() if( part()->document().selection()->objects().count() > 0 ) { part()->document().selection()->clear(); - part()->repaintAllViews(); + part()->tqrepaintAllViews(); } selectionChanged(); @@ -695,7 +695,7 @@ KarbonView::selectionDuplicate() &objects, copyOffset ), true ); - part()->repaintAllViews(); + part()->tqrepaintAllViews(); selectionChanged(); } @@ -750,7 +750,7 @@ KarbonView::slotActiveToolChanged( VTool *tool ) { toolController()->setCurrentTool( tool ); - m_canvas->repaintAll(); + m_canvas->tqrepaintAll(); } void @@ -759,18 +759,18 @@ KarbonView::viewModeChanged() canvasWidget()->pixmap()->fill(); if( m_viewAction->currentItem() == 1 ) - m_painterFactory->setWireframePainter( canvasWidget()->pixmap(), width(), height() ); + m_painterFactory->setWireframePainter( TQT_TQPAINTDEVICE(canvasWidget()->pixmap()), width(), height() ); else - m_painterFactory->setPainter( canvasWidget()->pixmap(), width(), height() ); + m_painterFactory->setPainter( TQT_TQPAINTDEVICE(canvasWidget()->pixmap()), width(), height() ); - m_canvas->repaintAll(); + m_canvas->tqrepaintAll(); } void KarbonView::setZoomAt( double zoom, const KoPoint &p ) { - QString zoomText = QString( "%1%" ).arg( zoom * 100.0, 0, 'f', 2 ); - QStringList stl = m_zoomAction->items(); + TQString zoomText = TQString( "%1%" ).tqarg( zoom * 100.0, 0, 'f', 2 ); + TQStringList stl = m_zoomAction->items(); if( stl.first() == "25%" ) { stl.prepend( zoomText.latin1() ); @@ -868,7 +868,7 @@ KarbonView::zoomChanged( const KoPoint &p ) painter->setZoomFactor( zoomFactor ); m_canvas->setViewport( centerX, centerY ); - m_canvas->repaintAll(); + m_canvas->tqrepaintAll(); m_canvas->viewport()->setUpdatesEnabled( true ); @@ -892,18 +892,18 @@ KarbonView::zoomChanged( const KoPoint &p ) void KarbonView::setLineStyle( int style ) { - QValueList<float> dashes; - if( style == Qt::NoPen ) + TQValueList<float> dashes; + if( style == TQt::NoPen ) part()->addCommand( new VStrokeCmd( &part()->document(), dashes << 0 << 20 ), true ); - else if( style == Qt::SolidLine ) + else if( style == TQt::SolidLine ) part()->addCommand( new VStrokeCmd( &part()->document(), dashes ), true ); - else if( style == Qt::DashLine ) + else if( style == TQt::DashLine ) part()->addCommand( new VStrokeCmd( &part()->document(), dashes << 12 << 6 ), true ); - else if( style == Qt::DotLine ) + else if( style == TQt::DotLine ) part()->addCommand( new VStrokeCmd( &part()->document(), dashes << 2 << 2 ), true ); - else if( style == Qt::DashDotLine ) + else if( style == TQt::DashDotLine ) part()->addCommand( new VStrokeCmd( &part()->document(), dashes << 12 << 2 << 2 << 2 ), true ); - else if( style == Qt::DashDotDotLine ) + else if( style == TQt::DashDotDotLine ) part()->addCommand( new VStrokeCmd( &part()->document(), dashes << 12 << 2 << 2 << 2 << 2 << 2 ), true ); } @@ -940,20 +940,20 @@ KarbonView::initActions() { // view -----> m_viewAction = new KSelectAction( - i18n( "View &Mode" ), 0, this, - SLOT( viewModeChanged() ), actionCollection(), "view_mode" ); + i18n( "View &Mode" ), 0, TQT_TQOBJECT(this), + TQT_SLOT( viewModeChanged() ), actionCollection(), "view_mode" ); m_zoomAction = new KSelectAction( - i18n( "&Zoom" ), "viewmag", 0, this, - SLOT( zoomChanged() ), actionCollection(), "view_zoom" ); + i18n( "&Zoom" ), "viewmag", 0, TQT_TQOBJECT(this), + TQT_SLOT( zoomChanged() ), actionCollection(), "view_zoom" ); - QStringList mstl; + TQStringList mstl; mstl << i18n( "Normal" ) << i18n( "Wireframe" ); m_viewAction->setItems( mstl ); m_viewAction->setCurrentItem( 0 ); m_viewAction->setEditable( false ); - QStringList stl; + TQStringList stl; // xgettext:no-c-format stl << i18n( "25%" ); // xgettext:no-c-format @@ -975,11 +975,11 @@ KarbonView::initActions() m_zoomAction->setEditable( true ); m_zoomAction->setCurrentItem( 7 ); - KStdAction::zoomIn( this, SLOT( viewZoomIn() ), actionCollection(), "view_zoom_in" ); - KStdAction::zoomOut( this, SLOT( viewZoomOut() ), actionCollection(), "view_zoom_out" ); + KStdAction::zoomIn( TQT_TQOBJECT(this), TQT_SLOT( viewZoomIn() ), actionCollection(), "view_zoom_in" ); + KStdAction::zoomOut( TQT_TQOBJECT(this), TQT_SLOT( viewZoomOut() ), actionCollection(), "view_zoom_out" ); m_showPageMargins = new KToggleAction( i18n("Show Page Margins"), "view_margins", 0, actionCollection(), "view_show_margins" ); - connect( m_showPageMargins, SIGNAL(toggled(bool)), SLOT(togglePageMargins(bool))); + connect( m_showPageMargins, TQT_SIGNAL(toggled(bool)), TQT_SLOT(togglePageMargins(bool))); #if KDE_IS_VERSION(3,2,90) m_showPageMargins->setCheckedState(i18n("Hide Page Margins")); #endif @@ -989,133 +989,133 @@ KarbonView::initActions() return; // edit -----> - KStdAction::cut( this, - SLOT( editCut() ), actionCollection(), "edit_cut" ); - KStdAction::copy( this, - SLOT( editCopy() ), actionCollection(), "edit_copy" ); - KStdAction::paste( this, - SLOT( editPaste() ), actionCollection(), "edit_paste" ); - KStdAction::selectAll( this, SLOT( editSelectAll() ), actionCollection(), "edit_select_all" ); - KStdAction::deselect( this, SLOT( editDeselectAll() ), actionCollection(), "edit_deselect_all" ); + KStdAction::cut( TQT_TQOBJECT(this), + TQT_SLOT( editCut() ), actionCollection(), "edit_cut" ); + KStdAction::copy( TQT_TQOBJECT(this), + TQT_SLOT( editCopy() ), actionCollection(), "edit_copy" ); + KStdAction::paste( TQT_TQOBJECT(this), + TQT_SLOT( editPaste() ), actionCollection(), "edit_paste" ); + KStdAction::selectAll( TQT_TQOBJECT(this), TQT_SLOT( editSelectAll() ), actionCollection(), "edit_select_all" ); + KStdAction::deselect( TQT_TQOBJECT(this), TQT_SLOT( editDeselectAll() ), actionCollection(), "edit_deselect_all" ); new KAction( - i18n( "&Import Graphic..." ), 0, 0, this, - SLOT( fileImportGraphic() ), actionCollection(), "file_import" ); + i18n( "&Import Graphic..." ), 0, 0, TQT_TQOBJECT(this), + TQT_SLOT( fileImportGraphic() ), actionCollection(), "file_import" ); m_deleteSelectionAction = new KAction( - i18n( "D&elete" ), "editdelete", QKeySequence( "Del" ), this, - SLOT( editDeleteSelection() ), actionCollection(), "edit_delete" ); + i18n( "D&elete" ), "editdelete", TQKeySequence( "Del" ), TQT_TQOBJECT(this), + TQT_SLOT( editDeleteSelection() ), actionCollection(), "edit_delete" ); new KAction( - i18n( "&History" ), 0, 0, this, - SLOT( editPurgeHistory() ), actionCollection(), "edit_purge_history" ); + i18n( "&History" ), 0, 0, TQT_TQOBJECT(this), + TQT_SLOT( editPurgeHistory() ), actionCollection(), "edit_purge_history" ); // edit <----- // object -----> new KAction( - i18n( "&Duplicate" ), "duplicate", QKeySequence( "Ctrl+D" ), this, - SLOT( selectionDuplicate() ), actionCollection(), "object_duplicate" ); + i18n( "&Duplicate" ), "duplicate", TQKeySequence( "Ctrl+D" ), TQT_TQOBJECT(this), + TQT_SLOT( selectionDuplicate() ), actionCollection(), "object_duplicate" ); new KAction( - i18n( "Bring to &Front" ), "bring_forward", QKeySequence( "Ctrl+Shift+]" ), this, - SLOT( selectionBringToFront() ), actionCollection(), "object_move_totop" ); + i18n( "Bring to &Front" ), "bring_forward", TQKeySequence( "Ctrl+Shift+]" ), TQT_TQOBJECT(this), + TQT_SLOT( selectionBringToFront() ), actionCollection(), "object_move_totop" ); new KAction( - i18n( "&Raise" ), "raise", QKeySequence( "Ctrl+]" ), this, - SLOT( selectionMoveUp() ), actionCollection(), "object_move_up" ); + i18n( "&Raise" ), "raise", TQKeySequence( "Ctrl+]" ), TQT_TQOBJECT(this), + TQT_SLOT( selectionMoveUp() ), actionCollection(), "object_move_up" ); new KAction( - i18n( "&Lower" ), "lower", QKeySequence( "Ctrl+[" ), this, - SLOT( selectionMoveDown() ), actionCollection(), "object_move_down" ); + i18n( "&Lower" ), "lower", TQKeySequence( "Ctrl+[" ), TQT_TQOBJECT(this), + TQT_SLOT( selectionMoveDown() ), actionCollection(), "object_move_down" ); new KAction( - i18n( "Send to &Back" ), "send_backward", QKeySequence( "Ctrl+Shift+[" ), this, - SLOT( selectionSendToBack() ), actionCollection(), "object_move_tobottom" ); + i18n( "Send to &Back" ), "send_backward", TQKeySequence( "Ctrl+Shift+[" ), TQT_TQOBJECT(this), + TQT_SLOT( selectionSendToBack() ), actionCollection(), "object_move_tobottom" ); new KAction( - i18n( "Align Left" ), "aoleft", 0, this, - SLOT( selectionAlignHorizontalLeft() ), + i18n( "Align Left" ), "aoleft", 0, TQT_TQOBJECT(this), + TQT_SLOT( selectionAlignHorizontalLeft() ), actionCollection(), "object_align_horizontal_left" ); new KAction( - i18n( "Align Center (Horizontal)" ), "aocenterh", 0, this, - SLOT( selectionAlignHorizontalCenter() ), + i18n( "Align Center Qt::Horizontal)" ), "aocenterh", 0, TQT_TQOBJECT(this), + TQT_SLOT( selectionAlignHorizontalCenter() ), actionCollection(), "object_align_horizontal_center" ); new KAction( - i18n( "Align Right" ), "aoright", 0, this, - SLOT( selectionAlignHorizontalRight() ), + i18n( "Align Right" ), "aoright", 0, TQT_TQOBJECT(this), + TQT_SLOT( selectionAlignHorizontalRight() ), actionCollection(), "object_align_horizontal_right" ); new KAction( - i18n( "Align Top" ), "aotop", 0, this, - SLOT( selectionAlignVerticalTop() ), + i18n( "Align Top" ), "aotop", 0, TQT_TQOBJECT(this), + TQT_SLOT( selectionAlignVerticalTop() ), actionCollection(), "object_align_vertical_top" ); new KAction( - i18n( "Align Middle (Vertical)" ), "aocenterv", 0, this, - SLOT( selectionAlignVerticalCenter() ), + i18n( "Align Middle Qt::Vertical)" ), "aocenterv", 0, TQT_TQOBJECT(this), + TQT_SLOT( selectionAlignVerticalCenter() ), actionCollection(), "object_align_vertical_center" ); new KAction( - i18n( "Align Bottom" ), "aobottom", 0, this, - SLOT( selectionAlignVerticalBottom() ), + i18n( "Align Bottom" ), "aobottom", 0, TQT_TQOBJECT(this), + TQT_SLOT( selectionAlignVerticalBottom() ), actionCollection(), "object_align_vertical_bottom" ); new KAction( - i18n( "Distribute Center (Horizontal)" ), "", 0, this, - SLOT( selectionDistributeHorizontalCenter() ), + i18n( "Distribute Center Qt::Horizontal)" ), "", 0, TQT_TQOBJECT(this), + TQT_SLOT( selectionDistributeHorizontalCenter() ), actionCollection(), "object_distribute_horizontal_center" ); new KAction( - i18n( "Distribute Gaps (Horizontal)" ), "", 0, this, - SLOT( selectionDistributeHorizontalGap() ), + i18n( "Distribute Gaps Qt::Horizontal)" ), "", 0, TQT_TQOBJECT(this), + TQT_SLOT( selectionDistributeHorizontalGap() ), actionCollection(), "object_distribute_horizontal_gap" ); new KAction( - i18n( "Distribute Left Borders" ), "", 0, this, - SLOT( selectionDistributeHorizontalLeft() ), + i18n( "Distribute Left Borders" ), "", 0, TQT_TQOBJECT(this), + TQT_SLOT( selectionDistributeHorizontalLeft() ), actionCollection(), "object_distribute_horizontal_left" ); new KAction( - i18n( "Distribute Right Borders" ), "", 0, this, - SLOT( selectionDistributeHorizontalRight() ), + i18n( "Distribute Right Borders" ), "", 0, TQT_TQOBJECT(this), + TQT_SLOT( selectionDistributeHorizontalRight() ), actionCollection(), "object_distribute_horizontal_right" ); new KAction( - i18n( "Distribute Center (Vertical)" ), "", 0, this, - SLOT( selectionDistributeVerticalCenter() ), + i18n( "Distribute Center Qt::Vertical)" ), "", 0, TQT_TQOBJECT(this), + TQT_SLOT( selectionDistributeVerticalCenter() ), actionCollection(), "object_distribute_vertical_center" ); new KAction( - i18n( "Distribute Gaps (Vertical)" ), "", 0, this, - SLOT( selectionDistributeVerticalGap() ), + i18n( "Distribute Gaps Qt::Vertical)" ), "", 0, TQT_TQOBJECT(this), + TQT_SLOT( selectionDistributeVerticalGap() ), actionCollection(), "object_distribute_vertical_gap" ); new KAction( - i18n( "Distribute Bottom Borders" ), "", 0, this, - SLOT( selectionDistributeVerticalBottom() ), + i18n( "Distribute Bottom Borders" ), "", 0, TQT_TQOBJECT(this), + TQT_SLOT( selectionDistributeVerticalBottom() ), actionCollection(), "object_distribute_vertical_bottom" ); new KAction( - i18n( "Distribute Top Borders" ), "", 0, this, - SLOT( selectionDistributeVerticalTop() ), + i18n( "Distribute Top Borders" ), "", 0, TQT_TQOBJECT(this), + TQT_SLOT( selectionDistributeVerticalTop() ), actionCollection(), "object_distribute_vertical_top" ); - m_showRulerAction = new KToggleAction( i18n( "Show Rulers" ), 0, this, SLOT( showRuler() ), actionCollection(), "view_show_ruler" ); + m_showRulerAction = new KToggleAction( i18n( "Show Rulers" ), 0, TQT_TQOBJECT(this), TQT_SLOT( showRuler() ), actionCollection(), "view_show_ruler" ); #if KDE_IS_VERSION(3,2,90) m_showRulerAction->setCheckedState(i18n("Hide Rulers")); #endif m_showRulerAction->setToolTip( i18n( "Shows or hides rulers." ) ); m_showRulerAction->setChecked( false ); - m_showGridAction = new KToggleAction( i18n( "Show Grid" ), "view_grid", this, SLOT( showGrid() ), actionCollection(), "view_show_grid" ); + m_showGridAction = new KToggleAction( i18n( "Show Grid" ), "view_grid", TQT_TQOBJECT(this), TQT_SLOT( showGrid() ), actionCollection(), "view_show_grid" ); #if KDE_IS_VERSION(3,2,90) m_showGridAction->setCheckedState(i18n("Hide Grid")); #endif m_showGridAction->setToolTip( i18n( "Shows or hides grid." ) ); //m_showGridAction->setChecked( true ); - m_snapGridAction = new KToggleAction( i18n( "Snap to Grid" ), 0, this, SLOT( snapToGrid() ), actionCollection(), "view_snap_to_grid" ); + m_snapGridAction = new KToggleAction( i18n( "Snap to Grid" ), 0, TQT_TQOBJECT(this), TQT_SLOT( snapToGrid() ), actionCollection(), "view_snap_to_grid" ); m_snapGridAction->setToolTip( i18n( "Snaps to grid." ) ); //m_snapGridAction->setChecked( true ); m_groupObjects = new KAction( - i18n( "&Group Objects" ), "group", QKeySequence( "Ctrl+G" ), this, - SLOT( groupSelection() ), actionCollection(), "selection_group" ); + i18n( "&Group Objects" ), "group", TQKeySequence( "Ctrl+G" ), TQT_TQOBJECT(this), + TQT_SLOT( groupSelection() ), actionCollection(), "selection_group" ); m_ungroupObjects = new KAction( - i18n( "&Ungroup Objects" ), "ungroup", QKeySequence( "Ctrl+Shift+G" ), this, - SLOT( ungroupSelection() ), actionCollection(), "selection_ungroup" ); + i18n( "&Ungroup Objects" ), "ungroup", TQKeySequence( "Ctrl+Shift+G" ), TQT_TQOBJECT(this), + TQT_SLOT( ungroupSelection() ), actionCollection(), "selection_ungroup" ); m_closePath = new KAction( - i18n( "&Close Path" ), QKeySequence( "Ctrl+U" ), this, - SLOT( closePath() ), actionCollection(), "close_path" ); + i18n( "&Close Path" ), TQKeySequence( "Ctrl+U" ), TQT_TQOBJECT(this), + TQT_SLOT( closePath() ), actionCollection(), "close_path" ); // object <----- // line style (dashes) - m_lineStyleAction = new KoLineStyleAction( i18n( "Line Style" ), "linestyle", this, SLOT( setLineStyle( int ) ), actionCollection(), "setLineStyle" ); + m_lineStyleAction = new KoLineStyleAction( i18n( "Line Style" ), "linestyle", TQT_TQOBJECT(this), TQT_SLOT( setLineStyle( int ) ), actionCollection(), "setLineStyle" ); // line width m_setLineWidth = new KoUnitDoubleSpinComboBox( this, 0.0, 1000.0, 0.5, 1.0, KoUnit::U_PT, 1 ); - new KWidgetAction( m_setLineWidth, i18n( "Set Line Width" ), 0, this, SLOT( setLineWidth() ), actionCollection(), "setLineWidth" ); + new KWidgetAction( m_setLineWidth, i18n( "Set Line Width" ), 0, TQT_TQOBJECT(this), TQT_SLOT( setLineWidth() ), actionCollection(), "setLineWidth" ); m_setLineWidth->insertItem( 0.25 ); m_setLineWidth->insertItem( 0.5 ); m_setLineWidth->insertItem( 0.75 ); @@ -1126,25 +1126,25 @@ KarbonView::initActions() m_setLineWidth->insertItem( 5.0 ); m_setLineWidth->insertItem( 10.0 ); m_setLineWidth->insertItem( 20.0 ); - connect( m_setLineWidth, SIGNAL( valueChanged( double ) ), this, SLOT( setLineWidth() ) ); + connect( m_setLineWidth, TQT_SIGNAL( valueChanged( double ) ), TQT_TQOBJECT(this), TQT_SLOT( setLineWidth() ) ); m_configureAction = new KAction( - i18n( "Configure Karbon..." ), "configure", 0, this, - SLOT( configure() ), actionCollection(), "configure" ); + i18n( "Configure Karbon..." ), "configure", 0, TQT_TQOBJECT(this), + TQT_SLOT( configure() ), actionCollection(), "configure" ); - new KAction( i18n( "Page &Layout..." ), 0, this, - SLOT( pageLayout() ), actionCollection(), "page_layout" ); + new KAction( i18n( "Page &Layout..." ), 0, TQT_TQOBJECT(this), + TQT_SLOT( pageLayout() ), actionCollection(), "page_layout" ); m_contextHelpAction = new KoContextHelpAction( actionCollection(), this ); } void -KarbonView::paintEverything( QPainter& /*p*/, const QRect& /*rect*/, bool /*transparent*/ ) +KarbonView::paintEverything( TQPainter& /*p*/, const TQRect& /*rect*/, bool /*transparent*/ ) { kdDebug(38000) << "view->paintEverything()" << endl; } bool -KarbonView::mouseEvent( QMouseEvent* event, const KoPoint &p ) +KarbonView::mouseEvent( TQMouseEvent* event, const KoPoint &p ) { int mx = event->pos().x(); int my = event->pos().y(); @@ -1166,12 +1166,12 @@ KarbonView::mouseEvent( QMouseEvent* event, const KoPoint &p ) KoPoint xy; xy.setX((mx + canvasWidget()->contentsX() - canvasWidget()->pageOffsetX())/zoom()); - xy.setY( qRound(m_part->document().height()) - (my + canvasWidget()->contentsY() - canvasWidget()->pageOffsetY())/zoom()); + xy.setY( tqRound(m_part->document().height()) - (my + canvasWidget()->contentsY() - canvasWidget()->pageOffsetY())/zoom()); xy.setX(KoUnit::toUserValue(xy.x(), part()->unit())); xy.setY(KoUnit::toUserValue(xy.y(), part()->unit())); - m_cursorCoords->setText( QString( "%1, %2" ).arg(KGlobal::_locale->formatNumber(xy.x(), 2)).arg(KGlobal::_locale->formatNumber(xy.y(), 2)) ); + m_cursorCoords->setText( TQString( "%1, %2" ).tqarg(KGlobal::_locale->formatNumber(xy.x(), 2)).tqarg(KGlobal::_locale->formatNumber(xy.y(), 2)) ); if( toolController() ) return toolController()->mouseEvent( event, p ); @@ -1180,7 +1180,7 @@ KarbonView::mouseEvent( QMouseEvent* event, const KoPoint &p ) } bool -KarbonView::keyEvent( QEvent* event ) +KarbonView::keyEvent( TQEvent* event ) { if( toolController() ) return toolController()->keyEvent( event ); @@ -1237,7 +1237,7 @@ void KarbonView::togglePageMargins(bool b) { ((KToggleAction*)actionCollection()->action("view_show_margins"))->setChecked(b); - m_canvas->repaintAll(); + m_canvas->tqrepaintAll(); } void @@ -1247,12 +1247,12 @@ KarbonView::updateRuler() { if( (1 + m_canvas->pageOffsetX() - m_canvas->contentsX()) >= 0 ) { - m_horizRuler->setGeometry( 1 + rulerWidth + m_canvas->pageOffsetX() - m_canvas->contentsX(), 0, qRound( 1 + part()->document().width() * zoom() ), rulerHeight ); + m_horizRuler->setGeometry( 1 + rulerWidth + m_canvas->pageOffsetX() - m_canvas->contentsX(), 0, tqRound( 1 + part()->document().width() * zoom() ), rulerHeight ); m_horizRuler->updateVisibleArea(0,0); } else { - m_horizRuler->setGeometry( rulerWidth, 0, qRound( 1 + part()->document().width() * zoom() ) - m_canvas->contentsX() + m_canvas->pageOffsetX(), rulerHeight ); + m_horizRuler->setGeometry( rulerWidth, 0, tqRound( 1 + part()->document().width() * zoom() ) - m_canvas->contentsX() + m_canvas->pageOffsetX(), rulerHeight ); m_horizRuler->updateVisibleArea((m_canvas->contentsX() - m_canvas->pageOffsetX()),0); } } @@ -1261,12 +1261,12 @@ KarbonView::updateRuler() { if( (1 + m_canvas->pageOffsetY() - m_canvas->contentsY()) >= 0 ) { - m_vertRuler->setGeometry( 0, 1 + rulerHeight + m_canvas->pageOffsetY() - m_canvas->contentsY(), rulerWidth, 1 + qRound( part()->document().height() * zoom() )); + m_vertRuler->setGeometry( 0, 1 + rulerHeight + m_canvas->pageOffsetY() - m_canvas->contentsY(), rulerWidth, 1 + tqRound( part()->document().height() * zoom() )); m_vertRuler->updateVisibleArea(0,0); } else { - m_vertRuler->setGeometry( 0, 1 + rulerHeight, rulerWidth, 1 + qRound( part()->document().height() * zoom() ) + m_canvas->contentsY() - m_canvas->pageOffsetY() ); + m_vertRuler->setGeometry( 0, 1 + rulerHeight, rulerWidth, 1 + tqRound( part()->document().height() * zoom() ) + m_canvas->contentsY() - m_canvas->pageOffsetY() ); m_vertRuler->updateVisibleArea(0, (m_canvas->contentsY() - m_canvas->pageOffsetY())); } } @@ -1285,9 +1285,9 @@ KarbonView::snapToGrid() } void -KarbonView::showSelectionPopupMenu( const QPoint &pos ) +KarbonView::showSelectionPopupMenu( const TQPoint &pos ) { - QPtrList<KAction> actionList; + TQPtrList<KAction> actionList; if( m_groupObjects->isEnabled() ) actionList.append( m_groupObjects ); else if( m_ungroupObjects->isEnabled() ) @@ -1295,7 +1295,7 @@ KarbonView::showSelectionPopupMenu( const QPoint &pos ) if( m_closePath->isEnabled() ) actionList.append( m_closePath ); plugActionList( "selection_type_action", actionList ); - ((QPopupMenu *)factory()->container( "selection_popup", this ) )->exec( pos ); + ((TQPopupMenu *)factory()->container( "selection_popup", this ) )->exec( pos ); unplugActionList( "selection_type_action" ); } @@ -1310,16 +1310,16 @@ void KarbonView::pageLayout() { KoHeadFoot hf; - KoPageLayout layout = part()->pageLayout(); + KoPageLayout tqlayout = part()->pageLayout(); KoUnit::Unit unit = part()->unit(); - if( KoPageLayoutDia::pageLayout( layout, hf, FORMAT_AND_BORDERS | DISABLE_UNIT, unit ) ) + if( KoPageLayoutDia::pageLayout( tqlayout, hf, FORMAT_AND_BORDERS | DISABLE_UNIT, unit ) ) { - part()->setPageLayout( layout, unit ); + part()->setPageLayout( tqlayout, unit ); m_horizRuler->setUnit( unit ); m_vertRuler->setUnit( unit ); m_canvas->resizeContents( int( ( part()->pageLayout().ptWidth + 300 ) * zoom() ), int( ( part()->pageLayout().ptHeight + 460 ) * zoom() ) ); - part()->repaintAllViews(); + part()->tqrepaintAllViews(); emit pageLayoutChanged(); } @@ -1334,12 +1334,12 @@ KarbonView::canvasContentsMoving( int x, int y ) { if( (1 + m_canvas->pageOffsetX() - x) >= 0) { - m_horizRuler->setGeometry( 1 + rulerWidth + m_canvas->pageOffsetX() - x, 0, qRound( 1 + part()->document().width() * zoom() ), rulerHeight ); + m_horizRuler->setGeometry( 1 + rulerWidth + m_canvas->pageOffsetX() - x, 0, tqRound( 1 + part()->document().width() * zoom() ), rulerHeight ); m_horizRuler->updateVisibleArea(0,0); } else { - m_horizRuler->setGeometry( rulerWidth, 0, qRound( 1 + part()->document().width() * zoom() ) - x + m_canvas->pageOffsetX(), rulerHeight ); + m_horizRuler->setGeometry( rulerWidth, 0, tqRound( 1 + part()->document().width() * zoom() ) - x + m_canvas->pageOffsetX(), rulerHeight ); m_horizRuler->updateVisibleArea((x - m_canvas->pageOffsetX()),0); } } @@ -1351,12 +1351,12 @@ KarbonView::canvasContentsMoving( int x, int y ) { if( (1 + m_canvas->pageOffsetY() - y) >= 0) { - m_vertRuler->setGeometry( 0, 1 + rulerHeight + m_canvas->pageOffsetY() - y , rulerWidth, 1 + qRound( part()->document().height() * zoom() )); + m_vertRuler->setGeometry( 0, 1 + rulerHeight + m_canvas->pageOffsetY() - y , rulerWidth, 1 + tqRound( part()->document().height() * zoom() )); m_vertRuler->updateVisibleArea(0,0); } else { - m_vertRuler->setGeometry( 0, 1 + rulerHeight, rulerWidth, 1 + qRound( part()->document().height() * zoom() ) - y + m_canvas->pageOffsetY() ); + m_vertRuler->setGeometry( 0, 1 + rulerHeight, rulerWidth, 1 + tqRound( part()->document().height() * zoom() ) - y + m_canvas->pageOffsetY() ); m_vertRuler->updateVisibleArea(0, (y - m_canvas->pageOffsetY())); } } @@ -1403,17 +1403,17 @@ KarbonView::selectionChanged() // dashes m_lineStyleAction->setEnabled( true ); if( stroke.dashPattern().array().isEmpty() ) - m_lineStyleAction->setCurrentSelection( Qt::SolidLine ); + m_lineStyleAction->setCurrentSelection( TQt::SolidLine ); else if( stroke.dashPattern().array()[ 0 ] == 0. ) - m_lineStyleAction->setCurrentSelection( Qt::NoPen ); + m_lineStyleAction->setCurrentSelection( TQt::NoPen ); else if( stroke.dashPattern().array()[ 0 ] == 2. ) - m_lineStyleAction->setCurrentSelection( Qt::DotLine ); + m_lineStyleAction->setCurrentSelection( TQt::DotLine ); else if( stroke.dashPattern().array().count() == 2 ) - m_lineStyleAction->setCurrentSelection( Qt::DashLine ); + m_lineStyleAction->setCurrentSelection( TQt::DashLine ); else if( stroke.dashPattern().array().count() == 4 ) - m_lineStyleAction->setCurrentSelection( Qt::DashDotLine ); + m_lineStyleAction->setCurrentSelection( TQt::DashDotLine ); else if( stroke.dashPattern().array().count() == 6 ) - m_lineStyleAction->setCurrentSelection( Qt::DashDotDotLine ); + m_lineStyleAction->setCurrentSelection( TQt::DashDotDotLine ); m_deleteSelectionAction->setEnabled( true ); } @@ -1432,21 +1432,21 @@ KarbonView::selectionChanged() emit selectionChange(); } void -KarbonView::setCursor( const QCursor &c ) +KarbonView::setCursor( const TQCursor &c ) { m_canvas->setCursor( c ); } void -KarbonView::repaintAll( const KoRect &r ) +KarbonView::tqrepaintAll( const KoRect &r ) { - m_canvas->repaintAll( r ); + m_canvas->tqrepaintAll( r ); } void -KarbonView::repaintAll( bool repaint ) +KarbonView::tqrepaintAll( bool tqrepaint ) { - m_canvas->repaintAll( repaint ); + m_canvas->tqrepaintAll( tqrepaint ); } void KarbonView::setPos( const KoPoint& p ) @@ -1470,7 +1470,7 @@ void KarbonView::createDocumentTabDock() m_DocumentTab = new VDocumentTab(this, this); m_DocumentTab->setCaption(i18n("Document")); paletteManager()->addWidget(m_DocumentTab, "DocumentTabDock", "DocumentPanel"); - connect( m_part, SIGNAL( unitChanged( KoUnit::Unit ) ), m_DocumentTab, SLOT( updateDocumentInfo() ) ); + connect( m_part, TQT_SIGNAL( unitChanged( KoUnit::Unit ) ), m_DocumentTab, TQT_SLOT( updateDocumentInfo() ) ); } void KarbonView::createLayersTabDock() @@ -1493,7 +1493,7 @@ void KarbonView::createStrokeDock() m_strokeDocker->setCaption(i18n("Stroke Properties")); paletteManager()->addWidget(m_strokeDocker, "StrokeTabDock", "StrokePanel"); - connect( part(), SIGNAL( unitChanged( KoUnit::Unit ) ), m_strokeDocker, SLOT( setUnit( KoUnit::Unit ) ) ); + connect( part(), TQT_SIGNAL( unitChanged( KoUnit::Unit ) ), m_strokeDocker, TQT_SLOT( setUnit( KoUnit::Unit ) ) ); } void KarbonView::createColorDock() @@ -1502,7 +1502,7 @@ void KarbonView::createColorDock() //m_ColorManager->setCaption(i18n("Stroke Properties")); paletteManager()->addWidget(m_ColorManager, "ColorTabDock", "ColorPanel"); - connect( this, SIGNAL( selectionChange() ), m_ColorManager, SLOT( update() ) ); + connect( this, TQT_SIGNAL( selectionChange() ), m_ColorManager, TQT_SLOT( update() ) ); } void KarbonView::createTransformDock() @@ -1511,8 +1511,8 @@ void KarbonView::createTransformDock() m_TransformDocker->setCaption(i18n("Transform")); paletteManager()->addWidget(m_TransformDocker, "TransformTabDock", "TransformPanel"); - connect( this, SIGNAL( selectionChange() ), m_TransformDocker, SLOT( update() ) ); - connect( part(), SIGNAL( unitChanged( KoUnit::Unit ) ), m_TransformDocker, SLOT( setUnit( KoUnit::Unit ) ) ); + connect( this, TQT_SIGNAL( selectionChange() ), m_TransformDocker, TQT_SLOT( update() ) ); + connect( part(), TQT_SIGNAL( unitChanged( KoUnit::Unit ) ), m_TransformDocker, TQT_SLOT( setUnit( KoUnit::Unit ) ) ); } void KarbonView::createResourceDock() @@ -1543,7 +1543,7 @@ void KarbonView::strokeFillSelectionChanged( KDualColorButton::DualColor s ) selectionChanged(); } -void KarbonView::colorChanged( const QColor &c ) +void KarbonView::colorChanged( const TQColor &c ) { selectionChanged(); } |