|
|
@ -33,7 +33,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
using namespace KCal;
|
|
|
|
using namespace KCal;
|
|
|
|
|
|
|
|
|
|
|
|
ResourceKABCConfig::ResourceKABCConfig( TQWidget* parent, const char* name )
|
|
|
|
ResourceTDEABCConfig::ResourceTDEABCConfig( TQWidget* parent, const char* name )
|
|
|
|
: KRES::ConfigWidget( parent, name )
|
|
|
|
: KRES::ConfigWidget( parent, name )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQGridLayout *topLayout = new TQGridLayout( this, 5, 1, 11, 6 );
|
|
|
|
TQGridLayout *topLayout = new TQGridLayout( this, 5, 1, 11, 6 );
|
|
|
@ -78,9 +78,9 @@ ResourceKABCConfig::ResourceKABCConfig( TQWidget* parent, const char* name )
|
|
|
|
new TQCheckListItem( mCategoryView, *it, TQCheckListItem::CheckBox );
|
|
|
|
new TQCheckListItem( mCategoryView, *it, TQCheckListItem::CheckBox );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ResourceKABCConfig::loadSettings( KRES::Resource *resource )
|
|
|
|
void ResourceTDEABCConfig::loadSettings( KRES::Resource *resource )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ResourceKABC *res = static_cast<ResourceKABC *>( resource );
|
|
|
|
ResourceTDEABC *res = static_cast<ResourceTDEABC *>( resource );
|
|
|
|
if ( res ) {
|
|
|
|
if ( res ) {
|
|
|
|
mAlarm->setChecked( res->alarm() );
|
|
|
|
mAlarm->setChecked( res->alarm() );
|
|
|
|
TQString days;
|
|
|
|
TQString days;
|
|
|
@ -101,13 +101,13 @@ void ResourceKABCConfig::loadSettings( KRES::Resource *resource )
|
|
|
|
|
|
|
|
|
|
|
|
mUseCategories->setChecked( res->useCategories() );
|
|
|
|
mUseCategories->setChecked( res->useCategories() );
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
kdDebug(5700) << "ERROR: ResourceKABCConfig::loadSettings(): no ResourceKABC, cast failed" << endl;
|
|
|
|
kdDebug(5700) << "ERROR: ResourceTDEABCConfig::loadSettings(): no ResourceTDEABC, cast failed" << endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ResourceKABCConfig::saveSettings( KRES::Resource *resource )
|
|
|
|
void ResourceTDEABCConfig::saveSettings( KRES::Resource *resource )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ResourceKABC *res = static_cast<ResourceKABC *>( resource );
|
|
|
|
ResourceTDEABC *res = static_cast<ResourceTDEABC *>( resource );
|
|
|
|
if ( res ) {
|
|
|
|
if ( res ) {
|
|
|
|
res->setAlarm( mAlarm->isChecked() );
|
|
|
|
res->setAlarm( mAlarm->isChecked() );
|
|
|
|
res->setAlarmDays( mAlarmTimeEdit->text().toInt() );
|
|
|
|
res->setAlarmDays( mAlarmTimeEdit->text().toInt() );
|
|
|
@ -122,11 +122,11 @@ void ResourceKABCConfig::saveSettings( KRES::Resource *resource )
|
|
|
|
res->setCategories( categories );
|
|
|
|
res->setCategories( categories );
|
|
|
|
res->setUseCategories( mUseCategories->isChecked() );
|
|
|
|
res->setUseCategories( mUseCategories->isChecked() );
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
kdDebug(5700) << "ERROR: ResourceKABCConfig::saveSettings(): no ResourceKABC, cast failed" << endl;
|
|
|
|
kdDebug(5700) << "ERROR: ResourceTDEABCConfig::saveSettings(): no ResourceTDEABC, cast failed" << endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ResourceKABCConfig::alarmClicked()
|
|
|
|
void ResourceTDEABCConfig::alarmClicked()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mAlarmTimeEdit->setDisabled(!mAlarm->isChecked());
|
|
|
|
mAlarmTimeEdit->setDisabled(!mAlarm->isChecked());
|
|
|
|
mALabel->setDisabled(!mAlarm->isChecked());
|
|
|
|
mALabel->setDisabled(!mAlarm->isChecked());
|
|
|
|