summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-01-26 00:32:18 (UTC)
committer zautrix <zautrix>2005-01-26 00:32:18 (UTC)
commitc3ec0a5a43fb328f2d190b8adee1ef662746fb41 (patch) (side-by-side diff)
treedd34f587205f8567a59bf7abb6161e1ba6667444
parenteeb9059d1cbf2ffb13300d0491b4b61126507373 (diff)
downloadkdepimpi-c3ec0a5a43fb328f2d190b8adee1ef662746fb41.zip
kdepimpi-c3ec0a5a43fb328f2d190b8adee1ef662746fb41.tar.gz
kdepimpi-c3ec0a5a43fb328f2d190b8adee1ef662746fb41.tar.bz2
debug fixes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/korganizer/allday.pngbin0 -> 279 bytes
-rw-r--r--bin/kdepim/korganizer/icons16/allday.pngbin0 -> 271 bytes
-rw-r--r--bin/kdepim/korganizer/iconsmini/allday.pngbin0 -> 273 bytes
-rw-r--r--bin/kdepim/korganizer/iconsmini/configure.pngbin0 -> 763 bytes
-rw-r--r--kaddressbook/kabcore.cpp40
-rw-r--r--korganizer/calendarview.cpp21
-rw-r--r--korganizer/mainwindow.cpp3
-rw-r--r--libkdepim/ksyncmanager.cpp34
8 files changed, 50 insertions, 48 deletions
diff --git a/bin/kdepim/korganizer/allday.png b/bin/kdepim/korganizer/allday.png
new file mode 100644
index 0000000..735eae2
--- a/dev/null
+++ b/bin/kdepim/korganizer/allday.png
Binary files differ
diff --git a/bin/kdepim/korganizer/icons16/allday.png b/bin/kdepim/korganizer/icons16/allday.png
new file mode 100644
index 0000000..426d250
--- a/dev/null
+++ b/bin/kdepim/korganizer/icons16/allday.png
Binary files differ
diff --git a/bin/kdepim/korganizer/iconsmini/allday.png b/bin/kdepim/korganizer/iconsmini/allday.png
new file mode 100644
index 0000000..be9a2ba
--- a/dev/null
+++ b/bin/kdepim/korganizer/iconsmini/allday.png
Binary files differ
diff --git a/bin/kdepim/korganizer/iconsmini/configure.png b/bin/kdepim/korganizer/iconsmini/configure.png
new file mode 100644
index 0000000..ad965e2
--- a/dev/null
+++ b/bin/kdepim/korganizer/iconsmini/configure.png
Binary files differ
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp
index 590cc82..ae0a068 100644
--- a/kaddressbook/kabcore.cpp
+++ b/kaddressbook/kabcore.cpp
@@ -427,7 +427,7 @@ KABCore::~KABCore()
}
void KABCore::receive( const QCString& cmsg, const QByteArray& data )
{
- qDebug("KA: QCOP message received: %s ", cmsg.data() );
+ //qDebug("KA: QCOP message received: %s ", cmsg.data() );
if ( cmsg == "setDocument(QString)" ) {
QDataStream stream( data, IO_ReadOnly );
QString fileName;
@@ -442,13 +442,13 @@ void KABCore::toggleBeamReceive( )
return;
#ifndef DESKTOP_VERSION
if ( infrared ) {
- qDebug("AB disable BeamReceive ");
+ qDebug("KA: AB disable BeamReceive ");
delete infrared;
infrared = 0;
mActionBR->setChecked(false);
return;
}
- qDebug("AB enable BeamReceive ");
+ qDebug("KA: AB enable BeamReceive ");
mActionBR->setChecked(true);
infrared = new QCopChannel("QPE/Application/addressbook",this, "channelAB" ) ;
@@ -568,7 +568,7 @@ void KABCore::saveSettings()
KABPrefs::instance()->mCurrentIncSearchField = mIncSearchWidget->currentItem();
KABPrefs::instance()->writeConfig();
- qDebug("KABCore::saveSettings() ");
+ qDebug("KA: KABCore::saveSettings() ");
}
KABC::AddressBook *KABCore::addressBook() const
@@ -906,7 +906,7 @@ void KABCore::writeToPhone( )
if ( PhoneAccess::writeToPhone( getPhoneFile() ) )
message(i18n("Export to phone finished!"));
else
- qDebug(i18n("Error exporting to phone"));
+ qDebug(i18n("KA: Error exporting to phone"));
}
void KABCore::beamVCard()
{
@@ -977,7 +977,7 @@ void KABCore::beamVCard(const QStringList& uids)
connect( ir, SIGNAL( done(Ir*) ), this, SLOT( beamDone(Ir*) ) );
ir->send( fileName, description, "text/x-vCard" );
} else {
- qDebug("Error open temp beam file ");
+ qDebug("KA: Error open temp beam file ");
return;
}
#endif
@@ -2684,7 +2684,7 @@ KABC::Addressee KABCore::getLastSyncAddressee()
//qDebug("CurrentSyncDevice %s ",mCurrentSyncDevice .latin1() );
lse = mAddressBook->findByUid( "last-syncAddressee-"+mCurrentSyncDevice );
if (lse.isEmpty()) {
- qDebug("Creating new last-syncAddressee ");
+ qDebug("KA: Creating new last-syncAddressee ");
lse.setUid( "last-syncAddressee-"+mCurrentSyncDevice );
QString sum = "";
if ( mGlobalSyncMode == SYNC_MODE_EXTERNAL )
@@ -2718,8 +2718,8 @@ int KABCore::takeAddressee( KABC::Addressee* local, KABC::Addressee* remote, i
if ( mGlobalSyncMode == SYNC_MODE_EXTERNAL ) {
bool remCh, locCh;
remCh = ( remote->getCsum(mCurrentSyncDevice) != local->getCsum(mCurrentSyncDevice) );
- if ( remCh )
- qDebug("loc %s rem %s", local->getCsum(mCurrentSyncDevice).latin1(), remote->getCsum(mCurrentSyncDevice).latin1() );
+ //if ( remCh )
+ // qDebug("loc %s rem %s", local->getCsum(mCurrentSyncDevice).latin1(), remote->getCsum(mCurrentSyncDevice).latin1() );
locCh = ( localMod > mLastAddressbookSync );
//qDebug("cahnged rem %d loc %d",remCh, locCh );
if ( !remCh && ! locCh ) {
@@ -2856,14 +2856,14 @@ bool KABCore::synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBo
// remote->removeSyncInfo( QString());//remove all info
if ( KSyncManager::mRequestedSyncEvent.isValid() ) {
mLastAddressbookSync = KSyncManager::mRequestedSyncEvent;
- qDebug("using extern time for calendar sync: %s ", mLastAddressbookSync.toString().latin1() );
+ qDebug("KA: using extern time for calendar sync: %s ", mLastAddressbookSync.toString().latin1() );
} else {
- qDebug("KSyncManager::mRequestedSyncEvent has invalid datatime ");
+ qDebug("KA: KSyncManager::mRequestedSyncEvent has invalid datatime ");
}
}
QDateTime modifiedCalendar = mLastAddressbookSync;
addresseeLSync = getLastSyncAddressee();
- qDebug("Last Sync %s ", addresseeLSync.revision().toString().latin1());
+ qDebug("KA: Last Sync %s ", addresseeLSync.revision().toString().latin1());
addresseeR = remote->findByUid("last-syncAddressee-"+mCurrentSyncName );
if ( !addresseeR.isEmpty() ) {
addresseeRSync = addresseeR;
@@ -3125,7 +3125,7 @@ bool KABCore::synchronizeAddressbooks( KABC::AddressBook* local, KABC::AddressBo
if ( syncManager->mShowSyncSummary ) {
if ( KMessageBox::Cancel == KMessageBox::warningContinueCancel(this, mes,
i18n("KA/Pi Synchronization"),i18n("Write back"))) {
- qDebug("cancelled ");
+ qDebug("KA: WB cancelled ");
return false;
}
}
@@ -3147,7 +3147,7 @@ bool KABCore::sync(KSyncManager* manager, QString filename, int mode)
AddressBook abLocal(filename,"syncContact");
bool syncOK = false;
if ( abLocal.load() ) {
- qDebug("Sync:AB loaded %s,sync mode %d",filename.latin1(), mode );
+ qDebug("KA: Sync::AB loaded %s,sync mode %d",filename.latin1(), mode );
bool external = false;
bool isXML = false;
if ( filename.right(4) == ".xml") {
@@ -3157,7 +3157,7 @@ bool KABCore::sync(KSyncManager* manager, QString filename, int mode)
} else {
external = !manager->mIsKapiFile;
if ( external ) {
- qDebug("Sync:Setting vcf mode to external ");
+ qDebug("KA: Sync::Setting vcf mode to external ");
mGlobalSyncMode = SYNC_MODE_EXTERNAL;
AddressBook::Iterator it;
for ( it = abLocal.begin(); it != abLocal.end(); ++it ) {
@@ -3177,9 +3177,9 @@ bool KABCore::sync(KSyncManager* manager, QString filename, int mode)
{
if ( external )
abLocal.removeSyncAddressees( !isXML);
- qDebug("Sync:Saving remote AB ");
+ qDebug("KA: Sync::Saving remote AB ");
if ( ! abLocal.saveAB())
- qDebug("Error writing back AB to file ");
+ qDebug("KA: sync::Error writing back AB to file ");
if ( external ) {
// afterwrite processing
abLocal.postExternSync( mAddressBook,mCurrentSyncDevice ,isXML);
@@ -3197,7 +3197,7 @@ bool KABCore::sync(KSyncManager* manager, QString filename, int mode)
}
void KABCore::removeSyncInfo( QString syncProfile)
{
- qDebug("AB:removeSyncInfo for profile %s ", syncProfile.latin1());
+ qDebug("KA: AB:removeSyncInfo for profile %s ", syncProfile.latin1());
mAddressBook->removeSyncInfo( syncProfile );
setModified();
}
@@ -3217,7 +3217,7 @@ bool KABCore::syncExternal(KSyncManager* manager, QString resource)
bool syncOK = false;
message(i18n("Loading DTM address data..."), false);
if ( abLocal.load() ) {
- qDebug("AB sharp loaded ,sync device %s",mCurrentSyncDevice.latin1());
+ qDebug("KA: AB sharp loaded ,sync device %s",mCurrentSyncDevice.latin1());
mGlobalSyncMode = SYNC_MODE_EXTERNAL;
message(i18n("Sync preprocessing..."),false);
abLocal.preExternSync( mAddressBook ,mCurrentSyncDevice, false );
@@ -3265,7 +3265,7 @@ bool KABCore::syncPhone()
bool syncOK = false;
{
abLocal.importFromFile( fileName );
- qDebug("AB phone loaded ,sync device %s",mCurrentSyncDevice.latin1());
+ qDebug("KA: AB phone loaded ,sync device %s",mCurrentSyncDevice.latin1());
mGlobalSyncMode = SYNC_MODE_EXTERNAL;
abLocal.preparePhoneSync( mCurrentSyncDevice, true );
abLocal.preExternSync( mAddressBook ,mCurrentSyncDevice, true );
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index 038da54..06454c2 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -948,7 +948,7 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int
remote->resetPilotStat(1);
if ( KSyncManager::mRequestedSyncEvent.isValid() ) {
mLastCalendarSync = KSyncManager::mRequestedSyncEvent;
- qDebug("using extern time for calendar sync: %s ", mLastCalendarSync.toString().latin1() );
+ qDebug("KO: using extern time for calendar sync: %s ", mLastCalendarSync.toString().latin1() );
} else {
qDebug("KSyncManager::mRequestedSyncEvent has invalid datatime ");
}
@@ -997,7 +997,7 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int
//qDebug("setting mLastCalendarSync ");
}
//qDebug("*************************** ");
- qDebug("mLastCalendarSync %s full: %d",mLastCalendarSync.toString().latin1(), fullDateRange);
+ qDebug("KO: mLastCalendarSync %s .Full: %d",mLastCalendarSync.toString().latin1(), fullDateRange);
QPtrList<Incidence> er = remote->rawIncidences();
Incidence* inR = er.first();
Incidence* inL;
@@ -1224,11 +1224,12 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int
eventRSync->setLocation( i18n("Remote from: ")+mCurrentSyncName ) ;
eventLSync->setLocation(i18n("Local from: ") + mCurrentSyncName );
eventLSync->setReadOnly( true );
- qDebug("********** %d %d ", mGlobalSyncMode == SYNC_MODE_NORMAL, mSyncManager->syncWithDesktop() );
+ qDebug("KO: Normal sync: %d ",mGlobalSyncMode == SYNC_MODE_NORMAL );
if ( mGlobalSyncMode == SYNC_MODE_NORMAL && !mSyncManager->syncWithDesktop()) // kde is abnormal...
remote->addEvent( eventRSync );
else
delete eventRSync;
+ qDebug("KO: Sync with desktop %d ",mSyncManager->syncWithDesktop() );
QString mes;
mes .sprintf( i18n("Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n %d incoming filtered out\n %d outgoing filtered out\n"),addedEvent, addedEventR, changedLocal, changedRemote, deletedEventL, deletedEventR, filteredIN, filteredOUT );
QString delmess;
@@ -1242,7 +1243,7 @@ bool CalendarView::synchronizeCalendar( Calendar* local, Calendar* remote, int
if ( mSyncManager->mShowSyncSummary ) {
if ( KMessageBox::Cancel == KMessageBox::warningContinueCancel(this, mes,
i18n("KO/Pi Synchronization"),i18n("Write back"))) {
- qDebug("cancelled ");
+ qDebug("KO: WB cancelled ");
return false;
}
}
@@ -1440,14 +1441,14 @@ void CalendarView::insertBirthdays(const QString& uid, const QStringList& birthd
const QStringList& emailList, const QStringList& assembledNameList,
const QStringList& uidList)
{
- qDebug("CalendarView::insertBirthdays");
+ //qDebug("KO::CalendarView::insertBirthdays");
if (uid == this->name())
{
int count = birthdayList.count();
int addCount = 0;
KCal::Attendee* a = 0;
- qDebug("CalView 1 %i", count);
+ //qDebug("CalView 1 %i", count);
QProgressBar bar(count,0 );
int w = 300;
@@ -2509,7 +2510,7 @@ void CalendarView::showEventEditor()
#else
if ( mEventEditor->width() < QApplication::desktop()->width() -60 || mEventEditor->width() > QApplication::desktop()->width() ) {
topLevelWidget()->setCaption( i18n("Recreating edit dialog. Please wait...") );
- qDebug("CalendarView: recreate mEventEditor %d %d", mEventEditor->width(), QApplication::desktop()->width() );
+ qDebug("KO: CalendarView: recreate mEventEditor %d %d", mEventEditor->width(), QApplication::desktop()->width() );
delete mEventEditor;
mEventEditor = mDialogManager->getEventEditor();
}
@@ -2524,7 +2525,7 @@ void CalendarView::showTodoEditor()
#else
if ( mTodoEditor->width() < QApplication::desktop()->width() -60|| mTodoEditor->width() > QApplication::desktop()->width() ) {
topLevelWidget()->setCaption( i18n("Recreating edit dialog. Please wait...") );
- qDebug("CalendarView: recreate mTodoEditor %d %d ", mTodoEditor->width() ,QApplication::desktop()->width() );
+ qDebug("KO: CalendarView: recreate mTodoEditor %d %d ", mTodoEditor->width() ,QApplication::desktop()->width() );
delete mTodoEditor;
mTodoEditor = mDialogManager->getTodoEditor();
}
@@ -3857,7 +3858,7 @@ bool CalendarView::sync(KSyncManager* manager, QString filename, int mode)
{
// mSyncManager = manager;
if ( filename == QDir::homeDirPath ()+"/.kdecalendardump.ics" ) {
- qDebug("SyncKDE request detected!");
+ qDebug("KO: SyncKDE request detected!");
}
mCurrentSyncDevice = mSyncManager->getCurrentSyncDevice();
mCurrentSyncName = mSyncManager->getCurrentSyncName();
@@ -3882,7 +3883,7 @@ void CalendarView::setSyncManager(KSyncManager* manager)
void CalendarView::removeSyncInfo( QString syncProfile)
{
- qDebug("removeSyncInfo for profile %s ", syncProfile.latin1());
+ qDebug("KO: removeSyncInfo for profile %s ", syncProfile.latin1());
mCalendar->removeSyncInfo( syncProfile );
}
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 26ea1e2..877b6f2 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -607,7 +607,8 @@ void MainWindow::initActions()
action->addTo( viewMenu );
connect( action, SIGNAL( activated() ),
mView, SLOT( toggleFilter() ) );
- action = new QAction( i18n("Toggle Allday"), i18n("Toggle Allday"), 0, this );
+ icon = loadPixmap( pathString + "allday" );
+ action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this );
action->addTo( viewMenu );
connect( action, SIGNAL( activated() ),
mView, SLOT( toggleAllDaySize() ) );
diff --git a/libkdepim/ksyncmanager.cpp b/libkdepim/ksyncmanager.cpp
index f488a07..3adbf61 100644
--- a/libkdepim/ksyncmanager.cpp
+++ b/libkdepim/ksyncmanager.cpp
@@ -184,7 +184,7 @@ void KSyncManager::slotClearMenu( int action )
}
void KSyncManager::slotSyncMenu( int action )
{
- qDebug("syncaction %d ", action);
+ qDebug("KSM::syncaction %d ", action);
if ( action == 5000 )
return;
mSyncWithDesktop = false;
@@ -292,7 +292,7 @@ void KSyncManager::slotSyncMenu( int action )
mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNamePWM();
break;
default:
- qDebug("KSyncManager::slotSyncMenu: invalid apptype selected");
+ qDebug("KSM::slotSyncMenu: invalid apptype selected");
break;
}
@@ -440,7 +440,7 @@ void KSyncManager::syncLocalFile()
ext = "(*.pwm)";
break;
default:
- qDebug("KSyncManager::syncLocalFile: invalid apptype selected");
+ qDebug("KSM::syncLocalFile: invalid apptype selected");
break;
}
@@ -449,7 +449,7 @@ void KSyncManager::syncLocalFile()
if ( fn == "" )
return;
if ( syncWithFile( fn, false ) ) {
- qDebug("syncLocalFile() successful ");
+ qDebug("KSM::syncLocalFile() successful ");
}
}
@@ -498,7 +498,7 @@ void KSyncManager::quickSyncLocalFile()
{
if ( syncWithFile( mPrefs->mLastSyncedLocalFile, true ) ) {
- qDebug("quick syncLocalFile() successful ");
+ qDebug("KSM::quick syncLocalFile() successful ");
}
}
@@ -569,7 +569,7 @@ int KSyncManager::ringSync()
includeInRingSync = temp->getIncludeInRingSyncPWM();
break;
default:
- qDebug("KSyncManager::ringSync: invalid apptype selected");
+ qDebug("KSM::ringSync: invalid apptype selected");
break;
}
@@ -619,7 +619,7 @@ int KSyncManager::ringSync()
mPrefs->mLastSyncedLocalFile = temp->getRemoteFileNamePWM();
break;
default:
- qDebug("KSyncManager::slotSyncMenu: invalid apptype selected");
+ qDebug("KSM: invalid apptype selected");
break;
}
} else {
@@ -706,7 +706,7 @@ void KSyncManager::syncRemote( KSyncProfile* prof, bool ask)
localTempFile = prof->getLocalTempFilePWM();
break;
default:
- qDebug("KSyncManager::syncRemote: invalid apptype selected");
+ qDebug("KSM::syncRemote: invalid apptype selected");
break;
}
@@ -726,7 +726,7 @@ void KSyncManager::syncRemote( KSyncProfile* prof, bool ask)
// 0 : okay
// 256: no such file or dir
//
- qDebug("Sync: Remote copy result(0 = okay): %d ",result );
+ qDebug("KSM::Sync: Remote copy result(0 = okay): %d ",result );
if ( result != 0 ) {
unsigned int len = maxlen;
while ( len < preCommand.length() ) {
@@ -754,7 +754,7 @@ void KSyncManager::syncRemote( KSyncProfile* prof, bool ask)
}
mParent->topLevelWidget()->setCaption ( i18n( "Writing back file ..." ) );
result = system ( postCommand );
- qDebug("Sync:Writing back file result: %d ", result);
+ qDebug("KSM::Sync:Writing back file result: %d ", result);
if ( result != 0 ) {
mParent->topLevelWidget()->setCaption ( i18n( "Writing back file result: " )+QString::number( result ) );
return;
@@ -949,7 +949,7 @@ void KSyncManager::syncKDE()
break;
default:
- qDebug("KSyncManager::slotSyncMenu: invalid apptype selected");
+ qDebug("KSM::slotSyncMenu: invalid apptype selected");
break;
}
@@ -959,7 +959,7 @@ void KSyncManager::syncSharp()
{
if ( ! syncExternalApplication("sharp") )
- qDebug("ERROR sync sharp ");
+ qDebug("KSM::ERROR sync sharp ");
}
bool KSyncManager::syncExternalApplication(QString resource)
@@ -973,7 +973,7 @@ bool KSyncManager::syncExternalApplication(QString resource)
return false;
}
- qDebug("Sync extern %s", resource.latin1());
+ qDebug("KSM::Sync extern %s", resource.latin1());
bool syncOK = mImplementation->syncExternal(this, resource);
@@ -1120,7 +1120,7 @@ void KServerSocket::newConnection ( int socket )
{
// qDebug("KServerSocket:New connection %d ", socket);
if ( mSocket ) {
- qDebug("KServerSocket::newConnection Socket deleted! ");
+ qDebug("KSS::newConnection Socket deleted! ");
delete mSocket;
mSocket = 0;
}
@@ -1144,7 +1144,7 @@ void KServerSocket::readClient()
if ( blockRC )
return;
if ( mSocket == 0 ) {
- qDebug("ERROR::KServerSocket::readClient(): mSocket == 0 ");
+ qDebug("ERROR::KSS::readClient(): mSocket == 0 ");
return;
}
//qDebug("KServerSocket::readClient()");
@@ -1219,7 +1219,7 @@ void KServerSocket::send_file()
{
if ( secs > 300 ) {
if ( KMessageBox::Cancel == KMessageBox::warningContinueCancel(0, i18n("The clocks of the syncing\ndevices have a difference\n of more than 5 minutes.\nPlease adjust your clocks.\n<b>You may get wrong syncing results!<\b>\nPlease confirm synchronization!"), i18n("High clock skew!"),i18n("Synchronize!"))) {
- qDebug("cancelled ");
+ qDebug("KSS::Sync cancelled ,cs");
return ;
}
}
@@ -1465,7 +1465,7 @@ void KCommandSocket::deleteSocket()
if ( mTimerSocket->isActive () ) {
mTimerSocket->stop();
mRetVal = errorTO;
- qDebug("Connection to remote host timed out");
+ qDebug("KCS::Connection to remote host timed out");
if ( mSocket ) {
mSocket->close();
//if ( mSocket->state() == QSocket::Idle )