summaryrefslogtreecommitdiff
path: root/core/pim/addressbook
authoreilers <eilers>2003-08-01 12:30:16 (UTC)
committer eilers <eilers>2003-08-01 12:30:16 (UTC)
commit6c715b67a8f0e32a4edca5be91332622834c8d91 (patch) (unidiff)
treeae2d660e1fd9c990c2d725c075ce6c42480b0af8 /core/pim/addressbook
parentcb45aa10043fdd6fddcab42ef0e07ddafc3d506d (diff)
downloadopie-6c715b67a8f0e32a4edca5be91332622834c8d91.zip
opie-6c715b67a8f0e32a4edca5be91332622834c8d91.tar.gz
opie-6c715b67a8f0e32a4edca5be91332622834c8d91.tar.bz2
Merging changes from BRANCH_1_0 to HEAD
Diffstat (limited to 'core/pim/addressbook') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/addressbook.cpp29
-rw-r--r--core/pim/addressbook/contacteditor.cpp2
-rw-r--r--core/pim/addressbook/opie-addressbook.control6
-rw-r--r--core/pim/addressbook/version.h6
4 files changed, 24 insertions, 19 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp
index 34bf7f1..6819085 100644
--- a/core/pim/addressbook/addressbook.cpp
+++ b/core/pim/addressbook/addressbook.cpp
@@ -1,7 +1,8 @@
1/********************************************************************** 1/**********************************************************************
2** Copyright (C) 2000 Trolltech AS. All rights reserved. 2** Copyright (C) 2000 Trolltech AS. All rights reserved.
3** Copyright (C) 2003 Stefan Eilers (eilers.stefan@epost.de)
3** 4**
4** This file is part of Qt Palmtop Environment. 5** This file is part of the Open Palmtop Environment (see www.opie.info).
5** 6**
6** This file may be distributed and/or modified under the terms of the 7** This file may be distributed and/or modified under the terms of the
7** GNU General Public License version 2 as published by the Free Software 8** GNU General Public License version 2 as published by the Free Software
@@ -13,8 +14,6 @@
13** 14**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 15** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 16**
16** OContact info@trolltech.com if any conditions of this licensing are
17** not clear to you.
18** 17**
19**********************************************************************/ 18**********************************************************************/
20 19
@@ -113,12 +112,12 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name,
113 moveToolBar( listTools, m_config.getToolBarPos() ); 112 moveToolBar( listTools, m_config.getToolBarPos() );
114 113
115 // View Icons 114 // View Icons
116 m_tableViewButton = new QAction( tr( "List" ), Resource::loadPixmap( "addressbook/weeklst" ), 115 m_tableViewButton = new QAction( tr( "List" ), Resource::loadPixmap( "addressbook/listview" ),
117 QString::null, 0, this, 0 ); 116 QString::null, 0, this, 0 );
118 connect( m_tableViewButton, SIGNAL( activated() ), this, SLOT( slotListView() ) ); 117 connect( m_tableViewButton, SIGNAL( activated() ), this, SLOT( slotListView() ) );
119 m_tableViewButton->setToggleAction( true ); 118 m_tableViewButton->setToggleAction( true );
120 m_tableViewButton->addTo( listTools ); 119 m_tableViewButton->addTo( listTools );
121 m_cardViewButton = new QAction( tr( "Card" ), Resource::loadPixmap( "day" ), QString::null, 0, this, 0 ); 120 m_cardViewButton = new QAction( tr( "Card" ), Resource::loadPixmap( "addressbook/cardview" ), QString::null, 0, this, 0 );
122 connect( m_cardViewButton, SIGNAL( activated() ), this, SLOT( slotCardView() ) ); 121 connect( m_cardViewButton, SIGNAL( activated() ), this, SLOT( slotCardView() ) );
123 m_cardViewButton->setToggleAction( true ); 122 m_cardViewButton->setToggleAction( true );
124 m_cardViewButton->addTo( listTools ); 123 m_cardViewButton->addTo( listTools );
@@ -652,7 +651,9 @@ static void parseName( const QString& name, QString *first, QString *middle,
652 651
653void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data) 652void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data)
654{ 653{
655 qWarning("Receiving QCop-Call with message %s", QString( msg ).latin1() ); 654 bool needShow = FALSE;
655 qWarning("Receiving QCop-Call with message %s", QString( msg ).latin1() );
656
656 657
657 if (msg == "editPersonal()") { 658 if (msg == "editPersonal()") {
658 editPersonal(); 659 editPersonal();
@@ -689,6 +690,7 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data)
689 QString description = "mycard.vcf"; 690 QString description = "mycard.vcf";
690 ir->send( beamFilename, description, "text/x-vCard" ); 691 ir->send( beamFilename, description, "text/x-vCard" );
691 } else if ( msg == "show(int)" ) { 692 } else if ( msg == "show(int)" ) {
693 raise();
692 QDataStream stream(data,IO_ReadOnly); 694 QDataStream stream(data,IO_ReadOnly);
693 int uid; 695 int uid;
694 stream >> uid; 696 stream >> uid;
@@ -705,9 +707,9 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data)
705 m_abView -> setShowByCategory( QString::null ); 707 m_abView -> setShowByCategory( QString::null );
706 m_abView -> setCurrentUid( uid ); 708 m_abView -> setCurrentUid( uid );
707 slotViewSwitched ( AbView::CardView ); 709 slotViewSwitched ( AbView::CardView );
708 710
709 showMaximized(); 711 needShow = true;
710 qApp->exec(); 712
711 713
712 } else if ( msg == "edit(int)" ) { 714 } else if ( msg == "edit(int)" ) {
713 QDataStream stream(data,IO_ReadOnly); 715 QDataStream stream(data,IO_ReadOnly);
@@ -724,7 +726,10 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data)
724 m_abView -> setShowByCategory( QString::null ); 726 m_abView -> setShowByCategory( QString::null );
725 m_abView -> setCurrentUid( uid ); 727 m_abView -> setCurrentUid( uid );
726 slotViewEdit(); 728 slotViewEdit();
727 } 729 }
730
731 if (needShow)
732 QPEApplication::setKeepRunning();
728 733
729} 734}
730 735
@@ -900,7 +905,7 @@ void AddressbookWindow::slotNotFound()
900{ 905{
901 qWarning("Got notfound signal!"); 906 qWarning("Got notfound signal!");
902 QMessageBox::information( this, tr( "Not Found" ), 907 QMessageBox::information( this, tr( "Not Found" ),
903 tr( "Unable to find a contact for this \n search pattern!" ) ); 908 "<qt>" + tr( "Unable to find a contact for this search pattern!" ) + "</qt>" );
904 909
905 910
906} 911}
@@ -950,7 +955,7 @@ void AddressbookWindow::slotSetCategory( int c )
950 cat = QString::null; 955 cat = QString::null;
951 }else if ( i == (unsigned int)catMenu->count() - 1 ){ // last menu option (seperator is counted, too) will be Unfiled 956 }else if ( i == (unsigned int)catMenu->count() - 1 ){ // last menu option (seperator is counted, too) will be Unfiled
952 cat = "Unfiled"; 957 cat = "Unfiled";
953 qWarning ("Unfiled selected!!!"); 958 qWarning ("Unfiled selected!");
954 }else{ 959 }else{
955 cat = m_abView->categories()[i - 4]; 960 cat = m_abView->categories()[i - 4];
956 } 961 }
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp
index ce14f98..9d1a1c7 100644
--- a/core/pim/addressbook/contacteditor.cpp
+++ b/core/pim/addressbook/contacteditor.cpp
@@ -597,7 +597,7 @@ void ContactEditor::init() {
597 if (((*it) == "Anniversary") || 597 if (((*it) == "Anniversary") ||
598 ((*it) == "Birthday")|| ((*it) == "Gender")) continue; 598 ((*it) == "Birthday")|| ((*it) == "Gender")) continue;
599 599
600 l = new QLabel( mapIdToStr[mapStrToID[*it]].utf8() , container ); 600 l = new QLabel( mapIdToStr[mapStrToID[*it]], container );
601 listName.append( l ); 601 listName.append( l );
602 gl->addWidget( l, i, 0 ); 602 gl->addWidget( l, i, 0 );
603 QLineEdit *e = new QLineEdit( container ); 603 QLineEdit *e = new QLineEdit( container );
diff --git a/core/pim/addressbook/opie-addressbook.control b/core/pim/addressbook/opie-addressbook.control
index f06fa91..d949bd4 100644
--- a/core/pim/addressbook/opie-addressbook.control
+++ b/core/pim/addressbook/opie-addressbook.control
@@ -1,11 +1,11 @@
1Package: opie-addressbook 1Package: opie-addressbook
2Files: bin/addressbook apps/1Pim/addressbook.desktop pics/addressbook/*.png 2Files: bin/addressbook apps/1Pim/addressbook.desktop
3Priority: optional 3Priority: optional
4Section: opie/applications 4Section: opie/applications
5Conflicts: qpe-tkcaddressbook 5Conflicts: qpe-tkcaddressbook
6Maintainer: Stefan Eilers <eilers.stefan@epost.de> 6Maintainer: Stefan Eilers <eilers.stefan@epost.de>
7Architecture: arm 7Architecture: arm
8Version: $QPE_VERSION-$SUB_VERSION 8Depends: task-opie-minimal, libopie1, opie-pics
9Depends: task-opie-minimal, libopie1
10Description: Contacts 9Description: Contacts
11 A simple addressbook for the Opie environment. 10 A simple addressbook for the Opie environment.
11Version: $QPE_VERSION$EXTRAVERSION
diff --git a/core/pim/addressbook/version.h b/core/pim/addressbook/version.h
index 4c93584..9621826 100644
--- a/core/pim/addressbook/version.h
+++ b/core/pim/addressbook/version.h
@@ -1,9 +1,9 @@
1#ifndef _VERSION_H_ 1#ifndef _VERSION_H_
2#define _VERSION_H_ 2#define _VERSION_H_
3 3
4#define MAINVERSION "0" 4#define MAINVERSION "1"
5#define SUBVERSION "9" 5#define SUBVERSION "0"
6#define PATCHVERSION "5" 6#define PATCHVERSION "0"
7 7
8#define APPNAME "OPIE_ADDRESSBOOK" 8#define APPNAME "OPIE_ADDRESSBOOK"
9 9