diff options
Diffstat (limited to 'src/tdesvn.cpp')
-rw-r--r-- | src/tdesvn.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/tdesvn.cpp b/src/tdesvn.cpp index 3bbb7fa..d385a6b 100644 --- a/src/tdesvn.cpp +++ b/src/tdesvn.cpp @@ -87,11 +87,11 @@ tdesvn::tdesvn() m_BookmarkManager->setShowNSBookmarks(false); m_BookmarkManager->setEditorOptions(TQString::fromLatin1("KDE Svn"),false); - m_BookmarksActionmenu = new KActionMenu(i18n("&Bookmarks"),"bookmark",actionCollection(),"bookmarks"); + m_BookmarksActionmenu = new TDEActionMenu(i18n("&Bookmarks"),"bookmark",actionCollection(),"bookmarks"); m_BookmarksActionmenu->setDelayed(false); m_BookmarksActionmenu->setEnabled(true); - m_Bookmarkactions = new KActionCollection( this ); + m_Bookmarkactions = new TDEActionCollection( this ); m_Bookmarkactions->setHighlightingEnabled( true ); connectActionCollection( m_Bookmarkactions ); @@ -121,24 +121,24 @@ tdesvn::tdesvn() // tell the KParts::MainWindow that this is indeed the main widget setCentralWidget(m_part->widget()); - KAction*tmpAction; - tmpAction = new KAction(i18n("Create and open new repository"),"filenew", - KShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotCreateRepo()),actionCollection(),"subversion_create_repo"); + TDEAction*tmpAction; + tmpAction = new TDEAction(i18n("Create and open new repository"),"filenew", + TDEShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotCreateRepo()),actionCollection(),"subversion_create_repo"); tmpAction->setToolTip(i18n("Create and opens a new local subversion repository")); - tmpAction = new KAction(i18n("Dump repository to file"),"filenew", - KShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotDumpRepo()),actionCollection(),"subversion_dump_repo"); + tmpAction = new TDEAction(i18n("Dump repository to file"),"filenew", + TDEShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotDumpRepo()),actionCollection(),"subversion_dump_repo"); tmpAction->setToolTip(i18n("Dump a subversion repository to a file")); - tmpAction = new KAction(i18n("Hotcopy a repository"),"filenew", - KShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotHotcopy()),actionCollection(),"subversion_hotcopy_repo"); + tmpAction = new TDEAction(i18n("Hotcopy a repository"),"filenew", + TDEShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotHotcopy()),actionCollection(),"subversion_hotcopy_repo"); tmpAction->setToolTip(i18n("Hotcopy a subversion repository to a new folder")); - tmpAction = new KAction(i18n("Load dump into repository"),"filenew", - KShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotLoaddump()),actionCollection(),"subversion_load_repo"); + tmpAction = new TDEAction(i18n("Load dump into repository"),"filenew", + TDEShortcut(),TQT_TQOBJECT(m_part->widget()),TQT_SLOT(slotLoaddump()),actionCollection(),"subversion_load_repo"); tmpAction->setToolTip(i18n("Load a dump file into a repository.")); - tmpAction = new KAction(i18n("Add ssh identities to ssh-agent"),"password", - KShortcut(),TQT_TQOBJECT(m_part),TQT_SLOT(slotSshAdd()),actionCollection(),"tdesvn_ssh_add"); + tmpAction = new TDEAction(i18n("Add ssh identities to ssh-agent"),"password", + TDEShortcut(),TQT_TQOBJECT(m_part),TQT_SLOT(slotSshAdd()),actionCollection(),"tdesvn_ssh_add"); tmpAction->setToolTip(i18n("Force add ssh-identities to ssh-agent for future use.")); - tmpAction = new KAction(i18n("Info about tdesvn part"), "tdesvn", - KShortcut(), TQT_TQOBJECT(m_part), TQT_SLOT(showAboutApplication()), actionCollection(), "help_about_tdesvnpart"); + tmpAction = new TDEAction(i18n("Info about tdesvn part"), "tdesvn", + TDEShortcut(), TQT_TQOBJECT(m_part), TQT_SLOT(showAboutApplication()), actionCollection(), "help_about_tdesvnpart"); tmpAction->setToolTip(i18n("Shows info about the tdesvn plugin not the standalone app.")); /* enable tooltips in statusbar for menu */ @@ -166,7 +166,7 @@ tdesvn::tdesvn() setAutoSaveSettings(); } -void tdesvn::connectActionCollection( KActionCollection *coll ) +void tdesvn::connectActionCollection( TDEActionCollection *coll ) { if (!coll)return; connect( coll, TQT_SIGNAL( actionStatusText( const TQString & ) ), @@ -175,7 +175,7 @@ void tdesvn::connectActionCollection( KActionCollection *coll ) this, TQT_SLOT( resetStatusBar() ) ); } -void tdesvn::disconnectActionCollection( KActionCollection *coll ) +void tdesvn::disconnectActionCollection( TDEActionCollection *coll ) { if (!coll)return; } @@ -193,11 +193,11 @@ void tdesvn::load(const KURL& url,bool addRescent) { if (m_part) { bool ret = m_part->openURL(url); - KRecentFilesAction*rac = 0; + TDERecentFilesAction*rac = 0; if (addRescent) { - KAction * ac = actionCollection()->action("file_open_recent"); + TDEAction * ac = actionCollection()->action("file_open_recent"); if (ac) { - rac = (KRecentFilesAction*)ac; + rac = (TDERecentFilesAction*)ac; } } if (!ret) { @@ -219,14 +219,14 @@ void tdesvn::load(const KURL& url,bool addRescent) void tdesvn::setupActions() { - KAction*ac; + TDEAction*ac; KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(fileOpen()), actionCollection()); KStdAction::openNew(TQT_TQOBJECT(this),TQT_SLOT(fileNew()),actionCollection()); ac = KStdAction::close(TQT_TQOBJECT(this),TQT_SLOT(fileClose()),actionCollection()); ac->setEnabled(getMemberList()->count()>1); KStdAction::quit(TQT_TQOBJECT(kapp), TQT_SLOT(quit()), actionCollection()); - KRecentFilesAction*rac = KStdAction::openRecent(TQT_TQOBJECT(this),TQT_SLOT(loadRescent(const KURL&)),actionCollection()); + TDERecentFilesAction*rac = KStdAction::openRecent(TQT_TQOBJECT(this),TQT_SLOT(loadRescent(const KURL&)),actionCollection()); if (rac) { rac->setMaxItems(8); @@ -239,8 +239,8 @@ void tdesvn::setupActions() m_statusbarAction = KStdAction::showStatusbar(TQT_TQOBJECT(this), TQT_SLOT(optionsShowStatusbar()), actionCollection()); - KToggleAction *toggletemp; - toggletemp = new KToggleAction(i18n("Load last opened URL on start"),KShortcut(), + TDEToggleAction *toggletemp; + toggletemp = new TDEToggleAction(i18n("Load last opened URL on start"),TDEShortcut(), actionCollection(),"toggle_load_last_url"); toggletemp->setToolTip(i18n("Reload last opened url if no one is given on commandline")); TDEConfigGroup cs(TDEGlobal::config(),"startup"); @@ -339,7 +339,7 @@ TQString tdesvn::currentURL () const void tdesvn::enableClose(bool how) { - KAction * ac; + TDEAction * ac; if ( (ac=actionCollection()->action("file_close"))) { ac->setEnabled(how); } |