summaryrefslogtreecommitdiffstats
path: root/src/sources
diff options
context:
space:
mode:
Diffstat (limited to 'src/sources')
-rw-r--r--src/sources/CMakeLists.txt46
-rw-r--r--src/sources/acpithermalsrc.cpp2
-rw-r--r--src/sources/batterysrc.cpp1
-rw-r--r--src/sources/cpuinfofreqsrc.cpp1
-rw-r--r--src/sources/hddtempsrc.cpp2
-rw-r--r--src/sources/hwmonfansrc.cpp2
-rw-r--r--src/sources/hwmonthermalsrc.cpp2
-rw-r--r--src/sources/i8ksrc.cpp2
-rw-r--r--src/sources/ibmacpifansrc.cpp2
-rw-r--r--src/sources/ibmacpithermalsrc.cpp1
-rw-r--r--src/sources/ibmhdaps.cpp1
-rw-r--r--src/sources/ibookg4thermalsrc.cpp2
-rw-r--r--src/sources/labelsource.cpp1
-rw-r--r--src/sources/labelsourcePrefs.cpp110
-rw-r--r--src/sources/nvidiathermalsrc.cpp2
-rw-r--r--src/sources/omnibookthermalsrc.cpp2
-rw-r--r--src/sources/source.cpp1
-rw-r--r--src/sources/sourceprefs.cpp88
-rw-r--r--src/sources/sysfreqsrc.cpp2
-rw-r--r--src/sources/threadedtrigger.cpp1
-rw-r--r--src/sources/triggeredsource.cpp1
-rw-r--r--src/sources/uptimesrc.cpp1
22 files changed, 65 insertions, 208 deletions
diff --git a/src/sources/CMakeLists.txt b/src/sources/CMakeLists.txt
new file mode 100644
index 0000000..3b407bd
--- /dev/null
+++ b/src/sources/CMakeLists.txt
@@ -0,0 +1,46 @@
+include_directories(
+ ${CMAKE_BINARY_DIR}
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+ ${TDE_INCLUDE_DIR}
+ ${TQT_INCLUDE_DIRS}
+ ${NVCONTROL_INCLUDE_DIR}
+)
+
+link_directories(
+ ${TQT_LIBRARY_DIRS}
+ ${TDE_LIB_DIR}
+)
+
+
+##### sources (static)
+
+tde_add_library( sources STATIC_PIC AUTOMOC
+
+ SOURCES
+ labelsourcePrefs.ui
+ sourceprefs.ui
+ acpithermalsrc.cpp
+ batterysrc.cpp
+ cpuinfofreqsrc.cpp
+ hddtempsrc.cpp
+ hwmonfansrc.cpp
+ hwmonthermalsrc.cpp
+ i8ksrc.cpp
+ ibmacpifansrc.cpp
+ ibmacpithermalsrc.cpp
+ ibmhdaps.cpp
+ ibookg4thermalsrc.cpp
+ labelsource.cpp
+ nvidiathermalsrc.cpp
+ omnibookthermalsrc.cpp
+ source.cpp
+ sysfreqsrc.cpp
+ threadedtrigger.cpp
+ triggeredsource.cpp
+ updateevent.cpp
+ uptimesrc.cpp
+ LINK
+ tdecore-shared
+ ${NVCONTROL_LIBRARIES}
+)
diff --git a/src/sources/acpithermalsrc.cpp b/src/sources/acpithermalsrc.cpp
index a2340a0..53f7674 100644
--- a/src/sources/acpithermalsrc.cpp
+++ b/src/sources/acpithermalsrc.cpp
@@ -62,4 +62,4 @@ TQString ACPIThermalSrc::fetchValue() {
}
return s;
}
-
+#include "acpithermalsrc.moc"
diff --git a/src/sources/batterysrc.cpp b/src/sources/batterysrc.cpp
index f4d4bd5..7b9c763 100644
--- a/src/sources/batterysrc.cpp
+++ b/src/sources/batterysrc.cpp
@@ -70,3 +70,4 @@ TQString BatterySrc::fetchValue() {
}
return s;
}
+#include "batterysrc.moc"
diff --git a/src/sources/cpuinfofreqsrc.cpp b/src/sources/cpuinfofreqsrc.cpp
index d10f360..a437c44 100644
--- a/src/sources/cpuinfofreqsrc.cpp
+++ b/src/sources/cpuinfofreqsrc.cpp
@@ -55,3 +55,4 @@ TQString CpuinfoFreqSrc::fetchValue(){
}
return s;
}
+#include "cpuinfofreqsrc.moc"
diff --git a/src/sources/hddtempsrc.cpp b/src/sources/hddtempsrc.cpp
index 31fee40..65a5898 100644
--- a/src/sources/hddtempsrc.cpp
+++ b/src/sources/hddtempsrc.cpp
@@ -97,4 +97,4 @@ TQString HDDTempSrc::fetchValue(){
}
return s;
}
-
+#include "hddtempsrc.moc"
diff --git a/src/sources/hwmonfansrc.cpp b/src/sources/hwmonfansrc.cpp
index cc05f93..647dc2d 100644
--- a/src/sources/hwmonfansrc.cpp
+++ b/src/sources/hwmonfansrc.cpp
@@ -88,4 +88,4 @@ TQString HwMonFanSrc::fetchValue(){
}
return s;
}
-
+#include "hwmonfansrc.moc"
diff --git a/src/sources/hwmonthermalsrc.cpp b/src/sources/hwmonthermalsrc.cpp
index c9b56e4..8e73610 100644
--- a/src/sources/hwmonthermalsrc.cpp
+++ b/src/sources/hwmonthermalsrc.cpp
@@ -91,4 +91,4 @@ TQString HwMonThermalSrc::fetchValue(){
}
return s;
}
-
+#include "hwmonthermalsrc.moc"
diff --git a/src/sources/i8ksrc.cpp b/src/sources/i8ksrc.cpp
index d2dfc10..bdabc39 100644
--- a/src/sources/i8ksrc.cpp
+++ b/src/sources/i8ksrc.cpp
@@ -108,4 +108,4 @@ TQString I8kSrc::index2Name(unsigned int inIndex){
return "unknown" + TQString().setNum(inIndex);
}
}
-
+#include "i8ksrc.moc"
diff --git a/src/sources/ibmacpifansrc.cpp b/src/sources/ibmacpifansrc.cpp
index 2fcfb1d..a14e197 100644
--- a/src/sources/ibmacpifansrc.cpp
+++ b/src/sources/ibmacpifansrc.cpp
@@ -54,4 +54,4 @@ TQString IBMACPIFanSrc::fetchValue(){
}
return s;
}
-
+#include "ibmacpifansrc.moc"
diff --git a/src/sources/ibmacpithermalsrc.cpp b/src/sources/ibmacpithermalsrc.cpp
index 8ff2c1b..db56fa0 100644
--- a/src/sources/ibmacpithermalsrc.cpp
+++ b/src/sources/ibmacpithermalsrc.cpp
@@ -84,3 +84,4 @@ TQString IBMACPIThermalSrc::index2Name(unsigned int inIndex){
return "ibmacpi" + TQString().setNum(inIndex);
}
}
+#include "ibmacpithermalsrc.moc"
diff --git a/src/sources/ibmhdaps.cpp b/src/sources/ibmhdaps.cpp
index 23f758f..ede4a2f 100644
--- a/src/sources/ibmhdaps.cpp
+++ b/src/sources/ibmhdaps.cpp
@@ -61,3 +61,4 @@ TQString IBMHDAPSSrc::fetchValue(){
}
return s;
}
+#include "ibmhdaps.moc"
diff --git a/src/sources/ibookg4thermalsrc.cpp b/src/sources/ibookg4thermalsrc.cpp
index 4d137ae..8f1f696 100644
--- a/src/sources/ibookg4thermalsrc.cpp
+++ b/src/sources/ibookg4thermalsrc.cpp
@@ -60,4 +60,4 @@ TQString IbookG4ThermalSrc::fetchValue(){
}
return s;
}
-
+#include "ibookg4thermalsrc.moc"
diff --git a/src/sources/labelsource.cpp b/src/sources/labelsource.cpp
index ba4f8fc..6c6892d 100644
--- a/src/sources/labelsource.cpp
+++ b/src/sources/labelsource.cpp
@@ -131,3 +131,4 @@ void LabelSource::realizeWidget(){
mLabel->setTextFormat(TQt::PlainText);
connect(this, TQT_SIGNAL(valueUpdated(const TQString&)), this, TQT_SLOT(updateLabel(const TQString&)));
}
+#include "labelsource.moc"
diff --git a/src/sources/labelsourcePrefs.cpp b/src/sources/labelsourcePrefs.cpp
deleted file mode 100644
index 8104c87..0000000
--- a/src/sources/labelsourcePrefs.cpp
+++ /dev/null
@@ -1,110 +0,0 @@
-#include <kdialog.h>
-#include <tdelocale.h>
-/****************************************************************************
-** Form implementation generated from reading ui file './labelsourcePrefs.ui'
-**
-** Created: Thu Jun 21 19:16:51 2007
-** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.7 edited Aug 31 2005 $)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-
-#include "labelsourcePrefs.h"
-
-#include <tqvariant.h>
-#include <tqpushbutton.h>
-#include <tqframe.h>
-#include <tqlabel.h>
-#include <kcolorbutton.h>
-#include <tdefontrequester.h>
-#include <tqcombobox.h>
-#include <tqlayout.h>
-#include <tqtooltip.h>
-#include <tqwhatsthis.h>
-
-/*
- * Constructs a LabelSourcePrefs as a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-LabelSourcePrefs::LabelSourcePrefs( TQWidget* parent, const char* name, WFlags fl )
- : TQWidget( parent, name, fl )
-{
- if ( !name )
- setName( "LabelSourcePrefs" );
- LabelSourcePrefsLayout = new TQVBoxLayout( this, 0, 6, "LabelSourcePrefsLayout");
-
- defaultSourcePrefsFrame = new TQFrame( this, "defaultSourcePrefsFrame" );
- defaultSourcePrefsFrame->setFrameShape( TQFrame::NoFrame );
- defaultSourcePrefsFrame->setFrameShadow( TQFrame::Plain );
- defaultSourcePrefsFrameLayout = new TQVBoxLayout( defaultSourcePrefsFrame, 0, 6, "defaultSourcePrefsFrameLayout");
-
- taskbartitleLabel = new TQLabel( defaultSourcePrefsFrame, "taskbartitleLabel" );
- TQFont taskbartitleLabel_font( taskbartitleLabel->font() );
- taskbartitleLabel_font.setBold( TRUE );
- taskbartitleLabel->setFont( taskbartitleLabel_font );
- defaultSourcePrefsFrameLayout->addWidget( taskbartitleLabel );
-
- layout13 = new TQHBoxLayout( 0, 0, 6, "layout13");
-
- colorLabel = new TQLabel( defaultSourcePrefsFrame, "colorLabel" );
- layout13->addWidget( colorLabel );
-
- colorButton = new KColorButton( defaultSourcePrefsFrame, "colorButton" );
- layout13->addWidget( colorButton );
- spacer1 = new TQSpacerItem( 350, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- layout13->addItem( spacer1 );
- defaultSourcePrefsFrameLayout->addLayout( layout13 );
-
- layout17 = new TQHBoxLayout( 0, 0, 6, "layout17");
-
- fontLabel = new TQLabel( defaultSourcePrefsFrame, "fontLabel" );
- layout17->addWidget( fontLabel );
-
- fontRequester = new TDEFontRequester( defaultSourcePrefsFrame, "fontRequester" );
- layout17->addWidget( fontRequester );
- defaultSourcePrefsFrameLayout->addLayout( layout17 );
-
- layout18 = new TQHBoxLayout( 0, 0, 6, "layout18");
-
- alignmentLabel = new TQLabel( defaultSourcePrefsFrame, "alignmentLabel" );
- layout18->addWidget( alignmentLabel );
-
- alignmentComboBox = new TQComboBox( FALSE, defaultSourcePrefsFrame, "alignmentComboBox" );
- layout18->addWidget( alignmentComboBox );
- spacer2 = new TQSpacerItem( 350, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- layout18->addItem( spacer2 );
- defaultSourcePrefsFrameLayout->addLayout( layout18 );
- LabelSourcePrefsLayout->addWidget( defaultSourcePrefsFrame );
- languageChange();
- resize( TQSize(299, 135).expandedTo(minimumSizeHint()) );
- clearWState( WState_Polished );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-LabelSourcePrefs::~LabelSourcePrefs()
-{
- // no need to delete child widgets, TQt does it all for us
-}
-
-/*
- * Sets the strings of the subwidgets using the current
- * language.
- */
-void LabelSourcePrefs::languageChange()
-{
- setCaption( tr2i18n( "LabelSourcePrefs" ) );
- taskbartitleLabel->setText( tr2i18n( "<br>\n"
-"Taskbar visual settings" ) );
- colorLabel->setText( tr2i18n( "Foreground color:" ) );
- colorButton->setText( TQString() );
- fontLabel->setText( tr2i18n( "Font:" ) );
- alignmentLabel->setText( tr2i18n( "Alignment:" ) );
- alignmentComboBox->clear();
- alignmentComboBox->insertItem( tr2i18n( "Left" ) );
- alignmentComboBox->insertItem( tr2i18n( "Center" ) );
- alignmentComboBox->insertItem( tr2i18n( "Right" ) );
-}
-
-#include "labelsourcePrefs.moc"
diff --git a/src/sources/nvidiathermalsrc.cpp b/src/sources/nvidiathermalsrc.cpp
index 7fff602..ce97a61 100644
--- a/src/sources/nvidiathermalsrc.cpp
+++ b/src/sources/nvidiathermalsrc.cpp
@@ -172,4 +172,4 @@ TQString NVidiaThermalSrc::fetchValue(){
return mValue;
#endif
}
-
+#include "nvidiathermalsrc.moc"
diff --git a/src/sources/omnibookthermalsrc.cpp b/src/sources/omnibookthermalsrc.cpp
index 2a347b2..2fde287 100644
--- a/src/sources/omnibookthermalsrc.cpp
+++ b/src/sources/omnibookthermalsrc.cpp
@@ -55,4 +55,4 @@ TQString OmnibookThermalSrc::fetchValue(){
}
return s;
}
-
+#include "omnibookthermalsrc.moc"
diff --git a/src/sources/source.cpp b/src/sources/source.cpp
index 6ebe6b4..5c4e52a 100644
--- a/src/sources/source.cpp
+++ b/src/sources/source.cpp
@@ -220,3 +220,4 @@ int Source::celsiusToFahrenheit(int inCelsius) const{
void Source::realizeWidget(){
mIsMetric = TDEGlobal::locale()->measureSystem() == TDELocale::Metric;
}
+#include "source.moc"
diff --git a/src/sources/sourceprefs.cpp b/src/sources/sourceprefs.cpp
deleted file mode 100644
index 4db4da0..0000000
--- a/src/sources/sourceprefs.cpp
+++ /dev/null
@@ -1,88 +0,0 @@
-#include <kdialog.h>
-#include <tdelocale.h>
-/****************************************************************************
-** Form implementation generated from reading ui file './sourceprefs.ui'
-**
-** Created: Thu Jun 21 19:16:51 2007
-** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.7 edited Aug 31 2005 $)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-
-#include "sourceprefs.h"
-
-#include <tqvariant.h>
-#include <tqpushbutton.h>
-#include <tqlabel.h>
-#include <tqlineedit.h>
-#include <tqcheckbox.h>
-#include <tqlayout.h>
-#include <tqtooltip.h>
-#include <tqwhatsthis.h>
-
-/*
- * Constructs a SourcePrefs as a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-SourcePrefs::SourcePrefs( TQWidget* parent, const char* name, WFlags fl )
- : TQWidget( parent, name, fl )
-{
- if ( !name )
- setName( "SourcePrefs" );
- SourcePrefsLayout = new TQVBoxLayout( this, 0, 6, "SourcePrefsLayout");
-
- descriptionLabel = new TQLabel( this, "descriptionLabel" );
- SourcePrefsLayout->addWidget( descriptionLabel );
-
- hBoxLayout = new TQHBoxLayout( 0, 0, 6, "hBoxLayout");
-
- nameLabel = new TQLabel( this, "nameLabel" );
- hBoxLayout->addWidget( nameLabel );
-
- nameLineEdit = new TQLineEdit( this, "nameLineEdit" );
- hBoxLayout->addWidget( nameLineEdit );
- spacer8 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
- hBoxLayout->addItem( spacer8 );
- SourcePrefsLayout->addLayout( hBoxLayout );
-
- taskbarCheckBox = new TQCheckBox( this, "taskbarCheckBox" );
- SourcePrefsLayout->addWidget( taskbarCheckBox );
-
- hBoxLayout2 = new TQHBoxLayout( 0, 0, 6, "hBoxLayout2");
- spacer8_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
- hBoxLayout2->addItem( spacer8_2 );
-
- nameCheckBox = new TQCheckBox( this, "nameCheckBox" );
- hBoxLayout2->addWidget( nameCheckBox );
- SourcePrefsLayout->addLayout( hBoxLayout2 );
-
- tooltipCheckBox = new TQCheckBox( this, "tooltipCheckBox" );
- SourcePrefsLayout->addWidget( tooltipCheckBox );
- languageChange();
- resize( TQSize(203, 127).expandedTo(minimumSizeHint()) );
- clearWState( WState_Polished );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-SourcePrefs::~SourcePrefs()
-{
- // no need to delete child widgets, TQt does it all for us
-}
-
-/*
- * Sets the strings of the subwidgets using the current
- * language.
- */
-void SourcePrefs::languageChange()
-{
- setCaption( tr2i18n( "SourcePrefs" ) );
- descriptionLabel->setText( tr2i18n( "description" ) );
- nameLabel->setText( tr2i18n( "Name:" ) );
- taskbarCheckBox->setText( tr2i18n( "Show this source in Taskbar" ) );
- nameCheckBox->setText( tr2i18n( "Show name in Taskbar" ) );
- tooltipCheckBox->setText( tr2i18n( "Show this source in ToolTip" ) );
-}
-
-#include "sourceprefs.moc"
diff --git a/src/sources/sysfreqsrc.cpp b/src/sources/sysfreqsrc.cpp
index 22242f8..c2e982c 100644
--- a/src/sources/sysfreqsrc.cpp
+++ b/src/sources/sysfreqsrc.cpp
@@ -63,4 +63,4 @@ TQString SysFreqSrc::fetchValue(){
}
return s;
}
-
+#include "sysfreqsrc.moc"
diff --git a/src/sources/threadedtrigger.cpp b/src/sources/threadedtrigger.cpp
index 5ea2998..8c667e0 100644
--- a/src/sources/threadedtrigger.cpp
+++ b/src/sources/threadedtrigger.cpp
@@ -65,3 +65,4 @@ void ThreadedTrigger::run(){
// 2. mWaitMutex is locked when we enter the loop
mWaitMutex.unlock(); // unlock it again
}
+#include "threadedtrigger.moc"
diff --git a/src/sources/triggeredsource.cpp b/src/sources/triggeredsource.cpp
index c83b417..5f79714 100644
--- a/src/sources/triggeredsource.cpp
+++ b/src/sources/triggeredsource.cpp
@@ -46,3 +46,4 @@ void TriggeredSource::customEvent(TQCustomEvent* event){
TQString TriggeredSource::getValue() const{
return mValue;
}
+#include "triggeredsource.moc"
diff --git a/src/sources/uptimesrc.cpp b/src/sources/uptimesrc.cpp
index 8ec0db5..c55f21e 100644
--- a/src/sources/uptimesrc.cpp
+++ b/src/sources/uptimesrc.cpp
@@ -68,3 +68,4 @@ void UptimeSrc::realizeWidget() {
mTimeFormatLong = i18n("%1d %2:%3");
mTimeFormatShort = i18n("%1:%2");
}
+#include "uptimesrc.moc"