diff options
Diffstat (limited to 'kshutdownlockout')
-rw-r--r-- | kshutdownlockout/Makefile.am | 2 | ||||
-rw-r--r-- | kshutdownlockout/kshutdownlockout.desktop | 4 | ||||
-rw-r--r-- | kshutdownlockout/lockout.cpp | 46 | ||||
-rw-r--r-- | kshutdownlockout/lockout.h | 4 |
4 files changed, 28 insertions, 28 deletions
diff --git a/kshutdownlockout/Makefile.am b/kshutdownlockout/Makefile.am index de92ce2..b66ac8c 100644 --- a/kshutdownlockout/Makefile.am +++ b/kshutdownlockout/Makefile.am @@ -4,7 +4,7 @@ METASOURCES = AUTO kde_module_LTLIBRARIES = kshutdownlockout_panelapplet.la kshutdownlockout_panelapplet_la_SOURCES = lockout.cpp -kshutdownlockout_panelapplet_la_LDFLAGS = -module $(KDE_PLUGIN) $(LIB_KDECORE) $(LIB_KDEUI) $(LIB_QT) -lDCOP $(all_libraries) +kshutdownlockout_panelapplet_la_LDFLAGS = -module $(KDE_PLUGIN) $(LIB_TDECORE) $(LIB_TDEUI) $(LIB_QT) -lDCOP $(all_libraries) kshutdownlockout_panelapplet_la_LIBADD = $(LIB_KSYCOCA) noinst_HEADERS = lockout.h diff --git a/kshutdownlockout/kshutdownlockout.desktop b/kshutdownlockout/kshutdownlockout.desktop index 7cdc247..adf9b44 100644 --- a/kshutdownlockout/kshutdownlockout.desktop +++ b/kshutdownlockout/kshutdownlockout.desktop @@ -43,7 +43,7 @@ Comment[nn]=Panelknappar for skjermlås/utlogging Comment[nso]=Ditobetswa tsa Notlelo/Etswa tsa panel Comment[pa]=ਪੈਨਲ ਲਈ ਤਾਲਾ/ਬਾਹਰੀ ਦਰ ਐਪਲਿਟ Comment[pl]=Przyciski blokowania i wylogowania dla panelu -Comment[pt]=Os botões para trancar o ecrã e sair do KDE para o painel +Comment[pt]=Os botões para trancar o ecrã e sair do TDE para o painel Comment[pt_BR]=Botões de Travar/Sair para o Painel Comment[ro]=Butoane de ieşire şi de blocare ecran, pentru panou Comment[ru]=Кнопки выхода/запирания экрана на панели @@ -68,4 +68,4 @@ Comment[zh_TW]=在面板上顯示「螢幕鎖定/登出」按鈕 Comment[zu]=Izinkinobho Zokukhiya/Ukuphumela ngaphandle zewindi lemininingwane # DUPLICATE: Comment[el]=Κουμπιά κλειδώματος/αποσύνδεσης για τον πίνακα Icon=kshutdown -X-KDE-Library=kshutdownlockout_panelapplet +X-TDE-Library=kshutdownlockout_panelapplet diff --git a/kshutdownlockout/lockout.cpp b/kshutdownlockout/lockout.cpp index af336ea..201ecd7 100644 --- a/kshutdownlockout/lockout.cpp +++ b/kshutdownlockout/lockout.cpp @@ -38,13 +38,13 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include <ntqtooltip.h> #include <dcopclient.h> -#include <kaction.h> -#include <kapplication.h> -#include <kglobal.h> +#include <tdeaction.h> +#include <tdeapplication.h> +#include <tdeglobal.h> #include <kiconloader.h> -#include <klocale.h> -#include <kmessagebox.h> -#include <kpopupmenu.h> +#include <tdelocale.h> +#include <tdemessagebox.h> +#include <tdepopupmenu.h> #include <kprocess.h> #include <krun.h> @@ -60,7 +60,7 @@ extern "C" KDE_EXPORT KPanelApplet *init(TQWidget *parent, const TQString& configFile) { // share i18n with KShutDown - KGlobal::locale()->insertCatalogue("kshutdown"); + TDEGlobal::locale()->insertCatalogue("kshutdown"); return new Lockout(configFile, parent); } @@ -82,7 +82,7 @@ Lockout::Lockout(const TQString& configFile, TQWidget *parent) initActions(); - KPopupMenu *pm_actions = new KPopupMenu(this); + TDEPopupMenu *pm_actions = new TDEPopupMenu(this); pm_actions->insertTitle(SmallIcon("messagebox_warning"), i18n("No Delay")); _shutDownAction->plug(pm_actions); _rebootAction->plug(pm_actions); @@ -105,7 +105,7 @@ Lockout::Lockout(const TQString& configFile, TQWidget *parent) layout->addWidget(button); /* // read configuration - KConfig *config = this->config(); + TDEConfig *config = this->config(); config->setGroup("kshutdownlockout"); _transparent = config->readBoolEntry("Transparent", true); */ @@ -124,7 +124,7 @@ Lockout::Lockout(const TQString& configFile, TQWidget *parent) Lockout::~Lockout() { - KGlobal::locale()->removeCatalogue("kshutdown"); + TDEGlobal::locale()->removeCatalogue("kshutdown"); } int Lockout::heightForWidth(int/* width*/) const @@ -143,7 +143,7 @@ void Lockout::callKShutDown(const TQCString &function) { DCOPClient *client = kapp->dcopClient(); if (!client->isApplicationRegistered("kshutdown")) { // run KShutDown - KProcess *p = new KProcess(); + TDEProcess *p = new TDEProcess(); if (!p) { KMessageBox::error(0, i18n("Could not run KShutDown!")); @@ -151,7 +151,7 @@ void Lockout::callKShutDown(const TQCString &function) { } *p << "kshutdown"; *p << "--init"; - if (!p->start(KProcess::Block)) + if (!p->start(TDEProcess::Block)) KMessageBox::error(0, i18n("Could not run KShutDown!")); delete p; } @@ -159,36 +159,36 @@ void Lockout::callKShutDown(const TQCString &function) { } void Lockout::initActions() { - KActionCollection *ac_shutDown = new KActionCollection(this, this); + TDEActionCollection *ac_shutDown = new TDEActionCollection(this, this); - _lockScreenAction = new KAction( - i18n("Lock Screen"), "lock", KShortcut(), + _lockScreenAction = new TDEAction( + i18n("Lock Screen"), "lock", TDEShortcut(), this, SLOT(slotLockScreen()), ac_shutDown, "kshutdown_lockscreen" ); - _logoutAction = new KAction( - i18n("End Current Session"), "undo", KShortcut(), + _logoutAction = new TDEAction( + i18n("End Current Session"), "undo", TDEShortcut(), this, SLOT(slotLogout()), ac_shutDown, "kshutdown_logout" ); - _rebootAction = new KAction( - i18n("Restart Computer"), "reload", KShortcut(), + _rebootAction = new TDEAction( + i18n("Restart Computer"), "reload", TDEShortcut(), this, SLOT(slotReboot()), ac_shutDown, "kshutdown_reboot" ); - _shutDownAction = new KAction( - i18n("Turn Off Computer"), "exit", KShortcut(), + _shutDownAction = new TDEAction( + i18n("Turn Off Computer"), "exit", TDEShortcut(), this, SLOT(slotShutDown()), ac_shutDown, "kshutdown_shutdown" ); // standard actions - _configureKShutDownAction = new KAction( - i18n("&Configure KShutDown..."), "configure", KShortcut(), + _configureKShutDownAction = new TDEAction( + i18n("&Configure KShutDown..."), "configure", TDEShortcut(), this, SLOT(slotConfigureKShutDown()), ac_shutDown, "options_configure" ); diff --git a/kshutdownlockout/lockout.h b/kshutdownlockout/lockout.h index 444d489..f7a2718 100644 --- a/kshutdownlockout/lockout.h +++ b/kshutdownlockout/lockout.h @@ -3,7 +3,7 @@ #include <kpanelapplet.h> -class KAction; +class TDEAction; /** * @short A KShutDown panel applet. @@ -36,7 +36,7 @@ public: int widthForHeight(int height) const; private: bool _transparent; - KAction + TDEAction *_configureKShutDownAction, *_lockScreenAction, *_logoutAction, |