summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/addressbook/ablabel.cpp18
-rw-r--r--core/pim/addressbook/abtable.cpp57
-rw-r--r--core/pim/addressbook/abview.cpp61
-rw-r--r--core/pim/addressbook/addressbook.cpp67
-rw-r--r--core/pim/addressbook/configdlg.cpp11
-rw-r--r--core/pim/addressbook/contacteditor.cpp82
-rw-r--r--core/pim/addressbook/opie-addressbook.control2
-rw-r--r--core/pim/addressbook/picker.cpp28
8 files changed, 170 insertions, 156 deletions
diff --git a/core/pim/addressbook/ablabel.cpp b/core/pim/addressbook/ablabel.cpp
index 70a66a0..8216d6f 100644
--- a/core/pim/addressbook/ablabel.cpp
+++ b/core/pim/addressbook/ablabel.cpp
@@ -22,3 +22,3 @@
22 22
23 23#include <opie2/odebug.h>
24 24
@@ -97,7 +97,7 @@ void AbLabel::keyPressEvent( QKeyEvent *e )
97 case Qt::Key_Left: 97 case Qt::Key_Left:
98 qWarning( "Left.."); 98 Opie::Core::owarn << "Left.." << oendl;
99 case Qt::Key_Right: 99 case Qt::Key_Right:
100 qWarning( "Right.."); 100 Opie::Core::owarn << "Right.." << oendl;
101 case Qt::Key_F33: 101 case Qt::Key_F33:
102 qWarning( "OK.."); 102 Opie::Core::owarn << "OK.." << oendl;
103 emit signalOkPressed(); 103 emit signalOkPressed();
@@ -105,3 +105,3 @@ void AbLabel::keyPressEvent( QKeyEvent *e )
105 case Qt::Key_Up: 105 case Qt::Key_Up:
106 qWarning( "UP.."); 106 Opie::Core::owarn << "Up.." << oendl;
107 if ( ( visibleHeight() < contentsHeight() ) && 107 if ( ( visibleHeight() < contentsHeight() ) &&
@@ -119,6 +119,6 @@ void AbLabel::keyPressEvent( QKeyEvent *e )
119 case Qt::Key_Down: 119 case Qt::Key_Down:
120 qWarning( "DOWN.."); 120 Opie::Core::owarn << "Down.." << oendl;
121 // qWarning( "visible: %d, content: %d",visibleHeight(),contentsHeight()); 121 // Opie::Core::owarn << "Visible: " << visibleHeight() << ", content: " << contentHeight() << oendl;
122 // qWarning( "value: %d; barMaxValue: %d", verticalScrollBar()->value() 122 // Opie::Core::owarn << "Value: " << verticalScrollBar()->value()
123 // , verticalScrollBar()->maxValue() ); 123 // << ", barMaxValue: " << verticalScrollBar()->maxValue() << oendl;
124 if ( ( visibleHeight() < contentsHeight() ) && 124 if ( ( visibleHeight() < contentsHeight() ) &&
diff --git a/core/pim/addressbook/abtable.cpp b/core/pim/addressbook/abtable.cpp
index cd77b13..cb57342 100644
--- a/core/pim/addressbook/abtable.cpp
+++ b/core/pim/addressbook/abtable.cpp
@@ -21,3 +21,3 @@
21 21
22 22#include <opie2/odebug.h>
23#include <opie2/opimrecordlist.h> 23#include <opie2/opimrecordlist.h>
@@ -123,4 +123,3 @@ AbTable::AbTable( const QValueList<int> order, QWidget *parent, const char *name
123{ 123{
124 //qWarning("C'tor start"); 124 //Opie::Core::owarn << "C'tor start" << oendl;
125
126 setSelectionMode( NoSelection ); 125 setSelectionMode( NoSelection );
@@ -132,3 +131,3 @@ AbTable::AbTable( const QValueList<int> order, QWidget *parent, const char *name
132 // contactList.clear(); 131 // contactList.clear();
133 //qWarning("C'tor end"); 132 //Opie::Core::owarn << "C'tor end" << oendl;
134} 133}
@@ -154,3 +153,3 @@ void AbTable::setContacts( const Opie::OPimContactAccess::List& viewList )
154{ 153{
155 qWarning("AbTable::setContacts()"); 154 Opie::Core::owarn << "AbTable::setContacts()" << oendl;
156 155
@@ -186,3 +185,3 @@ bool AbTable::selectContact( int UID )
186{ 185{
187 qWarning( "AbTable::selectContact( %d )", UID ); 186 Opie::Core::owarn << "AbTable::selectContact( " << UID << " )" << oendl;
188 int rows = numRows(); 187 int rows = numRows();
@@ -192,3 +191,3 @@ bool AbTable::selectContact( int UID )
192 setPaintingEnabled( FALSE ); 191 setPaintingEnabled( FALSE );
193 qWarning( "search start" ); 192 Opie::Core::owarn << "Search start" << oendl;
194 for ( int r = 0; r < rows; ++r ) { 193 for ( int r = 0; r < rows; ++r ) {
@@ -201,3 +200,3 @@ bool AbTable::selectContact( int UID )
201 } 200 }
202 qWarning( "search end" ); 201 Opie::Core::owarn << "Search end" << oendl;
203 202
@@ -216,3 +215,4 @@ void AbTable::insertIntoTable( const Opie::OPimContact& cnt, int row )
216{ 215{
217 qWarning( "void AbTable::insertIntoTable( const Opie::OPimContact& cnt, %d )", row ); 216 Opie::Core::owarn << "void AbTable::insertIntoTable( const Opie::OPimContact& cnt, "
217 << row << " )" << oendl;
218 QString strName; 218 QString strName;
@@ -259,3 +259,3 @@ void AbTable::resort()
259{ 259{
260 qWarning( "void AbTable::resort() NOT POSSIBLE !!" ); 260 Opie::Core::owarn << "void AbTable::resort() NOT POSSIBLE !!" << oendl;
261#if 0 261#if 0
@@ -285,3 +285,3 @@ void AbTable::clear()
285{ 285{
286 qWarning( "void AbTable::clear()" ); 286 Opie::Core::owarn << "void AbTable::clear()" << oendl;
287 // contactList.clear(); 287 // contactList.clear();
@@ -303,3 +303,3 @@ void AbTable::refresh()
303{ 303{
304 qWarning( "void AbTable::refresh() NOT IMPLEMENTED !!" ); 304 Opie::Core::owarn << "void AbTable::refresh() NOT IMPLEMENTED !!" << oendl;
305 305
@@ -336,3 +336,3 @@ void AbTable::keyPressEvent( QKeyEvent *e )
336 336
337 //qWarning("Received key .."); 337 // Opie::Core::owarn << "Received key .." << oendl;
338 switch( e->key() ) { 338 switch( e->key() ) {
@@ -344,3 +344,3 @@ void AbTable::keyPressEvent( QKeyEvent *e )
344 // case Qt::Key_Up: 344 // case Qt::Key_Up:
345 // qWarning("a"); 345 // Opie::Core::owarn << "a" << oendl;
346 // emit signalKeyUp(); 346 // emit signalKeyUp();
@@ -348,3 +348,3 @@ void AbTable::keyPressEvent( QKeyEvent *e )
348 // case Qt::Key_Down: 348 // case Qt::Key_Down:
349 // qWarning("b"); 349 // Opie::Core::owarn << "b" << oendl;
350 // emit signalKeyDown(); 350 // emit signalKeyDown();
@@ -359,3 +359,3 @@ void AbTable::moveTo( char c )
359{ 359{
360 qWarning( "void AbTable::moveTo( char c ) NOT IMPLEMENTED !!" ); 360 Opie::Core::owarn << "void AbTable::moveTo( char c ) NOT IMPLEMENTED !!" << oendl;
361 361
@@ -425,3 +425,3 @@ void AbTable::realignTable()
425{ 425{
426 //qWarning( "void AbTable::realignTable()" ); 426 //Opie::Core::owarn << "void AbTable::realignTable()" << oendl;
427 427
@@ -475,3 +475,3 @@ void AbTable::fitColumns()
475{ 475{
476 qWarning( "void AbTable::fitColumns()" ); 476 Opie::Core::owarn << "void AbTable::fitColumns()" << oendl;
477 int contentsWidth = visibleWidth() / 2; 477 int contentsWidth = visibleWidth() / 2;
@@ -487,3 +487,3 @@ void AbTable::fitColumns()
487 487
488 //qWarning("Width: %d", contentsWidth); 488 //Opie::Core::owarn << "Width: " << contentsWidth << oendl;
489 489
@@ -499,3 +499,3 @@ void AbTable::show()
499{ 499{
500 //qWarning( "void AbTable::show()" ); 500 //Opie::Core::owarn << "void AbTable::show()" << oendl;
501 realignTable(); 501 realignTable();
@@ -523,3 +523,3 @@ void AbTable::itemClicked(int,int col)
523{ 523{
524 //qWarning( "AbTable::itemClicked(int, col:%d)", col); 524 //Opie::Core::owarn << "AbTable::itemClicked(int, col: " << col << ")" << oendl;
525 if ( col == 2 ) { 525 if ( col == 2 ) {
@@ -527,3 +527,3 @@ void AbTable::itemClicked(int,int col)
527 } else { 527 } else {
528 // qWarning ("Emitting signalSwitch()"); 528 //Opie::Core::owarn << "Emitting signalSwitch()" << oendl;
529 emit signalSwitch(); 529 emit signalSwitch();
@@ -564,3 +564,3 @@ void AbTable::updateVisible()
564{ 564{
565 //qWarning("void AbTable::updateVisible()"); 565 //Opie::Core::owarn << "void AbTable::updateVisible()" << oendl;
566 566
@@ -600,3 +600,4 @@ void AbTable::setPaintingEnabled( bool e )
600{ 600{
601 //qWarning("IN void AbTable::setPaintingEnabled( %d )->Nested: %d", e, countNested ); 601 //Opie::Core::owarn << "IN void AbTable::setPaintingEnabled( " << e << " )->Nested: "
602 // << countNested << oendl;
602 603
@@ -616,3 +617,4 @@ void AbTable::setPaintingEnabled( bool e )
616 } 617 }
617 //qWarning("OUT void AbTable::setPaintingEnabled( %d )->Nested: %d", e, countNested ); 618 //Opie::Core::owarn << "OUT void AbTable::setPaintingEnabled( " << e << " )->Nested: "
619 // << countNested << oendl;
618} 620}
@@ -620,3 +622,4 @@ void AbTable::setPaintingEnabled( bool e )
620void AbTable::viewportPaintEvent( QPaintEvent* e ) { 622void AbTable::viewportPaintEvent( QPaintEvent* e ) {
621 //qWarning(" void AbTable::viewportPaintEvent( QPaintEvent* e ) -> %d", enablePainting); 623 //Opie::Core::owarn << "void AbTable::viewportPaintEvent( QPaintEvent* e ) -> "
624 // << enablePainting << oendl;
622 if ( enablePainting ) 625 if ( enablePainting )
@@ -630,3 +633,3 @@ void AbTable::paintCell(QPainter* p, int row, int col, const QRect& cr, bool )
630 633
631 //qWarning( "Paint row: %d", row ); 634 //Opie::Core::owarn << "Paint row: " << row << oendl;
632 635
diff --git a/core/pim/addressbook/abview.cpp b/core/pim/addressbook/abview.cpp
index aa242b7..52e5f59 100644
--- a/core/pim/addressbook/abview.cpp
+++ b/core/pim/addressbook/abview.cpp
@@ -19,2 +19,3 @@
19#include <opie2/ocontactaccessbackend_vcard.h> 19#include <opie2/ocontactaccessbackend_vcard.h>
20#include <opie2/odebug.h>
20 21
@@ -53,3 +54,3 @@ AbView::AbView ( QWidget* parent, const QValueList<int>& ordered ):
53{ 54{
54 qWarning("AbView::c'tor"); 55 Opie::Core::owarn << "AbView::c'tor" << oendl;
55 // Load default database and handle syncing myself.. ! 56 // Load default database and handle syncing myself.. !
@@ -101,3 +102,3 @@ void AbView::setView( Views view )
101{ 102{
102 qWarning("AbView::setView( Views view )"); 103 Opie::Core::owarn << "AbView::setView( Views view )" << oendl;
103 m_curr_View = view; 104 m_curr_View = view;
@@ -108,3 +109,3 @@ void AbView::addEntry( const Opie::OPimContact &newContact )
108{ 109{
109 qWarning("abview:AddContact"); 110 Opie::Core::owarn << "AbView::AddContact" << oendl;
110 m_contactdb->add ( newContact ); 111 m_contactdb->add ( newContact );
@@ -115,3 +116,3 @@ void AbView::removeEntry( const int UID )
115{ 116{
116 qWarning("abview:RemoveContact"); 117 Opie::Core::owarn << "AbView;:RemoveContact" << oendl;
117 m_contactdb->remove( UID ); 118 m_contactdb->remove( UID );
@@ -122,3 +123,3 @@ void AbView::replaceEntry( const Opie::OPimContact &contact )
122{ 123{
123 qWarning("abview:ReplaceContact"); 124 Opie::Core::owarn << "AbView::ReplaceContact" << oendl;
124 m_contactdb->replace( contact ); 125 m_contactdb->replace( contact );
@@ -146,3 +147,3 @@ bool AbView::save()
146{ 147{
147 //qWarning("abView:Save data"); 148 //Opie::Core::owarn << "AbView::Save data" << oendl;
148 149
@@ -153,3 +154,3 @@ void AbView::load()
153{ 154{
154 qWarning("abView:Load data"); 155 Opie::Core::owarn << "AbView::Load data" << oendl;
155 156
@@ -167,3 +168,3 @@ void AbView::load()
167 168
168 qWarning ("Number of contacts: %d", m_list.count()); 169 Opie::Core::owarn << "Number of contacts: " << m_list.count() << oendl;
169 170
@@ -175,3 +176,3 @@ void AbView::reload()
175{ 176{
176 qWarning( "void AbView::reload()" ); 177 Opie::Core::owarn << "AbView::::reload()" << oendl;
177 178
@@ -188,3 +189,3 @@ void AbView::setShowByCategory( const QString& cat )
188{ 189{
189 qWarning("AbView::setShowCategory( const QString& cat )"); 190 Opie::Core::owarn << "AbView::setShowCategory( const QString& cat )" << oendl;
190 191
@@ -200,3 +201,4 @@ void AbView::setShowByCategory( const QString& cat )
200 if ( intCat != m_curr_category ){ 201 if ( intCat != m_curr_category ){
201 // qWarning ("Categories: Selected %s.. Number: %d", cat.latin1(), m_curr_category); 202 // Opie::Core::owarn << "Categories: Selected " << cat << ".. Number: "
203 // << m_curr_category << oendl;
202 204
@@ -212,6 +214,6 @@ void AbView::setShowToView( Views view )
212{ 214{
213 qWarning("void AbView::setShowToView( View %d )", view); 215 Opie::Core::owarn << "void AbView::setShowToView( View " << view << " )" << oendl;
214 216
215 if ( m_curr_View != view ){ 217 if ( m_curr_View != view ){
216 qWarning ("Change the View (Category is: %d)", m_curr_category); 218 Opie::Core::owarn << "Change the View (Category is: " << m_curr_category << ")" << oendl;
217 m_prev_View = m_curr_View; 219 m_prev_View = m_curr_View;
@@ -226,3 +228,3 @@ void AbView::setShowByLetter( char c, AbConfig::LPSearchMode mode )
226{ 228{
227 qWarning("void AbView::setShowByLetter( %c, %d )", c, mode ); 229 Opie::Core::owarn << "void AbView::setShowByLetter( " << c << ", " << mode << " )" << oendl;
228 230
@@ -249,4 +251,4 @@ void AbView::setShowByLetter( char c, AbConfig::LPSearchMode mode )
249 default: 251 default:
250 qWarning( "Unknown Searchmode for AbView::setShowByLetter ! -> %d", mode ); 252 Opie::Core::owarn << "Unknown Searchmode for AbView::setShowByLetter ! -> " << mode << oendl
251 qWarning( "I will ignore it.." ); 253 << "I will ignore it.." << oendl;
252 return; 254 return;
@@ -279,3 +281,3 @@ void AbView::showPersonal( bool personal )
279{ 281{
280 qWarning ("void AbView::showPersonal( %d )", personal); 282 Opie::Core::owarn << "void AbView::showPersonal( " << personal << " )" << oendl;
281 283
@@ -335,3 +337,3 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp,
335{ 337{
336 //qWarning( "void AbView::slotDoFind" ); 338 //Opie::Core::owarn << "void AbView::slotDoFind" << oendl;
337 339
@@ -349,3 +351,3 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp,
349 351
350 //qWarning ("Find in Category %d", category); 352 //Opie::Core::owarn << "Find in Category " << category << oendl;
351 353
@@ -358,3 +360,3 @@ void AbView::slotDoFind( const QString &str, bool caseSensitive, bool useRegExp,
358 360
359 //qWarning( "found: %d", m_list.count() ); 361 //Opie::Core::owarn << "Found: " << m_list.count() << oendl;
360 if ( m_list.count() == 0 ){ 362 if ( m_list.count() == 0 ){
@@ -382,3 +384,3 @@ void AbView::offSearch()
382void AbView::slotSwitch(){ 384void AbView::slotSwitch(){
383 //qWarning("AbView::slotSwitch()"); 385 //Opie::Core::owarn << "AbView::slotSwitch()" << oendl;
384 386
@@ -387,3 +389,3 @@ void AbView::slotSwitch(){
387 case TableView: 389 case TableView:
388 qWarning("Switching to CardView"); 390 Opie::Core::owarn << "Switching to CardView" << oendl;
389 m_curr_View = CardView; 391 m_curr_View = CardView;
@@ -391,3 +393,3 @@ void AbView::slotSwitch(){
391 case CardView: 393 case CardView:
392 qWarning("Switching to TableView"); 394 Opie::Core::owarn << "Switching to TableView" << oendl;
393 m_curr_View = TableView; 395 m_curr_View = TableView;
@@ -410,3 +412,3 @@ void AbView::clearForCategory()
410 if ( !contactCompare( *it, m_curr_category ) ){ 412 if ( !contactCompare( *it, m_curr_category ) ){
411 // qWarning("Removing %d", (*it).uid()); 413 //Opie::Core::owarn << "Removing " << (*it).uid() << oendl;
412 m_list.remove( (*it).uid() ); 414 m_list.remove( (*it).uid() );
@@ -420,3 +422,4 @@ bool AbView::contactCompare( const Opie::OPimContact &cnt, int category )
420{ 422{
421 //qWarning ("bool AbView::contactCompare( const Opie::OPimContact &cnt, %d )", category); 423 //Opie::Core::owarn << "bool AbView::contactCompare( const Opie::OPimContact &cnt, "
424 // << category << " )" << oendl;
422 425
@@ -426,3 +429,3 @@ bool AbView::contactCompare( const Opie::OPimContact &cnt, int category )
426 429
427 //qWarning ("Number of categories: %d", cats.count() ); 430 //Opie::Core::owarn << "Number of categories: " << cats.count() << oendl;
428 431
@@ -435,3 +438,3 @@ bool AbView::contactCompare( const Opie::OPimContact &cnt, int category )
435 for ( i = 0; i < int(cats.count()); i++ ) { 438 for ( i = 0; i < int(cats.count()); i++ ) {
436 // qWarning("Comparing %d with %d",cats[i],category ); 439 //Opie::Core::owarn << "Comparing " << cats[i] << " with " << category << oendl;
437 if ( cats[i] == category ) { 440 if ( cats[i] == category ) {
@@ -442,3 +445,3 @@ bool AbView::contactCompare( const Opie::OPimContact &cnt, int category )
442 } 445 }
443 //qWarning ("Return: %d", returnMe); 446 //Opie::Core::owarn << "Return: " << returnMe << oendl;
444 return returnMe; 447 return returnMe;
@@ -455,3 +458,3 @@ void AbView::updateView( bool newdata )
455{ 458{
456 //qWarning("AbView::updateView()"); 459 //Opie::Core::owarn << "AbView::updateView()" << oendl;
457 460
diff --git a/core/pim/addressbook/addressbook.cpp b/core/pim/addressbook/addressbook.cpp
index 9ae66d1..94c0a13 100644
--- a/core/pim/addressbook/addressbook.cpp
+++ b/core/pim/addressbook/addressbook.cpp
@@ -24,3 +24,3 @@
24 24
25 25#include <opie2/odebug.h>
26#include <opie2/ofileselector.h> 26#include <opie2/ofileselector.h>
@@ -253,3 +253,3 @@ AddressbookWindow::AddressbookWindow( QWidget *parent, const char *name,
253 253
254 // qDebug("adressbook contrsuction: t=%d", t.elapsed() ); 254 //Opie::Core::odebug << "adressbook contrsuction: t=" << t.elapsed() << oendl;
255 connect( qApp, SIGNAL( flush() ), this, SLOT( flush() ) ); 255 connect( qApp, SIGNAL( flush() ), this, SLOT( flush() ) );
@@ -269,6 +269,6 @@ void AddressbookWindow::slotConfig()
269 if ( QPEApplication::execDialog( dlg ) ) { 269 if ( QPEApplication::execDialog( dlg ) ) {
270 qWarning ("Config Dialog accepted!"); 270 Opie::Core::owarn << "Config Dialog accepted!" << oendl;
271 m_config = dlg -> getConfig(); 271 m_config = dlg -> getConfig();
272 if ( m_curFontSize != m_config.fontSize() ){ 272 if ( m_curFontSize != m_config.fontSize() ){
273 qWarning("Font was changed!"); 273 Opie::Core::owarn << "Font was changed!" << oendl;
274 m_curFontSize = m_config.fontSize(); 274 m_curFontSize = m_config.fontSize();
@@ -285,3 +285,3 @@ void AddressbookWindow::slotSetFont( int size )
285{ 285{
286 qWarning("void AddressbookWindow::slotSetFont( %d )", size); 286 Opie::Core::owarn << "void AddressbookWindow::slotSetFont( " << size << " )" << oendl;
287 287
@@ -327,6 +327,6 @@ void AddressbookWindow::exportvCard()
327{ 327{
328 qWarning(" void AddressbookWindow::exportvCard()"); 328 Opie::Core::owarn << "void AddressbookWindow::exportvCard()" << oendl;
329 QString filename = Opie::Ui::OFileDialog::getSaveFileName( 1,"/home/"); //,"", "*", this ); 329 QString filename = Opie::Ui::OFileDialog::getSaveFileName( 1,"/home/"); //,"", "*", this );
330 if( !filename.isEmpty() && ( filename[filename.length()-1] != '/' ) ){ 330 if( !filename.isEmpty() && ( filename[filename.length()-1] != '/' ) ){
331 qWarning(" Save to file %s, (%d)", filename.latin1(), filename.length()-1 ); 331 Opie::Core::owarn << " Save to file " << filename << ", (" << filename.length()-1 << ")" << oendl;
332 Opie::OPimContact curCont = m_abView->currentEntry(); 332 Opie::OPimContact curCont = m_abView->currentEntry();
@@ -352,3 +352,3 @@ void AddressbookWindow::setDocument( const QString &filename )
352{ 352{
353 qWarning( "void AddressbookWindow::setDocument( %s )", filename.latin1() ); 353 Opie::Core::owarn << "void AddressbookWindow::setDocument( " << filename << " )" << oendl;
354 354
@@ -364,6 +364,6 @@ void AddressbookWindow::setDocument( const QString &filename )
364 case 0: 364 case 0:
365 qWarning("YES clicked"); 365 Opie::Core::owarn << "YES clicked" << oendl;
366 break; 366 break;
367 case 1: 367 case 1:
368 qWarning("NO clicked"); 368 Opie::Core::owarn << "NO clicked" << oendl;
369 return; 369 return;
@@ -377,3 +377,3 @@ void AddressbookWindow::setDocument( const QString &filename )
377 Opie::OPimContactAccess::List allList = access->allRecords(); 377 Opie::OPimContactAccess::List allList = access->allRecords();
378 qWarning( "Found number of contacts in File: %d", allList.count() ); 378 Opie::Core::owarn << "Found number of contacts in File: " << allList.count() << oendl;
379 379
@@ -388,3 +388,3 @@ void AddressbookWindow::setDocument( const QString &filename )
388 for ( it = allList.begin(); it != allList.end(); ++it ){ 388 for ( it = allList.begin(); it != allList.end(); ++it ){
389 qWarning("Adding Contact from: %s", (*it).fullName().latin1() ); 389 Opie::Core::owarn << "Adding Contact from: " << (*it).fullName() << oendl;
390 if ( doAsk ){ 390 if ( doAsk ){
@@ -397,3 +397,3 @@ void AddressbookWindow::setDocument( const QString &filename )
397 case 0: 397 case 0:
398 qWarning("YES clicked"); 398 Opie::Core::owarn << "YES clicked" << oendl;
399 m_abView->addEntry( *it ); 399 m_abView->addEntry( *it );
@@ -401,6 +401,6 @@ void AddressbookWindow::setDocument( const QString &filename )
401 case 1: 401 case 1:
402 qWarning("NO clicked"); 402 Opie::Core::owarn << "NO clicked" << oendl;
403 break; 403 break;
404 case 2: 404 case 2:
405 qWarning("YesAll clicked"); 405 Opie::Core::owarn << "YesAll clicked" << oendl;
406 doAsk = false; 406 doAsk = false;
@@ -540,5 +540,5 @@ void AddressbookWindow::writeMail()
540 if ( m_config.useQtMail() ){ 540 if ( m_config.useQtMail() ){
541 qWarning ("Accessing: %s", (basepath + "/bin/qtmail").latin1()); 541 Opie::Core::owarn << "Accessing: " << (basepath + "/bin/qtmail") << oendl;
542 if ( QFile::exists( basepath + "/bin/qtmail" ) ){ 542 if ( QFile::exists( basepath + "/bin/qtmail" ) ){
543 qWarning ("QCop"); 543 Opie::Core::owarn << "QCop" << oendl;
544 QCopEnvelope e("QPE/Application/qtmail", "writeMail(QString,QString)"); 544 QCopEnvelope e("QPE/Application/qtmail", "writeMail(QString,QString)");
@@ -550,5 +550,5 @@ void AddressbookWindow::writeMail()
550 if ( m_config.useOpieMail() ){ 550 if ( m_config.useOpieMail() ){
551 qWarning ("Accessing: %s", (basepath + "/bin/opiemail").latin1()); 551 Opie::Core::owarn << "Accessing: " << (basepath + "/bin/opiemail") << oendl;
552 if ( QFile::exists( basepath + "/bin/opiemail" ) ){ 552 if ( QFile::exists( basepath + "/bin/opiemail" ) ){
553 qWarning ("QCop"); 553 Opie::Core::owarn << "QCop" << oendl;
554 QCopEnvelope e("QPE/Application/opiemail", "writeMail(QString,QString)"); 554 QCopEnvelope e("QPE/Application/opiemail", "writeMail(QString,QString)");
@@ -594,3 +594,3 @@ void AddressbookWindow::slotBeam()
594 594
595 qWarning("Beaming: %s", beamFilename.latin1() ); 595 Opie::Core::owarn << "Beaming: " << beamFilename << oendl;
596 596
@@ -641,3 +641,3 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data)
641 bool needShow = FALSE; 641 bool needShow = FALSE;
642 qWarning("Receiving QCop-Call with message %s", QString( msg ).latin1() ); 642 Opie::Core::owarn << "Receiving QCop-Call with message " << msg << oendl;
643 643
@@ -657,3 +657,3 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data)
657 parseName( name, &fn, &mn, &ln ); 657 parseName( name, &fn, &mn, &ln );
658 // qDebug( " %s - %s - %s", fn.latin1(), mn.latin1(), ln.latin1() ); 658 //Opie::Core::odebug << " " << fn << " - " << mn " - " << ln << oendl;
659 cnt.setFirstName( fn ); 659 cnt.setFirstName( fn );
@@ -684,3 +684,3 @@ void AddressbookWindow::appMessage(const QCString &msg, const QByteArray &data)
684 684
685 qWarning( "Showing uid: %d" , uid ); 685 Opie::Core::owarn << "Showing uid: " << uid << oendl;
686 686
@@ -764,3 +764,3 @@ void AddressbookWindow::editPersonal()
764 if ( ! actionPersonal->isOn() ){ 764 if ( ! actionPersonal->isOn() ){
765 qWarning("*** ++++"); 765 Opie::Core::owarn << "*** ++++" << oendl;
766 actionPersonal->setOn( true ); 766 actionPersonal->setOn( true );
@@ -783,6 +783,6 @@ void AddressbookWindow::slotPersonalView()
783{ 783{
784 qWarning("slotPersonalView()"); 784 Opie::Core::owarn << "slotPersonalView()" << oendl;
785 if (!actionPersonal->isOn()) { 785 if (!actionPersonal->isOn()) {
786 // we just turned it off 786 // we just turned it off
787 qWarning("slotPersonalView()-> OFF"); 787 Opie::Core::owarn << "slotPersonalView()-> OFF" << oendl;
788 setCaption( tr("Contacts") ); 788 setCaption( tr("Contacts") );
@@ -799,3 +799,3 @@ void AddressbookWindow::slotPersonalView()
799 799
800 qWarning("slotPersonalView()-> ON"); 800 Opie::Core::owarn << "slotPersonalView()-> ON" << oendl;
801 // XXX need to disable some QActions. 801 // XXX need to disable some QActions.
@@ -889,3 +889,3 @@ void AddressbookWindow::slotNotFound()
889{ 889{
890 qWarning("Got notfound signal!"); 890 Opie::Core::owarn << "Got not found signal!" << oendl;
891 QMessageBox::information( this, tr( "Not Found" ), 891 QMessageBox::information( this, tr( "Not Found" ),
@@ -897,3 +897,3 @@ void AddressbookWindow::slotWrapAround()
897{ 897{
898 qWarning("Got wrap signal!"); 898 Opie::Core::owarn << "Got wrap signal!" << oendl;
899 // if ( doNotifyWrapAround ) 899 // if ( doNotifyWrapAround )
@@ -906,3 +906,4 @@ void AddressbookWindow::slotSetCategory( int c )
906{ 906{
907 qWarning( "void AddressbookWindow::slotSetCategory( %d ) from %d", c, catMenu->count() ); 907 Opie::Core::owarn << "void AddressbookWindow::slotSetCategory( " << c << " ) from "
908 << catMenu->count() << oendl;
908 909
@@ -941,3 +942,3 @@ void AddressbookWindow::slotSetCategory( int c )
941 cat = "Unfiled"; 942 cat = "Unfiled";
942 qWarning ("Unfiled selected!"); 943 Opie::Core::owarn << "Unfiled selected!" << oendl;
943 }else{ 944 }else{
@@ -964,3 +965,3 @@ void AddressbookWindow::slotViewSwitched( int view )
964{ 965{
965 qWarning( "void AddressbookWindow::slotViewSwitched( %d )", view ); 966 Opie::Core::owarn << "void AddressbookWindow::slotViewSwitched( " << view << " )" << oendl;
966 int menu = 0; 967 int menu = 0;
diff --git a/core/pim/addressbook/configdlg.cpp b/core/pim/addressbook/configdlg.cpp
index 6c98b5d..094dbda 100644
--- a/core/pim/addressbook/configdlg.cpp
+++ b/core/pim/addressbook/configdlg.cpp
@@ -2,2 +2,3 @@
2 2
3#include <opie2/odebug.h>
3#include <opie2/opimcontact.h> 4#include <opie2/opimcontact.h>
@@ -44,3 +45,3 @@ void ConfigDlg::slotItemUp()
44{ 45{
45 qWarning( "void ConfigDlg::slotItemUp()" ); 46 Opie::Core::owarn << "void ConfigDlg::slotItemUp()" << oendl;
46 47
@@ -58,3 +59,3 @@ void ConfigDlg::slotItemDown()
58{ 59{
59 qWarning( "void ConfigDlg::slotItemDown()" ); 60 Opie::Core::owarn << "void ConfigDlg::slotItemDown()" << oendl;
60 61
@@ -71,3 +72,3 @@ void ConfigDlg::slotItemAdd()
71{ 72{
72 qWarning( "void ConfigDlg::slotItemAdd()" ); 73 Opie::Core::owarn << "void ConfigDlg::slotItemAdd()" << oendl;
73 74
@@ -76,3 +77,3 @@ void ConfigDlg::slotItemAdd()
76 QString item = allFieldListBox->currentText(); 77 QString item = allFieldListBox->currentText();
77 qWarning("ADding %s", item.latin1()); 78 Opie::Core::owarn << "Adding " << item << oendl;
78 fieldListBox->insertItem( item ); 79 fieldListBox->insertItem( item );
@@ -83,3 +84,3 @@ void ConfigDlg::slotItemRemove()
83{ 84{
84 qWarning( "void ConfigDlg::slotItemRemove()" ); 85 Opie::Core::owarn << "void ConfigDlg::slotItemRemove()" << oendl;
85 86
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() {
79void ContactEditor::init() { 80void 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() {
692void ContactEditor::defaultEmailChanged(int i){ 693void 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,
863void ContactEditor::slotChooser1Change( const QString &textChanged ) { 867void 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 ) {
868void ContactEditor::slotChooser2Change( const QString &textChanged ) { 872void 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 ) {
874void ContactEditor::slotChooser3Change( const QString &textChanged ) { 878void 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 ) {
879void ContactEditor::slotChooser4Change( const QString &textChanged ) { 883void 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 ) {
949void ContactEditor::slotCmbChooser1Change( int index ) { 953void 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 ) {
960void ContactEditor::slotCmbChooser2Change( int index ) { 964void 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 ) {
971void ContactEditor::slotCmbChooser3Change( int index ) { 975void 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 ) {
982void ContactEditor::slotCmbChooser4Change( int index ) { 986void 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& ) {
1051void ContactEditor::slotOrganizationChange( const QString &textChanged ){ 1055void 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() );
diff --git a/core/pim/addressbook/opie-addressbook.control b/core/pim/addressbook/opie-addressbook.control
index 18a3791..882bdf3 100644
--- a/core/pim/addressbook/opie-addressbook.control
+++ b/core/pim/addressbook/opie-addressbook.control
@@ -7,3 +7,3 @@ Maintainer: Stefan Eilers <eilers.stefan@epost.de>
7Architecture: arm 7Architecture: arm
8Depends: task-opie-minimal, opie-pics, libopiecore2, libopieui2, libopiepim2, libopiedb2 8Depends: task-opie-minimal, opie-pics, libopiecore2, libopieui2, libopiepim2
9Description: Contacts 9Description: Contacts
diff --git a/core/pim/addressbook/picker.cpp b/core/pim/addressbook/picker.cpp
index 7a20591..df3d6ac 100644
--- a/core/pim/addressbook/picker.cpp
+++ b/core/pim/addressbook/picker.cpp
@@ -2,2 +2,4 @@
2 2
3#include <opie2/odebug.h>
4
3#include <qtimer.h> 5#include <qtimer.h>
@@ -7,3 +9,3 @@ char PickerLabel::lastLetter = '\0';
7 9
8PickerLabel::PickerLabel( QWidget *parent, const char *name ) 10PickerLabel::PickerLabel( QWidget *parent, const char *name )
9 : QLabel ( parent, name ) 11 : QLabel ( parent, name )
@@ -32,3 +34,3 @@ void PickerLabel::setLetters( char ch1, char ch2, char ch3 )
32 34
33 if (ch1 != '\0') 35 if (ch1 != '\0')
34 letter1 = ch1; 36 letter1 = ch1;
@@ -37,3 +39,3 @@ void PickerLabel::setLetters( char ch1, char ch2, char ch3 )
37 39
38 if (ch2 != '\0') 40 if (ch2 != '\0')
39 letter2 = ch2; 41 letter2 = ch2;
@@ -42,3 +44,3 @@ void PickerLabel::setLetters( char ch1, char ch2, char ch3 )
42 44
43 if (ch3 != '\0') 45 if (ch3 != '\0')
44 letter3 = ch3; 46 letter3 = ch3;
@@ -63,3 +65,3 @@ void PickerLabel::clearLetter()
63 QString tmpStr; 65 QString tmpStr;
64 66
65 tmpStr = "<qt>"; 67 tmpStr = "<qt>";
@@ -78,8 +80,8 @@ void PickerLabel::mousePressEvent( QMouseEvent* e )
78{ 80{
79 // If one pickerlabel is was, and an other is now selected, we 81 // If one pickerlabel is was, and an other is now selected, we
80 // have to simulate the releaseevent.. Otherwise the new label 82 // have to simulate the releaseevent.. Otherwise the new label
81 // will not get a highlighted letter.. 83 // will not get a highlighted letter..
82 // Maybe there is a more intelligent solution, but this works and I am tired.. (se) 84 // Maybe there is a more intelligent solution, but this works and I am tired.. (se)
83 if ( ( currentLetter == 0 ) && ( lastLetter != '\0' ) ) mouseReleaseEvent( e ); 85 if ( ( currentLetter == 0 ) && ( lastLetter != '\0' ) ) mouseReleaseEvent( e );
84} 86}
85 87
@@ -91,3 +93,3 @@ void PickerLabel::mouseReleaseEvent( QMouseEvent* /* e */ )
91 QTimer::singleShot( 0, this, SLOT(emitClearSignal()) ); 93 QTimer::singleShot( 0, this, SLOT(emitClearSignal()) );
92 94
93 switch (currentLetter) { 95 switch (currentLetter) {
@@ -123,3 +125,3 @@ void PickerLabel::mouseReleaseEvent( QMouseEvent* /* e */ )
123 break; 125 break;
124 126
125 case 2: 127 case 2:
@@ -151,3 +153,3 @@ void PickerLabel::emitClearSignal() {
151} 153}
152 154
153LetterPicker::LetterPicker( QWidget *parent, const char *name ) 155LetterPicker::LetterPicker( QWidget *parent, const char *name )
@@ -159,3 +161,3 @@ LetterPicker::LetterPicker( QWidget *parent, const char *name )
159 l->addWidget( lblABC ); 161 l->addWidget( lblABC );
160 162
161 lblDEF = new PickerLabel( this ); 163 lblDEF = new PickerLabel( this );
@@ -239,3 +241,3 @@ void LetterPicker::newLetter( char letter )
239{ 241{
240 qWarning("LetterClicked"); 242 Opie::Core::owarn << "LetterClicked" << oendl;
241 emit letterClicked( letter ); 243 emit letterClicked( letter );