summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook/datebook.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pim/datebook/datebook.cpp b/core/pim/datebook/datebook.cpp
index c23129a..8614b3f 100644
--- a/core/pim/datebook/datebook.cpp
+++ b/core/pim/datebook/datebook.cpp
@@ -10,96 +10,97 @@
10** 10**
11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 11** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 12** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
13** 13**
14** See http://www.trolltech.com/gpl/ for GPL licensing information. 14** See http://www.trolltech.com/gpl/ for GPL licensing information.
15** 15**
16** Contact info@trolltech.com if any conditions of this licensing are 16** Contact info@trolltech.com if any conditions of this licensing are
17** not clear to you. 17** not clear to you.
18** 18**
19** $Id$ 19** $Id$
20** 20**
21**********************************************************************/ 21**********************************************************************/
22 22
23#define QTOPIA_INTERNAL_FD 23#define QTOPIA_INTERNAL_FD
24 24
25#include "datebook.h" 25#include "datebook.h"
26#include "datebookday.h" 26#include "datebookday.h"
27#include "datebooksettings.h" 27#include "datebooksettings.h"
28#include "datebookweek.h" 28#include "datebookweek.h"
29#include "datebookweeklst.h" 29#include "datebookweeklst.h"
30#include "dateentryimpl.h" 30#include "dateentryimpl.h"
31 31
32#include <qpe/datebookmonth.h> 32#include <qpe/datebookmonth.h>
33#include <qpe/qpeapplication.h> 33#include <qpe/qpeapplication.h>
34#include <qpe/config.h> 34#include <qpe/config.h>
35#include <qpe/qpedebug.h> 35#include <qpe/qpedebug.h>
36#include <qpe/event.h> 36#include <qpe/event.h>
37#include <qpe/finddialog.h> 37#include <qpe/finddialog.h>
38#include <qpe/ir.h> 38#include <qpe/ir.h>
39#include <qpe/qpemenubar.h> 39#include <qpe/qpemenubar.h>
40#include <qpe/qpemessagebox.h> 40#include <qpe/qpemessagebox.h>
41#include <qpe/resource.h> 41#include <qpe/resource.h>
42#include <qpe/sound.h> 42#include <qpe/sound.h>
43#include <qpe/timestring.h> 43#include <qpe/timestring.h>
44#include <qpe/qpetoolbar.h> 44#include <qpe/qpetoolbar.h>
45#include <qpe/tzselect.h> 45#include <qpe/tzselect.h>
46#include <qpe/xmlreader.h> 46#include <qpe/xmlreader.h>
47 47
48#include <qaction.h> 48#include <qaction.h>
49#include <qcopchannel_qws.h> 49#include <qcopchannel_qws.h>
50#include <qdatetime.h> 50#include <qdatetime.h>
51#include <qdialog.h> 51#include <qdialog.h>
52#include <qfile.h> 52#include <qfile.h>
53#include <qlabel.h> 53#include <qlabel.h>
54#include <qlayout.h> 54#include <qlayout.h>
55#include <qmessagebox.h> 55#include <qmessagebox.h>
56#include <qpopupmenu.h> 56#include <qpopupmenu.h>
57#include <qpushbutton.h> 57#include <qpushbutton.h>
58#include <qregexp.h>
58#include <qtextcodec.h> 59#include <qtextcodec.h>
59#include <qtextstream.h> 60#include <qtextstream.h>
60#include <qtl.h> 61#include <qtl.h>
61#include <qwidgetstack.h> 62#include <qwidgetstack.h>
62#include <qwindowsystem_qws.h> 63#include <qwindowsystem_qws.h>
63 64
64#include <sys/stat.h> 65#include <sys/stat.h>
65#include <sys/types.h> 66#include <sys/types.h>
66#include <fcntl.h> 67#include <fcntl.h>
67#include <unistd.h> 68#include <unistd.h>
68 69
69#include <stdlib.h> 70#include <stdlib.h>
70 71
71#define DAY 1 72#define DAY 1
72#define WEEK 2 73#define WEEK 2
73#define WEEKLST 4 74#define WEEKLST 4
74#define MONTH 3 75#define MONTH 3
75 76
76 77
77DateBook::DateBook( QWidget *parent, const char *, WFlags f ) 78DateBook::DateBook( QWidget *parent, const char *, WFlags f )
78 : QMainWindow( parent, "datebook", f ), 79 : QMainWindow( parent, "datebook", f ),
79 aPreset( FALSE ), 80 aPreset( FALSE ),
80 presetTime( -1 ), 81 presetTime( -1 ),
81 startTime( 8 ), // an acceptable default 82 startTime( 8 ), // an acceptable default
82 syncing(FALSE), 83 syncing(FALSE),
83 inSearch(FALSE) 84 inSearch(FALSE)
84{ 85{
85 QTime t; 86 QTime t;
86 t.start(); 87 t.start();
87 db = new DateBookDBHack; 88 db = new DateBookDBHack;
88 qDebug("loading db t=%d", t.elapsed() ); 89 qDebug("loading db t=%d", t.elapsed() );
89 loadSettings(); 90 loadSettings();
90 setCaption( tr("Calendar") ); 91 setCaption( tr("Calendar") );
91 setIcon( Resource::loadPixmap( "datebook_icon" ) ); 92 setIcon( Resource::loadPixmap( "datebook_icon" ) );
92 93
93 setToolBarsMovable( FALSE ); 94 setToolBarsMovable( FALSE );
94 95
95 views = new QWidgetStack( this ); 96 views = new QWidgetStack( this );
96 setCentralWidget( views ); 97 setCentralWidget( views );
97 98
98 dayView = 0; 99 dayView = 0;
99 weekView = 0; 100 weekView = 0;
100 weekLstView = 0; 101 weekLstView = 0;
101 monthView = 0; 102 monthView = 0;
102 103
103 QPEToolBar *bar = new QPEToolBar( this ); 104 QPEToolBar *bar = new QPEToolBar( this );
104 bar->setHorizontalStretchable( TRUE ); 105 bar->setHorizontalStretchable( TRUE );
105 106