summaryrefslogtreecommitdiff
path: root/core/pim/datebook/datebook.cpp
authoralwin <alwin>2005-03-20 10:51:54 (UTC)
committer alwin <alwin>2005-03-20 10:51:54 (UTC)
commite006544cf2eb82b503b3ef979a2159b5de93037e (patch) (side-by-side diff)
treed366c84224c97631c77737be71c79db6ec2b5c6d /core/pim/datebook/datebook.cpp
parent4f01835c3b26123f2660351e01b547fa1c9054e5 (diff)
downloadopie-e006544cf2eb82b503b3ef979a2159b5de93037e.zip
opie-e006544cf2eb82b503b3ef979a2159b5de93037e.tar.gz
opie-e006544cf2eb82b503b3ef979a2159b5de93037e.tar.bz2
maed a straight copy of the origin datebookmonthview class so we can display
the holidays inside. needs a little bit finishing I think but it works.
Diffstat (limited to 'core/pim/datebook/datebook.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/datebook.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/pim/datebook/datebook.cpp b/core/pim/datebook/datebook.cpp
index 0579279..cc7bf4b 100644
--- a/core/pim/datebook/datebook.cpp
+++ b/core/pim/datebook/datebook.cpp
@@ -18,33 +18,34 @@
**
** $Id$
**
**********************************************************************/
#define QTOPIA_INTERNAL_FD
#include "datebook.h"
#include "datebookday.h"
#include "datebooksettings.h"
#include "datebookweek.h"
#include "modules/weeklst/datebookweeklst.h"
+#include "modules/monthview/odatebookmonth.h"
#include "dateentryimpl.h"
#include <opie2/odebug.h>
#include <opie2/oholidaypluginif.h>
#include <opie2/oholidayplugin.h>
#include <opie2/opluginloader.h>
#include <opie2/todayplugininterface.h>
-#include <qpe/datebookmonth.h>
+//#include <qpe/datebookmonth.h>
#include <qpe/qpeapplication.h>
#include <qpe/config.h>
#include <qpe/finddialog.h>
#include <qpe/ir.h>
#include <qpe/qpemessagebox.h>
#include <qpe/resource.h>
#include <qpe/sound.h>
#include <qpe/tzselect.h>
#include <qtopia/qlibrary.h>
#include <qaction.h>
#include <qcopchannel_qws.h>
@@ -580,25 +581,25 @@ void DateBook::initWeekLst() {
connect( this, SIGNAL( newEvent() ), weekLstView, SLOT( redraw() ) );
connect( weekLstView, SIGNAL( editEvent(const Event&) ), this, SLOT( editEvent(const Event&) ) );
connect( weekLstView, SIGNAL( duplicateEvent( const Event & ) ), this, SLOT( duplicateEvent( const Event & ) ) );
connect( weekLstView, SIGNAL( beamEvent(const Event&) ), this, SLOT( beamEvent(const Event&) ) );
connect( weekLstView, SIGNAL( removeEvent( const Event & ) ), this, SLOT( removeEvent( const Event & ) ) );
}
}
void DateBook::initMonth()
{
if ( !monthView ) {
- monthView = new DateBookMonth( views, "month view", FALSE, db );
+ monthView = new ODateBookMonth( views, "month view", FALSE, db );
views->addWidget( monthView, MONTH );
connect( monthView, SIGNAL( dateClicked(int,int,int) ), this, SLOT( showDay(int,int,int) ) );
connect( this, SIGNAL( newEvent() ), monthView, SLOT( redraw() ) );
qApp->processEvents();
}
}
void DateBook::loadSettings()
{
Config qpeconfig( "qpe" );
qpeconfig.setGroup("Time");
ampm = qpeconfig.readBoolEntry( "AMPM", TRUE );