-rw-r--r-- | core/pim/datebook/config.in | 2 | ||||
-rw-r--r-- | core/pim/datebook/datebook.cpp | 10 | ||||
-rw-r--r-- | core/pim/datebook/datebook.pro | 12 | ||||
-rw-r--r-- | core/pim/datebook/datebookweekheaderimpl.cpp | 11 | ||||
-rw-r--r-- | core/pim/datebook/datebookweeklst.cpp | 7 | ||||
-rw-r--r-- | core/pim/datebook/dateentryimpl.cpp | 10 | ||||
-rw-r--r-- | core/pim/datebook/opie-datebook.control | 2 |
7 files changed, 31 insertions, 23 deletions
diff --git a/core/pim/datebook/config.in b/core/pim/datebook/config.in index d1dd44f..4658f3c 100644 --- a/core/pim/datebook/config.in +++ b/core/pim/datebook/config.in @@ -2,3 +2,3 @@ boolean "opie-datebook (a datebook/appointment manager)" default "y" - depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2UI + depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBOPIE2UI && LIBOPIE2PIM diff --git a/core/pim/datebook/datebook.cpp b/core/pim/datebook/datebook.cpp index 3934411..3d1bc0c 100644 --- a/core/pim/datebook/datebook.cpp +++ b/core/pim/datebook/datebook.cpp @@ -30,4 +30,6 @@ #include "dateentryimpl.h" +#include <opie2/odebug.h> + #include <qpe/datebookmonth.h> #include <qpe/qpeapplication.h> @@ -38,5 +40,4 @@ #include <qpe/resource.h> #include <qpe/sound.h> -#include <qtoolbar.h> #include <qpe/tzselect.h> @@ -47,4 +48,5 @@ #include <qtimer.h> #include <qtl.h> +#include <qtoolbar.h> #include <qwidgetstack.h> @@ -71,5 +73,5 @@ DateBook::DateBook( QWidget *parent, const char *, WFlags f ) t.start(); db = new DateBookDBHack; - qDebug("loading db t=%d", t.elapsed() ); + Opie::Core::odebug << "loading db t=" << t.elapsed() << oendl; loadSettings(); setCaption( tr("Calendar") ); @@ -175,5 +177,5 @@ DateBook::DateBook( QWidget *parent, const char *, WFlags f ) #endif - qDebug("done t=%d", t.elapsed() ); + Opie::Core::odebug << "done t=" << t.elapsed() << oendl; connect( qApp, SIGNAL( flush() ), this, SLOT( flush() ) ); @@ -901,5 +903,5 @@ static const char * beamfile = "/tmp/obex/event.vcs"; void DateBook::beamEvent( const Event &e ) { - qDebug("trying to beamn"); + Opie::Core::odebug << "trying to beam" << oendl; unlink( beamfile ); // delete if exists mkdir("/tmp/obex/", 0755); diff --git a/core/pim/datebook/datebook.pro b/core/pim/datebook/datebook.pro index bf9a2cc..a79c25c 100644 --- a/core/pim/datebook/datebook.pro +++ b/core/pim/datebook/datebook.pro @@ -1,5 +1,5 @@ CONFIG += qt warn_on quick-app HEADERS = datebookday.h \ - datebook.h \ + datebook.h \ dateentryimpl.h \ datebookdayheaderimpl.h \ @@ -12,5 +12,5 @@ HEADERS = datebookday.h \ onoteedit.h \ datebookdayallday.h \ - namespace_hack.h + namespace_hack.h SOURCES = main.cpp \ datebookday.cpp \ @@ -25,10 +25,10 @@ SOURCES = main.cpp \ noteentryimpl.cpp \ onoteedit.cpp \ - datebookdayallday.cpp + datebookdayallday.cpp INTERFACES = dateentry.ui \ datebookdayheader.ui \ datebookweekheader.ui \ - datebookweeklstheader.ui \ - datebookweeklstdayhdr.ui \ + datebookweeklstheader.ui \ + datebookweeklstdayhdr.ui \ repeatentrybase.ui \ datebooksettingsbase.ui \ @@ -36,5 +36,5 @@ INTERFACES = dateentry.ui \ INCLUDEPATH += $(OPIEDIR)/include DEPENDPATH += $(OPIEDIR)/include -LIBS += -lqpe -lopieui2 -lopiecore2 +LIBS += -lqpe -lopieui2 -lopiecore2 -lopiepim2 TARGET = datebook diff --git a/core/pim/datebook/datebookweekheaderimpl.cpp b/core/pim/datebook/datebookweekheaderimpl.cpp index c237b2d..123a478 100644 --- a/core/pim/datebook/datebookweekheaderimpl.cpp +++ b/core/pim/datebook/datebookweekheaderimpl.cpp @@ -20,4 +20,7 @@ #include "datebookweekheaderimpl.h" #include "datebookweek.h" + +#include <opie2/odebug.h> + #include <qpe/resource.h> #include <qpe/datebookmonth.h> @@ -67,20 +70,20 @@ void DateBookWeekHeader::pickDate() void DateBookWeekHeader::nextMonth() { - qWarning("nextMonth() " ); + Opie::Core::owarn << "nextMonth()" << oendl; setDate(date.addDays(28)); } void DateBookWeekHeader::prevMonth() { - qWarning("prevMonth() " ); + Opie::Core::owarn << "prevMonth()" << oendl; setDate(date.addDays(-28)); } void DateBookWeekHeader::nextWeek() { - qWarning("nextWeek() " ); + Opie::Core::owarn << "nextWeek()" << oendl; setDate(date.addDays(7)); } void DateBookWeekHeader::prevWeek() { - qWarning("prevWeek() "); + Opie::Core::owarn << "prevWeek()" << oendl; setDate(date.addDays(-7)); } diff --git a/core/pim/datebook/datebookweeklst.cpp b/core/pim/datebook/datebookweeklst.cpp index abaf3ea..de74d46 100644 --- a/core/pim/datebook/datebookweeklst.cpp +++ b/core/pim/datebook/datebookweeklst.cpp @@ -2,7 +2,8 @@ #include "datebookweeklst.h" - #include "datebook.h" +#include <opie2/odebug.h> + #include <qpe/datebookmonth.h> #include <qpe/config.h> @@ -160,5 +161,5 @@ DateBookWeekLstEvent::DateBookWeekLstEvent(const EffectiveEvent &ev, QString s,start,middle,end,day; - qDebug("weeklistviewconfig=%d",weeklistviewconfig); + Opie::Core::odebug << "weeklistviewconfig=" << weeklistviewconfig << oendl; if(weeklistviewconfig==NONE) { // No times displayed. // start.sprintf("%.2d:%.2d-",ev.start().hour(),ev.start().minute()); @@ -209,5 +210,5 @@ DateBookWeekLstView::DateBookWeekLstView(QValueList<EffectiveEvent> &ev, config.setGroup("Main"); int weeklistviewconfig=config.readNumEntry("weeklistviewconfig", NORMAL); - qDebug("Read weeklistviewconfig: %d",weeklistviewconfig); + Opie::Core::odebug << "weeklistviewconfig: " << weeklistviewconfig << oendl; bStartOnMonday=onM; diff --git a/core/pim/datebook/dateentryimpl.cpp b/core/pim/datebook/dateentryimpl.cpp index 7b4716f..42bdbe2 100644 --- a/core/pim/datebook/dateentryimpl.cpp +++ b/core/pim/datebook/dateentryimpl.cpp @@ -23,4 +23,7 @@ #include "repeatentry.h" +#include <opie2/odebug.h> +#include <opie2/otimepicker.h> + #include <qpe/qpeapplication.h> #include <qpe/categoryselect.h> @@ -31,5 +34,4 @@ #include <qspinbox.h> -#include <opie2/otimepicker.h> #include "onoteedit.h" @@ -430,5 +432,5 @@ Event DateEntry::event() time_t start_utc, end_utc; -// qDebug( "tz: %s", timezone->currentZone().latin1() ); +// Opie::Core::odebug << "tz: " << timezone->currentZone() << oendl; // get real timezone @@ -438,5 +440,5 @@ Event DateEntry::event() // set timezone if ( setenv( "TZ", timezone->currentZone(), true ) != 0 ) - qWarning( "There was a problem setting the timezone." ); + Opie::Core::owarn << "There was a problem setting the timezone." << oendl; // convert to UTC based on selected TZ (calling tzset internally) @@ -448,5 +450,5 @@ Event DateEntry::event() if ( !realTZ.isNull() ) if ( setenv( "TZ", realTZ, true ) != 0 ) - qWarning( "There was a problem setting the timezone." ); + Opie::Core::owarn << "There was a problem setting the timezone." << oendl; // convert UTC to local time (calling tzset internally) diff --git a/core/pim/datebook/opie-datebook.control b/core/pim/datebook/opie-datebook.control index 730b09d..acf28a7 100644 --- a/core/pim/datebook/opie-datebook.control +++ b/core/pim/datebook/opie-datebook.control @@ -6,5 +6,5 @@ Conflicts: qpe-tkccalendar Maintainer: Holger 'Zecke' Freyther <zecke@handhelds.org> Architecture: arm -Depends: task-opie-minimal, libopiecore2, libopieui2,libopiepim2, opie-pics +Depends: task-opie-minimal, libopiecore2, libopieui2, libopiepim2, opie-pics Description: A datebook/appointment manager A datebook/appointment manager for the Opie environment. |