diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-04 10:30:32 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-01-13 20:22:52 +0900 |
| commit | e1b37ac1936f81994a2c1aa2778298fbc757531f (patch) | |
| tree | 2e2df5ea5786d581b10e51e0cbde9f4921697b2f /kpresenter/KPrView.cpp | |
| parent | d08f80f854355e446d1c6be0eb50166646f7f291 (diff) | |
| download | koffice-e1b37ac1936f81994a2c1aa2778298fbc757531f.tar.gz koffice-e1b37ac1936f81994a2c1aa2778298fbc757531f.zip | |
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c0332621bc998c9786f4841e86a62b7711fe4abf)
Diffstat (limited to 'kpresenter/KPrView.cpp')
| -rw-r--r-- | kpresenter/KPrView.cpp | 658 |
1 files changed, 329 insertions, 329 deletions
diff --git a/kpresenter/KPrView.cpp b/kpresenter/KPrView.cpp index e43e3ce0e..bc89df188 100644 --- a/kpresenter/KPrView.cpp +++ b/kpresenter/KPrView.cpp @@ -364,41 +364,41 @@ KPrView::KPrView( KPrDocument* _doc, TQWidget *_parent, const char *_name ) if ( shell() ) changeNbOfRecentFiles( m_pKPresenterDoc->maxRecentFiles() ); - connect(this, TQT_SIGNAL(embeddImage(const TQString &)), TQT_SLOT(insertPicture(const TQString &))); - connect( m_pKPresenterDoc, TQT_SIGNAL( sig_refreshMenuCustomVariable()), - this, TQT_SLOT( refreshCustomMenu())); + connect(this, TQ_SIGNAL(embeddImage(const TQString &)), TQ_SLOT(insertPicture(const TQString &))); + connect( m_pKPresenterDoc, TQ_SIGNAL( sig_refreshMenuCustomVariable()), + this, TQ_SLOT( refreshCustomMenu())); // Cut and copy are directly connected to the selectionChanged signal if ( m_pKPresenterDoc->isReadWrite() ) - connect( m_canvas, TQT_SIGNAL(selectionChanged(bool)), - this, TQT_SLOT(slotChangeCutState(bool )/*setEnabled(bool)*/) ); + connect( m_canvas, TQ_SIGNAL(selectionChanged(bool)), + this, TQ_SLOT(slotChangeCutState(bool )/*setEnabled(bool)*/) ); else actionEditCut->setEnabled( false ); - connect( m_canvas, TQT_SIGNAL(selectionChanged(bool)), - actionEditCopy, TQT_SLOT(setEnabled(bool)) ); + connect( m_canvas, TQ_SIGNAL(selectionChanged(bool)), + actionEditCopy, TQ_SLOT(setEnabled(bool)) ); - connect (m_canvas, TQT_SIGNAL(selectionChanged(bool)), - actionChangeCase, TQT_SLOT(setEnabled(bool))); - //connect (m_canvas, TQT_SIGNAL(selectionChanged(bool)), - // actionCreateStyleFromSelection, TQT_SLOT(setEnabled(bool))); + connect (m_canvas, TQ_SIGNAL(selectionChanged(bool)), + actionChangeCase, TQ_SLOT(setEnabled(bool))); + //connect (m_canvas, TQ_SIGNAL(selectionChanged(bool)), + // actionCreateStyleFromSelection, TQ_SLOT(setEnabled(bool))); - connect( m_canvas, TQT_SIGNAL( currentObjectEditChanged() ), this, TQT_SLOT( slotObjectEditChanged())); + connect( m_canvas, TQ_SIGNAL( currentObjectEditChanged() ), this, TQ_SLOT( slotObjectEditChanged())); - connect( h_ruler, TQT_SIGNAL( tabListChanged( const KoTabulatorList & ) ), this, - TQT_SLOT( tabListChanged( const KoTabulatorList & ) ) ); + connect( h_ruler, TQ_SIGNAL( tabListChanged( const KoTabulatorList & ) ), this, + TQ_SLOT( tabListChanged( const KoTabulatorList & ) ) ); //statusbar stuff - connect( m_pKPresenterDoc, TQT_SIGNAL( pageNumChanged() ), this, TQT_SLOT( pageNumChanged()) ); - connect( this, TQT_SIGNAL( currentPageChanged(int) ), this, TQT_SLOT( pageNumChanged()) ); - connect( m_canvas, TQT_SIGNAL( objectSizeChanged() ), this, TQT_SLOT( updateObjectStatusBarItem() )); - connect( m_canvas, TQT_SIGNAL( objectSelectedChanged() ), this, TQT_SLOT( updateObjectStatusBarItem() )); - connect (m_pKPresenterDoc, TQT_SIGNAL(sig_updateRuler()),this, TQT_SLOT( slotUpdateRuler())); - connect (m_pKPresenterDoc, TQT_SIGNAL(sig_updateRuler()),this, TQT_SLOT( slotUpdateScrollBarRanges())); - connect (m_pKPresenterDoc, TQT_SIGNAL(sig_updateMenuBar()),this, TQT_SLOT(updateSideBarMenu())); - connect (m_pKPresenterDoc, TQT_SIGNAL(unitChanged(KoUnit::Unit)),this, TQT_SLOT(slotUnitChanged(KoUnit::Unit))); - connect( m_pKPresenterDoc, TQT_SIGNAL( modified( bool ) ), this, TQT_SLOT( documentModified( bool )) ); - connect( m_pKPresenterDoc, TQT_SIGNAL(completed()), this, TQT_SLOT(loadingFinished())); + connect( m_pKPresenterDoc, TQ_SIGNAL( pageNumChanged() ), this, TQ_SLOT( pageNumChanged()) ); + connect( this, TQ_SIGNAL( currentPageChanged(int) ), this, TQ_SLOT( pageNumChanged()) ); + connect( m_canvas, TQ_SIGNAL( objectSizeChanged() ), this, TQ_SLOT( updateObjectStatusBarItem() )); + connect( m_canvas, TQ_SIGNAL( objectSelectedChanged() ), this, TQ_SLOT( updateObjectStatusBarItem() )); + connect (m_pKPresenterDoc, TQ_SIGNAL(sig_updateRuler()),this, TQ_SLOT( slotUpdateRuler())); + connect (m_pKPresenterDoc, TQ_SIGNAL(sig_updateRuler()),this, TQ_SLOT( slotUpdateScrollBarRanges())); + connect (m_pKPresenterDoc, TQ_SIGNAL(sig_updateMenuBar()),this, TQ_SLOT(updateSideBarMenu())); + connect (m_pKPresenterDoc, TQ_SIGNAL(unitChanged(KoUnit::Unit)),this, TQ_SLOT(slotUnitChanged(KoUnit::Unit))); + connect( m_pKPresenterDoc, TQ_SIGNAL( modified( bool ) ), this, TQ_SLOT( documentModified( bool )) ); + connect( m_pKPresenterDoc, TQ_SIGNAL(completed()), this, TQ_SLOT(loadingFinished())); KStatusBar * sb = statusBar(); m_sbPageLabel = 0L; @@ -1074,14 +1074,14 @@ void KPrView::toolsAutoform() afChoose->resize( 400, 300 ); afChoose->setCaption( i18n( "Insert Autoform" ) ); - TQObject::connect( afChoose, TQT_SIGNAL( formChosen( const TQString & ) ), - this, TQT_SLOT( afChooseOk( const TQString & ) ) ); - TQObject::connect( afChoose, TQT_SIGNAL( afchooseCanceled()), - this, TQT_SLOT(slotAfchooseCanceled())); + TQObject::connect( afChoose, TQ_SIGNAL( formChosen( const TQString & ) ), + this, TQ_SLOT( afChooseOk( const TQString & ) ) ); + TQObject::connect( afChoose, TQ_SIGNAL( afchooseCanceled()), + this, TQ_SLOT(slotAfchooseCanceled())); afChoose->exec(); - TQObject::disconnect( afChoose, TQT_SIGNAL( formChosen( const TQString & ) ), - this, TQT_SLOT( afChooseOk( const TQString & ) ) ); + TQObject::disconnect( afChoose, TQ_SIGNAL( formChosen( const TQString & ) ), + this, TQ_SLOT( afChooseOk( const TQString & ) ) ); delete afChoose; afChoose = 0; } @@ -1235,9 +1235,9 @@ void KPrView::extraProperties() m_propertyEditor = new KPrPropertyEditor( this, "KPrPropertyEditor", m_canvas->activePage(), m_pKPresenterDoc ); m_propertyEditor->setCaption( i18n( "Properties" ) ); - connect( m_propertyEditor, TQT_SIGNAL( propertiesOk() ), this, TQT_SLOT( propertiesOk() ) ); + connect( m_propertyEditor, TQ_SIGNAL( propertiesOk() ), this, TQ_SLOT( propertiesOk() ) ); m_propertyEditor->exec(); - disconnect( m_propertyEditor, TQT_SIGNAL( propertiesOk() ), this, TQT_SLOT( propertiesOk() ) ); + disconnect( m_propertyEditor, TQ_SIGNAL( propertiesOk() ), this, TQ_SLOT( propertiesOk() ) ); delete m_propertyEditor; m_propertyEditor = 0; @@ -1260,7 +1260,7 @@ void KPrView::extraRotate() if ( m_canvas->numberOfObjectSelected() > 0 ) { if ( !rotateDia ) { rotateDia = new KPrRotationDialogImpl( this ); - connect( rotateDia, TQT_SIGNAL( apply() ), this, TQT_SLOT( rotateOk() ) ); + connect( rotateDia, TQ_SIGNAL( apply() ), this, TQ_SLOT( rotateOk() ) ); } rotateDia->setAngle( m_canvas->getSelectedObj()->getAngle() ); m_canvas->setToolEditMode( TEM_MOUSE ); @@ -1275,7 +1275,7 @@ void KPrView::extraShadow() if ( !shadowDia ) { shadowDia = new KPrShadowDialogImpl( this ); shadowDia->resize( shadowDia->minimumSize() ); - connect( shadowDia, TQT_SIGNAL( apply() ), this, TQT_SLOT( shadowOk() ) ); + connect( shadowDia, TQ_SIGNAL( apply() ), this, TQ_SLOT( shadowOk() ) ); } KPrObject *object=m_canvas->getSelectedObj(); @@ -1305,10 +1305,10 @@ void KPrView::extraBackground() page->getBackYFactor( ), page ); backDia->setCaption( i18n( "Slide Background" ) ); - TQObject::connect( backDia, TQT_SIGNAL( backOk( KPrBackDialog*, bool ) ), this, TQT_SLOT( backOk( KPrBackDialog*, bool ) ) ) ; + TQObject::connect( backDia, TQ_SIGNAL( backOk( KPrBackDialog*, bool ) ), this, TQ_SLOT( backOk( KPrBackDialog*, bool ) ) ) ; backDia->exec(); - TQObject::disconnect( backDia, TQT_SIGNAL( backOk( KPrBackDialog*, bool ) ), this, TQT_SLOT( backOk( KPrBackDialog*, bool ) ) ); + TQObject::disconnect( backDia, TQ_SIGNAL( backOk( KPrBackDialog*, bool ) ), this, TQ_SLOT( backOk( KPrBackDialog*, bool ) ) ); delete backDia; } @@ -1453,10 +1453,10 @@ void KPrView::screenConfigPages() delete pgConfDia; pgConfDia = new KPrPgConfDia( this, kPresenterDoc() ); pgConfDia->setCaption( i18n( "Configure Slide Show" ) ); - TQObject::connect( pgConfDia, TQT_SIGNAL( pgConfDiaOk() ), this, TQT_SLOT( pgConfOk() ) ); + TQObject::connect( pgConfDia, TQ_SIGNAL( pgConfDiaOk() ), this, TQ_SLOT( pgConfOk() ) ); pgConfDia->exec(); - TQObject::disconnect( pgConfDia, TQT_SIGNAL( pgConfDiaOk() ), this, TQT_SLOT( pgConfOk() ) ); + TQObject::disconnect( pgConfDia, TQ_SIGNAL( pgConfDiaOk() ), this, TQ_SLOT( pgConfOk() ) ); delete pgConfDia; pgConfDia = 0; } @@ -1583,7 +1583,7 @@ void KPrView::startScreenPres( int pgNum /*1-based*/ ) m_pKPresenterDoc->repaint( false ); if ( ! m_autoPresTimerConnected ) { - connect( &m_autoPresTimer, TQT_SIGNAL( timeout() ), TQT_SLOT( doAutomaticScreenPres() ) ); + connect( &m_autoPresTimer, TQ_SIGNAL( timeout() ), TQ_SLOT( doAutomaticScreenPres() ) ); m_autoPresTimerConnected = true; } } @@ -1837,8 +1837,8 @@ void KPrView::mtextFont() , m_broker , this, 0 ); - connect( m_fontDlg, TQT_SIGNAL( applyFont() ), - this, TQT_SLOT( slotApplyFont() ) ); + connect( m_fontDlg, TQ_SIGNAL( applyFont() ), + this, TQ_SLOT( slotApplyFont() ) ); m_fontDlg->exec(); delete m_fontDlg; @@ -2159,12 +2159,12 @@ void KPrView::createGUI() && !m_pKPresenterDoc->isSingleViewMode() ) // No sidebar if the document is embedded { sidebar = new KPrSideBar( splitter, m_pKPresenterDoc, this ); - connect( sidebar, TQT_SIGNAL( movePage( int, int ) ), - m_pKPresenterDoc, TQT_SLOT( movePage( int, int ) ) ); - connect( sidebar, TQT_SIGNAL( selectPage( int, bool ) ), - m_pKPresenterDoc, TQT_SLOT( selectPage( int, bool ) ) ); - connect( sidebar, TQT_SIGNAL( showPage( int ) ), - this, TQT_SLOT( skipToPage( int ) ) ); + connect( sidebar, TQ_SIGNAL( movePage( int, int ) ), + m_pKPresenterDoc, TQ_SLOT( movePage( int, int ) ) ); + connect( sidebar, TQ_SIGNAL( selectPage( int, bool ) ), + m_pKPresenterDoc, TQ_SLOT( selectPage( int, bool ) ) ); + connect( sidebar, TQ_SIGNAL( showPage( int ) ), + this, TQ_SLOT( skipToPage( int ) ) ); // This sucks when resizing the window //splitter->setResizeMode( sidebar, TQSplitter::FollowSizeHint ); //splitter->setResizeMode( pageBase, TQSplitter::Stretch ); @@ -2179,16 +2179,16 @@ void KPrView::createGUI() m_canvas=new KPrCanvas( pageBase, "Canvas", this ); - TQObject::connect( m_canvas, TQT_SIGNAL( fontChanged( const TQFont & ) ), - this, TQT_SLOT( fontChanged( const TQFont & ) ) ); - TQObject::connect( m_canvas, TQT_SIGNAL( colorChanged( const TQColor & ) ), - this, TQT_SLOT( colorChanged( const TQColor & ) ) ); - TQObject::connect( m_canvas, TQT_SIGNAL( alignChanged( int ) ), - this, TQT_SLOT( alignChanged( int ) ) ); - TQObject::connect( m_canvas, TQT_SIGNAL( objectSelectedChanged()), - this, TQT_SLOT( objectSelectedChanged())); - TQObject::connect( m_canvas, TQT_SIGNAL( sigMouseWheelEvent( TQWheelEvent* ) ), - this, TQT_SLOT( getPageMouseWheelEvent( TQWheelEvent* ) ) ); + TQObject::connect( m_canvas, TQ_SIGNAL( fontChanged( const TQFont & ) ), + this, TQ_SLOT( fontChanged( const TQFont & ) ) ); + TQObject::connect( m_canvas, TQ_SIGNAL( colorChanged( const TQColor & ) ), + this, TQ_SLOT( colorChanged( const TQColor & ) ) ); + TQObject::connect( m_canvas, TQ_SIGNAL( alignChanged( int ) ), + this, TQ_SLOT( alignChanged( int ) ) ); + TQObject::connect( m_canvas, TQ_SIGNAL( objectSelectedChanged()), + this, TQ_SLOT( objectSelectedChanged())); + TQObject::connect( m_canvas, TQ_SIGNAL( sigMouseWheelEvent( TQWheelEvent* ) ), + this, TQ_SLOT( getPageMouseWheelEvent( TQWheelEvent* ) ) ); // setup notebar. @@ -2207,23 +2207,23 @@ void KPrView::createGUI() if ( m_pKPresenterDoc && m_canvas ) { - TQObject::connect( m_canvas, TQT_SIGNAL( stopAutomaticPresentation() ), this, TQT_SLOT( stopAutomaticPresentation() ) ); - TQObject::connect( m_canvas, TQT_SIGNAL( restartPresentation() ), this, TQT_SLOT( restartPresentation() ) ); - - connect( getVRuler(), TQT_SIGNAL( addGuide( const TQPoint &, bool, int ) ), - &( m_canvas->guideLines() ), TQT_SLOT( addGuide( const TQPoint &, bool, int ) ) ); - connect( getVRuler(), TQT_SIGNAL( moveGuide( const TQPoint &, bool, int ) ), - &( m_canvas->guideLines() ), TQT_SLOT( moveGuide( const TQPoint &, bool, int ) ) ); - connect( getHRuler(), TQT_SIGNAL( addGuide( const TQPoint &, bool, int ) ), - &( m_canvas->guideLines() ), TQT_SLOT( addGuide( const TQPoint &, bool, int ) ) ); - connect( getHRuler(), TQT_SIGNAL( moveGuide( const TQPoint &, bool, int ) ), - &( m_canvas->guideLines() ), TQT_SLOT( moveGuide( const TQPoint &, bool, int ) ) ); - connect( &( m_canvas->guideLines() ), TQT_SIGNAL( moveGuides( bool ) ), - m_canvas, TQT_SLOT( setPaintGuides( bool ) ) ); - connect( &( m_canvas->guideLines() ), TQT_SIGNAL( paintGuides( bool ) ), - m_canvas, TQT_SLOT( setPaintGuides( bool ) ) ); - connect( &( m_canvas->guideLines() ), TQT_SIGNAL( guideLinesChanged( KoView * ) ), - m_pKPresenterDoc, TQT_SLOT( slotGuideLinesChanged( KoView * ) ) ); + TQObject::connect( m_canvas, TQ_SIGNAL( stopAutomaticPresentation() ), this, TQ_SLOT( stopAutomaticPresentation() ) ); + TQObject::connect( m_canvas, TQ_SIGNAL( restartPresentation() ), this, TQ_SLOT( restartPresentation() ) ); + + connect( getVRuler(), TQ_SIGNAL( addGuide( const TQPoint &, bool, int ) ), + &( m_canvas->guideLines() ), TQ_SLOT( addGuide( const TQPoint &, bool, int ) ) ); + connect( getVRuler(), TQ_SIGNAL( moveGuide( const TQPoint &, bool, int ) ), + &( m_canvas->guideLines() ), TQ_SLOT( moveGuide( const TQPoint &, bool, int ) ) ); + connect( getHRuler(), TQ_SIGNAL( addGuide( const TQPoint &, bool, int ) ), + &( m_canvas->guideLines() ), TQ_SLOT( addGuide( const TQPoint &, bool, int ) ) ); + connect( getHRuler(), TQ_SIGNAL( moveGuide( const TQPoint &, bool, int ) ), + &( m_canvas->guideLines() ), TQ_SLOT( moveGuide( const TQPoint &, bool, int ) ) ); + connect( &( m_canvas->guideLines() ), TQ_SIGNAL( moveGuides( bool ) ), + m_canvas, TQ_SLOT( setPaintGuides( bool ) ) ); + connect( &( m_canvas->guideLines() ), TQ_SIGNAL( paintGuides( bool ) ), + m_canvas, TQ_SLOT( setPaintGuides( bool ) ) ); + connect( &( m_canvas->guideLines() ), TQ_SIGNAL( guideLinesChanged( KoView * ) ), + m_pKPresenterDoc, TQ_SLOT( slotGuideLinesChanged( KoView * ) ) ); m_canvas->guideLines().setGuideLines( m_pKPresenterDoc->horizontalGuideLines(), m_pKPresenterDoc->verticalGuideLines() ); } @@ -2250,7 +2250,7 @@ void KPrView::createGUI() } else actionViewShowNoteBar->setChecked(true); // HACK This is needed to be able to calculate a good initial size for the notebar - TQTimer::singleShot( 0, this, TQT_SLOT( initialLayoutOfSplitter() ) ); + TQTimer::singleShot( 0, this, TQ_SLOT( initialLayoutOfSplitter() ) ); } KPrPage *initPage=m_pKPresenterDoc->initialActivePage(); if ( !initPage ) @@ -2316,179 +2316,179 @@ void KPrView::guiActivateEvent( KParts::GUIActivateEvent *ev ) void KPrView::setupActions() { - actionEditCut = KStdAction::cut( this, TQT_SLOT( editCut() ), actionCollection(), "edit_cut" ); - actionEditCopy = KStdAction::copy( this, TQT_SLOT( editCopy() ), actionCollection(), "edit_copy" ); - actionEditPaste = KStdAction::paste( this, TQT_SLOT( editPaste() ), actionCollection(), "edit_paste" ); - connect( m_pKPresenterDoc, TQT_SIGNAL( enablePaste( bool ) ), - actionEditPaste, TQT_SLOT( setEnabled( bool ) ) ); + actionEditCut = KStdAction::cut( this, TQ_SLOT( editCut() ), actionCollection(), "edit_cut" ); + actionEditCopy = KStdAction::copy( this, TQ_SLOT( editCopy() ), actionCollection(), "edit_copy" ); + actionEditPaste = KStdAction::paste( this, TQ_SLOT( editPaste() ), actionCollection(), "edit_paste" ); + connect( m_pKPresenterDoc, TQ_SIGNAL( enablePaste( bool ) ), + actionEditPaste, TQ_SLOT( setEnabled( bool ) ) ); m_pKPresenterDoc->clipboardDataChanged(); // set paste's initial state actionEditDelete = new TDEAction( i18n( "&Delete" ), "edit-delete", CTRL + TQt::Key_Delete, - this, TQT_SLOT( editDelete() ), + this, TQ_SLOT( editDelete() ), actionCollection(), "edit_delete" ); - actionEditSelectAll = KStdAction::selectAll( this, TQT_SLOT( editSelectAll() ), actionCollection(), "edit_selectall" ); - actionEditDeSelectAll= KStdAction::deselect( this, TQT_SLOT( editDeSelectAll()), actionCollection(), "edit_deselectall"); + actionEditSelectAll = KStdAction::selectAll( this, TQ_SLOT( editSelectAll() ), actionCollection(), "edit_selectall" ); + actionEditDeSelectAll= KStdAction::deselect( this, TQ_SLOT( editDeSelectAll()), actionCollection(), "edit_deselectall"); actionEditCopyPage = new TDEAction( i18n( "Copy Slide" ), "edit-copy", - 0, this, TQT_SLOT( editCopyPage() ), + 0, this, TQ_SLOT( editCopyPage() ), actionCollection(), "edit_copypage" ); actionEditDuplicatePage = new TDEAction( i18n( "Duplicate Slide" ), "newslide", - 0, this, TQT_SLOT( editDuplicatePage() ), + 0, this, TQ_SLOT( editDuplicatePage() ), actionCollection(), "edit_duplicatepage" ); actionEditDelPage = new TDEAction( i18n( "Delete Slide" ), "delslide", 0, - this, TQT_SLOT( editDelPage() ), + this, TQ_SLOT( editDelPage() ), actionCollection(), "edit_delpage" ); - actionEditFind=KStdAction::find( this, TQT_SLOT( editFind() ), actionCollection(), "edit_find" ); - actionEditFindNext = KStdAction::findNext( this, TQT_SLOT( editFindNext() ), actionCollection(), "edit_findnext" ); - actionEditFindPrevious = KStdAction::findPrev( this, TQT_SLOT( editFindPrevious() ), actionCollection(), "edit_findprevious" ); - actionEditReplace=KStdAction::replace( this, TQT_SLOT( editReplace() ), actionCollection(), "edit_replace" ); + actionEditFind=KStdAction::find( this, TQ_SLOT( editFind() ), actionCollection(), "edit_find" ); + actionEditFindNext = KStdAction::findNext( this, TQ_SLOT( editFindNext() ), actionCollection(), "edit_findnext" ); + actionEditFindPrevious = KStdAction::findPrev( this, TQ_SLOT( editFindPrevious() ), actionCollection(), "edit_findprevious" ); + actionEditReplace=KStdAction::replace( this, TQ_SLOT( editReplace() ), actionCollection(), "edit_replace" ); // ---------------- View actions if ( !m_pKPresenterDoc->isEmbedded() ) { actionViewShowSideBar = new TDEToggleAction( i18n("Show Sidebar"), 0, - this, TQT_SLOT( viewShowSideBar() ), + this, TQ_SLOT( viewShowSideBar() ), actionCollection(), "view_showsidebar" ); actionViewShowSideBar->setCheckedState(i18n("Hide Sidebar")); actionViewShowNoteBar = new TDEToggleAction( i18n("Show Notebar"), 0, - this, TQT_SLOT( viewShowNoteBar() ), + this, TQ_SLOT( viewShowNoteBar() ), actionCollection(), "view_shownotebar" ); actionViewShowNoteBar->setCheckedState(i18n("Hide Notebar")); } actionViewFormattingChars = new TDEToggleAction( i18n( "&Formatting Characters" ), 0, - this, TQT_SLOT( slotViewFormattingChars() ), + this, TQ_SLOT( slotViewFormattingChars() ), actionCollection(), "view_formattingchars" ); actionViewFormattingChars->setToolTip( i18n( "Toggle the display of non-printing characters." ) ); actionViewFormattingChars->setWhatsThis( i18n( "Toggle the display of non-printing characters.<br><br>When this is enabled, KPresenter shows you tabs, spaces, carriage returns and other non-printing characters." ) ); actionViewSlideMaster = new TDEToggleAction( i18n( "Slide &Master" ), 0, - this, TQT_SLOT( viewSlideMaster() ), + this, TQ_SLOT( viewSlideMaster() ), actionCollection(), "view_master" ); actionViewShowGuideLine= new TDEToggleAction( i18n( "Guide Lines" ), 0, - this, TQT_SLOT( viewGuideLines() ), + this, TQ_SLOT( viewGuideLines() ), actionCollection(), "view_guidelines" ); actionViewShowGrid = new TDEToggleAction( i18n( "Show &Grid" ), 0, - this, TQT_SLOT( viewGrid() ), + this, TQ_SLOT( viewGrid() ), actionCollection(), "view_grid" ); actionViewShowGrid->setCheckedState(i18n("Hide &Grid")); actionViewSnapToGrid= new TDEToggleAction( i18n( "Snap to Grid" ), 0, - this, TQT_SLOT(viewSnapToGrid() ), + this, TQ_SLOT(viewSnapToGrid() ), actionCollection(), "view_snaptogrid" ); // ---------------- insert actions actionInsertPage = new TDEAction( i18n( "&Slide..." ), "slide", TQt::Key_F2, - this, TQT_SLOT( insertPage() ), + this, TQ_SLOT( insertPage() ), actionCollection(), "insert_page" ); new TDEAction( i18n( "Insert &Slide..." ), "newslide", 0, - this, TQT_SLOT( insertPage() ), + this, TQ_SLOT( insertPage() ), actionCollection(), "insert_page_popup" ); actionInsertPicture = new TDEAction( i18n( "P&icture..." ), "frame_image", TQt::SHIFT+TQt::Key_F5, - this, TQT_SLOT( insertPicture() ), + this, TQ_SLOT( insertPicture() ), actionCollection(), "insert_picture" ); // ----------------- tools actions actionToolsMouse = new TDEToggleAction( i18n( "Select" ), "select", 0, - this, TQT_SLOT( toolsMouse() ), + this, TQ_SLOT( toolsMouse() ), actionCollection(), "tools_mouse" ); actionToolsMouse->setExclusiveGroup( "tools" ); actionToolsMouse->setChecked( true ); actionToolsRotate = new TDEToggleAction( i18n( "&Rotate" ), "rotate", 0, - this, TQT_SLOT( toolsRotate() ), + this, TQ_SLOT( toolsRotate() ), actionCollection(), "tools_rotate" ); actionToolsRotate->setExclusiveGroup( "tools" ); actionToolsZoom = new TDEToggleAction( i18n( "&Zoom" ), "viewmag", 0, - this, TQT_SLOT( toolsZoom() ), + this, TQ_SLOT( toolsZoom() ), actionCollection(), "tools_zoom" ); actionToolsZoom->setExclusiveGroup( "tools" ); actionToolsShapePopup = new TDEActionMenu( i18n( "&Shape" ), "rectangle", actionCollection(), "tools_shapepopup" ); actionToolsShapePopup->setDelayed(true); - connect(actionToolsShapePopup, TQT_SIGNAL(activated()), this, TQT_SLOT(toolsShapePopup())); + connect(actionToolsShapePopup, TQ_SIGNAL(activated()), this, TQ_SLOT(toolsShapePopup())); actionToolsRectangle = new TDEToggleAction( i18n( "&Rectangle" ), "rectangle", - 0, this, TQT_SLOT( toolsRectangle() ), + 0, this, TQ_SLOT( toolsRectangle() ), actionCollection(), "tools_rectangle" ); actionToolsRectangle->setExclusiveGroup( "tools" ); actionToolsCircleOrEllipse = new TDEToggleAction( i18n( "&Circle/Ellipse" ), "circle", - 0, this, TQT_SLOT( toolsCircleOrEllipse() ), + 0, this, TQ_SLOT( toolsCircleOrEllipse() ), actionCollection(), "tools_circle" ); actionToolsCircleOrEllipse->setExclusiveGroup( "tools" ); actionToolsPie = new TDEToggleAction( i18n( "&Pie/Arc/Chord" ), "pie", 0, - this, TQT_SLOT( toolsPie() ), + this, TQ_SLOT( toolsPie() ), actionCollection(), "tools_pie" ); actionToolsPie->setExclusiveGroup( "tools" ); actionToolsText = new TDEToggleAction( i18n( "&Text" ), "frame_text", TQt::Key_F10, // same shortcut as KWord - this, TQT_SLOT( toolsText() ), + this, TQ_SLOT( toolsText() ), actionCollection(), "tools_text" ); actionToolsText->setExclusiveGroup( "tools" ); actionToolsAutoform = new TDEToggleAction( i18n( "&Arrows && Connections" ), "autoform", - 0, this, TQT_SLOT( toolsAutoform() ), + 0, this, TQ_SLOT( toolsAutoform() ), actionCollection(), "tools_autoform" ); actionToolsAutoform->setExclusiveGroup( "tools" ); actionToolsDiagramm = new TDEToggleAction( i18n( "&Chart" ), "frame_chart", 0, - this, TQT_SLOT( toolsDiagramm() ), + this, TQ_SLOT( toolsDiagramm() ), actionCollection(), "tools_diagramm" ); actionToolsDiagramm->setExclusiveGroup( "tools" ); actionToolsTable = new TDEToggleAction( i18n( "Ta&ble"), "frame_spreadsheet", TQt::Key_F5 /*same as kword*/, - this, TQT_SLOT( toolsTable() ), + this, TQ_SLOT( toolsTable() ), actionCollection(), "tools_table" ); actionToolsTable->setExclusiveGroup( "tools" ); actionToolsObject = new KoPartSelectAction( i18n( "&Object" ), "frame_query", - this, TQT_SLOT( toolsObject() ), + this, TQ_SLOT( toolsObject() ), actionCollection(), "tools_object" ); actionToolsLinePopup = new TDEActionMenu( i18n( "&Line" ), "line", actionCollection(), "tools_linepopup" ); actionToolsLinePopup->setDelayed(true); - connect(actionToolsLinePopup, TQT_SIGNAL(activated()), this, TQT_SLOT(toolsLinePopup())); + connect(actionToolsLinePopup, TQ_SIGNAL(activated()), this, TQ_SLOT(toolsLinePopup())); actionToolsLine = new TDEToggleAction( i18n( "&Line" ), "line", 0, - this, TQT_SLOT( toolsLine() ), + this, TQ_SLOT( toolsLine() ), actionCollection(), "tools_line" ); actionToolsLine->setExclusiveGroup( "tools" ); actionToolsFreehand = new TDEToggleAction( i18n( "&Freehand" ), "freehand", 0, - this, TQT_SLOT( toolsFreehand() ), + this, TQ_SLOT( toolsFreehand() ), actionCollection(), "tools_freehand" ); actionToolsFreehand->setExclusiveGroup( "tools" ); actionToolsPolyline = new TDEToggleAction( i18n( "Po&lyline" ), "polyline", 0, - this, TQT_SLOT( toolsPolyline() ), + this, TQ_SLOT( toolsPolyline() ), actionCollection(), "tools_polyline" ); actionToolsPolyline->setExclusiveGroup( "tools" ); actionToolsQuadricBezierCurve = new TDEToggleAction( i18n( "&Quadric Bezier Curve" ), "quadricbeziercurve", 0, - this, TQT_SLOT( toolsQuadricBezierCurve() ), + this, TQ_SLOT( toolsQuadricBezierCurve() ), actionCollection(), "tools_quadricbeziercurve" ); actionToolsQuadricBezierCurve->setExclusiveGroup( "tools" ); actionToolsCubicBezierCurve = new TDEToggleAction( i18n( "C&ubic Bezier Curve" ), "cubicbeziercurve", 0, - this, TQT_SLOT( toolsCubicBezierCurve() ), + this, TQ_SLOT( toolsCubicBezierCurve() ), actionCollection(), "tools_cubicbeziercurve" ); actionToolsCubicBezierCurve->setExclusiveGroup( "tools" ); actionToolsConvexOrConcavePolygon = new TDEToggleAction( i18n( "Co&nvex/Concave Polygon" ), "polygon", 0, - this, TQT_SLOT( toolsConvexOrConcavePolygon() ), + this, TQ_SLOT( toolsConvexOrConcavePolygon() ), actionCollection(), "tools_polygon" ); actionToolsConvexOrConcavePolygon->setExclusiveGroup( "tools" ); @@ -2496,39 +2496,39 @@ void KPrView::setupActions() actionToolsClosedLinePopup = new TDEActionMenu( i18n( "&Closed Line" ), "closed_freehand", actionCollection(), "tools_closed_linepopup" ); actionToolsClosedLinePopup->setDelayed(true); - connect(actionToolsClosedLinePopup, TQT_SIGNAL(activated()), this, TQT_SLOT(toolsClosedLinePopup())); + connect(actionToolsClosedLinePopup, TQ_SIGNAL(activated()), this, TQ_SLOT(toolsClosedLinePopup())); actionToolsClosedFreehand = new TDEToggleAction( i18n( "Closed &Freehand" ), "closed_freehand", 0, - this, TQT_SLOT( toolsClosedFreehand() ), + this, TQ_SLOT( toolsClosedFreehand() ), actionCollection(), "tools_closed_freehand" ); actionToolsClosedFreehand->setExclusiveGroup( "tools" ); actionToolsClosedPolyline = new TDEToggleAction( i18n( "Closed Po&lyline" ), "closed_polyline", 0, - this, TQT_SLOT( toolsClosedPolyline() ), + this, TQ_SLOT( toolsClosedPolyline() ), actionCollection(), "tools_closed_polyline" ); actionToolsClosedPolyline->setExclusiveGroup( "tools" ); actionToolsClosedQuadricBezierCurve = new TDEToggleAction( i18n( "Closed &Quadric Bezier Curve" ), "closed_quadricbeziercurve", 0, - this, TQT_SLOT( toolsClosedQuadricBezierCurve() ), + this, TQ_SLOT( toolsClosedQuadricBezierCurve() ), actionCollection(), "tools_closed_quadricbeziercurve" ); actionToolsClosedQuadricBezierCurve->setExclusiveGroup( "tools" ); actionToolsClosedCubicBezierCurve = new TDEToggleAction( i18n( "Closed C&ubic Bezier Curve" ), "closed_cubicbeziercurve", 0, - this, TQT_SLOT( toolsClosedCubicBezierCurve() ), + this, TQ_SLOT( toolsClosedCubicBezierCurve() ), actionCollection(), "tools_closed_cubicbeziercurve" ); actionToolsClosedCubicBezierCurve->setExclusiveGroup( "tools" ); // ----------------- text actions - actionTextFont = new TDEAction( i18n( "&Font..." ), 0, this, TQT_SLOT( mtextFont() ), + actionTextFont = new TDEAction( i18n( "&Font..." ), 0, this, TQ_SLOT( mtextFont() ), actionCollection(), "text_font" ); actionTextFontSize = new TDEFontSizeAction( i18n( "Font Size" ), 0, actionCollection(), "text_fontsize" ); - connect( actionTextFontSize, TQT_SIGNAL( fontSizeChanged( int ) ), - this, TQT_SLOT( sizeSelected( int ) ) ); + connect( actionTextFontSize, TQ_SIGNAL( fontSizeChanged( int ) ), + this, TQ_SLOT( sizeSelected( int ) ) ); #ifdef KFONTACTION_HAS_CRITERIA_ARG actionTextFontFamily = new TDEFontAction( TDEFontChooser::SmoothScalableFonts, @@ -2538,49 +2538,49 @@ void KPrView::setupActions() actionTextFontFamily = new TDEFontAction( i18n( "Font Family" ), 0, actionCollection(), "text_fontfamily" ); #endif - connect( actionTextFontFamily , TQT_SIGNAL( activated( const TQString & ) ), - this, TQT_SLOT( fontSelected( const TQString & ) ) ); + connect( actionTextFontFamily , TQ_SIGNAL( activated( const TQString & ) ), + this, TQ_SLOT( fontSelected( const TQString & ) ) ); actionTextBold = new TDEToggleAction( i18n( "&Bold" ), "format-text-bold", CTRL + TQt::Key_B, - this, TQT_SLOT( textBold() ), + this, TQ_SLOT( textBold() ), actionCollection(), "format-text-bold" ); actionTextItalic = new TDEToggleAction( i18n( "&Italic" ), "format-text-italic", CTRL + TQt::Key_I, - this, TQT_SLOT( textItalic() ), + this, TQ_SLOT( textItalic() ), actionCollection(), "format-text-italic" ); actionTextUnderline = new TDEToggleAction( i18n( "&Underline" ), "format-text-underline", CTRL + TQt::Key_U, - this, TQT_SLOT( textUnderline() ), + this, TQ_SLOT( textUnderline() ), actionCollection(), "text_underline" ); actionFormatStrikeOut = new TDEToggleAction( i18n( "&Strike Out" ), "format-text-strikethrough", 0 , - this, TQT_SLOT( textStrikeOut() ), + this, TQ_SLOT( textStrikeOut() ), actionCollection(), "format_strike" ); actionTextColor = new TTDESelectColorAction( i18n( "&Color..." ), TTDESelectColorAction::TextColor, actionCollection(), "text_color" ,true); - connect( actionTextColor, TQT_SIGNAL( activated() ), TQT_SLOT( textColor() ) ); + connect( actionTextColor, TQ_SIGNAL( activated() ), TQ_SLOT( textColor() ) ); actionTextColor->setDefaultColor(TQColor()); actionTextAlignLeft = new TDEToggleAction( i18n( "Align &Left" ), "format-text-direction-ltr", ALT + TQt::Key_L, - this, TQT_SLOT( textAlignLeft() ), + this, TQ_SLOT( textAlignLeft() ), actionCollection(), "text_alignleft" ); actionTextAlignLeft->setExclusiveGroup( "align" ); actionTextAlignLeft->setChecked( true ); actionTextAlignCenter = new TDEToggleAction( i18n( "Align &Center" ), "text_center", ALT + TQt::Key_C, - this, TQT_SLOT( textAlignCenter() ), + this, TQ_SLOT( textAlignCenter() ), actionCollection(), "text_aligncenter" ); actionTextAlignCenter->setExclusiveGroup( "align" ); actionTextAlignRight = new TDEToggleAction( i18n( "Align &Right" ), "format-text-direction-rtl", ALT + TQt::Key_R, - this, TQT_SLOT( textAlignRight() ), + this, TQ_SLOT( textAlignRight() ), actionCollection(), "text_alignright" ); actionTextAlignRight->setExclusiveGroup( "align" ); actionTextAlignBlock = new TDEToggleAction( i18n( "Align &Block" ), "text_block", CTRL + TQt::Key_J, - this, TQT_SLOT( textAlignBlock() ), + this, TQ_SLOT( textAlignBlock() ), actionCollection(), "text_alignblock" ); actionTextAlignBlock->setExclusiveGroup( "align" ); @@ -2596,7 +2596,7 @@ void KPrView::setupActions() // Dynamically create toggle-actions for each list style. // This approach allows to edit toolbars and extract separate actions from this menu TDEToggleAction* act = new TDEToggleAction( styleIt.current()->name(), /*TODO icon,*/ - 0, this, TQT_SLOT( slotCounterStyleSelected() ), + 0, this, TQ_SLOT( slotCounterStyleSelected() ), actionCollection(), TQString("counterstyle_%1").arg( styleIt.current()->style() ).latin1() ); act->setExclusiveGroup( "counterstyle" ); // Add to the right menu: both for "none", bullet for bullets, numbers otherwise @@ -2609,29 +2609,29 @@ void KPrView::setupActions() actionFormatNumber->insert( act ); } actionTextDepthPlus = new TDEAction( i18n( "&Increase Depth" ), TQApplication::reverseLayout() ?"format_decreaseindent" : "format_increaseindent", - CTRL + TQt::Key_Plus, this, TQT_SLOT( textDepthPlus() ), + CTRL + TQt::Key_Plus, this, TQ_SLOT( textDepthPlus() ), actionCollection(), "text_depthPlus" ); actionTextDepthMinus = new TDEAction( i18n( "&Decrease Depth" ), TQApplication::reverseLayout() ?"format_increaseindent" : "format_decreaseindent", - CTRL + TQt::Key_Minus, this, TQT_SLOT( textDepthMinus() ), + CTRL + TQt::Key_Minus, this, TQ_SLOT( textDepthMinus() ), actionCollection(), "text_depthMinus" ); actionTextExtentCont2Height = new TDEAction( i18n( "Extend Contents to Object &Height" ), 0, - this, TQT_SLOT( textContentsToHeight() ), + this, TQ_SLOT( textContentsToHeight() ), actionCollection(), "text_con2hei" ); actionTextExtendObj2Cont = new TDEAction( i18n( "&Extend Object to Fit Contents" ), 0, - this, TQT_SLOT( textObjectToContents() ), + this, TQ_SLOT( textObjectToContents() ), actionCollection(), "text_obj2cont" ); actionTextInsertPageNum = new TDEAction( i18n( "&Insert Slide Number" ), "pgnum", 0, - this, TQT_SLOT( textInsertPageNum() ), + this, TQ_SLOT( textInsertPageNum() ), actionCollection(), "text_inspgnum" ); // ----------------- format actions actionExtraProperties = new TDEAction( i18n( "&Properties" ), "penbrush", 0, - this, TQT_SLOT( extraProperties() ), + this, TQ_SLOT( extraProperties() ), actionCollection(), "extra_properties" ); actionExtraArrangePopup = new TDEActionMenu( i18n( "Arra&nge Objects" ), "arrange", @@ -2639,98 +2639,98 @@ void KPrView::setupActions() actionExtraArrangePopup->setDelayed( false ); actionExtraRaise = new TDEAction( i18n( "Ra&ise Objects" ), "raise", - CTRL+TQt::SHIFT+TQt::Key_R, this, TQT_SLOT( extraRaise() ), + CTRL+TQt::SHIFT+TQt::Key_R, this, TQ_SLOT( extraRaise() ), actionCollection(), "extra_raise" ); actionExtraLower = new TDEAction( i18n( "&Lower Objects" ), "lower", CTRL +TQt::SHIFT+ TQt::Key_L, - this, TQT_SLOT( extraLower() ), + this, TQ_SLOT( extraLower() ), actionCollection(), "extra_lower" ); actionExtraBringForward= new TDEAction( i18n( "Bring to Front" ), "bring_forward", - 0, this, TQT_SLOT( extraBringForward() ), + 0, this, TQ_SLOT( extraBringForward() ), actionCollection(), "extra_bring_forward" ); actionExtraSendBackward= new TDEAction( i18n( "Send to Back" ), "send_backward", - 0, this, TQT_SLOT( extraSendBackward() ), + 0, this, TQ_SLOT( extraSendBackward() ), actionCollection(), "extra_send_backward" ); actionExtraRotate = new TDEAction( i18n( "R&otate Objects..." ), "object-rotate-right", 0, - this, TQT_SLOT( extraRotate() ), + this, TQ_SLOT( extraRotate() ), actionCollection(), "extra_rotate" ); actionExtraShadow = new TDEAction( i18n( "&Shadow Objects..." ), "shadow", 0, - this, TQT_SLOT( extraShadow() ), + this, TQ_SLOT( extraShadow() ), actionCollection(), "extra_shadow" ); actionExtraAlignObjLeft = new TDEAction( i18n( "Align &Left" ), "aoleft", 0, - this, TQT_SLOT( extraAlignObjLeft() ), + this, TQ_SLOT( extraAlignObjLeft() ), actionCollection(), "extra_alignleft" ); actionExtraAlignObjCenterH = new TDEAction( i18n( "Align Center (&horizontally)" ), "aocenterh", 0, - this, TQT_SLOT( extraAlignObjCenterH() ), + this, TQ_SLOT( extraAlignObjCenterH() ), actionCollection(), "extra_aligncenterh" ); actionExtraAlignObjRight = new TDEAction( i18n( "Align &Right" ), "aoright", 0, - this, TQT_SLOT( extraAlignObjRight() ), + this, TQ_SLOT( extraAlignObjRight() ), actionCollection(), "extra_alignright" ); actionExtraAlignObjTop = new TDEAction( i18n( "Align &Top" ), "aotop", 0, - this, TQT_SLOT( extraAlignObjTop() ), + this, TQ_SLOT( extraAlignObjTop() ), actionCollection(), "extra_aligntop" ); actionExtraAlignObjCenterV = new TDEAction( i18n( "Align Center (&vertically)" ), "aocenterv", 0, - this, TQT_SLOT( extraAlignObjCenterV() ), + this, TQ_SLOT( extraAlignObjCenterV() ), actionCollection(), "extra_aligncenterv" ); actionExtraAlignObjBottom = new TDEAction( i18n( "Align &Bottom" ), "aobottom", 0, - this, TQT_SLOT( extraAlignObjBottom() ), + this, TQ_SLOT( extraAlignObjBottom() ), actionCollection(), "extra_alignbottom" ); actionExtraBackground = new TDEAction( i18n( "Slide Bac&kground..." ), "background", 0, - this, TQT_SLOT( extraBackground() ), + this, TQ_SLOT( extraBackground() ), actionCollection(), "extra_background" ); actionExtraLayout = new TDEAction( i18n( "Page &Layout..." ), 0, - this, TQT_SLOT( extraLayout() ), + this, TQ_SLOT( extraLayout() ), actionCollection(), "extra_layout" ); m_actionExtraHeader = new TDEToggleAction( i18n( "Enable Document &Header" ), 0, - this, TQT_SLOT( viewHeader() ), + this, TQ_SLOT( viewHeader() ), actionCollection(), "extra_header" ); m_actionExtraHeader->setCheckedState( i18n( "Disable Document &Header" ) ); m_actionExtraHeader->setToolTip( i18n( "Shows and hides header display for the current slide." ) ); m_actionExtraFooter = new TDEToggleAction( i18n( "Enable Document Foo&ter" ), 0, - this, TQT_SLOT( viewFooter() ), + this, TQ_SLOT( viewFooter() ), actionCollection(), "extra_footer" ); m_actionExtraFooter->setCheckedState( i18n( "Disable Document Foo&ter" ) ); m_actionExtraFooter->setToolTip( i18n( "Shows and hides footer display for the current slide." ) ); actionExtraConfigure = new TDEAction( i18n( "Configure KPresenter..." ), "configure", 0, - this, TQT_SLOT( extraConfigure() ), + this, TQ_SLOT( extraConfigure() ), actionCollection(), "extra_configure" ); actionExtraWebPres = new TDEAction( i18n( "Create &HTML Slideshow..." ), "webpres", 0, - this, TQT_SLOT( extraWebPres() ), + this, TQ_SLOT( extraWebPres() ), actionCollection(), "extra_webpres" ); actionExtraMSPres = new TDEAction( i18n( "Create Memor&y Stick Slideshow..." ), - 0, this, TQT_SLOT( extraMSPres() ), + 0, this, TQ_SLOT( extraMSPres() ), actionCollection(), "extra_mspres" ); actionExtraCreateTemplate = new TDEAction( i18n( "Template Manager" ), 0, - this, TQT_SLOT( extraCreateTemplate() ), + this, TQ_SLOT( extraCreateTemplate() ), actionCollection(), "extra_template" ); actionExtraDefaultTemplate = new TDEAction( i18n( "Use Current Slide as Default Template" ), 0, - this, TQT_SLOT( extraDefaultTemplate() ), + this, TQ_SLOT( extraDefaultTemplate() ), actionCollection(), "extra_defaulttemplate" ); actionExtraAlignObjsPopup = new TDEActionMenu( i18n("Align O&bjects"), "alignobjs", @@ -2738,207 +2738,207 @@ void KPrView::setupActions() actionExtraAlignObjsPopup->setDelayed( false ); actionExtraLineBegin = new TDEAction( i18n("Line Begin"), "line_begin", 0, - this, TQT_SLOT( extraLineBegin() ), + this, TQ_SLOT( extraLineBegin() ), actionCollection(), "extra_linebegin" ); actionExtraLineEnd = new TDEAction( i18n("Line End"), "line_end", 0, - this, TQT_SLOT( extraLineEnd() ), + this, TQ_SLOT( extraLineEnd() ), actionCollection(), "extra_lineend" ); actionExtraPenStyle = new KoLineStyleAction( i18n("Outline Style"), "pen_style", - this, TQT_SLOT( extraPenStyle(int) ), + this, TQ_SLOT( extraPenStyle(int) ), actionCollection(), "extra_penstyle" ); actionExtraPenStyle->setShowCurrentSelection(false); actionExtraPenWidth = new KoLineWidthAction( i18n("Outline Width"), "pen_width", - this, TQT_SLOT( extraPenWidth(double) ), + this, TQ_SLOT( extraPenWidth(double) ), actionCollection(), "extra_penwidth" ); actionExtraPenWidth->setUnit( kPresenterDoc()->unit() ); actionExtraPenWidth->setShowCurrentSelection(false); - connect( kPresenterDoc(), TQT_SIGNAL( unitChanged( KoUnit::Unit ) ), - actionExtraPenWidth, TQT_SLOT( setUnit( KoUnit::Unit ) ) ); + connect( kPresenterDoc(), TQ_SIGNAL( unitChanged( KoUnit::Unit ) ), + actionExtraPenWidth, TQ_SLOT( setUnit( KoUnit::Unit ) ) ); actionExtraGroup = new TDEAction( i18n( "&Group Objects" ), "group", TQKeySequence( "Ctrl+G" ), - this, TQT_SLOT( extraGroup() ), + this, TQ_SLOT( extraGroup() ), actionCollection(), "extra_group" ); actionExtraUnGroup = new TDEAction( i18n( "&Ungroup Objects" ), "ungroup", TQKeySequence( "Ctrl+Shift+G" ), - this, TQT_SLOT( extraUnGroup() ), + this, TQ_SLOT( extraUnGroup() ), actionCollection(), "extra_ungroup" ); // ----------------- slideshow actions actionScreenConfigPages = new TDEAction( i18n( "&Configure Slide Show..." ), "configure", 0, - this, TQT_SLOT( screenConfigPages() ), + this, TQ_SLOT( screenConfigPages() ), actionCollection(), "screen_configpages" ); actionScreenAssignEffect = new TDEAction( i18n( "Edit &Object Effect..." ), "effect", 0, - this, TQT_SLOT( screenAssignEffect() ), + this, TQ_SLOT( screenAssignEffect() ), actionCollection(), "screen_assigneffect"); actionScreenTransEffect = new TDEAction( i18n( "Edit Slide &Transition..." ), "slide_effect", 0, - this, TQT_SLOT( screenTransEffect() ), + this, TQ_SLOT( screenTransEffect() ), actionCollection(), "screen_transeffect"); actionScreenStart = new TDEAction( i18n( "&Start" ), "2rightarrow", TQt::Key_F12, - this, TQT_SLOT( screenStart() ), + this, TQ_SLOT( screenStart() ), actionCollection(), "screen_start" ); actionScreenStartFromFirst = new TDEAction( i18n( "Start From &First Slide" ), "1rightarrow", 0, - this, TQT_SLOT( screenStartFromFirst() ), + this, TQ_SLOT( screenStartFromFirst() ), actionCollection(), "screen_startfromfirst" ); actionScreenFirst = new TDEAction( i18n( "&Go to Start" ), "go-first", 0, - this, TQT_SLOT( screenFirst() ), + this, TQ_SLOT( screenFirst() ), actionCollection(), "screen_first" ); actionScreenPrev = new TDEAction( i18n( "&Previous Slide" ), "back", TQt::Key_Prior, - this, TQT_SLOT( screenPrev() ), + this, TQ_SLOT( screenPrev() ), actionCollection(), "screen_prev" ); actionScreenNext = new TDEAction( i18n( "&Next Slide" ), "forward", TQt::Key_Next, - this, TQT_SLOT( screenNext() ), + this, TQ_SLOT( screenNext() ), actionCollection(), "screen_next" ); actionScreenLast = new TDEAction( i18n( "Go to &End" ), "go-last", 0, - this, TQT_SLOT( screenLast() ), + this, TQ_SLOT( screenLast() ), actionCollection(), "screen_last" ); actionScreenSkip = new TDEAction( i18n( "Goto &Slide..." ), "goto", 0, - this, TQT_SLOT( screenSkip() ), + this, TQ_SLOT( screenSkip() ), actionCollection(), "screen_skip" ); // ----------------- colorbar(Brush and Pen) action actionBrushColor = new TTDESelectColorAction( i18n( "Fill Color..." ), TTDESelectColorAction::FillColor, actionCollection(), "brush_color" ,true); - connect( actionBrushColor, TQT_SIGNAL( activated() ), TQT_SLOT( brushChosen() ) ); + connect( actionBrushColor, TQ_SIGNAL( activated() ), TQ_SLOT( brushChosen() ) ); actionBrushColor->setDefaultColor(TQColor()); actionPenColor = new TTDESelectColorAction( i18n( "Outline Color..." ), TTDESelectColorAction::LineColor, actionCollection(), "pen_color" ); - connect( actionPenColor, TQT_SIGNAL( activated() ), TQT_SLOT( penChosen() ) ); + connect( actionPenColor, TQ_SIGNAL( activated() ), TQ_SLOT( penChosen() ) ); actionPenColor->setDefaultColor(TQColor()); - actionExtendObjectHeight = new TDEAction( i18n( "&Extend Contents to Object Height" ),0, this, TQT_SLOT( textContentsToHeight() ), + actionExtendObjectHeight = new TDEAction( i18n( "&Extend Contents to Object Height" ),0, this, TQ_SLOT( textContentsToHeight() ), actionCollection(), "extendobjectheight" ); - actionResizeTextObject = new TDEAction( i18n( "&Resize Object to Fit Contents" ),0, this, TQT_SLOT( textObjectToContents() ), + actionResizeTextObject = new TDEAction( i18n( "&Resize Object to Fit Contents" ),0, this, TQ_SLOT( textObjectToContents() ), actionCollection(), "resizetextobject" ); actionRenamePage=new TDEAction(i18n( "&Rename Slide..." ),0,this, - TQT_SLOT( renamePageTitle() ), + TQ_SLOT( renamePageTitle() ), actionCollection(), "rename_page" ); actionPicOriginalSize = new TDEAction( i18n( "Sca&le to Original Size" ), 0, this, - TQT_SLOT( picViewOriginalSize() ), + TQ_SLOT( picViewOriginalSize() ), actionCollection(), "pic_original_size" ); actionPic640x480=new TDEAction(i18n( "640x480" ),0,this, - TQT_SLOT( picViewOrig640x480() ), + TQ_SLOT( picViewOrig640x480() ), actionCollection(), "pic_640_480" ); actionPic800x600=new TDEAction(i18n( "800x600" ),0,this, - TQT_SLOT( picViewOrig800x600() ), + TQ_SLOT( picViewOrig800x600() ), actionCollection(), "pic_800_600" ); actionPic1024x768=new TDEAction(i18n( "1024x768" ),0,this, - TQT_SLOT( picViewOrig1024x768() ), + TQ_SLOT( picViewOrig1024x768() ), actionCollection(), "pic_1024_768" ); actionPic1280x1024=new TDEAction(i18n( "1280x1024" ),0,this, - TQT_SLOT( picViewOrig1280x1024() ), + TQ_SLOT( picViewOrig1280x1024() ), actionCollection(), "pic_1280_1024" ); actionPic1600x1200=new TDEAction(i18n( "1600x1200" ),0,this, - TQT_SLOT( picViewOrig1600x1200() ), + TQ_SLOT( picViewOrig1600x1200() ), actionCollection(), "pic_1600_1200" ); actionChangePic=new TDEAction( i18n( "&Change Picture..." ),"frame_image",0,this, - TQT_SLOT( chPic() ), actionCollection(), "change_picture" ); + TQ_SLOT( chPic() ), actionCollection(), "change_picture" ); actionImageEffect = new TDEAction( i18n("Image &Effect..."), 0, this, - TQT_SLOT(imageEffect()), actionCollection(), "image_effect"); + TQ_SLOT(imageEffect()), actionCollection(), "image_effect"); actionFormatSuper = new TDEToggleAction( i18n( "Superscript" ), "super", 0, - this, TQT_SLOT( textSuperScript() ), + this, TQ_SLOT( textSuperScript() ), actionCollection(), "format_super" ); actionFormatSuper->setExclusiveGroup( "valign" ); actionFormatSub = new TDEToggleAction( i18n( "Subscript" ), "sub", 0, - this, TQT_SLOT( textSubScript() ), + this, TQ_SLOT( textSubScript() ), actionCollection(), "format_sub" ); actionFormatSub->setExclusiveGroup( "valign" ); actionInsertSpecialChar = new TDEAction( i18n( "Sp&ecial Character..." ), "char", ALT + TQt::SHIFT + TQt::Key_C, - this, TQT_SLOT( insertSpecialChar() ), + this, TQ_SLOT( insertSpecialChar() ), actionCollection(), "insert_specialchar" ); actionInsertLink = new TDEAction( i18n( "Link..." ), 0, - this, TQT_SLOT( insertLink() ), + this, TQ_SLOT( insertLink() ), actionCollection(), "insert_link" ); #if 0 //code from page.cpp //not implemented picResizeMenu->insertSeparator(); - picResizeMenu->insertItem( i18n( "Enter Custom Factor..." ), this, TQT_SLOT( picViewOrigFactor() ) ); + picResizeMenu->insertItem( i18n( "Enter Custom Factor..." ), this, TQ_SLOT( picViewOrigFactor() ) ); #endif (void) new TDEAction( i18n( "Configure &Autocorrection..." ), 0, - this, TQT_SLOT( extraAutoFormat() ), + this, TQ_SLOT( extraAutoFormat() ), actionCollection(), "extra_autocorrection" ); - actionExtraSpellCheck = KStdAction::spelling( this, TQT_SLOT( slotSpellCheck() ), actionCollection(), "extra_spellcheck" ); + actionExtraSpellCheck = KStdAction::spelling( this, TQ_SLOT( slotSpellCheck() ), actionCollection(), "extra_spellcheck" ); actionFormatParag = new TDEAction( i18n( "&Paragraph..." ), ALT + CTRL + TQt::Key_P, - this, TQT_SLOT( formatParagraph() ), + this, TQ_SLOT( formatParagraph() ), actionCollection(), "format_paragraph" ); actionFormatDefault=new TDEAction( i18n( "Default Format" ), 0, - this, TQT_SLOT( textDefaultFormat() ), + this, TQ_SLOT( textDefaultFormat() ), actionCollection(), "text_default" ); actionOpenLink = new TDEAction( i18n( "Open Link" ), 0, - this, TQT_SLOT( openLink() ), + this, TQ_SLOT( openLink() ), actionCollection(), "open_link" ); actionChangeLink=new TDEAction( i18n("Change Link..."), 0, - this, TQT_SLOT(changeLink()), + this, TQ_SLOT(changeLink()), actionCollection(), "change_link"); actionCopyLink = new TDEAction( i18n( "Copy Link" ), 0, - this, TQT_SLOT( copyLink() ), + this, TQ_SLOT( copyLink() ), actionCollection(), "copy_link" ); actionRemoveLink = new TDEAction( i18n( "Remove Link" ), 0, - this, TQT_SLOT( removeLink() ), + this, TQ_SLOT( removeLink() ), actionCollection(), "remove_link" ); actionAddLinkToBookmak = new TDEAction( i18n( "Add to Bookmark" ), 0, - this, TQT_SLOT( addToBookmark() ), + this, TQ_SLOT( addToBookmark() ), actionCollection(), "add_to_bookmark" ); actionEditCustomVarsEdit = new TDEAction( i18n( "&Custom Variables..." ), 0, - this, TQT_SLOT( editCustomVars() ), + this, TQ_SLOT( editCustomVars() ), actionCollection(), "edit_vars" ); actionEditCustomVars = new TDEAction( i18n( "Edit Variable..." ), 0, - this, TQT_SLOT( editCustomVariable() ), + this, TQ_SLOT( editCustomVariable() ), actionCollection(), "edit_customvars" ); @@ -2960,31 +2960,31 @@ void KPrView::setupActions() actionInsertVariable->popupMenu()->insertSeparator(); actionRefreshAllVariable = new TDEAction( i18n( "&Refresh All Variables" ), 0, - this, TQT_SLOT( refreshAllVariable() ), + this, TQ_SLOT( refreshAllVariable() ), actionCollection(), "refresh_all_variable" ); actionInsertVariable->insert(actionRefreshAllVariable); actionIncreaseFontSize = new TDEAction( i18n("Increase Font Size"),"fontsizeup", 0, - this, TQT_SLOT( increaseFontSize() ), + this, TQ_SLOT( increaseFontSize() ), actionCollection(), "increaseFontSize" ); actionDecreaseFontSize = new TDEAction( i18n("Decrease Font Size"),"fontsizedown", 0, - this, TQT_SLOT( decreaseFontSize() ), + this, TQ_SLOT( decreaseFontSize() ), actionCollection(), "decreaseFontSize" ); actionChangeCase=new TDEAction( i18n( "Change Case..." ), 0, - this, TQT_SLOT( changeCaseOfText() ), + this, TQ_SLOT( changeCaseOfText() ), actionCollection(), "change_case" ); actionViewZoom = new TDESelectAction( i18n( "Zoom" ), "viewmag", 0, actionCollection(), "view_zoom" ); - connect( actionViewZoom, TQT_SIGNAL( activated( const TQString & ) ), - this, TQT_SLOT( viewZoom( const TQString & ) ) ); + connect( actionViewZoom, TQ_SIGNAL( activated( const TQString & ) ), + this, TQ_SLOT( viewZoom( const TQString & ) ) ); actionViewZoom->setEditable(true); changeZoomMenu( ); actionFormatStylist = new TDEAction( i18n( "&Style Manager" ), ALT + CTRL + TQt::Key_S, - this, TQT_SLOT( extraStylist() ), + this, TQ_SLOT( extraStylist() ), actionCollection(), "format_stylist" ); actionFormatStyleMenu = new TDEActionMenu( i18n( "St&yle" ), 0, @@ -2993,167 +2993,167 @@ void KPrView::setupActions() actionFormatStyle = new TDESelectAction( i18n( "St&yle" ), 0, actionCollection(), "format_style" ); - connect( actionFormatStyle, TQT_SIGNAL( activated( int ) ), - this, TQT_SLOT( textStyleSelected( int ) ) ); + connect( actionFormatStyle, TQ_SIGNAL( activated( int ) ), + this, TQ_SLOT( textStyleSelected( int ) ) ); actionFormatStyle->setMenuAccelsEnabled( true ); updateStyleList(); actionAllowAutoFormat = new TDEToggleAction( i18n( "Enable Autocorrection" ), 0, - this, TQT_SLOT( slotAllowAutoFormat() ), + this, TQ_SLOT( slotAllowAutoFormat() ), actionCollection(), "enable_autocorrection" ); actionAllowAutoFormat->setCheckedState(i18n("Disable Autocorrection")); // ------------------- Actions with a key binding and no GUI item new TDEAction( i18n( "Insert Non-Breaking Space" ), CTRL+TQt::Key_Space, - this, TQT_SLOT( slotNonbreakingSpace() ), actionCollection(), "nonbreaking_space" ); + this, TQ_SLOT( slotNonbreakingSpace() ), actionCollection(), "nonbreaking_space" ); new TDEAction( i18n( "Insert Non-Breaking Hyphen" ), CTRL+TQt::SHIFT+TQt::Key_Minus, - this, TQT_SLOT( slotNonbreakingHyphen() ), actionCollection(), "nonbreaking_hyphen" ); + this, TQ_SLOT( slotNonbreakingHyphen() ), actionCollection(), "nonbreaking_hyphen" ); new TDEAction( i18n( "Insert Soft Hyphen" ), CTRL+TQt::Key_Minus, - this, TQT_SLOT( slotSoftHyphen() ), actionCollection(), "soft_hyphen" ); + this, TQ_SLOT( slotSoftHyphen() ), actionCollection(), "soft_hyphen" ); new TDEAction( i18n( "Line Break" ), TQt::SHIFT+TQt::Key_Return, - this, TQT_SLOT( slotLineBreak() ), actionCollection(), "line_break" ); + this, TQ_SLOT( slotLineBreak() ), actionCollection(), "line_break" ); new TDEAction( i18n( "Completion" ), TDEStdAccel::shortcut(TDEStdAccel::TextCompletion), - this, TQT_SLOT( slotCompletion() ), actionCollection(), "completion" ); + this, TQ_SLOT( slotCompletion() ), actionCollection(), "completion" ); new TDEAction( i18n( "Increase Numbering Level" ), ALT+TQt::Key_Right, - this, TQT_SLOT( slotIncreaseNumberingLevel() ), actionCollection(), "increase_numbering_level" ); + this, TQ_SLOT( slotIncreaseNumberingLevel() ), actionCollection(), "increase_numbering_level" ); new TDEAction( i18n( "Decrease Numbering Level" ), ALT+TQt::Key_Left, - this, TQT_SLOT( slotDecreaseNumberingLevel() ), actionCollection(), "decrease_numbering_level" ); + this, TQ_SLOT( slotDecreaseNumberingLevel() ), actionCollection(), "decrease_numbering_level" ); actionInsertComment = new TDEAction( i18n( "Comment..." ), 0, - this, TQT_SLOT( insertComment() ), + this, TQ_SLOT( insertComment() ), actionCollection(), "insert_comment" ); actionEditComment = new TDEAction( i18n("Edit Comment..."), 0, - this, TQT_SLOT(editComment()), + this, TQ_SLOT(editComment()), actionCollection(), "edit_comment"); actionAddGuideLine = new TDEAction( i18n( "Add Guide Line..."), 0, - this, TQT_SLOT( addGuideLine()), + this, TQ_SLOT( addGuideLine()), actionCollection(), "add_guideline"); actionRemoveComment = new TDEAction( i18n("Remove Comment"), 0, - this, TQT_SLOT(removeComment()), + this, TQ_SLOT(removeComment()), actionCollection(), "remove_comment"); actionCopyTextOfComment = new TDEAction( i18n("Copy Text of Comment..."), 0, - this, TQT_SLOT(copyTextOfComment()), + this, TQ_SLOT(copyTextOfComment()), actionCollection(), "copy_text_comment"); actionConfigureCompletion = new TDEAction( i18n( "&Configure Completion..." ), 0, - this, TQT_SLOT( configureCompletion() ), + this, TQ_SLOT( configureCompletion() ), actionCollection(), "configure_completion" ); actionZoomMinus = new TDEAction( i18n( "Zoom Out" ), "zoom-out",0, - this, TQT_SLOT( zoomMinus() ), + this, TQ_SLOT( zoomMinus() ), actionCollection(), "zoom_minus" ); actionZoomPlus = new TDEAction( i18n( "Zoom In" ), "zoom-in",0, - this, TQT_SLOT( zoomPlus() ), + this, TQ_SLOT( zoomPlus() ), actionCollection(), "zoom_plus" ); actionZoomEntirePage = new TDEAction( i18n( "Zoom Entire Slide" ), 0, - this, TQT_SLOT( zoomEntirePage() ), + this, TQ_SLOT( zoomEntirePage() ), actionCollection(), "zoom_entire_page" ); actionZoomMinus = new TDEAction( i18n( "Zoom Slide Width" ), 0, - this, TQT_SLOT( zoomPageWidth() ), + this, TQ_SLOT( zoomPageWidth() ), actionCollection(), "zoom_page_width" ); actionZoomSelectedObject= new TDEAction( i18n( "Zoom Selected Objects" ), "zoom-fit-best",0, - this, TQT_SLOT( zoomSelectedObject() ), + this, TQ_SLOT( zoomSelectedObject() ), actionCollection(), "zoom_selected_object" ); actionZoomPageHeight= new TDEAction( i18n( "Zoom Slide Height" ), 0, - this, TQT_SLOT( zoomPageHeight() ), + this, TQ_SLOT( zoomPageHeight() ), actionCollection(), "zoom_page_height" ); actionZoomAllObject= new TDEAction( i18n( "Zoom All Objects" ), 0, - this, TQT_SLOT( zoomAllObject() ), + this, TQ_SLOT( zoomAllObject() ), actionCollection(), "zoom_all_object" ); actionFlipHorizontal= new TDEAction( i18n( "Horizontal Flip" ), 0, - this, TQT_SLOT( flipHorizontal() ), + this, TQ_SLOT( flipHorizontal() ), actionCollection(), "horizontal_flip" ); actionFlipVertical= new TDEAction( i18n( "Vertical Flip" ), 0, - this, TQT_SLOT( flipVertical() ), + this, TQ_SLOT( flipVertical() ), actionCollection(), "vertical_flip" ); actionDuplicateObj = new TDEAction( i18n( "Duplicate Object..." ), 0, - this, TQT_SLOT( duplicateObj() ), + this, TQ_SLOT( duplicateObj() ), actionCollection(), "duplicate_obj" ); actionApplyAutoFormat= new TDEAction( i18n( "Apply Autocorrection" ), 0, - this, TQT_SLOT( applyAutoFormat() ), + this, TQ_SLOT( applyAutoFormat() ), actionCollection(), "apply_autoformat" ); actionCreateStyleFromSelection = new TDEAction( i18n( "Create Style From Selection..." ), 0, - this, TQT_SLOT( createStyleFromSelection()), + this, TQ_SLOT( createStyleFromSelection()), actionCollection(), "create_style" ); actionCloseObject = new TDEAction( i18n( "Close Object" ), 0, - this, TQT_SLOT( closeObject()), + this, TQ_SLOT( closeObject()), actionCollection(), "close_object" ); actionAlignVerticalTop = new TDEToggleAction( i18n( "Align Top" ), 0, - this, TQT_SLOT( alignVerticalTop() ), + this, TQ_SLOT( alignVerticalTop() ), actionCollection(), "align_top" ); actionAlignVerticalTop->setExclusiveGroup( "vertical_alignment" ); actionAlignVerticalTop->setChecked( true ); actionAlignVerticalBottom = new TDEToggleAction( i18n( "Align Bottom" ), 0, - this, TQT_SLOT( alignVerticalBottom() ), + this, TQ_SLOT( alignVerticalBottom() ), actionCollection(), "align_bottom" ); actionAlignVerticalBottom->setExclusiveGroup( "vertical_alignment" ); actionAlignVerticalCenter = new TDEToggleAction( i18n( "Align Middle" ), 0, - this, TQT_SLOT( alignVerticalCenter() ), + this, TQ_SLOT( alignVerticalCenter() ), actionCollection(), "align_center" ); actionAlignVerticalCenter->setExclusiveGroup( "vertical_alignment" ); actionSavePicture= new TDEAction( i18n("Save Picture..."), 0, - this, TQT_SLOT( savePicture() ), + this, TQ_SLOT( savePicture() ), actionCollection(), "save_picture"); actionAllowBgSpellCheck = new TDEToggleAction( i18n( "Autospellcheck" ), 0, - this, TQT_SLOT( autoSpellCheck() ), + this, TQ_SLOT( autoSpellCheck() ), actionCollection(), "tool_auto_spellcheck" ); actionInsertFile= new TDEAction( i18n( "File..." ), 0, - this, TQT_SLOT( insertFile() ), + this, TQ_SLOT( insertFile() ), actionCollection(), "insert_file" ); actionImportStyle= new TDEAction( i18n( "Import Styles..." ), 0, - this, TQT_SLOT( importStyle() ), + this, TQ_SLOT( importStyle() ), actionCollection(), "import_style" ); actionSaveBackgroundPicture= new TDEAction( i18n( "Save Background Picture..." ), 0, - this, TQT_SLOT(backgroundPicture() ), + this, TQ_SLOT(backgroundPicture() ), actionCollection(), "save_bgpicture" ); #if 0 actionInsertDirectCursor = new TDEToggleAction( i18n( "Type Anywhere Cursor" ), 0, - this, TQT_SLOT( insertDirectCursor() ), + this, TQ_SLOT( insertDirectCursor() ), actionCollection(), "direct_cursor" ); #endif actionSpellIgnoreAll = new TDEAction( i18n( "Ignore All" ), 0, - this, TQT_SLOT( slotAddIgnoreAllWord() ), + this, TQ_SLOT( slotAddIgnoreAllWord() ), actionCollection(), "ignore_all" ); actionAddWordToPersonalDictionary=new TDEAction( i18n( "Add Word to Dictionary" ),0, - this, TQT_SLOT( addWordToDictionary() ), + this, TQ_SLOT( addWordToDictionary() ), actionCollection(), "add_word_to_dictionary" ); actionCustomSlideShow = new TDEAction( i18n( "Custom Slide Show..." ), 0, - this, TQT_SLOT( customSlideShow() ), + this, TQ_SLOT( customSlideShow() ), actionCollection(), "custom_slide_show" ); actionDisplayObjectFromMasterPage = new TDEToggleAction( i18n( "Hide Object From Slide Master" ), 0, - this, TQT_SLOT( displayObjectFromMasterPage() ), + this, TQ_SLOT( displayObjectFromMasterPage() ), actionCollection(), "display_object_from_master_page" ); actionDisplayObjectFromMasterPage->setCheckedState(i18n("Display Object From Slide Master")); actionDisplayBackgroundPage = new TDEToggleAction( i18n( "Hide Background" ), 0, - this, TQT_SLOT( displayBackground() ), + this, TQ_SLOT( displayBackground() ), actionCollection(), "display_background" ); actionDisplayBackgroundPage->setCheckedState(i18n("Display Background")); } @@ -3658,55 +3658,55 @@ void KPrView::setupPopupMenus() // create right button line begin rb_lbegin = new TQPopupMenu(); TQ_CHECK_PTR( rb_lbegin ); - rb_lbegin->insertItem( KPBarIcon("line_normal_begin" ), this, TQT_SLOT( extraLineBeginNormal() ) ); + rb_lbegin->insertItem( KPBarIcon("line_normal_begin" ), this, TQ_SLOT( extraLineBeginNormal() ) ); rb_lbegin->insertSeparator(); - rb_lbegin->insertItem( KPBarIcon("line_arrow_begin" ), this, TQT_SLOT( extraLineBeginArrow() ) ); + rb_lbegin->insertItem( KPBarIcon("line_arrow_begin" ), this, TQ_SLOT( extraLineBeginArrow() ) ); rb_lbegin->insertSeparator(); - rb_lbegin->insertItem( KPBarIcon("line_rect_begin" ), this, TQT_SLOT( extraLineBeginRect() ) ); + rb_lbegin->insertItem( KPBarIcon("line_rect_begin" ), this, TQ_SLOT( extraLineBeginRect() ) ); rb_lbegin->insertSeparator(); - rb_lbegin->insertItem( KPBarIcon("line_circle_begin" ), this, TQT_SLOT( extraLineBeginCircle() ) ); + rb_lbegin->insertItem( KPBarIcon("line_circle_begin" ), this, TQ_SLOT( extraLineBeginCircle() ) ); rb_lbegin->insertSeparator(); - rb_lbegin->insertItem( KPBarIcon("line_line_arrow_begin" ), this, TQT_SLOT( extraLineBeginLineArrow() ) ); + rb_lbegin->insertItem( KPBarIcon("line_line_arrow_begin" ), this, TQ_SLOT( extraLineBeginLineArrow() ) ); rb_lbegin->insertSeparator(); - rb_lbegin->insertItem( KPBarIcon("line_dimension_line_begin" ), this, TQT_SLOT( extraLineBeginDimensionLine() ) ); + rb_lbegin->insertItem( KPBarIcon("line_dimension_line_begin" ), this, TQ_SLOT( extraLineBeginDimensionLine() ) ); rb_lbegin->insertSeparator(); - rb_lbegin->insertItem( KPBarIcon("line_double_arrow_begin" ), this, TQT_SLOT( extraLineBeginDoubleArrow() ) ); + rb_lbegin->insertItem( KPBarIcon("line_double_arrow_begin" ), this, TQ_SLOT( extraLineBeginDoubleArrow() ) ); rb_lbegin->insertSeparator(); - rb_lbegin->insertItem( KPBarIcon("line_double_line_arrow_begin" ), this, TQT_SLOT( extraLineBeginDoubleLineArrow() ) ); + rb_lbegin->insertItem( KPBarIcon("line_double_line_arrow_begin" ), this, TQ_SLOT( extraLineBeginDoubleLineArrow() ) ); rb_lbegin->setMouseTracking( true ); rb_lbegin->setCheckable( false ); // create right button line end rb_lend = new TQPopupMenu(); TQ_CHECK_PTR( rb_lend ); - rb_lend->insertItem( KPBarIcon("line_normal_end" ), this, TQT_SLOT( extraLineEndNormal() ) ); + rb_lend->insertItem( KPBarIcon("line_normal_end" ), this, TQ_SLOT( extraLineEndNormal() ) ); rb_lend->insertSeparator(); - rb_lend->insertItem( KPBarIcon("line_arrow_end" ), this, TQT_SLOT( extraLineEndArrow() ) ); + rb_lend->insertItem( KPBarIcon("line_arrow_end" ), this, TQ_SLOT( extraLineEndArrow() ) ); rb_lend->insertSeparator(); - rb_lend->insertItem( KPBarIcon("line_rect_end" ), this, TQT_SLOT( extraLineEndRect() ) ); + rb_lend->insertItem( KPBarIcon("line_rect_end" ), this, TQ_SLOT( extraLineEndRect() ) ); rb_lend->insertSeparator(); - rb_lend->insertItem( KPBarIcon("line_circle_end" ), this, TQT_SLOT( extraLineEndCircle() ) ); + rb_lend->insertItem( KPBarIcon("line_circle_end" ), this, TQ_SLOT( extraLineEndCircle() ) ); rb_lend->insertSeparator(); - rb_lend->insertItem( KPBarIcon("line_line_arrow_end" ), this, TQT_SLOT( extraLineEndLineArrow() ) ); + rb_lend->insertItem( KPBarIcon("line_line_arrow_end" ), this, TQ_SLOT( extraLineEndLineArrow() ) ); rb_lend->insertSeparator(); - rb_lend->insertItem( KPBarIcon("line_dimension_line_end" ), this, TQT_SLOT( extraLineEndDimensionLine() ) ); + rb_lend->insertItem( KPBarIcon("line_dimension_line_end" ), this, TQ_SLOT( extraLineEndDimensionLine() ) ); rb_lend->insertSeparator(); - rb_lend->insertItem( KPBarIcon("line_double_arrow_end" ), this, TQT_SLOT( extraLineEndDoubleArrow() ) ); + rb_lend->insertItem( KPBarIcon("line_double_arrow_end" ), this, TQ_SLOT( extraLineEndDoubleArrow() ) ); rb_lend->insertSeparator(); - rb_lend->insertItem( KPBarIcon("line_double_line_arrow_end" ), this, TQT_SLOT( extraLineEndDoubleLineArrow() ) ); + rb_lend->insertItem( KPBarIcon("line_double_line_arrow_end" ), this, TQ_SLOT( extraLineEndDoubleLineArrow() ) ); rb_lend->setMouseTracking( true ); rb_lend->setCheckable( false ); // create arrange-objects popup m_arrangeObjectsPopup = new TQPopupMenu(); TQ_CHECK_PTR(m_arrangeObjectsPopup); - m_arrangeObjectsPopup->insertItem(KPBarIcon("lower"), this, TQT_SLOT(extraLower())); + m_arrangeObjectsPopup->insertItem(KPBarIcon("lower"), this, TQ_SLOT(extraLower())); m_arrangeObjectsPopup->insertSeparator(); - m_arrangeObjectsPopup->insertItem(KPBarIcon("send_backward"), this, TQT_SLOT(extraSendBackward())); + m_arrangeObjectsPopup->insertItem(KPBarIcon("send_backward"), this, TQ_SLOT(extraSendBackward())); m_arrangeObjectsPopup->insertSeparator(); - m_arrangeObjectsPopup->insertItem(KPBarIcon("bring_forward"), this, TQT_SLOT(extraBringForward())); + m_arrangeObjectsPopup->insertItem(KPBarIcon("bring_forward"), this, TQ_SLOT(extraBringForward())); m_arrangeObjectsPopup->insertSeparator(); - m_arrangeObjectsPopup->insertItem(KPBarIcon("raise"), this, TQT_SLOT(extraRaise())); + m_arrangeObjectsPopup->insertItem(KPBarIcon("raise"), this, TQ_SLOT(extraRaise())); m_arrangeObjectsPopup->setMouseTracking(true); m_arrangeObjectsPopup->setCheckable(false); @@ -3748,8 +3748,8 @@ void KPrView::setupScrollbars() horz = new TQScrollBar( TQt::Horizontal, pageBase ); vert->show(); horz->show(); - TQObject::connect( vert, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( scrollV( int ) ) ); - TQObject::connect( horz, TQT_SIGNAL( valueChanged( int ) ), this, TQT_SLOT( scrollH( int ) ) ); + TQObject::connect( vert, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( scrollV( int ) ) ); + TQObject::connect( horz, TQ_SIGNAL( valueChanged( int ) ), this, TQ_SLOT( scrollH( int ) ) ); vert->setValue(vert->maxValue()); horz->setValue(horz->maxValue()); vert->setValue(vert->minValue()); @@ -3758,12 +3758,12 @@ void KPrView::setupScrollbars() pgNext->setPixmap( TQPixmap( pagedown_xpm ) ); pgNext->setAutoRepeat( TRUE ); TQToolTip::add( pgNext, i18n( "Next slide" ) ); - connect( pgNext, TQT_SIGNAL( clicked() ), this, TQT_SLOT( nextPage() ) ); + connect( pgNext, TQ_SIGNAL( clicked() ), this, TQ_SLOT( nextPage() ) ); pgPrev = new TQToolButton( pageBase ); pgPrev->setPixmap( TQPixmap( pageup_xpm ) ); pgPrev->setAutoRepeat( TRUE ); TQToolTip::add( pgPrev, i18n( "Previous slide" ) ); - connect( pgPrev, TQT_SIGNAL( clicked() ), this, TQT_SLOT( prevPage() ) ); + connect( pgPrev, TQ_SIGNAL( clicked() ), this, TQ_SLOT( prevPage() ) ); } void KPrView::setupRulers() @@ -3786,26 +3786,26 @@ void KPrView::setupRulers() h_ruler->setGeometry( hSpace, 0, m_canvas->width(), vSpace ); v_ruler->setGeometry( 0, vSpace, hSpace, m_canvas->height() ); - TQObject::connect( h_ruler, TQT_SIGNAL( unitChanged( KoUnit::Unit ) ), - this, TQT_SLOT( unitChanged( KoUnit::Unit ) ) ); - TQObject::connect( h_ruler, TQT_SIGNAL( newPageLayout( const KoPageLayout & ) ), - this, TQT_SLOT( newPageLayout( const KoPageLayout & ) ) ); + TQObject::connect( h_ruler, TQ_SIGNAL( unitChanged( KoUnit::Unit ) ), + this, TQ_SLOT( unitChanged( KoUnit::Unit ) ) ); + TQObject::connect( h_ruler, TQ_SIGNAL( newPageLayout( const KoPageLayout & ) ), + this, TQ_SLOT( newPageLayout( const KoPageLayout & ) ) ); - connect( h_ruler, TQT_SIGNAL( doubleClicked() ), this, - TQT_SLOT( slotHRulerDoubleClicked() ) ); - connect( h_ruler, TQT_SIGNAL( doubleClicked(double) ), this, - TQT_SLOT( slotHRulerDoubleClicked(double) ) ); + connect( h_ruler, TQ_SIGNAL( doubleClicked() ), this, + TQ_SLOT( slotHRulerDoubleClicked() ) ); + connect( h_ruler, TQ_SIGNAL( doubleClicked(double) ), this, + TQ_SLOT( slotHRulerDoubleClicked(double) ) ); - TQObject::connect( v_ruler, TQT_SIGNAL( unitChanged( KoUnit::Unit ) ), - this, TQT_SLOT( unitChanged( KoUnit::Unit ) ) ); - TQObject::connect( v_ruler, TQT_SIGNAL( newPageLayout( const KoPageLayout & ) ), - this, TQT_SLOT( newPageLayout( const KoPageLayout & ) ) ); - TQObject::connect( v_ruler, TQT_SIGNAL( doubleClicked() ), - this, TQT_SLOT( openPageLayoutDia() ) ); + TQObject::connect( v_ruler, TQ_SIGNAL( unitChanged( KoUnit::Unit ) ), + this, TQ_SLOT( unitChanged( KoUnit::Unit ) ) ); + TQObject::connect( v_ruler, TQ_SIGNAL( newPageLayout( const KoPageLayout & ) ), + this, TQ_SLOT( newPageLayout( const KoPageLayout & ) ) ); + TQObject::connect( v_ruler, TQ_SIGNAL( doubleClicked() ), + this, TQ_SLOT( openPageLayoutDia() ) ); - connect( h_ruler, TQT_SIGNAL( newLeftIndent( double ) ), this, TQT_SLOT( newLeftIndent( double ) ) ); - connect( h_ruler, TQT_SIGNAL( newFirstIndent( double ) ), this, TQT_SLOT( newFirstIndent( double ) ) ); - connect( h_ruler, TQT_SIGNAL( newRightIndent( double ) ), this, TQT_SLOT( newRightIndent( double ) ) ); + connect( h_ruler, TQ_SIGNAL( newLeftIndent( double ) ), this, TQ_SLOT( newLeftIndent( double ) ) ); + connect( h_ruler, TQ_SIGNAL( newFirstIndent( double ) ), this, TQ_SLOT( newFirstIndent( double ) ) ); + connect( h_ruler, TQ_SIGNAL( newRightIndent( double ) ), this, TQ_SLOT( newRightIndent( double ) ) ); } void KPrView::unitChanged( KoUnit::Unit u ) @@ -4357,10 +4357,10 @@ void KPrView::insertSpecialChar() if (m_specialCharDlg==0) { m_specialCharDlg = new KoCharSelectDia( this, "insert special char", f, c, false ); - connect( m_specialCharDlg, TQT_SIGNAL(insertChar(TQChar,const TQString &)), - this, TQT_SLOT(slotSpecialChar(TQChar,const TQString &))); - connect( m_specialCharDlg, TQT_SIGNAL( finished() ), - this, TQT_SLOT( slotSpecialCharDlgClosed() ) ); + connect( m_specialCharDlg, TQ_SIGNAL(insertChar(TQChar,const TQString &)), + this, TQ_SLOT(slotSpecialChar(TQChar,const TQString &))); + connect( m_specialCharDlg, TQ_SIGNAL( finished() ), + this, TQ_SLOT( slotSpecialCharDlgClosed() ) ); } m_specialCharDlg->show(); } @@ -4369,10 +4369,10 @@ void KPrView::slotSpecialCharDlgClosed() { if ( m_specialCharDlg) { - disconnect( m_specialCharDlg, TQT_SIGNAL(insertChar(TQChar,const TQString &)), - this, TQT_SLOT(slotSpecialChar(TQChar,const TQString &))); - disconnect( m_specialCharDlg, TQT_SIGNAL( finished() ), - this, TQT_SLOT( slotSpecialCharDlgClosed() ) ); + disconnect( m_specialCharDlg, TQ_SIGNAL(insertChar(TQChar,const TQString &)), + this, TQ_SLOT(slotSpecialChar(TQChar,const TQString &))); + disconnect( m_specialCharDlg, TQ_SIGNAL( finished() ), + this, TQ_SLOT( slotSpecialCharDlgClosed() ) ); m_specialCharDlg->deleteLater(); m_specialCharDlg = 0L; } @@ -4593,16 +4593,16 @@ void KPrView::startKSpell() delete m_spell.dlg; m_spell.dlg = new KSpell2::Dialog( m_spell.kospell, this ); m_spell.dlg->activeAutoCorrect( true ); - TQObject::connect( m_spell.dlg, TQT_SIGNAL(misspelling(const TQString&, int)), - this, TQT_SLOT(spellCheckerMisspelling(const TQString&, int)) ); - TQObject::connect( m_spell.dlg, TQT_SIGNAL(replace(const TQString&, int, const TQString&)), - this, TQT_SLOT(spellCheckerCorrected(const TQString&, int, const TQString&)) ); - TQObject::connect( m_spell.dlg, TQT_SIGNAL(done(const TQString&) ), - this, TQT_SLOT(spellCheckerDone(const TQString&)) ); - TQObject::connect( m_spell.dlg, TQT_SIGNAL(cancel() ), - this, TQT_SLOT( spellCheckerCancel() ) ); - TQObject::connect( m_spell.dlg, TQT_SIGNAL(autoCorrect(const TQString &, const TQString & ) ), - this, TQT_SLOT( spellAddAutoCorrect (const TQString &, const TQString &) ) ); + TQObject::connect( m_spell.dlg, TQ_SIGNAL(misspelling(const TQString&, int)), + this, TQ_SLOT(spellCheckerMisspelling(const TQString&, int)) ); + TQObject::connect( m_spell.dlg, TQ_SIGNAL(replace(const TQString&, int, const TQString&)), + this, TQ_SLOT(spellCheckerCorrected(const TQString&, int, const TQString&)) ); + TQObject::connect( m_spell.dlg, TQ_SIGNAL(done(const TQString&) ), + this, TQ_SLOT(spellCheckerDone(const TQString&)) ); + TQObject::connect( m_spell.dlg, TQ_SIGNAL(cancel() ), + this, TQ_SLOT( spellCheckerCancel() ) ); + TQObject::connect( m_spell.dlg, TQ_SIGNAL(autoCorrect(const TQString &, const TQString & ) ), + this, TQ_SLOT( spellAddAutoCorrect (const TQString &, const TQString &) ) ); m_spell.dlg->show(); } @@ -4759,7 +4759,7 @@ void KPrView::showParagraphDialog(int initialPage, double initialTabPos) if ( initialPage == KoParagDia::PD_TABS ) m_paragDlg->tabulatorsWidget()->setCurrentTab( initialTabPos ); } - connect( m_paragDlg, TQT_SIGNAL( applyParagStyle() ), this, TQT_SLOT( slotApplyParag() ) ); + connect( m_paragDlg, TQ_SIGNAL( applyParagStyle() ), this, TQ_SLOT( slotApplyParag() ) ); m_paragDlg->exec(); delete m_paragDlg; @@ -4837,7 +4837,7 @@ void KPrView::addVariableActions( int type, const TQStringList & texts, VariableDef v; v.type = type; v.subtype = i; - TDEAction * act = new TDEAction( (*it), 0, this, TQT_SLOT( insertVariable() ), + TDEAction * act = new TDEAction( (*it), 0, this, TQ_SLOT( insertVariable() ), actionCollection(), "var-action" ); m_variableDefMap.insert( act, v ); parentMenu->insert( act ); @@ -4883,7 +4883,7 @@ void KPrView::refreshCustomMenu() lst.append( varName ); TQCString name = TQString("custom-action_%1").arg(i).latin1(); act = new TDEAction( varName, shortCuts[varName], this, - TQT_SLOT( insertCustomVariable() ), actionCollection(), name ); + TQ_SLOT( insertCustomVariable() ), actionCollection(), name ); act->setGroup( "custom-variable-action" ); actionInsertCustom->insert( act ); @@ -4895,7 +4895,7 @@ void KPrView::refreshCustomMenu() if(state) actionInsertCustom->popupMenu()->insertSeparator(); - act = new TDEAction( i18n("New..."), 0, this, TQT_SLOT( insertNewCustomVariable() ), actionCollection(), + act = new TDEAction( i18n("New..."), 0, this, TQ_SLOT( insertNewCustomVariable() ), actionCollection(), TQString("custom-action_%1").arg(i).latin1() ); act->setGroup( "custom-variable-action" ); actionInsertCustom->insert( act ); @@ -5394,7 +5394,7 @@ void KPrView::openThePresentationDurationDialog() presDurationDia = new KPrPresDurationDia( this, "presDurationDia", kPresenterDoc(), presentationDurationStringList, presentationTotalDurationString ); presDurationDia->setCaption( i18n( "Presentation Duration" ) ); - TQObject::connect( presDurationDia, TQT_SIGNAL( presDurationDiaClosed() ), this, TQT_SLOT( pddClosed() ) ); + TQObject::connect( presDurationDia, TQ_SIGNAL( presDurationDiaClosed() ), this, TQ_SLOT( pddClosed() ) ); presDurationDia->exec(); delete presDurationDia; @@ -5488,7 +5488,7 @@ void KPrView::updateStyleList() { TQString name = "paragstyle_" + style->name(); TDEToggleAction* act = new TDEToggleAction( (*it), - shortCuts[name], this, TQT_SLOT( slotStyleSelected() ), + shortCuts[name], this, TQ_SLOT( slotStyleSelected() ), actionCollection(), name.utf8() ); act->setGroup( "styleList" ); act->setExclusiveGroup( "styleListAction" ); @@ -6377,7 +6377,7 @@ TQPtrList<TDEAction> KPrView::listOfResultOfCheckWord( const TQString &word ) if ( !(*it).isEmpty() ) // in case of removed subtypes or placeholders { TDEAction * act = new TDEAction( (*it)); - connect( act, TQT_SIGNAL(activated()), this, TQT_SLOT(slotCorrectWord()) ); + connect( act, TQ_SIGNAL(activated()), this, TQ_SLOT(slotCorrectWord()) ); listAction.append( act ); } } |
