Diffstat (limited to 'core/pim/today/plugins/addressbook') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/today/plugins/addressbook/addresspluginconfig.cpp | 1 | ||||
-rw-r--r-- | core/pim/today/plugins/addressbook/addresspluginwidget.cpp | 8 |
2 files changed, 0 insertions, 9 deletions
diff --git a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp index 8863192..8c55937 100644 --- a/core/pim/today/plugins/addressbook/addresspluginconfig.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginconfig.cpp | |||
@@ -1,49 +1,48 @@ | |||
1 | /* | 1 | /* |
2 | * addresspluginconfig.cpp | 2 | * addresspluginconfig.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2003 by Stefan Eilers | 4 | * copyright : (c) 2003 by Stefan Eilers |
5 | * email : eilers.stefan@epost.de | 5 | * email : eilers.stefan@epost.de |
6 | * | 6 | * |
7 | * This implementation was derived from the todolist plugin implementation | 7 | * This implementation was derived from the todolist plugin implementation |
8 | * | 8 | * |
9 | */ | 9 | */ |
10 | /*************************************************************************** | 10 | /*************************************************************************** |
11 | * * | 11 | * * |
12 | * This program is free software; you can redistribute it and/or modify * | 12 | * This program is free software; you can redistribute it and/or modify * |
13 | * it under the terms of the GNU General Public License as published by * | 13 | * it under the terms of the GNU General Public License as published by * |
14 | * the Free Software Foundation; either version 2 of the License, or * | 14 | * the Free Software Foundation; either version 2 of the License, or * |
15 | * (at your option) any later version. * | 15 | * (at your option) any later version. * |
16 | * * | 16 | * * |
17 | ***************************************************************************/ | 17 | ***************************************************************************/ |
18 | 18 | ||
19 | #include "addresspluginconfig.h" | 19 | #include "addresspluginconfig.h" |
20 | 20 | ||
21 | #include <qpe/config.h> | 21 | #include <qpe/config.h> |
22 | 22 | ||
23 | #include <qlayout.h> | 23 | #include <qlayout.h> |
24 | #include <qhbox.h> | 24 | #include <qhbox.h> |
25 | #include <qtoolbutton.h> | ||
26 | #include <qlabel.h> | 25 | #include <qlabel.h> |
27 | #include <qwhatsthis.h> | 26 | #include <qwhatsthis.h> |
28 | #include <qvgroupbox.h> | 27 | #include <qvgroupbox.h> |
29 | 28 | ||
30 | 29 | ||
31 | AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* name) | 30 | AddressBookPluginConfig::AddressBookPluginConfig( QWidget *parent, const char* name) |
32 | : TodayConfigWidget(parent, name ) { | 31 | : TodayConfigWidget(parent, name ) { |
33 | 32 | ||
34 | QVBoxLayout * layout = new QVBoxLayout( this ); | 33 | QVBoxLayout * layout = new QVBoxLayout( this ); |
35 | layout->setMargin( 20 ); | 34 | layout->setMargin( 20 ); |
36 | 35 | ||
37 | #if 0 | 36 | #if 0 |
38 | // Informational stuff | 37 | // Informational stuff |
39 | QHBox *box4 = new QHBox( this ); | 38 | QHBox *box4 = new QHBox( this ); |
40 | QLabel* colorLabel = new QLabel( box4, "" ); | 39 | QLabel* colorLabel = new QLabel( box4, "" ); |
41 | colorLabel->setText( tr( "To activate settings: Restart application !" ) ); | 40 | colorLabel->setText( tr( "To activate settings: Restart application !" ) ); |
42 | #endif | 41 | #endif |
43 | 42 | ||
44 | // Buttongroup to enable/disable shown stuff | 43 | // Buttongroup to enable/disable shown stuff |
45 | QVGroupBox* b_group = new QVGroupBox( this, "name" ); | 44 | QVGroupBox* b_group = new QVGroupBox( this, "name" ); |
46 | b_group -> setTitle( tr("Enable/Disable Views") ); | 45 | b_group -> setTitle( tr("Enable/Disable Views") ); |
47 | m_showBirthdayButton = new QRadioButton( b_group ); | 46 | m_showBirthdayButton = new QRadioButton( b_group ); |
48 | m_showBirthdayButton -> setText( tr( "Show &Birthdays" ) ); | 47 | m_showBirthdayButton -> setText( tr( "Show &Birthdays" ) ); |
49 | m_showAnniversaryButton = new QRadioButton( b_group ); | 48 | m_showAnniversaryButton = new QRadioButton( b_group ); |
diff --git a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp index d47bc0b..c8652f3 100644 --- a/core/pim/today/plugins/addressbook/addresspluginwidget.cpp +++ b/core/pim/today/plugins/addressbook/addresspluginwidget.cpp | |||
@@ -1,54 +1,46 @@ | |||
1 | /* | 1 | /* |
2 | * addresspluginwidget.cpp | 2 | * addresspluginwidget.cpp |
3 | * | 3 | * |
4 | * copyright : (c) 2003 by Stefan Eilers | 4 | * copyright : (c) 2003 by Stefan Eilers |
5 | * email : eilers.stefan@epost.de | 5 | * email : eilers.stefan@epost.de |
6 | * | 6 | * |
7 | * This implementation was derived from the todolist plugin implementation | 7 | * This implementation was derived from the todolist plugin implementation |
8 | * | 8 | * |
9 | */ | 9 | */ |
10 | /*************************************************************************** | 10 | /*************************************************************************** |
11 | * * | 11 | * * |
12 | * This program is free software; you can redistribute it and/or modify * | 12 | * This program is free software; you can redistribute it and/or modify * |
13 | * it under the terms of the GNU General Public License as published by * | 13 | * it under the terms of the GNU General Public License as published by * |
14 | * the Free Software Foundation; either version 2 of the License, or * | 14 | * the Free Software Foundation; either version 2 of the License, or * |
15 | * (at your option) any later version. * | 15 | * (at your option) any later version. * |
16 | * * | 16 | * * |
17 | ***************************************************************************/ | 17 | ***************************************************************************/ |
18 | 18 | ||
19 | #include "addresspluginwidget.h" | 19 | #include "addresspluginwidget.h" |
20 | 20 | ||
21 | #include <qvaluelist.h> | ||
22 | #include <qtl.h> | ||
23 | #include <qstring.h> | ||
24 | #include <qscrollview.h> | ||
25 | #include <qobject.h> | ||
26 | #include <qdatetime.h> | ||
27 | 21 | ||
28 | #include <qpe/config.h> | 22 | #include <qpe/config.h> |
29 | #include <qpe/timestring.h> | ||
30 | #include <qpe/qcopenvelope_qws.h> | ||
31 | 23 | ||
32 | #include <opie/ocontact.h> | 24 | #include <opie/ocontact.h> |
33 | 25 | ||
34 | AddressBookPluginWidget::AddressBookPluginWidget( QWidget *parent, const char* name ) | 26 | AddressBookPluginWidget::AddressBookPluginWidget( QWidget *parent, const char* name ) |
35 | : QWidget( parent, name ) { | 27 | : QWidget( parent, name ) { |
36 | 28 | ||
37 | addressLabel = 0l; | 29 | addressLabel = 0l; |
38 | m_contactdb = 0l; | 30 | m_contactdb = 0l; |
39 | layoutTodo = 0l; | 31 | layoutTodo = 0l; |
40 | 32 | ||
41 | // Hä ? Nonsense ! (se) | 33 | // Hä ? Nonsense ! (se) |
42 | if ( m_contactdb ) { | 34 | if ( m_contactdb ) { |
43 | delete m_contactdb; | 35 | delete m_contactdb; |
44 | } | 36 | } |
45 | 37 | ||
46 | m_contactdb = new OContactAccess("addressplugin"); | 38 | m_contactdb = new OContactAccess("addressplugin"); |
47 | 39 | ||
48 | connect( m_contactdb, SIGNAL( signalChanged( const OContactAccess * ) ), | 40 | connect( m_contactdb, SIGNAL( signalChanged( const OContactAccess * ) ), |
49 | this, SLOT( refresh( const OContactAccess * ) ) ); | 41 | this, SLOT( refresh( const OContactAccess * ) ) ); |
50 | 42 | ||
51 | 43 | ||
52 | readConfig(); | 44 | readConfig(); |
53 | getAddress(); | 45 | getAddress(); |
54 | } | 46 | } |