From 7fbb972791f9e3fbde5dfa85c113285353122600 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 16 Nov 2011 13:43:57 -0600 Subject: Additional renaming of kde to tde --- src/kdesvn_part.cpp | 132 ++++++++++++++++++++++++++-------------------------- 1 file changed, 66 insertions(+), 66 deletions(-) (limited to 'src/kdesvn_part.cpp') diff --git a/src/kdesvn_part.cpp b/src/kdesvn_part.cpp index 0c7a271..a2fbba6 100644 --- a/src/kdesvn_part.cpp +++ b/src/kdesvn_part.cpp @@ -18,15 +18,15 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#include "kdesvn_part.h" -#include "src/settings/kdesvnsettings.h" +#include "tdesvn_part.h" +#include "src/settings/tdesvnsettings.h" #include "settings/displaysettings_impl.h" #include "settings/dispcolorsettings_impl.h" #include "settings/revisiontreesettingsdlg_impl.h" #include "settings/diffmergesettings_impl.h" #include "settings/subversionsettings_impl.h" #include "settings/cmdexecsettings_impl.h" -#include "kdesvnview.h" +#include "tdesvnview.h" #include "commandline_part.h" #include "src/svnqt/version_check.hpp" #include "src/svnqt/url.hpp" @@ -49,40 +49,40 @@ #include #include -//K_EXPORT_COMPONENT_FACTORY( libtdesvnpart, kdesvnPartFactory ) +//K_EXPORT_COMPONENT_FACTORY( libtdesvnpart, tdesvnPartFactory ) -extern "C" { KDESVN_EXPORT void *init_libtdesvnpart() { return new kdesvnPartFactory; } } +extern "C" { KDESVN_EXPORT void *init_libtdesvnpart() { return new tdesvnPartFactory; } } static const char version[] = VERSION; -TQString kdesvnPart::m_Extratext = ""; +TQString tdesvnPart::m_Extratext = ""; static const char description[] = I18N_NOOP("A Subversion Client for KDE (dynamic Part component)"); -kdesvnPart::kdesvnPart( TQWidget *parentWidget, const char *widgetName, +tdesvnPart::tdesvnPart( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name , const TQStringList&) : KParts::ReadOnlyPart(parent, name) { init(parentWidget,widgetName,false); } -kdesvnPart::kdesvnPart(TQWidget *parentWidget, const char *widgetName, +tdesvnPart::tdesvnPart(TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name,bool ownapp, const TQStringList&) : KParts::ReadOnlyPart(parent, name) { init(parentWidget,widgetName,ownapp); } -void kdesvnPart::init( TQWidget *parentWidget, const char *widgetName,bool full) +void tdesvnPart::init( TQWidget *parentWidget, const char *widgetName,bool full) { m_aboutDlg = 0; - KGlobal::locale()->insertCatalogue("kdesvn"); + KGlobal::locale()->insertCatalogue("tdesvn"); // we need an instance - setInstance( kdesvnPartFactory::instance() ); + setInstance( tdesvnPartFactory::instance() ); m_browserExt = new KdesvnBrowserExtension( this ); // this should be your custom internal widget - m_view = new kdesvnView(actionCollection(),parentWidget,widgetName,full); + m_view = new tdesvnView(actionCollection(),parentWidget,widgetName,full); // notify the part that this is our internal widget setWidget(m_view); @@ -94,7 +94,7 @@ void kdesvnPart::init( TQWidget *parentWidget, const char *widgetName,bool full) setXMLFile(TESTING_PARTRC); kdDebug()<<"Using test rc file in " << TESTING_PARTRC << endl; #else - setXMLFile("kdesvn_part.rc"); + setXMLFile("tdesvn_part.rc"); #endif connect(m_view,TQT_SIGNAL(sigShowPopup(const TQString&,TQWidget**)),this,TQT_SLOT(slotDispPopup(const TQString&,TQWidget**))); connect(m_view,TQT_SIGNAL(sigSwitchUrl(const KURL&)),this,TQT_SLOT(openURL(const KURL&))); @@ -106,17 +106,17 @@ void kdesvnPart::init( TQWidget *parentWidget, const char *widgetName,bool full) m_browserExt->setPropertiesActionEnabled(false); } -kdesvnPart::~kdesvnPart() +tdesvnPart::~tdesvnPart() { - kdesvnPartFactory::instance()->config()->sync(); + tdesvnPartFactory::instance()->config()->sync(); } -void kdesvnPart::slotUrlChanged(const TQString&url) +void tdesvnPart::slotUrlChanged(const TQString&url) { m_url = url; } -bool kdesvnPart::openFile() +bool tdesvnPart::openFile() { m_view->openURL(m_url); // just for fun, set the status bar @@ -125,7 +125,7 @@ bool kdesvnPart::openFile() return true; } -bool kdesvnPart::openURL(const KURL&url) +bool tdesvnPart::openURL(const KURL&url) { KURL _url = helpers::KTranslateUrl::translateSystemUrl(url); @@ -145,37 +145,37 @@ bool kdesvnPart::openURL(const KURL&url) return ret; } -void kdesvnPart::slotFileProperties() +void tdesvnPart::slotFileProperties() { } -void kdesvnPart::slotDispPopup(const TQString&name,TQWidget**target) +void tdesvnPart::slotDispPopup(const TQString&name,TQWidget**target) { *target = hostContainer(name); } -KAboutData* kdesvnPart::createAboutData() +KAboutData* tdesvnPart::createAboutData() { m_Extratext = TQString(I18N_NOOP("Built with Subversion library: %1\n")).tqarg(svn::Version::linked_version()); m_Extratext+=TQString(I18N_NOOP("Running Subversion library: %1")).tqarg(svn::Version::running_version()); - KAboutData*about = new KAboutData("tdesvnpart", I18N_NOOP("kdesvn Part"), version, description, + KAboutData*about = new KAboutData("tdesvnpart", I18N_NOOP("tdesvn Part"), version, description, KAboutData::License_GPL, "(C) 2005-2007 Rajko Albrecht",0, 0, "ral@alwins-world.de"); about->addAuthor( "Rajko Albrecht", 0, "ral@alwins-world.de" ); about->setOtherText(m_Extratext); - about->setHomepage("http://kdesvn.alwins-world.de/"); - about->setBugAddress("kdesvn-bugs@alwins-world.de"); - about->setTranslator(I18N_NOOP("kdesvn: NAME OF TRANSLATORS\\nYour names"), - I18N_NOOP("kdesvn: EMAIL OF TRANSLATORS\\nYour emails")); + about->setHomepage("http://tdesvn.alwins-world.de/"); + about->setBugAddress("tdesvn-bugs@alwins-world.de"); + about->setTranslator(I18N_NOOP("tdesvn: NAME OF TRANSLATORS\\nYour names"), + I18N_NOOP("tdesvn: EMAIL OF TRANSLATORS\\nYour emails")); return about; } /*! - \fn kdesvnPart::setupActions() + \fn tdesvnPart::setupActions() */ -void kdesvnPart::setupActions() +void tdesvnPart::setupActions() { KToggleAction *toggletemp; @@ -209,24 +209,24 @@ void kdesvnPart::setupActions() KAction * t = KStdAction::preferences(this, TQT_SLOT(slotShowSettings()), actionCollection(),"tdesvnpart_pref"); t->setText(i18n("&Configure %1...").tqarg("Kdesvn")); - if (TQString(kapp->instanceName())!=TQString("kdesvn")) { - (void)new KAction(i18n("&About kdesvn part"), "kdesvn", 0, this, TQT_SLOT(showAboutApplication()), actionCollection(), "help_about_tdesvnpart"); - (void)new KAction(i18n("Kdesvn &Handbook"), "help", 0, this, TQT_SLOT(appHelpActivated()), actionCollection(), "help_kdesvn"); - (void)new KAction(i18n("Send Bugreport for kdesvn"), 0, 0, this, TQT_SLOT(reportBug()), actionCollection(), "report_bug"); + if (TQString(kapp->instanceName())!=TQString("tdesvn")) { + (void)new KAction(i18n("&About tdesvn part"), "tdesvn", 0, this, TQT_SLOT(showAboutApplication()), actionCollection(), "help_about_tdesvnpart"); + (void)new KAction(i18n("Kdesvn &Handbook"), "help", 0, this, TQT_SLOT(appHelpActivated()), actionCollection(), "help_tdesvn"); + (void)new KAction(i18n("Send Bugreport for tdesvn"), 0, 0, this, TQT_SLOT(reportBug()), actionCollection(), "report_bug"); } actionCollection()->setHighlightingEnabled(true); } -void kdesvnPart::slotSshAdd() +void tdesvnPart::slotSshAdd() { SshAgent ag; ag.addSshIdentities(true); } /*! - \fn kdesvnPart::slotLogFollowNodes(bool) + \fn tdesvnPart::slotLogFollowNodes(bool) */ -void kdesvnPart::slotLogFollowNodes(bool how) +void tdesvnPart::slotLogFollowNodes(bool how) { Kdesvnsettings::setLog_follows_nodes(how); Kdesvnsettings::writeConfig(); @@ -234,9 +234,9 @@ void kdesvnPart::slotLogFollowNodes(bool how) /*! - \fn kdesvnPart::slotDiplayIgnored(bool) + \fn tdesvnPart::slotDiplayIgnored(bool) */ -void kdesvnPart::slotDisplayIgnored(bool how) +void tdesvnPart::slotDisplayIgnored(bool how) { Kdesvnsettings::setDisplay_ignored_files(how); Kdesvnsettings::writeConfig(); @@ -245,9 +245,9 @@ void kdesvnPart::slotDisplayIgnored(bool how) /*! - \fn kdesvnPart::slotDisplayUnknown(bool) + \fn tdesvnPart::slotDisplayUnknown(bool) */ -void kdesvnPart::slotDisplayUnkown(bool how) +void tdesvnPart::slotDisplayUnkown(bool how) { Kdesvnsettings::setDisplay_unknown_files(how); Kdesvnsettings::writeConfig(); @@ -255,16 +255,16 @@ void kdesvnPart::slotDisplayUnkown(bool how) } /*! - \fn kdesvnPart::slotHideUnchanged(bool) + \fn tdesvnPart::slotHideUnchanged(bool) */ -void kdesvnPart::slotHideUnchanged(bool how) +void tdesvnPart::slotHideUnchanged(bool how) { Kdesvnsettings::setHide_unchanged_files(how); Kdesvnsettings::writeConfig(); emit refreshTree(); } -void kdesvnPart::slotEnableNetwork(bool how) +void tdesvnPart::slotEnableNetwork(bool how) { Kdesvnsettings::setNetwork_on(how); Kdesvnsettings::writeConfig(); @@ -272,9 +272,9 @@ void kdesvnPart::slotEnableNetwork(bool how) } /*! - \fn kdesvnPart::closeURL() + \fn tdesvnPart::closeURL() */ -bool kdesvnPart::closeURL() +bool tdesvnPart::closeURL() { m_url=KURL(); m_view->closeMe(); @@ -282,10 +282,10 @@ bool kdesvnPart::closeURL() return true; } -KdesvnBrowserExtension::KdesvnBrowserExtension( kdesvnPart *p ) +KdesvnBrowserExtension::KdesvnBrowserExtension( tdesvnPart *p ) : KParts::BrowserExtension( p, "KdesvnBrowserExtension" ) { - KGlobal::locale()->insertCatalogue("kdesvn"); + KGlobal::locale()->insertCatalogue("tdesvn"); } KdesvnBrowserExtension::~KdesvnBrowserExtension() @@ -302,23 +302,23 @@ void KdesvnBrowserExtension::setPropertiesActionEnabled(bool enabled) void KdesvnBrowserExtension::properties() { - static_cast(parent())->slotFileProperties(); + static_cast(parent())->slotFileProperties(); } /*! - \fn kdesvnPart::reportBug() + \fn tdesvnPart::reportBug() */ -void kdesvnPart::reportBug() +void tdesvnPart::reportBug() { KBugReport dlg(m_view, true, createAboutData()); dlg.exec(); } /*! - \fn kdesvnPart::showAboutApplication() + \fn tdesvnPart::showAboutApplication() */ -void kdesvnPart::showAboutApplication() +void tdesvnPart::showAboutApplication() { if (!m_aboutDlg) m_aboutDlg = new KAboutApplication(createAboutData(), (TQWidget *)0, (const char *)0, false); if(m_aboutDlg == 0) @@ -331,18 +331,18 @@ void kdesvnPart::showAboutApplication() /*! - \fn kdesvnPart::appHelpActivated() + \fn tdesvnPart::appHelpActivated() */ -void kdesvnPart::appHelpActivated() +void tdesvnPart::appHelpActivated() { - kapp->invokeHelp(TQString(), "kdesvn"); + kapp->invokeHelp(TQString(), "tdesvn"); } /*! - \fn kdesvnPart::slotShowSettings() + \fn tdesvnPart::slotShowSettings() */ -void kdesvnPart::slotShowSettings() +void tdesvnPart::slotShowSettings() { if (KConfigDialog::showDialog("tdesvnpart_settings")) { return; @@ -351,13 +351,13 @@ void kdesvnPart::slotShowSettings() "tdesvnpart_settings", Kdesvnsettings::self(), KDialogBase::IconList); - dialog->setHelp("setup","kdesvn"); + dialog->setHelp("setup","tdesvn"); dialog->addPage(new DisplaySettings_impl(0,"general_items"), i18n("General"),"configure",i18n("General"),true); dialog->addPage(new SubversionSettings_impl(0,"subversion_items"), - i18n("Subversion"),"kdesvn",i18n("Subversion Settings"),true); + i18n("Subversion"),"tdesvn",i18n("Subversion Settings"),true); dialog->addPage(new DiffMergeSettings_impl(0,"diffmerge_items"), - i18n("Diff & Merge"),"kdesvnmerge",i18n("Settings for diff and merge"),true); + i18n("Diff & Merge"),"tdesvnmerge",i18n("Settings for diff and merge"),true); dialog->addPage(new DispColorSettings_impl(0,"color_items"), i18n("Colors"),"colorize",i18n("Color Settings"),true); dialog->addPage(new RevisiontreeSettingsDlg_impl(0,"revisiontree_items"), @@ -371,9 +371,9 @@ void kdesvnPart::slotShowSettings() /*! - \fn kdesvnPart::slotSettingsChanged() + \fn tdesvnPart::slotSettingsChanged() */ -void kdesvnPart::slotSettingsChanged() +void tdesvnPart::slotSettingsChanged() { KAction * temp; temp = actionCollection()->action("toggle_log_follows"); @@ -388,7 +388,7 @@ void kdesvnPart::slotSettingsChanged() /// not needed this momenta temp = actionCollection()->action("toggle_unknown_files"); if (temp) { - ((KToggleAction*)temp)->setChecked(kdesvnPart_Prefs::self()->mdisp_unknown_files); + ((KToggleAction*)temp)->setChecked(tdesvnPart_Prefs::self()->mdisp_unknown_files); } #endif emit settingsChanged(); @@ -406,7 +406,7 @@ KParts::Part* cFactory::createPartObject( TQWidget *parentWidget, const char *wi { Q_UNUSED(classname); // Create an instance of our Part - return new kdesvnPart( parentWidget, widgetName, parent, name, args ); + return new tdesvnPart( parentWidget, widgetName, parent, name, args ); } KParts::Part* cFactory::createAppPart( TQWidget *parentWidget, const char *widgetName, @@ -415,7 +415,7 @@ KParts::Part* cFactory::createAppPart( TQWidget *parentWidget, const char *widge { Q_UNUSED(classname); // Create an instance of our Part - kdesvnPart* obj = new kdesvnPart( parentWidget, widgetName, parent, name, false, args); + tdesvnPart* obj = new tdesvnPart( parentWidget, widgetName, parent, name, false, args); emit objectCreated( obj ); return obj; } @@ -433,7 +433,7 @@ cFactory::~cFactory() KInstance* cFactory::instance() { if( !s_instance ) { - s_about = kdesvnPart::createAboutData(); + s_about = tdesvnPart::createAboutData(); s_instance = new KInstance(s_about); } return s_instance; @@ -448,4 +448,4 @@ commandline_part*cFactory::createCommandIf(TQObject*parent,const char*name, KCmd return s_cline; } -#include "kdesvn_part.moc" +#include "tdesvn_part.moc" -- cgit v1.2.1