author | drw <drw> | 2004-04-02 20:16:47 (UTC) |
---|---|---|
committer | drw <drw> | 2004-04-02 20:16:47 (UTC) |
commit | b4d07df7854800fd3613034f54488c6fa27d94ee (patch) (unidiff) | |
tree | e467a97fe4fe9dd0d96dd22299195dd30227bef1 /core/pim/addressbook/contacteditor.cpp | |
parent | 97bdc55663590ba430a4f322ad97aab9f4c02bf3 (diff) | |
download | opie-b4d07df7854800fd3613034f54488c6fa27d94ee.zip opie-b4d07df7854800fd3613034f54488c6fa27d94ee.tar.gz opie-b4d07df7854800fd3613034f54488c6fa27d94ee.tar.bz2 |
Use ODebug (135 down...), and remove libopiedb2 from dependencies
Diffstat (limited to 'core/pim/addressbook/contacteditor.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/addressbook/contacteditor.cpp | 82 |
1 files changed, 43 insertions, 39 deletions
diff --git a/core/pim/addressbook/contacteditor.cpp b/core/pim/addressbook/contacteditor.cpp index 534666d..e496387 100644 --- a/core/pim/addressbook/contacteditor.cpp +++ b/core/pim/addressbook/contacteditor.cpp | |||
@@ -23,2 +23,3 @@ | |||
23 | 23 | ||
24 | #include <opie2/odebug.h> | ||
24 | #include <opie2/opimcontact.h> | 25 | #include <opie2/opimcontact.h> |
@@ -79,3 +80,3 @@ ContactEditor::~ContactEditor() { | |||
79 | void ContactEditor::init() { | 80 | void ContactEditor::init() { |
80 | qWarning("init() START"); | 81 | Opie::Core::owarn << "init() START" << oendl; |
81 | 82 | ||
@@ -688,3 +689,3 @@ void ContactEditor::init() { | |||
688 | 689 | ||
689 | qWarning("init() END"); | 690 | Opie::Core::owarn << "init() END" << oendl; |
690 | } | 691 | } |
@@ -692,3 +693,3 @@ void ContactEditor::init() { | |||
692 | void ContactEditor::defaultEmailChanged(int i){ | 693 | void ContactEditor::defaultEmailChanged(int i){ |
693 | qDebug("defaultEmailChanged"); | 694 | Opie::Core::odebug << "defaultEmailChanged" << oendl; |
694 | 695 | ||
@@ -699,3 +700,3 @@ void ContactEditor::defaultEmailChanged(int i){ | |||
699 | defaultEmail = cmbDefaultEmail->text(i); | 700 | defaultEmail = cmbDefaultEmail->text(i); |
700 | qDebug ("Changed to: %s", defaultEmail.latin1()); | 701 | Opie::Core::odebug << "Changed to: " << defaultEmail << oendl; |
701 | 702 | ||
@@ -718,4 +719,4 @@ void ContactEditor::populateDefaultEmailCmb(){ | |||
718 | for ( int i = 0; i < cmbDefaultEmail->count(); i++){ | 719 | for ( int i = 0; i < cmbDefaultEmail->count(); i++){ |
719 | qDebug(" populateDefaultEmailCmb text >%s< defaultEmail >%s<", | 720 | Opie::Core::odebug << " populateDefaultEmailCmb text >" << cmbDefaultEmail->text( i ) |
720 | cmbDefaultEmail->text( i ).latin1(), defaultEmail.latin1()); | 721 | << "< defaultEmail >" << defaultEmail << "<" << oendl; |
721 | 722 | ||
@@ -723,3 +724,3 @@ void ContactEditor::populateDefaultEmailCmb(){ | |||
723 | cmbDefaultEmail->setCurrentItem( i ); | 724 | cmbDefaultEmail->setCurrentItem( i ); |
724 | qDebug("set"); | 725 | Opie::Core::odebug << "set" << oendl; |
725 | found = true; | 726 | found = true; |
@@ -739,3 +740,4 @@ bool ContactEditor::cmbChooserChange( int index, QWidgetStack* inputStack, int w | |||
739 | QString type = slChooserNames[index]; | 740 | QString type = slChooserNames[index]; |
740 | qWarning("ContactEditor::cmbChooserChange -> Type: %s, WidgetPos: %d", type.latin1(), widgetPos ); | 741 | Opie::Core::owarn << "ContactEditor::cmbChooserChange -> Type: " << type |
742 | << ", WidgetPos: " << widgetPos << oendl; | ||
741 | 743 | ||
@@ -746,3 +748,4 @@ bool ContactEditor::cmbChooserChange( int index, QWidgetStack* inputStack, int w | |||
746 | if ( type == "Default Email"){ | 748 | if ( type == "Default Email"){ |
747 | qWarning("Choosing default-email (defaultEmailChooserPosition= %d) ", defaultEmailChooserPosition); | 749 | Opie::Core::owarn << "Choosing default-email (defaultEmailChooserPosition= " |
750 | << defaultEmailChooserPosition << ") " << oendl; | ||
748 | 751 | ||
@@ -779,3 +782,3 @@ bool ContactEditor::cmbChooserChange( int index, QWidgetStack* inputStack, int w | |||
779 | // Something else was selected: Hide combo.. | 782 | // Something else was selected: Hide combo.. |
780 | qWarning(" Hiding default-email combo" ); | 783 | Opie::Core::owarn << " Hiding default-email combo" << oendl; |
781 | if ( defaultEmailChooserPosition == widgetPos ){ | 784 | if ( defaultEmailChooserPosition == widgetPos ){ |
@@ -804,3 +807,3 @@ void ContactEditor::chooserError( int index ) | |||
804 | { | 807 | { |
805 | qWarning("ContactEditor::chooserError( %d )", index); | 808 | Opie::Core::owarn << "ContactEditor::chooserError( " << index << " )" << oendl; |
806 | QMessageBox::warning( this, "Chooser Error", | 809 | QMessageBox::warning( this, "Chooser Error", |
@@ -840,7 +843,8 @@ void ContactEditor::chooserChange( const QString &textChanged, int index, | |||
840 | QString type = slChooserNames[index]; // :SX | 843 | QString type = slChooserNames[index]; // :SX |
841 | qDebug("ContactEditor::chooserChange( type=>%s<, textChanged=>%s< index=%i, widgetPos=%i", | 844 | Opie::Core::odebug << "ContactEditor::chooserChange( type=>" << type << "<, textChanged=>" |
842 | type.latin1(),textChanged.latin1(), index, widgetPos ); | 845 | << textChanged << "< index=" << index << ", widgetPos=" << widgetPos |
846 | << " )" << oendl; | ||
843 | 847 | ||
844 | if ( type == "Default Email"){ | 848 | if ( type == "Default Email"){ |
845 | qWarning ("??? Wozu??: %s", textChanged.latin1()); | 849 | Opie::Core::owarn << "??? Wozu??: " << textChanged << oendl; |
846 | defaultEmail = textChanged; | 850 | defaultEmail = textChanged; |
@@ -850,3 +854,3 @@ void ContactEditor::chooserChange( const QString &textChanged, int index, | |||
850 | }else if (type == "Emails"){ | 854 | }else if (type == "Emails"){ |
851 | qDebug("emails"); | 855 | Opie::Core::odebug << "emails" << oendl; |
852 | 856 | ||
@@ -863,3 +867,3 @@ void ContactEditor::chooserChange( const QString &textChanged, int index, | |||
863 | void ContactEditor::slotChooser1Change( const QString &textChanged ) { | 867 | void ContactEditor::slotChooser1Change( const QString &textChanged ) { |
864 | qWarning("ContactEditor::slotChooser1Change( %s )", textChanged.latin1()); | 868 | Opie::Core::owarn << "ContactEditor::slotChooser1Change( " << textChanged << " )" << oendl; |
865 | chooserChange( textChanged, cmbChooserField1->currentItem(), txtChooserField1, 1); | 869 | chooserChange( textChanged, cmbChooserField1->currentItem(), txtChooserField1, 1); |
@@ -868,3 +872,3 @@ void ContactEditor::slotChooser1Change( const QString &textChanged ) { | |||
868 | void ContactEditor::slotChooser2Change( const QString &textChanged ) { | 872 | void ContactEditor::slotChooser2Change( const QString &textChanged ) { |
869 | qWarning("ContactEditor::slotChooser2Change( %s )", textChanged.latin1()); | 873 | Opie::Core::owarn << "ContactEditor::slotChooser2Change( " << textChanged << " )" << oendl; |
870 | chooserChange( textChanged, cmbChooserField2->currentItem(), txtChooserField2, 2); | 874 | chooserChange( textChanged, cmbChooserField2->currentItem(), txtChooserField2, 2); |
@@ -874,3 +878,3 @@ void ContactEditor::slotChooser2Change( const QString &textChanged ) { | |||
874 | void ContactEditor::slotChooser3Change( const QString &textChanged ) { | 878 | void ContactEditor::slotChooser3Change( const QString &textChanged ) { |
875 | qWarning("ContactEditor::slotChooser3Change( %s )", textChanged.latin1()); | 879 | Opie::Core::owarn << "ContactEditor::slotChooser3Change( " << textChanged << " )" << oendl; |
876 | chooserChange( textChanged, cmbChooserField3->currentItem(), txtChooserField3, 3); | 880 | chooserChange( textChanged, cmbChooserField3->currentItem(), txtChooserField3, 3); |
@@ -879,3 +883,3 @@ void ContactEditor::slotChooser3Change( const QString &textChanged ) { | |||
879 | void ContactEditor::slotChooser4Change( const QString &textChanged ) { | 883 | void ContactEditor::slotChooser4Change( const QString &textChanged ) { |
880 | qWarning("ContactEditor::slotChooser4Change( %s )", textChanged.latin1()); | 884 | Opie::Core::owarn << "ContactEditor::slotChooser4Change( " << textChanged << " )" << oendl; |
881 | chooserChange( textChanged, cmbChooserField4->currentItem(), txtChooserField4, 4); | 885 | chooserChange( textChanged, cmbChooserField4->currentItem(), txtChooserField4, 4); |
@@ -949,3 +953,3 @@ void ContactEditor::slotCountryChange( const QString &textChanged ) { | |||
949 | void ContactEditor::slotCmbChooser1Change( int index ) { | 953 | void ContactEditor::slotCmbChooser1Change( int index ) { |
950 | qWarning("ContactEditor::slotCmbChooser1Change( %d )", index); | 954 | Opie::Core::owarn << "ContactEditor::slotCmbChooser1Change( " << index << " )" << oendl; |
951 | if ( !cmbChooserChange( cmbChooserField1->currentItem(), m_widgetStack1, 1) ){ | 955 | if ( !cmbChooserChange( cmbChooserField1->currentItem(), m_widgetStack1, 1) ){ |
@@ -960,3 +964,3 @@ void ContactEditor::slotCmbChooser1Change( int index ) { | |||
960 | void ContactEditor::slotCmbChooser2Change( int index ) { | 964 | void ContactEditor::slotCmbChooser2Change( int index ) { |
961 | qWarning("ContactEditor::slotCmbChooser2Change( %d )", index); | 965 | Opie::Core::owarn << "ContactEditor::slotCmbChooser2Change( " << index << " )" << oendl; |
962 | 966 | ||
@@ -971,3 +975,3 @@ void ContactEditor::slotCmbChooser2Change( int index ) { | |||
971 | void ContactEditor::slotCmbChooser3Change( int index ) { | 975 | void ContactEditor::slotCmbChooser3Change( int index ) { |
972 | qWarning("ContactEditor::slotCmbChooser3Change( %d )", index); | 976 | Opie::Core::owarn << "ContactEditor::slotCmbChooser3Change( " << index << " )" << oendl; |
973 | 977 | ||
@@ -982,3 +986,3 @@ void ContactEditor::slotCmbChooser3Change( int index ) { | |||
982 | void ContactEditor::slotCmbChooser4Change( int index ) { | 986 | void ContactEditor::slotCmbChooser4Change( int index ) { |
983 | qWarning("ContactEditor::slotCmbChooser4Change( %d )", index); | 987 | Opie::Core::owarn << "ContactEditor::slotCmbChooser4Change( " << index << " )" << oendl; |
984 | 988 | ||
@@ -1027,3 +1031,3 @@ void ContactEditor::slotFullNameChange( const QString &textChanged ) { | |||
1027 | 1031 | ||
1028 | qWarning( "ContactEditor::slotFullNameChange( %s )", textChanged.latin1() ); | 1032 | Opie::Core::owarn << "ContactEditor::slotFullNameChange( " << textChanged << " )" << oendl; |
1029 | 1033 | ||
@@ -1051,3 +1055,3 @@ void ContactEditor::slotSuffixChange( const QString& ) { | |||
1051 | void ContactEditor::slotOrganizationChange( const QString &textChanged ){ | 1055 | void ContactEditor::slotOrganizationChange( const QString &textChanged ){ |
1052 | qWarning( "ContactEditor::slotOrganizationChange( %s )", textChanged.latin1() ); | 1056 | Opie::Core::owarn << "ContactEditor::slotOrganizationChange( " << textChanged << " )" << oendl; |
1053 | // Special handling for storing Companies: | 1057 | // Special handling for storing Companies: |
@@ -1133,3 +1137,3 @@ QString ContactEditor::parseName( const QString fullName, int type ) { | |||
1133 | 1137 | ||
1134 | qWarning("Fullname: %s", simplifiedName.latin1()); | 1138 | Opie::Core::owarn << "Fullname: " << simplifiedName << oendl; |
1135 | 1139 | ||
@@ -1137,3 +1141,3 @@ QString ContactEditor::parseName( const QString fullName, int type ) { | |||
1137 | if ( commapos >= 0 ) { | 1141 | if ( commapos >= 0 ) { |
1138 | qWarning(" Commapos: %d", commapos ); | 1142 | Opie::Core::owarn << " Commapos: " << commapos << oendl; |
1139 | 1143 | ||
@@ -1146,3 +1150,3 @@ QString ContactEditor::parseName( const QString fullName, int type ) { | |||
1146 | haveLastName = true; | 1150 | haveLastName = true; |
1147 | qWarning("Fullname without ',': %s", simplifiedName.latin1()); | 1151 | Opie::Core::owarn << "Fullname without ',': " << simplifiedName << oendl; |
1148 | 1152 | ||
@@ -1180,6 +1184,6 @@ QString ContactEditor::parseName( const QString fullName, int type ) { | |||
1180 | 1184 | ||
1181 | qWarning(" strFirstName: %s", strFirstName.latin1()); | 1185 | Opie::Core::owarn << "strFirstName: " << strFirstName << oendl; |
1182 | qWarning(" strMiddleName: %s", strMiddleName.latin1()); | 1186 | Opie::Core::owarn << "strMiddletName: " << strMiddleName << oendl; |
1183 | qWarning(" strLastName: %s", strLastName.latin1()); | 1187 | Opie::Core::owarn << "strLastName: " << strLastName << oendl; |
1184 | qWarning(" strTitle: %s", strTitle.latin1()); | 1188 | Opie::Core::owarn << "strTitle: " << strTitle << oendl; |
1185 | 1189 | ||
@@ -1266,3 +1270,3 @@ void ContactEditor::setEntry( const Opie::OPimContact &entry ) { | |||
1266 | if (defaultEmail.isEmpty()) defaultEmail = emails[0]; | 1270 | if (defaultEmail.isEmpty()) defaultEmail = emails[0]; |
1267 | qDebug("default email=%s",defaultEmail.latin1()); | 1271 | Opie::Core::odebug << "default email=" << defaultEmail << oendl; |
1268 | 1272 | ||
@@ -1326,3 +1330,3 @@ void ContactEditor::setEntry( const Opie::OPimContact &entry ) { | |||
1326 | 1330 | ||
1327 | qWarning(" Filling dynamic Field: %s", (*it).latin1() ); | 1331 | Opie::Core::owarn << " Filling dynamic Field: " << (*it) << oendl; |
1328 | 1332 | ||
@@ -1350,3 +1354,3 @@ void ContactEditor::setEntry( const Opie::OPimContact &entry ) { | |||
1350 | if ( *it == "Nickname" ){ | 1354 | if ( *it == "Nickname" ){ |
1351 | qWarning("**** Nichname: %s", ent.nickname().latin1() ); | 1355 | Opie::Core::owarn << "**** Nichname: " << ent.nickname() << oendl; |
1352 | (*itLE)->setText( ent.nickname() ); | 1356 | (*itLE)->setText( ent.nickname() ); |
@@ -1583,4 +1587,4 @@ void ContactEditor::saveEntry() { | |||
1583 | if ( defaultEmail.isEmpty() ){ | 1587 | if ( defaultEmail.isEmpty() ){ |
1584 | qWarning("Default email was not set by user!"); | 1588 | Opie::Core::owarn << "Default email was not set by user!" << oendl; |
1585 | qWarning("Using first email in list: %s", defaultmail.latin1()); | 1589 | Opie::Core::owarn << "Using first email in list: " << defaultmail << oendl; |
1586 | ent.setDefaultEmail( defaultmail ); | 1590 | ent.setDefaultEmail( defaultmail ); |
@@ -1736,3 +1740,3 @@ void ContactEditor::slotRemoveBirthday() | |||
1736 | { | 1740 | { |
1737 | qWarning("void ContactEditor::slotRemoveBirthday()"); | 1741 | Opie::Core::owarn << "void ContactEditor::slotRemoveBirthday()" << oendl; |
1738 | ent.setBirthday( QDate() ); | 1742 | ent.setBirthday( QDate() ); |
@@ -1743,3 +1747,3 @@ void ContactEditor::slotRemoveAnniversary() | |||
1743 | { | 1747 | { |
1744 | qWarning("void ContactEditor::slotRemoveAnniversary()"); | 1748 | Opie::Core::owarn << "void ContactEditor::slotRemoveAnniversary()" << oendl; |
1745 | ent.setAnniversary( QDate() ); | 1749 | ent.setAnniversary( QDate() ); |