author | eilers <eilers> | 2002-10-16 11:11:30 (UTC) |
---|---|---|
committer | eilers <eilers> | 2002-10-16 11:11:30 (UTC) |
commit | fdc4abb0d38e6d5dce98961e47b552ff56c89976 (patch) (side-by-side diff) | |
tree | 19201b896894949c3ae62bace1b555dd96874241 /core/pim | |
parent | 2bfae6336f88a460311abaf727256c3413b27f67 (diff) | |
download | opie-fdc4abb0d38e6d5dce98961e47b552ff56c89976.zip opie-fdc4abb0d38e6d5dce98961e47b552ff56c89976.tar.gz opie-fdc4abb0d38e6d5dce98961e47b552ff56c89976.tar.bz2 |
Temporarely added save function..
-rw-r--r-- | core/pim/addressbook/addressbook.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp index 93581e8..82a1b57 100644 --- a/core/pim/addressbook/addressbook.cpp +++ b/core/pim/addressbook/addressbook.cpp @@ -59,24 +59,28 @@ #include <qwhatsthis.h> #include <stdlib.h> #include <sys/stat.h> #include <sys/types.h> #include <fcntl.h> #include <unistd.h> #include <qdatetime.h> #include "picker.h" +// Remove this for OPIE releae 1.0 ! +#define __DEBUG_RELEASE + + static QString addressbookPersonalVCardName() { QString filename = Global::applicationFileName("addressbook", "businesscard.vcf"); return filename; } AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, WFlags f ) : QMainWindow( parent, name, f ), abEditor(0), @@ -175,28 +179,37 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name, a = new QAction( tr("Import vCard"), QString::null, 0, 0, 0, TRUE ); actionPersonal = a; connect( a, SIGNAL( activated() ), this, SLOT( importvCard() ) ); a->addTo( edit ); edit->insertSeparator(); a = new QAction( tr("My Personal Details"), QString::null, 0, 0, 0, TRUE ); actionPersonal = a; connect( a, SIGNAL( activated() ), this, SLOT( slotPersonalView() ) ); a->addTo( edit ); - - a = new QAction( tr( "Arrange Edit Fields"), QString::null, 0, 0 ); - connect( a, SIGNAL( activated() ), this, SLOT( slotSettings() ) ); + // Do we need this function ? (se) +// a = new QAction( tr( "Arrange Edit Fields"), QString::null, 0, 0 ); +// connect( a, SIGNAL( activated() ), this, SLOT( slotSettings() ) ); +// a->addTo( edit ); + + +#ifdef __DEBUG_RELEASE + // Remove this function for public Release ! This is only + // for debug purposes .. + a = new QAction( tr( "Save all Data"), QString::null, 0, 0 ); + connect( a, SIGNAL( activated() ), this, SLOT( save() ) ); a->addTo( edit ); +#endif // Create Views listContainer = new QWidget( this ); QVBoxLayout *vb = new QVBoxLayout( listContainer ); abList = new AbTable( &orderedFields, listContainer, "table" ); vb->addWidget(abList); // abList->setHScrollBarMode( QScrollView::AlwaysOff ); connect( abList, SIGNAL( empty( bool ) ), this, SLOT( listIsEmpty( bool ) ) ); connect( abList, SIGNAL( details() ), this, SLOT( slotListView() ) ); connect( abList, SIGNAL(currentChanged(int,int)), this, SLOT(slotUpdateToolbar()) ); |