summaryrefslogtreecommitdiff
path: root/core/pim/today/plugins/addressbook/addresspluginconfig.cpp
authordrw <drw>2004-03-25 23:00:40 (UTC)
committer drw <drw>2004-03-25 23:00:40 (UTC)
commit03091cd727701bdb2aa6ac623cd606131546d686 (patch) (unidiff)
tree76b818f6893fd0030071427d5a1efb0273921195 /core/pim/today/plugins/addressbook/addresspluginconfig.cpp
parentad160e97db39536ac42acdd3f2f98d1e49ae1f75 (diff)
downloadopie-03091cd727701bdb2aa6ac623cd606131546d686.zip
opie-03091cd727701bdb2aa6ac623cd606131546d686.tar.gz
opie-03091cd727701bdb2aa6ac623cd606131546d686.tar.bz2
libopie -> libopie2
Diffstat (limited to 'core/pim/today/plugins/addressbook/addresspluginconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/today/plugins/addressbook/addresspluginconfig.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp
index 8c55937..81bb8fd 100644
--- a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp
+++ b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp
@@ -83,31 +83,31 @@ AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char*
83// colorLabel->setText( tr( "To activate settings: Restart application !" ) ); 83// colorLabel->setText( tr( "To activate settings: Restart application !" ) );
84 84
85 85
86 QHBox *box5 = new QHBox( this ); 86 QHBox *box5 = new QHBox( this );
87 QLabel* colorLabel2 = new QLabel( box5, "" ); 87 QLabel* colorLabel2 = new QLabel( box5, "" );
88 colorLabel2->setText( tr( "Set Headline Color: " ) ); 88 colorLabel2->setText( tr( "Set Headline Color: " ) );
89 headlineColor = new OColorButton( box5, black , "headlineColor" ); 89 headlineColor = new Opie::OColorButton( box5, black , "headlineColor" );
90 QWhatsThis::add( headlineColor , tr( "Colors for the headlines !" ) ); 90 QWhatsThis::add( headlineColor , tr( "Colors for the headlines !" ) );
91 QHBox *box6 = new QHBox( this ); 91 QHBox *box6 = new QHBox( this );
92 92
93 // Entry color settings 93 // Entry color settings
94 QLabel* colorLabel3= new QLabel( box6, "" ); 94 QLabel* colorLabel3= new QLabel( box6, "" );
95 colorLabel3->setText( tr( "Set Entry Color: " ) ); 95 colorLabel3->setText( tr( "Set Entry Color: " ) );
96 entryColor = new OColorButton( box6, black , "entryColor" ); 96 entryColor = new Opie::OColorButton( box6, black , "entryColor" );
97 QWhatsThis::add( entryColor , tr( "This color will be used for shown birthdays/anniversaries !" ) ); 97 QWhatsThis::add( entryColor , tr( "This color will be used for shown birthdays/anniversaries !" ) );
98 98
99 // Urgent color settings 99 // Urgent color settings
100 QHBox *box7 = new QHBox( this ); 100 QHBox *box7 = new QHBox( this );
101 QLabel* colorLabel5 = new QLabel( box7, "" ); 101 QLabel* colorLabel5 = new QLabel( box7, "" );
102 colorLabel5->setText( tr( "Set Urgent\nColor if below " ) ); 102 colorLabel5->setText( tr( "Set Urgent\nColor if below " ) );
103 SpinUrgentClip = new QSpinBox( box7, "SpinDays" ); 103 SpinUrgentClip = new QSpinBox( box7, "SpinDays" );
104 SpinUrgentClip->setMaxValue( 200 ); 104 SpinUrgentClip->setMaxValue( 200 );
105 QLabel* colorLabel6 = new QLabel( box7, "" ); 105 QLabel* colorLabel6 = new QLabel( box7, "" );
106 colorLabel6->setText( tr( " days: " ) ); 106 colorLabel6->setText( tr( " days: " ) );
107 urgentColor = new OColorButton( box7, red , "urgentColor" ); 107 urgentColor = new Opie::OColorButton( box7, red , "urgentColor" );
108 QWhatsThis::add( urgentColor , tr( "This urgent color will be used if we are close to the event !" ) ); 108 QWhatsThis::add( urgentColor , tr( "This urgent color will be used if we are close to the event !" ) );
109 QWhatsThis::add( SpinUrgentClip , tr( "The urgent color will be used if the birthday/anniversary is closer than given days !" ) ); 109 QWhatsThis::add( SpinUrgentClip , tr( "The urgent color will be used if the birthday/anniversary is closer than given days !" ) );
110 110
111 111
112 //layout->addWidget( box4 ); 112 //layout->addWidget( box4 );
113 layout->addWidget( box1 ); 113 layout->addWidget( box1 );
@@ -139,13 +139,13 @@ void AddressBookPluginConfig::readConfig() {
139 headlineColor->setColor( QColor( m_headlineColor ) ); 139 headlineColor->setColor( QColor( m_headlineColor ) );
140 m_urgentColor = cfg.readEntry( "urgentcolor", Qt::red.name() ); 140 m_urgentColor = cfg.readEntry( "urgentcolor", Qt::red.name() );
141 urgentColor->setColor( QColor( m_urgentColor ) ); 141 urgentColor->setColor( QColor( m_urgentColor ) );
142 142
143 m_showBirthdayButton->setChecked( cfg.readBoolEntry( "showBirthdays", true ) ); 143 m_showBirthdayButton->setChecked( cfg.readBoolEntry( "showBirthdays", true ) );
144 m_showAnniversaryButton->setChecked( cfg.readBoolEntry( "showAnniversaries", true ) ); 144 m_showAnniversaryButton->setChecked( cfg.readBoolEntry( "showAnniversaries", true ) );
145 145
146} 146}
147 147
148 148
149void AddressBookPluginConfig::writeConfig() { 149void AddressBookPluginConfig::writeConfig() {
150 Config cfg( "todayaddressplugin" ); 150 Config cfg( "todayaddressplugin" );
151 cfg.setGroup( "config" ); 151 cfg.setGroup( "config" );
@@ -154,13 +154,13 @@ void AddressBookPluginConfig::writeConfig() {
154// m_maxCharClip = SpinBoxClip->value(); 154// m_maxCharClip = SpinBoxClip->value();
155// cfg.writeEntry( "maxcharclip", m_maxCharClip ); 155// cfg.writeEntry( "maxcharclip", m_maxCharClip );
156 m_daysLookAhead = SpinDaysClip->value(); 156 m_daysLookAhead = SpinDaysClip->value();
157 cfg.writeEntry( "dayslookahead", m_daysLookAhead ); 157 cfg.writeEntry( "dayslookahead", m_daysLookAhead );
158 m_urgentDays = SpinUrgentClip->value(); 158 m_urgentDays = SpinUrgentClip->value();
159 if ( m_urgentDays > m_daysLookAhead ) 159 if ( m_urgentDays > m_daysLookAhead )
160 m_urgentDays = m_daysLookAhead; 160 m_urgentDays = m_daysLookAhead;
161 cfg.writeEntry( "urgentdays", m_urgentDays ); 161 cfg.writeEntry( "urgentdays", m_urgentDays );
162 162
163 m_entryColor = entryColor->color().name(); 163 m_entryColor = entryColor->color().name();
164 cfg.writeEntry( "entrycolor", m_entryColor ); 164 cfg.writeEntry( "entrycolor", m_entryColor );
165 m_headlineColor = headlineColor->color().name(); 165 m_headlineColor = headlineColor->color().name();
166 cfg.writeEntry( "headlinecolor", m_headlineColor ); 166 cfg.writeEntry( "headlinecolor", m_headlineColor );