summaryrefslogtreecommitdiffstats
path: root/src/klcddimmer.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-08-21 21:35:38 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-08-21 21:35:38 +0200
commit2d5ab2165b5a7750693266c24dabdc6520fcfb2d (patch)
tree35c55949aec87a0ae958d4811b6dbe58a40f05ab /src/klcddimmer.cpp
parentdc35d8eaac302891fa34128d0e2e148b4c409544 (diff)
downloadklcddimmer-2d5ab2165b5a7750693266c24dabdc6520fcfb2d.tar.gz
klcddimmer-2d5ab2165b5a7750693266c24dabdc6520fcfb2d.zip
Initial TDE conversion
Diffstat (limited to 'src/klcddimmer.cpp')
-rw-r--r--src/klcddimmer.cpp32
1 files changed, 16 insertions, 16 deletions
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");