|
|
|
@ -41,7 +41,7 @@
|
|
|
|
|
|
|
|
|
|
extern "C" Plugin *create_plugin()
|
|
|
|
|
{
|
|
|
|
|
KGlobal::locale()->insertCatalogue("wakeup");
|
|
|
|
|
TDEGlobal::locale()->insertCatalogue("wakeup");
|
|
|
|
|
return new Wakeup();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -67,7 +67,7 @@ Wakeup::~Wakeup()
|
|
|
|
|
|
|
|
|
|
void Wakeup::update()
|
|
|
|
|
{
|
|
|
|
|
KConfig *config=KGlobal::config();
|
|
|
|
|
KConfig *config=TDEGlobal::config();
|
|
|
|
|
config->setGroup("Noatun Alarm");
|
|
|
|
|
|
|
|
|
|
hour[0]=config->readNumEntry("Hour1",7);
|
|
|
|
@ -287,7 +287,7 @@ void WakeupPrefs::slotViewFrame(int state)
|
|
|
|
|
|
|
|
|
|
void WakeupPrefs::save()
|
|
|
|
|
{
|
|
|
|
|
KConfig *config=KGlobal::config();
|
|
|
|
|
KConfig *config=TDEGlobal::config();
|
|
|
|
|
config->setGroup("Noatun Alarm");
|
|
|
|
|
config->writeEntry("Monday",monday->isChecked());
|
|
|
|
|
config->writeEntry("Tuesday",tuesday->isChecked());
|
|
|
|
@ -325,36 +325,36 @@ void WakeupPrefs::save()
|
|
|
|
|
|
|
|
|
|
void WakeupPrefs::load()
|
|
|
|
|
{
|
|
|
|
|
KGlobal::config()->setGroup("Noatun Alarm");
|
|
|
|
|
monday->setChecked(KGlobal::config()->readBoolEntry("Monday",false));
|
|
|
|
|
tuesday->setChecked(KGlobal::config()->readBoolEntry("Tuesday",false));
|
|
|
|
|
wednesday->setChecked(KGlobal::config()->readBoolEntry("Wednesday",false));
|
|
|
|
|
thursday->setChecked(KGlobal::config()->readBoolEntry("Thursday",false));
|
|
|
|
|
friday->setChecked(KGlobal::config()->readBoolEntry("Friday",false));
|
|
|
|
|
saturday->setChecked(KGlobal::config()->readBoolEntry("Saturday",false));
|
|
|
|
|
sunday->setChecked(KGlobal::config()->readBoolEntry("Sunday",false));
|
|
|
|
|
|
|
|
|
|
hour1->setValue(KGlobal::config()->readNumEntry("Hour1",7));
|
|
|
|
|
minute1->setValue(KGlobal::config()->readNumEntry("Minute1",0));
|
|
|
|
|
hour2->setValue(KGlobal::config()->readNumEntry("Hour2",7));
|
|
|
|
|
minute2->setValue(KGlobal::config()->readNumEntry("Minute2",0));
|
|
|
|
|
hour3->setValue(KGlobal::config()->readNumEntry("Hour3",7));
|
|
|
|
|
minute3->setValue(KGlobal::config()->readNumEntry("Minute3",0));
|
|
|
|
|
hour4->setValue(KGlobal::config()->readNumEntry("Hour4",7));
|
|
|
|
|
minute4->setValue(KGlobal::config()->readNumEntry("Minute4",0));
|
|
|
|
|
hour5->setValue(KGlobal::config()->readNumEntry("Hour5",7));
|
|
|
|
|
minute5->setValue(KGlobal::config()->readNumEntry("Minute5",0));
|
|
|
|
|
hour6->setValue(KGlobal::config()->readNumEntry("Hour6",7));
|
|
|
|
|
minute6->setValue(KGlobal::config()->readNumEntry("Minute6",0));
|
|
|
|
|
hour7->setValue(KGlobal::config()->readNumEntry("Hour7",7));
|
|
|
|
|
minute7->setValue(KGlobal::config()->readNumEntry("Minute7",0));
|
|
|
|
|
TDEGlobal::config()->setGroup("Noatun Alarm");
|
|
|
|
|
monday->setChecked(TDEGlobal::config()->readBoolEntry("Monday",false));
|
|
|
|
|
tuesday->setChecked(TDEGlobal::config()->readBoolEntry("Tuesday",false));
|
|
|
|
|
wednesday->setChecked(TDEGlobal::config()->readBoolEntry("Wednesday",false));
|
|
|
|
|
thursday->setChecked(TDEGlobal::config()->readBoolEntry("Thursday",false));
|
|
|
|
|
friday->setChecked(TDEGlobal::config()->readBoolEntry("Friday",false));
|
|
|
|
|
saturday->setChecked(TDEGlobal::config()->readBoolEntry("Saturday",false));
|
|
|
|
|
sunday->setChecked(TDEGlobal::config()->readBoolEntry("Sunday",false));
|
|
|
|
|
|
|
|
|
|
hour1->setValue(TDEGlobal::config()->readNumEntry("Hour1",7));
|
|
|
|
|
minute1->setValue(TDEGlobal::config()->readNumEntry("Minute1",0));
|
|
|
|
|
hour2->setValue(TDEGlobal::config()->readNumEntry("Hour2",7));
|
|
|
|
|
minute2->setValue(TDEGlobal::config()->readNumEntry("Minute2",0));
|
|
|
|
|
hour3->setValue(TDEGlobal::config()->readNumEntry("Hour3",7));
|
|
|
|
|
minute3->setValue(TDEGlobal::config()->readNumEntry("Minute3",0));
|
|
|
|
|
hour4->setValue(TDEGlobal::config()->readNumEntry("Hour4",7));
|
|
|
|
|
minute4->setValue(TDEGlobal::config()->readNumEntry("Minute4",0));
|
|
|
|
|
hour5->setValue(TDEGlobal::config()->readNumEntry("Hour5",7));
|
|
|
|
|
minute5->setValue(TDEGlobal::config()->readNumEntry("Minute5",0));
|
|
|
|
|
hour6->setValue(TDEGlobal::config()->readNumEntry("Hour6",7));
|
|
|
|
|
minute6->setValue(TDEGlobal::config()->readNumEntry("Minute6",0));
|
|
|
|
|
hour7->setValue(TDEGlobal::config()->readNumEntry("Hour7",7));
|
|
|
|
|
minute7->setValue(TDEGlobal::config()->readNumEntry("Minute7",0));
|
|
|
|
|
|
|
|
|
|
TQString volend(KGlobal::config()->readEntry("VolumeEnd","80%"));
|
|
|
|
|
TQString volend(TDEGlobal::config()->readEntry("VolumeEnd","80%"));
|
|
|
|
|
volend.truncate(volend.length()-1);
|
|
|
|
|
|
|
|
|
|
volEndValue->setValue(volend.toInt());
|
|
|
|
|
|
|
|
|
|
switch (KGlobal::config()->readNumEntry("ModeAlarm",0))
|
|
|
|
|
switch (TDEGlobal::config()->readNumEntry("ModeAlarm",0))
|
|
|
|
|
{
|
|
|
|
|
case 0:
|
|
|
|
|
alarmmode->setChecked(true);
|
|
|
|
|