diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-20 00:17:06 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-20 00:17:06 -0600 |
commit | e4e0479220e9e9616b68b2a11e42cff7a8af7b3d (patch) | |
tree | 8e01571cdd132dad34ebec38b12c2dbc37d05bd9 /kicker/kicker | |
parent | d41050ea3f6904e5156d35f664346b816b9e4d12 (diff) | |
download | tdebase-e4e0479220e9e9616b68b2a11e42cff7a8af7b3d.tar.gz tdebase-e4e0479220e9e9616b68b2a11e42cff7a8af7b3d.zip |
Rename KApplication to TDEApplication to avoid conflicts with KDE4
Diffstat (limited to 'kicker/kicker')
-rw-r--r-- | kicker/kicker/buttons/kbutton.cpp | 2 | ||||
-rw-r--r-- | kicker/kicker/buttons/urlbutton.cpp | 2 | ||||
-rw-r--r-- | kicker/kicker/core/kicker.cpp | 2 | ||||
-rw-r--r-- | kicker/kicker/core/main.cpp | 2 | ||||
-rw-r--r-- | kicker/kicker/core/menumanager.cpp | 2 | ||||
-rw-r--r-- | kicker/kicker/kicker-3.4-reverseLayout.cpp | 2 | ||||
-rw-r--r-- | kicker/kicker/plugins/kickoff-beagle-plugin.cpp | 2 | ||||
-rw-r--r-- | kicker/kicker/ui/hidebutton.cpp | 4 | ||||
-rw-r--r-- | kicker/kicker/ui/k_mnu.cpp | 2 | ||||
-rw-r--r-- | kicker/kicker/ui/k_new_mnu.cpp | 24 | ||||
-rw-r--r-- | kicker/kicker/ui/recentapps.cpp | 2 | ||||
-rw-r--r-- | kicker/kicker/ui/service_mnu.cpp | 2 |
12 files changed, 24 insertions, 24 deletions
diff --git a/kicker/kicker/buttons/kbutton.cpp b/kicker/kicker/buttons/kbutton.cpp index a07a06cfc..5cec2ae22 100644 --- a/kicker/kicker/buttons/kbutton.cpp +++ b/kicker/kicker/buttons/kbutton.cpp @@ -66,7 +66,7 @@ KButton::~KButton() void KButton::properties() { - KApplication::startServiceByDesktopName("kmenuedit", TQStringList(), + TDEApplication::startServiceByDesktopName("kmenuedit", TQStringList(), 0, 0, 0, "", true); } diff --git a/kicker/kicker/buttons/urlbutton.cpp b/kicker/kicker/buttons/urlbutton.cpp index a61b5d775..3b70fe9c2 100644 --- a/kicker/kicker/buttons/urlbutton.cpp +++ b/kicker/kicker/buttons/urlbutton.cpp @@ -146,7 +146,7 @@ void URLButton::dropEvent(TQDropEvent *ev) KURL url( fileItem->url() ); if(!execList.isEmpty()) { if (KDesktopFile::isDesktopFile(url.path())){ - KApplication::startServiceByDesktopPath(url.path(), execList.toStringList(), + TDEApplication::startServiceByDesktopPath(url.path(), execList.toStringList(), 0, 0, 0, "", true); } else // attempt to interpret path as directory diff --git a/kicker/kicker/core/kicker.cpp b/kicker/kicker/core/kicker.cpp index 7410d4877..e965d3761 100644 --- a/kicker/kicker/core/kicker.cpp +++ b/kicker/kicker/core/kicker.cpp @@ -188,7 +188,7 @@ bool Kicker::desktopShowing() void Kicker::slotSettingsChanged(int category) { - if (category == (int)KApplication::SETTINGS_SHORTCUTS) + if (category == (int)TDEApplication::SETTINGS_SHORTCUTS) { keys->readSettings(); keys->updateConnections(); diff --git a/kicker/kicker/core/main.cpp b/kicker/kicker/core/main.cpp index 4dc4c9864..82f82502c 100644 --- a/kicker/kicker/core/main.cpp +++ b/kicker/kicker/core/main.cpp @@ -139,7 +139,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char ** argv ) if (signal(SIGHUP, sighandler) == SIG_IGN) signal(SIGHUP, SIG_IGN); - // send it even before KApplication ctor, because ksmserver will launch another app as soon + // send it even before TDEApplication ctor, because ksmserver will launch another app as soon // as TQApplication registers with it DCOPClient* cl = new DCOPClient; cl->attach(); diff --git a/kicker/kicker/core/menumanager.cpp b/kicker/kicker/core/menumanager.cpp index 763b6cbc1..fd51c9f82 100644 --- a/kicker/kicker/core/menumanager.cpp +++ b/kicker/kicker/core/menumanager.cpp @@ -150,7 +150,7 @@ void MenuManager::kmenuAccelActivated() // no button to use, make it behave like a desktop menu TQPoint p; // Popup the K-menu at the center of the screen. - TQDesktopWidget* desktop = KApplication::desktop(); + TQDesktopWidget* desktop = TDEApplication::desktop(); TQRect r; if (desktop->numScreens() < 2) r = desktop->geometry(); diff --git a/kicker/kicker/kicker-3.4-reverseLayout.cpp b/kicker/kicker/kicker-3.4-reverseLayout.cpp index 110e1692f..d3fd5f755 100644 --- a/kicker/kicker/kicker-3.4-reverseLayout.cpp +++ b/kicker/kicker/kicker-3.4-reverseLayout.cpp @@ -23,7 +23,7 @@ int main(int argc, char** argv) { // We must disguise as Kicker in order to obtain the correct reverseLayout setting. TDECmdLineArgs::init(argc, argv, "kicker", "", "", "", false); - KApplication app(false, false); + TDEApplication app(false, false); TQStringList stretchableApplets; stretchableApplets << "taskbarapplet.desktop"; diff --git a/kicker/kicker/plugins/kickoff-beagle-plugin.cpp b/kicker/kicker/plugins/kickoff-beagle-plugin.cpp index 3cad77ca4..223074a8d 100644 --- a/kicker/kicker/plugins/kickoff-beagle-plugin.cpp +++ b/kicker/kicker/plugins/kickoff-beagle-plugin.cpp @@ -132,7 +132,7 @@ void KickoffBeaglePlugin::query(TQString term, bool _genericTitle) kdDebug () << "Previous client w/id " << current_beagle_client->id << " still running ... ignoring it." << endl; current_beagle_client->stopClient (); } - current_beagle_client_id = KApplication::random (); + current_beagle_client_id = TDEApplication::random (); kdDebug () << "Creating client with id:" << current_beagle_client_id << endl; BeagleClient *beagle_client = beagle_client_new (NULL); diff --git a/kicker/kicker/ui/hidebutton.cpp b/kicker/kicker/ui/hidebutton.cpp index 25263e872..cd023eb8a 100644 --- a/kicker/kicker/ui/hidebutton.cpp +++ b/kicker/kicker/ui/hidebutton.cpp @@ -44,7 +44,7 @@ HideButton::HideButton(TQWidget *parent, const char *name) kapp->addKipcEventMask(KIPC::SettingsChanged); kapp->addKipcEventMask(KIPC::IconChanged); - slotSettingsChanged(KApplication::SETTINGS_MOUSE); + slotSettingsChanged(TDEApplication::SETTINGS_MOUSE); } void HideButton::drawButton(TQPainter *p) @@ -148,7 +148,7 @@ void HideButton::generateIcons() void HideButton::slotSettingsChanged(int category) { - if (category != KApplication::SETTINGS_MOUSE) + if (category != TDEApplication::SETTINGS_MOUSE) { return; } diff --git a/kicker/kicker/ui/k_mnu.cpp b/kicker/kicker/ui/k_mnu.cpp index 702c92173..48ef522fd 100644 --- a/kicker/kicker/ui/k_mnu.cpp +++ b/kicker/kicker/ui/k_mnu.cpp @@ -87,7 +87,7 @@ PanelKMenu::PanelKMenu() setCaption(i18n("TDE Menu")); connect(Kicker::the(), TQT_SIGNAL(configurationChanged()), this, TQT_SLOT(configChanged())); - DCOPClient *dcopClient = KApplication::dcopClient(); + DCOPClient *dcopClient = TDEApplication::dcopClient(); dcopClient->connectDCOPSignal(0, "appLauncher", "serviceStartedByStorageId(TQString,TQString)", dcopObjId, diff --git a/kicker/kicker/ui/k_new_mnu.cpp b/kicker/kicker/ui/k_new_mnu.cpp index e8a51fe28..eb7fc8114 100644 --- a/kicker/kicker/ui/k_new_mnu.cpp +++ b/kicker/kicker/ui/k_new_mnu.cpp @@ -2554,7 +2554,7 @@ void KMenu::slotStartService(KService::Ptr ptr) accept(); addToHistory(); - KApplication::startServiceByDesktopPath(ptr->desktopEntryPath(), + TDEApplication::startServiceByDesktopPath(ptr->desktopEntryPath(), TQStringList(), 0, 0, 0, "", true); updateRecentlyUsedApps(ptr); } @@ -2587,12 +2587,12 @@ void KMenu::slotStartURL(const TQString& u) kapp->dcopClient()->send("ksmserver", "default", "logoutTimed(int,int,TQString)", params); #else DCOPRef mediamanager("ksmserver", "ksmserver"); - DCOPReply reply = mediamanager.call( "logoutTimed", (int)KApplication::ShutdownTypeNone, (int)KApplication::ShutdownModeDefault ); + DCOPReply reply = mediamanager.call( "logoutTimed", (int)TDEApplication::ShutdownTypeNone, (int)TDEApplication::ShutdownModeDefault ); if (!reply.isValid() && KMessageBox::Continue==KMessageBox::warningContinueCancel(this, i18n("Do you really want to end the session?"), i18n("Logout Confirmation"), KGuiItem(i18n("Logout"),"undo"))) - kapp->requestShutDown( KApplication::ShutdownConfirmNo, - KApplication::ShutdownTypeNone, - KApplication::ShutdownModeDefault ); + kapp->requestShutDown( TDEApplication::ShutdownConfirmNo, + TDEApplication::ShutdownTypeNone, + TDEApplication::ShutdownModeDefault ); #endif } @@ -2610,9 +2610,9 @@ void KMenu::slotStartURL(const TQString& u) #else if (KMessageBox::Continue==KMessageBox::warningContinueCancel(this, i18n("Do you really want to turn off the computer?"), i18n("Shutdown Confirmation"), KGuiItem(i18n("Shutdown"),"exit"))) - kapp->requestShutDown( KApplication::ShutdownConfirmNo, - KApplication::ShutdownTypeHalt, - KApplication::ShutdownModeDefault ); + kapp->requestShutDown( TDEApplication::ShutdownConfirmNo, + TDEApplication::ShutdownTypeHalt, + TDEApplication::ShutdownModeDefault ); #endif } else if ( u == "kicker:/restart" ) { @@ -2625,9 +2625,9 @@ void KMenu::slotStartURL(const TQString& u) #else if (KMessageBox::Continue==KMessageBox::warningContinueCancel(this, i18n("Do you really want to reset the computer and boot (another operating system)?"), i18n("Restart Confirmation"), KGuiItem(i18n("Restart"),"reload"))) - kapp->requestShutDown( KApplication::ShutdownConfirmNo, - KApplication::ShutdownTypeReboot, - KApplication::ShutdownModeDefault ); + kapp->requestShutDown( TDEApplication::ShutdownConfirmNo, + TDEApplication::ShutdownTypeReboot, + TDEApplication::ShutdownModeDefault ); #endif } #ifdef KDELIBS_SUSE @@ -3197,7 +3197,7 @@ void KMenu::notifyServiceStarted(KService::Ptr service) TQDataStream stream(params, IO_WriteOnly); stream << "minicli" << service->storageId(); kdDebug() << "minicli appLauncher dcop signal: " << service->storageId() << endl; - KApplication::kApplication()->dcopClient()->emitDCOPSignal("appLauncher", + TDEApplication::kApplication()->dcopClient()->emitDCOPSignal("appLauncher", "serviceStartedByStorageId(TQString,TQString)", params); } diff --git a/kicker/kicker/ui/recentapps.cpp b/kicker/kicker/ui/recentapps.cpp index 473b0cdf2..6e3802fe0 100644 --- a/kicker/kicker/ui/recentapps.cpp +++ b/kicker/kicker/ui/recentapps.cpp @@ -112,7 +112,7 @@ void RecentlyLaunchedApps::appLaunched(const TQString& strApp) TQByteArray params; TQDataStream stream(params, IO_WriteOnly); stream << launchDCOPSignalSource() << strApp; - KApplication::kApplication()->dcopClient()->emitDCOPSignal("appLauncher", + TDEApplication::kApplication()->dcopClient()->emitDCOPSignal("appLauncher", "serviceStartedByStorageId(TQString,TQString)", params); for (TQValueList<RecentlyLaunchedAppInfo>::iterator it = m_appInfos.begin(); diff --git a/kicker/kicker/ui/service_mnu.cpp b/kicker/kicker/ui/service_mnu.cpp index 6cb184c72..8a483f086 100644 --- a/kicker/kicker/ui/service_mnu.cpp +++ b/kicker/kicker/ui/service_mnu.cpp @@ -554,7 +554,7 @@ void PanelServiceMenu::slotExec(int id) kapp->propagateSessionManager(); KService::Ptr service = static_cast<KService *>(e); - KApplication::startServiceByDesktopPath(service->desktopEntryPath(), + TDEApplication::startServiceByDesktopPath(service->desktopEntryPath(), TQStringList(), 0, 0, 0, "", true); updateRecentlyUsedApps(service); |