summaryrefslogtreecommitdiff
authorzecke <zecke>2002-12-17 19:31:48 (UTC)
committer zecke <zecke>2002-12-17 19:31:48 (UTC)
commit813e3ff4978cc480fcb971411211df9a07375743 (patch) (unidiff)
treef67864367452f3130544be6edf49b3ad8b17532d
parent59d5865053c8e722339a63d05c73eb923350620f (diff)
downloadopie-813e3ff4978cc480fcb971411211df9a07375743.zip
opie-813e3ff4978cc480fcb971411211df9a07375743.tar.gz
opie-813e3ff4978cc480fcb971411211df9a07375743.tar.bz2
kill tableitems from the build process
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/todo/tableview.cpp1
-rw-r--r--core/pim/todo/tableview.h1
-rw-r--r--core/pim/todo/todo.pro2
3 files changed, 1 insertions, 3 deletions
diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp
index f59971e..a8cc271 100644
--- a/core/pim/todo/tableview.cpp
+++ b/core/pim/todo/tableview.cpp
@@ -1,78 +1,79 @@
1/* 1/*
2               =. This file is part of the OPIE Project 2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 <zecke> 3             .=l. Copyright (c) 2002 <zecke>
4           .>+-= 4           .>+-=
5 _;:,     .>    :=|. This program is free software; you can 5 _;:,     .>    :=|. This program is free software; you can
6.> <`_,   >  .   <= redistribute it and/or modify it under 6.> <`_,   >  .   <= redistribute it and/or modify it under
7:`=1 )Y*s>-.--   : the terms of the GNU General Public 7:`=1 )Y*s>-.--   : the terms of the GNU General Public
8.="- .-=="i,     .._ License as published by the Free Software 8.="- .-=="i,     .._ License as published by the Free Software
9 - .   .-<_>     .<> Foundation; either version 2 of the License, 9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10     ._= =}       : or (at your option) any later version. 10     ._= =}       : or (at your option) any later version.
11    .%`+i>       _;_. 11    .%`+i>       _;_.
12    .i_,=:_.      -<s. This program is distributed in the hope that 12    .i_,=:_.      -<s. This program is distributed in the hope that
13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14    : ..    .:,     . . . without even the implied warranty of 14    : ..    .:,     . . . without even the implied warranty of
15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
17..}^=.=       =       ; Library General Public License for more 17..}^=.=       =       ; Library General Public License for more
18++=   -.     .`     .: details. 18++=   -.     .`     .: details.
19 :     =  ...= . :.=- 19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU 20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = Library General Public License along with 21  -_. . .   )=.  = Library General Public License along with
22    --        :-=` this library; see the file COPYING.LIB. 22    --        :-=` this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation, 23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330, 24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 25 Boston, MA 02111-1307, USA.
26 26
27*/ 27*/
28#include <stdlib.h> 28#include <stdlib.h>
29#include <cmath> 29#include <cmath>
30 30
31#include <qcombobox.h>
31#include <qlineedit.h> 32#include <qlineedit.h>
32#include <qtimer.h> 33#include <qtimer.h>
33#include <qpoint.h> 34#include <qpoint.h>
34#include <qpopupmenu.h> 35#include <qpopupmenu.h>
35 36
36#include <qpe/config.h> 37#include <qpe/config.h>
37 38
38#include <opie/orecur.h> 39#include <opie/orecur.h>
39 40
40#include "mainwindow.h" 41#include "mainwindow.h"
41//#include "tableitems.h" 42//#include "tableitems.h"
42#include "tableview.h" 43#include "tableview.h"
43 44
44using namespace Todo; 45using namespace Todo;
45 46
46namespace { 47namespace {
47 static const int BoxSize = 14; 48 static const int BoxSize = 14;
48 static const int RowHeight = 20; 49 static const int RowHeight = 20;
49} 50}
50 51
51 52
52void TableView::initConfig() { 53void TableView::initConfig() {
53 Config config( "todo" ); 54 Config config( "todo" );
54 config.setGroup( "Options" ); 55 config.setGroup( "Options" );
55 m_completeStrokeWidth = config.readNumEntry( "CompleteStrokeWidth", 8 ); 56 m_completeStrokeWidth = config.readNumEntry( "CompleteStrokeWidth", 8 );
56} 57}
57 58
58TableView::TableView( MainWindow* window, QWidget* wid ) 59TableView::TableView( MainWindow* window, QWidget* wid )
59 : QTable( wid ), TodoView( window ) { 60 : QTable( wid ), TodoView( window ) {
60 setUpdatesEnabled( false ); 61 setUpdatesEnabled( false );
61 viewport()->setUpdatesEnabled( false ); 62 viewport()->setUpdatesEnabled( false );
62 m_enablePaint = false; 63 m_enablePaint = false;
63 setNumRows(0); 64 setNumRows(0);
64 setNumCols(4); 65 setNumCols(4);
65 66
66 setSorting( TRUE ); 67 setSorting( TRUE );
67 setSelectionMode( NoSelection ); 68 setSelectionMode( NoSelection );
68// setColumnStretchable( 2, TRUE ); 69// setColumnStretchable( 2, TRUE );
69 setColumnStretchable( 3, FALSE ); 70 setColumnStretchable( 3, FALSE );
70 setColumnWidth(0, 20 ); 71 setColumnWidth(0, 20 );
71 setColumnWidth(1, 35 ); 72 setColumnWidth(1, 35 );
72 setColumnWidth(3, 18 ); 73 setColumnWidth(3, 18 );
73 74
74 setLeftMargin( 0 ); 75 setLeftMargin( 0 );
75 verticalHeader()->hide(); 76 verticalHeader()->hide();
76 77
77 horizontalHeader()->setLabel(0, tr("C.") ); 78 horizontalHeader()->setLabel(0, tr("C.") );
78 horizontalHeader()->setLabel(1, tr("Prior.") ); 79 horizontalHeader()->setLabel(1, tr("Prior.") );
diff --git a/core/pim/todo/tableview.h b/core/pim/todo/tableview.h
index e47b38f..a27c698 100644
--- a/core/pim/todo/tableview.h
+++ b/core/pim/todo/tableview.h
@@ -1,83 +1,82 @@
1/* 1/*
2               =. This file is part of the OPIE Project 2               =. This file is part of the OPIE Project
3             .=l. Copyright (c) 2002 <> 3             .=l. Copyright (c) 2002 <>
4           .>+-= 4           .>+-=
5 _;:,     .>    :=|. This program is free software; you can 5 _;:,     .>    :=|. This program is free software; you can
6.> <`_,   >  .   <= redistribute it and/or modify it under 6.> <`_,   >  .   <= redistribute it and/or modify it under
7:`=1 )Y*s>-.--   : the terms of the GNU General Public 7:`=1 )Y*s>-.--   : the terms of the GNU General Public
8.="- .-=="i,     .._ License as published by the Free Software 8.="- .-=="i,     .._ License as published by the Free Software
9 - .   .-<_>     .<> Foundation; either version 2 of the License, 9 - .   .-<_>     .<> Foundation; either version 2 of the License,
10     ._= =}       : or (at your option) any later version. 10     ._= =}       : or (at your option) any later version.
11    .%`+i>       _;_. 11    .%`+i>       _;_.
12    .i_,=:_.      -<s. This program is distributed in the hope that 12    .i_,=:_.      -<s. This program is distributed in the hope that
13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 13     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
14    : ..    .:,     . . . without even the implied warranty of 14    : ..    .:,     . . . without even the implied warranty of
15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 15    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU 16  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
17..}^=.=       =       ; Library General Public License for more 17..}^=.=       =       ; Library General Public License for more
18++=   -.     .`     .: details. 18++=   -.     .`     .: details.
19 :     =  ...= . :.=- 19 :     =  ...= . :.=-
20 -.   .:....=;==+<; You should have received a copy of the GNU 20 -.   .:....=;==+<; You should have received a copy of the GNU
21  -_. . .   )=.  = Library General Public License along with 21  -_. . .   )=.  = Library General Public License along with
22    --        :-=` this library; see the file COPYING.LIB. 22    --        :-=` this library; see the file COPYING.LIB.
23 If not, write to the Free Software Foundation, 23 If not, write to the Free Software Foundation,
24 Inc., 59 Temple Place - Suite 330, 24 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 25 Boston, MA 02111-1307, USA.
26 26
27*/ 27*/
28 28
29#ifndef OPIE_TABLE_VIEW_H 29#ifndef OPIE_TABLE_VIEW_H
30#define OPIE_TABLE_VIEW_H 30#define OPIE_TABLE_VIEW_H
31 31
32#include <qtable.h> 32#include <qtable.h>
33#include <qmap.h> 33#include <qmap.h>
34 34
35#include "tableitems.h"
36#include "todoview.h" 35#include "todoview.h"
37 36
38class QTimer; 37class QTimer;
39 38
40namespace Todo { 39namespace Todo {
41 class CheckItem; 40 class CheckItem;
42 class DueTextItem; 41 class DueTextItem;
43 class TableView : public QTable, public TodoView { 42 class TableView : public QTable, public TodoView {
44 Q_OBJECT 43 Q_OBJECT
45 public: 44 public:
46 TableView( MainWindow*, QWidget* parent ); 45 TableView( MainWindow*, QWidget* parent );
47 ~TableView(); 46 ~TableView();
48 47
49 48
50 QString type()const; 49 QString type()const;
51 int current(); 50 int current();
52 QString currentRepresentation(); 51 QString currentRepresentation();
53 52
54 void clear(); 53 void clear();
55 void showOverDue( bool ); 54 void showOverDue( bool );
56 void updateView(); 55 void updateView();
57 void setTodo( int uid, const OTodo& ); 56 void setTodo( int uid, const OTodo& );
58 void addEvent( const OTodo& event ); 57 void addEvent( const OTodo& event );
59 void replaceEvent( const OTodo& ); 58 void replaceEvent( const OTodo& );
60 void removeEvent( int uid ); 59 void removeEvent( int uid );
61 void setShowCompleted( bool ); 60 void setShowCompleted( bool );
62 void setShowDeadline( bool ); 61 void setShowDeadline( bool );
63 62
64 void setShowCategory(const QString& =QString::null ); 63 void setShowCategory(const QString& =QString::null );
65 void newDay(); 64 void newDay();
66 QWidget* widget(); 65 QWidget* widget();
67 void sortColumn(int, bool, bool ); 66 void sortColumn(int, bool, bool );
68 67
69 /* 68 /*
70 * we do our drawing ourselves 69 * we do our drawing ourselves
71 * because we don't want to have 70 * because we don't want to have
72 * 40.000 QTableItems for 10.000 71 * 40.000 QTableItems for 10.000
73 * OTodos where we only show 10 at a time! 72 * OTodos where we only show 10 at a time!
74 */ 73 */
75 void paintCell(QPainter* p, int row, int col, const QRect&, bool ); 74 void paintCell(QPainter* p, int row, int col, const QRect&, bool );
76 private: 75 private:
77 /* reimplented for internal reasons */ 76 /* reimplented for internal reasons */
78 void viewportPaintEvent( QPaintEvent* ); 77 void viewportPaintEvent( QPaintEvent* );
79 QTimer *m_menuTimer; 78 QTimer *m_menuTimer;
80 bool m_enablePaint:1; 79 bool m_enablePaint:1;
81 QString m_oleCat; 80 QString m_oleCat;
82 bool m_first : 1; 81 bool m_first : 1;
83 82
diff --git a/core/pim/todo/todo.pro b/core/pim/todo/todo.pro
index 2911743..2714f30 100644
--- a/core/pim/todo/todo.pro
+++ b/core/pim/todo/todo.pro
@@ -1,65 +1,63 @@
1 TEMPLATE= app 1 TEMPLATE= app
2 CONFIG = qt warn_on release 2 CONFIG = qt warn_on release
3 DESTDIR = $(OPIEDIR)/bin 3 DESTDIR = $(OPIEDIR)/bin
4 4
5 HEADERS= smalltodo.h \ 5 HEADERS= smalltodo.h \
6 todomanager.h \ 6 todomanager.h \
7 mainwindow.h \ 7 mainwindow.h \
8 todoview.h \ 8 todoview.h \
9 tableview.h \ 9 tableview.h \
10 tableitems.h \
11 todotemplatemanager.h \ 10 todotemplatemanager.h \
12 todoeditor.h \ 11 todoeditor.h \
13 todoshow.h \ 12 todoshow.h \
14 textviewshow.h \ 13 textviewshow.h \
15 templateeditor.h \ 14 templateeditor.h \
16 templatedialog.h \ 15 templatedialog.h \
17 templatedialogimpl.h \ 16 templatedialogimpl.h \
18 quickedit.h \ 17 quickedit.h \
19 quickeditimpl.h \ 18 quickeditimpl.h \
20 otaskeditor.h \ 19 otaskeditor.h \
21 taskeditoroverviewimpl.h \ 20 taskeditoroverviewimpl.h \
22 taskeditoradvancedimpl.h 21 taskeditoradvancedimpl.h
23 22
24 SOURCES= smalltodo.cpp \ 23 SOURCES= smalltodo.cpp \
25 todomanager.cpp \ 24 todomanager.cpp \
26 mainwindow.cpp \ 25 mainwindow.cpp \
27 main.cpp \ 26 main.cpp \
28 tableview.cpp \ 27 tableview.cpp \
29 tableitems.cpp \
30 todoview.cpp \ 28 todoview.cpp \
31 todotemplatemanager.cpp \ 29 todotemplatemanager.cpp \
32 todoeditor.cpp \ 30 todoeditor.cpp \
33 todoshow.cpp \ 31 todoshow.cpp \
34 textviewshow.cpp \ 32 textviewshow.cpp \
35 templateeditor.cpp \ 33 templateeditor.cpp \
36 templatedialog.cpp \ 34 templatedialog.cpp \
37 templatedialogimpl.cpp \ 35 templatedialogimpl.cpp \
38 quickeditimpl.cpp \ 36 quickeditimpl.cpp \
39 quickedit.cpp \ 37 quickedit.cpp \
40 otaskeditor.cpp \ 38 otaskeditor.cpp \
41 taskeditoroverviewimpl.cpp \ 39 taskeditoroverviewimpl.cpp \
42 taskeditoradvancedimpl.cpp 40 taskeditoradvancedimpl.cpp
43 41
44 INTERFACES= taskeditoradvanced.ui taskeditoralarms.ui taskeditoroverview.ui 42 INTERFACES= taskeditoradvanced.ui taskeditoralarms.ui taskeditoroverview.ui
45 TARGET = todolist 43 TARGET = todolist
46INCLUDEPATH += $(OPIEDIR)/include 44INCLUDEPATH += $(OPIEDIR)/include
47 DEPENDPATH+= $(OPIEDIR)/include 45 DEPENDPATH+= $(OPIEDIR)/include
48LIBS += -lqpe -lopie 46LIBS += -lqpe -lopie
49 47
50TRANSLATIONS = ../../../i18n/de/todolist.ts \ 48TRANSLATIONS = ../../../i18n/de/todolist.ts \
51 ../../../i18n/da/todolist.ts \ 49 ../../../i18n/da/todolist.ts \
52 ../../../i18n/xx/todolist.ts \ 50 ../../../i18n/xx/todolist.ts \
53 ../../../i18n/en/todolist.ts \ 51 ../../../i18n/en/todolist.ts \
54 ../../../i18n/es/todolist.ts \ 52 ../../../i18n/es/todolist.ts \
55 ../../../i18n/fr/todolist.ts \ 53 ../../../i18n/fr/todolist.ts \
56 ../../../i18n/hu/todolist.ts \ 54 ../../../i18n/hu/todolist.ts \
57 ../../../i18n/ja/todolist.ts \ 55 ../../../i18n/ja/todolist.ts \
58 ../../../i18n/ko/todolist.ts \ 56 ../../../i18n/ko/todolist.ts \
59 ../../../i18n/no/todolist.ts \ 57 ../../../i18n/no/todolist.ts \
60 ../../../i18n/pl/todolist.ts \ 58 ../../../i18n/pl/todolist.ts \
61 ../../../i18n/pt/todolist.ts \ 59 ../../../i18n/pt/todolist.ts \
62 ../../../i18n/pt_BR/todolist.ts \ 60 ../../../i18n/pt_BR/todolist.ts \
63 ../../../i18n/sl/todolist.ts \ 61 ../../../i18n/sl/todolist.ts \
64 ../../../i18n/zh_CN/todolist.ts \ 62 ../../../i18n/zh_CN/todolist.ts \
65 ../../../i18n/zh_TW/todolist.ts 63 ../../../i18n/zh_TW/todolist.ts