diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/brightnesschooser.cpp | 2 | ||||
-rw-r--r-- | src/klcddimmer.cpp | 32 | ||||
-rw-r--r-- | src/klcddimmer.desktop | 4 | ||||
-rw-r--r-- | src/klcddimmer.h | 12 | ||||
-rw-r--r-- | src/preferences.cpp | 36 | ||||
-rw-r--r-- | src/preferences.h | 8 | ||||
-rw-r--r-- | src/progpreferences.cpp | 2 |
8 files changed, 49 insertions, 49 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 85db9d3..e841ffb 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -7,7 +7,7 @@ klcddimmer_panelapplet_la_SOURCES = brightnesschooser.ui \ brightnesschooserimpl.cpp klcddimmer.cpp klcddimmerapplet.cpp preferences.kcfg preferences.kcfgc \ progpreferences.ui klcddimmer_panelapplet_la_LDFLAGS = -module -avoid-version $(all_libraries) -klcddimmer_panelapplet_la_LIBADD = $(LIB_KDEUI) +klcddimmer_panelapplet_la_LIBADD = $(LIB_TDEUI) klcddimmer_DATA = klcddimmer.desktop klcddimmerdir = $(kde_datadir)/kicker/applets diff --git a/src/brightnesschooser.cpp b/src/brightnesschooser.cpp index 6a55991..16f6a83 100644 --- a/src/brightnesschooser.cpp +++ b/src/brightnesschooser.cpp @@ -1,5 +1,5 @@ #include <kdialog.h> -#include <klocale.h> +#include <tdelocale.h> /**************************************************************************** ** Form implementation generated from reading ui file '/home/bettini/work/klcddimmer/src/brightnesschooser.ui' ** diff --git a/src/klcddimmer.cpp b/src/klcddimmer.cpp index f5a8e13..aa17d84 100644 --- a/src/klcddimmer.cpp +++ b/src/klcddimmer.cpp @@ -19,15 +19,15 @@ ***************************************************************************/ #include <ntqlcdnumber.h> -#include <kglobal.h> -#include <klocale.h> -#include <kconfigdialog.h> -#include <kapplication.h> -#include <kmessagebox.h> -#include <kpopupmenu.h> -#include <kdatetbl.h> // for KPopupFrame +#include <tdeglobal.h> +#include <tdelocale.h> +#include <tdeconfigdialog.h> +#include <tdeapplication.h> +#include <tdemessagebox.h> +#include <tdepopupmenu.h> +#include <kdatetbl.h> // for TDEPopupFrame #include <kiconloader.h> -#include <kaboutapplication.h> +#include <tdeaboutapplication.h> #include <ntqlabel.h> #include <ntqframe.h> #include <kdebug.h> @@ -56,7 +56,7 @@ klcddimmer::klcddimmer(const TQString& configFile, Type type, int actions, TQWid */ // this is the popup windows that is shown when the left button is pressed - mBrightnessChooserFrame = new KPopupFrame(this); + mBrightnessChooserFrame = new TDEPopupFrame(this); //mBrightnessChooserFrame = new TQWidget // (this, "klcddimmer popup", WStyle_Customize | WType_Popup | TQt::WStyle_DialogBorder); chooser = new BrightnessChooserImpl(mBrightnessChooserFrame); @@ -96,15 +96,15 @@ void klcddimmer::about() { //KMessageBox::information(0, i18n("This is an about box")); - KAboutData aboutData("KLcdDimmer", "KLcdDimmer", VERSION, - I18N_NOOP("Applet for LCD brightness adjustment"), KAboutData::License_GPL_V2); + TDEAboutData aboutData("KLcdDimmer", "KLcdDimmer", VERSION, + I18N_NOOP("Applet for LCD brightness adjustment"), TDEAboutData::License_GPL_V2); aboutData.addAuthor("Lorenzo Bettini", "main author", "", "http://www.lorenzobettini.it"); aboutData.setHomepage("http://klcddimmer.sourceforge.net"); aboutData.setCustomAuthorText("please use http://sourceforge.net/projects/klcddimmer to report bugs", "please use <a href=http://sourceforge.net/projects/klcddimmer>http://sourceforge.net/projects/klcddimmer</a> to report bugs"); - KAboutApplication about(&aboutData, this, 0); - about.setProgramLogo( KGlobal::instance()->iconLoader()->iconPath( "klcddimmer", -KIcon::SizeLarge ) ); + TDEAboutApplication about(&aboutData, this, 0); + about.setProgramLogo( TDEGlobal::instance()->iconLoader()->iconPath( "klcddimmer", -TDEIcon::SizeLarge ) ); about.exec(); } @@ -117,7 +117,7 @@ void klcddimmer::help() void klcddimmer::preferences() { - KConfigDialog dialog( this, "settings", Preferences::self() ); + TDEConfigDialog dialog( this, "settings", Preferences::self() ); ProgPreferences *preferences = new ProgPreferences(0, "Program"); dialog.addPage(preferences, i18n("Program"), "wizard"); @@ -164,7 +164,7 @@ void klcddimmer::resizeEvent(TQResizeEvent *e) void klcddimmer::initContextMenu() { - mContextMenu = new KPopupMenu(this); + mContextMenu = new TDEPopupMenu(this); //mContextMenu->insertItem(SmallIcon("reload"), i18n("&Update Now"), // this, SLOT(slotUpdateNow()), 0, -1, 2); mContextMenu->insertSeparator(); @@ -203,7 +203,7 @@ extern "C" { KPanelApplet* init( TQWidget *parent, const TQString& configFile) { - KGlobal::locale()->insertCatalogue("klcddimmer"); + TDEGlobal::locale()->insertCatalogue("klcddimmer"); return new klcddimmer(configFile, KPanelApplet::Normal, KPanelApplet::About | KPanelApplet::Help | KPanelApplet::Preferences, parent, "klcddimmer"); diff --git a/src/klcddimmer.desktop b/src/klcddimmer.desktop index 1c51f72..4188b41 100644 --- a/src/klcddimmer.desktop +++ b/src/klcddimmer.desktop @@ -30,5 +30,5 @@ Comment[tg]=Пайраҳаи апплети klcddimmer Comment[zh_CN]=一个称作klcddimmer的面板小程序 Name=klcddimmer Icon=klcddimmer -X-KDE-Library=klcddimmer_panelapplet -X-KDE-UniqueApplet = false +X-TDE-Library=klcddimmer_panelapplet +X-TDE-UniqueApplet = false diff --git a/src/klcddimmer.h b/src/klcddimmer.h index 51f7f1d..eb3ad9c 100644 --- a/src/klcddimmer.h +++ b/src/klcddimmer.h @@ -27,11 +27,11 @@ #include <kpanelapplet.h> #include <ntqstring.h> -#include <kconfig.h> +#include <tdeconfig.h> -class KPopupMenu; +class TDEPopupMenu; class BrightnessChooserImpl; -class KPopupFrame; +class TDEPopupFrame; class KlcdDimmerApplet; class klcddimmer : public KPanelApplet @@ -129,10 +129,10 @@ protected: void mousePressEvent(TQMouseEvent *e); private: - KConfig *ksConfig; + TDEConfig *ksConfig; TQWidget *mainView; - KPopupMenu *mContextMenu; - KPopupFrame *mBrightnessChooserFrame; + TDEPopupMenu *mContextMenu; + TDEPopupFrame *mBrightnessChooserFrame; BrightnessChooserImpl *chooser; KlcdDimmerApplet *klcddimmerView; diff --git a/src/preferences.cpp b/src/preferences.cpp index b8e6328..c1183f8 100644 --- a/src/preferences.cpp +++ b/src/preferences.cpp @@ -1,4 +1,4 @@ -// This file is generated by kconfig_compiler from preferences.kcfg. +// This file is generated by tdeconfig_compiler from preferences.kcfg. // All changes you do to this file will be lost. #include "preferences.h" @@ -19,34 +19,34 @@ Preferences *Preferences::self() } Preferences::Preferences( ) - : KConfigSkeleton( TQString::fromLatin1( "klcddimmerrc" ) ) + : TDEConfigSkeleton( TQString::fromLatin1( "klcddimmerrc" ) ) { mSelf = this; setCurrentGroup( TQString::fromLatin1( "general" ) ); - KConfigSkeleton::ItemString *itemProgram; - itemProgram = new KConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Program" ), mProgram, TQString::fromLatin1( "smartdimmer" ) ); + TDEConfigSkeleton::ItemString *itemProgram; + itemProgram = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Program" ), mProgram, TQString::fromLatin1( "smartdimmer" ) ); addItem( itemProgram, TQString::fromLatin1( "Program" ) ); - KConfigSkeleton::ItemString *itemSetArgument; - itemSetArgument = new KConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "SetArgument" ), mSetArgument, TQString::fromLatin1( "-s" ) ); + TDEConfigSkeleton::ItemString *itemSetArgument; + itemSetArgument = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "SetArgument" ), mSetArgument, TQString::fromLatin1( "-s" ) ); addItem( itemSetArgument, TQString::fromLatin1( "SetArgument" ) ); - KConfigSkeleton::ItemString *itemGetArgument; - itemGetArgument = new KConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "GetArgument" ), mGetArgument, TQString::fromLatin1( "-g" ) ); + TDEConfigSkeleton::ItemString *itemGetArgument; + itemGetArgument = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "GetArgument" ), mGetArgument, TQString::fromLatin1( "-g" ) ); addItem( itemGetArgument, TQString::fromLatin1( "GetArgument" ) ); - KConfigSkeleton::ItemString *itemMinValue; - itemMinValue = new KConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "MinValue" ), mMinValue, TQString::fromLatin1( "1" ) ); + TDEConfigSkeleton::ItemString *itemMinValue; + itemMinValue = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "MinValue" ), mMinValue, TQString::fromLatin1( "1" ) ); addItem( itemMinValue, TQString::fromLatin1( "MinValue" ) ); - KConfigSkeleton::ItemString *itemMaxValue; - itemMaxValue = new KConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "MaxValue" ), mMaxValue, TQString::fromLatin1( "21" ) ); + TDEConfigSkeleton::ItemString *itemMaxValue; + itemMaxValue = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "MaxValue" ), mMaxValue, TQString::fromLatin1( "21" ) ); addItem( itemMaxValue, TQString::fromLatin1( "MaxValue" ) ); - KConfigSkeleton::ItemString *itemStep; - itemStep = new KConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Step" ), mStep, TQString::fromLatin1( "1" ) ); + TDEConfigSkeleton::ItemString *itemStep; + itemStep = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "Step" ), mStep, TQString::fromLatin1( "1" ) ); addItem( itemStep, TQString::fromLatin1( "Step" ) ); - KConfigSkeleton::ItemBool *itemSaveCurrent; - itemSaveCurrent = new KConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SaveCurrent" ), mSaveCurrent, false ); + TDEConfigSkeleton::ItemBool *itemSaveCurrent; + itemSaveCurrent = new TDEConfigSkeleton::ItemBool( currentGroup(), TQString::fromLatin1( "SaveCurrent" ), mSaveCurrent, false ); addItem( itemSaveCurrent, TQString::fromLatin1( "SaveCurrent" ) ); - KConfigSkeleton::ItemString *itemCurrentValue; - itemCurrentValue = new KConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "CurrentValue" ), mCurrentValue ); + TDEConfigSkeleton::ItemString *itemCurrentValue; + itemCurrentValue = new TDEConfigSkeleton::ItemString( currentGroup(), TQString::fromLatin1( "CurrentValue" ), mCurrentValue ); addItem( itemCurrentValue, TQString::fromLatin1( "CurrentValue" ) ); } diff --git a/src/preferences.h b/src/preferences.h index f21be7f..11c9811 100644 --- a/src/preferences.h +++ b/src/preferences.h @@ -1,12 +1,12 @@ -// This file is generated by kconfig_compiler from preferences.kcfg. +// This file is generated by tdeconfig_compiler from preferences.kcfg. // All changes you do to this file will be lost. #ifndef PREFERENCES_H #define PREFERENCES_H -#include <kconfigskeleton.h> +#include <tdeconfigskeleton.h> #include <kdebug.h> -class Preferences : public KConfigSkeleton +class Preferences : public TDEConfigSkeleton { public: @@ -168,7 +168,7 @@ class Preferences : public KConfigSkeleton static void writeConfig() { - static_cast<KConfigSkeleton*>(self())->writeConfig(); + static_cast<TDEConfigSkeleton*>(self())->writeConfig(); } protected: Preferences(); diff --git a/src/progpreferences.cpp b/src/progpreferences.cpp index d15e3f0..6dfb435 100644 --- a/src/progpreferences.cpp +++ b/src/progpreferences.cpp @@ -1,5 +1,5 @@ #include <kdialog.h> -#include <klocale.h> +#include <tdelocale.h> /**************************************************************************** ** Form implementation generated from reading ui file '/home/bettini/work/klcddimmer/src/progpreferences.ui' ** |