diff options
Diffstat (limited to 'src/kdesvn.cpp')
-rw-r--r-- | src/kdesvn.cpp | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/src/kdesvn.cpp b/src/kdesvn.cpp index 46c05f0..cafaea6 100644 --- a/src/kdesvn.cpp +++ b/src/kdesvn.cpp @@ -19,9 +19,9 @@ ***************************************************************************/ -#include "kdesvn.h" +#include "tdesvn.h" #include "urldlg.h" -#include "kdesvn_part.h" +#include "tdesvn_part.h" #include <tqdragobject.h> #include <kprinter.h> @@ -32,7 +32,7 @@ #include <kglobal.h> #include <klocale.h> #include <kiconloader.h> -#include <kdeversion.h> +#include <tdeversion.h> #include <kstatusbar.h> #include <kaccel.h> #include <kio/netaccess.h> @@ -62,8 +62,8 @@ #include <kcrash.h> #endif -kdesvn::kdesvn() - : KParts::MainWindow( 0, "kdesvn" ), +tdesvn::tdesvn() + : KParts::MainWindow( 0, "tdesvn" ), KBookmarkOwner() { m_part = 0; @@ -73,7 +73,7 @@ kdesvn::kdesvn() // I hate this crashhandler in development KCrash::setCrashHandler(0); #else - setXMLFile("kdesvnui.rc"); + setXMLFile("tdesvnui.rc"); #endif setStandardToolBarMenuEnabled(true); // then, setup our actions @@ -114,7 +114,7 @@ kdesvn::kdesvn() // now that the Part is loaded, we cast it to a Part to get // our hands on it - m_part = static_cast<KParts::ReadOnlyPart *>(cfa->createAppPart(this,"kdesvn_part", TQT_TQOBJECT(this), "kdesvn_part", "KParts::ReadOnlyPart",TQStringList())); + m_part = static_cast<KParts::ReadOnlyPart *>(cfa->createAppPart(this,"tdesvn_part", TQT_TQOBJECT(this), "tdesvn_part", "KParts::ReadOnlyPart",TQStringList())); if (m_part) { @@ -135,11 +135,11 @@ kdesvn::kdesvn() KShortcut(),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(),"kdesvn_ssh_add"); + KShortcut(),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 kdesvn part"), "kdesvn", + tmpAction = new KAction(i18n("Info about tdesvn part"), "tdesvn", KShortcut(), TQT_TQOBJECT(m_part), TQT_SLOT(showAboutApplication()), actionCollection(), "help_about_tdesvnpart"); - tmpAction->setToolTip(i18n("Shows info about the kdesvn plugin not the standalone app.")); + tmpAction->setToolTip(i18n("Shows info about the tdesvn plugin not the standalone app.")); /* enable tooltips in statusbar for menu */ actionCollection()->setHighlightingEnabled(true); @@ -166,7 +166,7 @@ kdesvn::kdesvn() setAutoSaveSettings(); } -void kdesvn::connectActionCollection( KActionCollection *coll ) +void tdesvn::connectActionCollection( KActionCollection *coll ) { if (!coll)return; connect( coll, TQT_SIGNAL( actionStatusText( const TQString & ) ), @@ -175,21 +175,21 @@ void kdesvn::connectActionCollection( KActionCollection *coll ) this, TQT_SLOT( resetStatusBar() ) ); } -void kdesvn::disconnectActionCollection( KActionCollection *coll ) +void tdesvn::disconnectActionCollection( KActionCollection *coll ) { if (!coll)return; } -kdesvn::~kdesvn() +tdesvn::~tdesvn() { } -void kdesvn::loadRescent(const KURL& url) +void tdesvn::loadRescent(const KURL& url) { load(url,true); } -void kdesvn::load(const KURL& url,bool addRescent) +void tdesvn::load(const KURL& url,bool addRescent) { if (m_part) { bool ret = m_part->openURL(url); @@ -217,7 +217,7 @@ void kdesvn::load(const KURL& url,bool addRescent) } } -void kdesvn::setupActions() +void tdesvn::setupActions() { KAction*ac; KStdAction::open(TQT_TQOBJECT(this), TQT_SLOT(fileOpen()), actionCollection()); @@ -248,7 +248,7 @@ void kdesvn::setupActions() connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotLoadLast(bool))); } -void kdesvn::optionsShowStatusbar() +void tdesvn::optionsShowStatusbar() { // this is all very cut and paste code for showing/hiding the // statusbar @@ -258,7 +258,7 @@ void kdesvn::optionsShowStatusbar() statusBar()->hide(); } -void kdesvn::fileClose() +void tdesvn::fileClose() { if (m_part) m_part->closeURL(); if (getMemberList()->count()>1) { @@ -268,7 +268,7 @@ void kdesvn::fileClose() } } -void kdesvn::saveProperties(KConfig *config) +void tdesvn::saveProperties(KConfig *config) { // the 'config' object points to the session managed // config file. anything you write here will be available @@ -283,7 +283,7 @@ void kdesvn::saveProperties(KConfig *config) } } -void kdesvn::readProperties(KConfig *config) +void tdesvn::readProperties(KConfig *config) { // the 'config' object points to the session managed // config file. this function is automatically called whenever @@ -296,48 +296,48 @@ void kdesvn::readProperties(KConfig *config) m_part->openURL(KURL(url)); } -void kdesvn::fileNew() +void tdesvn::fileNew() { // this slot is called whenever the File->New menu is selected, // the New shortcut is pressed (usually CTRL+N) or the New toolbar // button is clicked // create a new window - (new kdesvn)->show(); + (new tdesvn)->show(); enableClose(true); } -void kdesvn::fileOpen() +void tdesvn::fileOpen() { KURL url = UrlDlg::getURL(this); if (!url.isEmpty()) load(url,true); } -void kdesvn::changeStatusbar(const TQString& text) +void tdesvn::changeStatusbar(const TQString& text) { // display the text on the statusbar statusBar()->message(text); } -void kdesvn::resetStatusBar() +void tdesvn::resetStatusBar() { statusBar()->message(i18n("Ready")); } -void kdesvn::openBookmarkURL (const TQString &_url) +void tdesvn::openBookmarkURL (const TQString &_url) { if (!_url.isEmpty() && m_part) load(_url,false); } -TQString kdesvn::currentURL () const +TQString tdesvn::currentURL () const { if (!m_part) return ""; return m_part->url().prettyURL(); } -void kdesvn::enableClose(bool how) +void tdesvn::enableClose(bool how) { KAction * ac; if ( (ac=actionCollection()->action("file_close"))) { @@ -346,18 +346,18 @@ void kdesvn::enableClose(bool how) } /*! - \fn kdesvn::slotUrlOpened(bool) + \fn tdesvn::slotUrlOpened(bool) */ -void kdesvn::slotUrlOpened(bool how) +void tdesvn::slotUrlOpened(bool how) { enableClose(how); } /*! - \fn kdesvn::optionsConfigureToolbars() + \fn tdesvn::optionsConfigureToolbars() */ -void kdesvn::optionsConfigureToolbars() +void tdesvn::optionsConfigureToolbars() { #if defined(KDE_MAKE_VERSION) # if TDE_VERSION >= KDE_MAKE_VERSION(3,1,0) @@ -378,22 +378,22 @@ void kdesvn::optionsConfigureToolbars() /*! - \fn kdesvn::applyNewToolbarConfig() + \fn tdesvn::applyNewToolbarConfig() */ -void kdesvn::applyNewToolbarConfig() +void tdesvn::applyNewToolbarConfig() { #if defined(KDE_MAKE_VERSION) # if TDE_VERSION >= KDE_MAKE_VERSION(3,1,0) applyMainWindowSettings(KGlobal::config(), autoSaveGroup()); # else - applyMainWindowSettings(kdesvnPart::config()); + applyMainWindowSettings(tdesvnPart::config()); # endif #else - applyMainWindowSettings(kdesvnPart::config()); + applyMainWindowSettings(tdesvnPart::config()); #endif } -void kdesvn::optionsConfigureKeys() +void tdesvn::optionsConfigureKeys() { KKeyDialog kdlg(true,m_part->widget()); kdlg.insert(actionCollection()); @@ -406,9 +406,9 @@ void kdesvn::optionsConfigureKeys() /*! - \fn kdesvn::queryExit() + \fn tdesvn::queryExit() */ -bool kdesvn::queryExit() +bool tdesvn::queryExit() { if (m_part) { KConfigGroup cs(KGlobal::config(),"startup"); @@ -423,9 +423,9 @@ bool kdesvn::queryExit() /*! - \fn kdesvn::checkReload() + \fn tdesvn::checkReload() */ -void kdesvn::checkReload() +void tdesvn::checkReload() { KConfigGroup cs(KGlobal::config(),"startup"); if (!cs.readBoolEntry("load_last_on_start",false)) @@ -439,12 +439,12 @@ void kdesvn::checkReload() /*! - \fn kdesvn::slotLoadLast(bool) + \fn tdesvn::slotLoadLast(bool) */ -void kdesvn::slotLoadLast(bool how) +void tdesvn::slotLoadLast(bool how) { KConfigGroup cs(KGlobal::config(),"startup"); cs.writeEntry("load_last_on_start",how); } -#include "kdesvn.moc" +#include "tdesvn.moc" |