-rw-r--r-- | Makefile | 657 | ||||
-rw-r--r-- | bin/kdepim/WhatsNew.txt | 1 | ||||
-rw-r--r-- | korganizer/komonthview.cpp | 40 | ||||
-rw-r--r-- | korganizer/komonthview.h | 11 |
4 files changed, 336 insertions, 373 deletions
@@ -1,368 +1,291 @@ | |||
1 | export KDEPIMDIR = $(shell pwd) | 1 | ############################################################################# |
2 | 2 | # Makefile for building: kdepim-desktop | |
3 | export KDEPIM_VERSION=$(shell sed -e 's/.*\"\([0-9]*\.[0-9]*\.[0-9]*\).*/\1/' < version) | 3 | # Generated by qmake (1.07a) (Qt 3.3.3) on: Tue Jan 11 15:52:39 2005 |
4 | 4 | # Project: kdepim-desktop.pro | |
5 | ifeq ($(PLATFORM) , zaurus) | 5 | # Template: subdirs |
6 | BUILD_NO_LDAP_PLUGIN=1 | 6 | # Command: $(QMAKE) -o Makefile kdepim-desktop.pro |
7 | endif | 7 | ############################################################################# |
8 | 8 | ||
9 | ifneq ($(PLATFORM) , zaurus) | 9 | MAKEFILE =Makefile |
10 | BUILD_NO_SHARP_PLUGIN=1 | 10 | QMAKE =qmake |
11 | endif | 11 | DEL_FILE = rm -f |
12 | 12 | CHK_DIR_EXISTS= test -d | |
13 | #opie plugin is deprecated. The qtopia plugin handles the task from now on. | 13 | MKDIR = mkdir -p |
14 | BUILD_NO_OPIE_PLUGIN=1 | 14 | INSTALL_FILE= |
15 | 15 | INSTALL_DIR = | |
16 | SUBDIRS_MICROKDE = \ | 16 | SUBTARGETS = \ |
17 | libical/src/libical \ | 17 | sub-libical \ |
18 | libical/src/libicalss \ | 18 | sub-libkcal \ |
19 | qtcompat \ | 19 | sub-kabc \ |
20 | microkde \ | 20 | sub-libkdepim \ |
21 | libkcal \ | 21 | sub-microkde \ |
22 | libkdepim \ | 22 | sub-korganizer \ |
23 | kabc \ | 23 | sub-kaddressbook \ |
24 | kabc/formats/binary \ | 24 | sub-kabc-plugins-file \ |
25 | kabc/plugins/file \ | 25 | sub-kabc-plugins-dir \ |
26 | kabc/plugins/dir \ | 26 | sub-kabc-plugins-file \ |
27 | korganizer \ | 27 | sub-kabc-plugins-qtopia \ |
28 | kalarmd \ | 28 | sub-gammu-emb-common \ |
29 | kaddressbook | 29 | sub-gammu-emb-gammu \ |
30 | 30 | sub-kmicromail-libetpan \ | |
31 | SUBDIRS_QTOPIA_PLUGIN = \ | 31 | sub-kmicromail-libmailwrapper \ |
32 | kabc/plugins/qtopia | 32 | sub-kmicromail \ |
33 | 33 | sub-pwmanager-libcrypt-cipher \ | |
34 | SUBDIRS_OPIE_PLUGIN = \ | 34 | sub-pwmanager-libcrypt-error \ |
35 | kabc/plugins/opie | 35 | sub-pwmanager-libcrypt-mpi \ |
36 | 36 | sub-pwmanager-libcrypt-zlib \ | |
37 | SUBDIRS_SHARP_PLUGIN = \ | 37 | sub-pwmanager-pwmanager |
38 | kabc/plugins/sharpdtm | 38 | |
39 | 39 | first: all | |
40 | SUBDIRS_LDAP_PLUGIN = \ | 40 | |
41 | kabc/plugins/ldap | 41 | all: Makefile $(SUBTARGETS) |
42 | 42 | ||
43 | SUBDIRS_MICROMAIL = \ | 43 | libical/$(MAKEFILE): |
44 | kmicromail/libetpan \ | 44 | @$(CHK_DIR_EXISTS) "libical" || $(MKDIR) "libical" |
45 | kmicromail/libmailwrapper \ | 45 | cd libical && $(QMAKE) libical.pro -o $(MAKEFILE) |
46 | kmicromail | 46 | sub-libical: libical/$(MAKEFILE) FORCE |
47 | 47 | cd libical && $(MAKE) -f $(MAKEFILE) | |
48 | SUBDIRS_GAMMU = \ | 48 | |
49 | gammu/emb/common \ | 49 | libkcal/$(MAKEFILE): |
50 | gammu/emb/gammu | 50 | @$(CHK_DIR_EXISTS) "libkcal" || $(MKDIR) "libkcal" |
51 | 51 | cd libkcal && $(QMAKE) libkcal.pro -o $(MAKEFILE) | |
52 | SUBDIRS_PWMANAGER = \ | 52 | sub-libkcal: libkcal/$(MAKEFILE) FORCE |
53 | pwmanager/libcrypt/mpi \ | 53 | cd libkcal && $(MAKE) -f $(MAKEFILE) |
54 | pwmanager/libcrypt/error \ | 54 | |
55 | pwmanager/libcrypt/cipher \ | 55 | kabc/$(MAKEFILE): |
56 | pwmanager/libcrypt/zlib \ | 56 | @$(CHK_DIR_EXISTS) "kabc" || $(MKDIR) "kabc" |
57 | pwmanager/pwmanager | 57 | cd kabc && $(QMAKE) kabc.pro -o $(MAKEFILE) |
58 | 58 | sub-kabc: kabc/$(MAKEFILE) FORCE | |
59 | SUBDIRS = \ | 59 | cd kabc && $(MAKE) -f $(MAKEFILE) |
60 | $(SUBDIRS_MICROKDE) \ | 60 | |
61 | $(SUBDIRS_QTOPIA_PLUGIN) \ | 61 | libkdepim/$(MAKEFILE): |
62 | $(SUBDIRS_OPIE_PLUGIN) \ | 62 | @$(CHK_DIR_EXISTS) "libkdepim" || $(MKDIR) "libkdepim" |
63 | $(SUBDIRS_SHARP_PLUGIN) \ | 63 | cd libkdepim && $(QMAKE) libkdepim.pro -o $(MAKEFILE) |
64 | $(SUBDIRS_LDAP_PLUGIN) \ | 64 | sub-libkdepim: libkdepim/$(MAKEFILE) FORCE |
65 | $(SUBDIRS_MICROMAIL) \ | 65 | cd libkdepim && $(MAKE) -f $(MAKEFILE) |
66 | $(SUBDIRS_GAMMU) \ | 66 | |
67 | $(SUBDIRS_PWMANAGER) | 67 | microkde/$(MAKEFILE): |
68 | 68 | @$(CHK_DIR_EXISTS) "microkde" || $(MKDIR) "microkde" | |
69 | 69 | cd microkde && $(QMAKE) microkde.pro -o $(MAKEFILE) | |
70 | all: build_microkde \ | 70 | sub-microkde: microkde/$(MAKEFILE) FORCE |
71 | build_qtopia_plugin \ | 71 | cd microkde && $(MAKE) -f $(MAKEFILE) |
72 | build_opie_plugin \ | 72 | |
73 | build_sharp_plugin \ | 73 | korganizer/$(MAKEFILE): |
74 | build_ldap_plugin \ | 74 | @$(CHK_DIR_EXISTS) "korganizer" || $(MKDIR) "korganizer" |
75 | build_micromail \ | 75 | cd korganizer && $(QMAKE) korganizer.pro -o $(MAKEFILE) |
76 | build_gammu \ | 76 | sub-korganizer: korganizer/$(MAKEFILE) FORCE |
77 | build_pwmanager | 77 | cd korganizer && $(MAKE) -f $(MAKEFILE) |
78 | 78 | ||
79 | 79 | kaddressbook/$(MAKEFILE): | |
80 | build_microkde: variable_test tmake | 80 | @$(CHK_DIR_EXISTS) "kaddressbook" || $(MKDIR) "kaddressbook" |
81 | for i in $(SUBDIRS_MICROKDE); do pushd $$i; \ | 81 | cd kaddressbook && $(QMAKE) kaddressbook.pro -o $(MAKEFILE) |
82 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 82 | sub-kaddressbook: kaddressbook/$(MAKEFILE) FORCE |
83 | done | 83 | cd kaddressbook && $(MAKE) -f $(MAKEFILE) |
84 | 84 | ||
85 | build_qtopia_plugin: build_microkde | 85 | kabc/plugins/file/$(MAKEFILE): |
86 | ifdef BUILD_NO_QTOPIA_PLUGIN | 86 | @$(CHK_DIR_EXISTS) "kabc/plugins/file" || $(MKDIR) "kabc/plugins/file" |
87 | @echo == qtopia plugin not build. | 87 | cd kabc/plugins/file && $(QMAKE) file.pro -o $(MAKEFILE) |
88 | else | 88 | sub-kabc-plugins-file: kabc/plugins/file/$(MAKEFILE) FORCE |
89 | for i in $(SUBDIRS_QTOPIA_PLUGIN); do pushd $$i; \ | 89 | cd kabc/plugins/file && $(MAKE) -f $(MAKEFILE) |
90 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 90 | |
91 | done | 91 | kabc/plugins/dir/$(MAKEFILE): |
92 | endif | 92 | @$(CHK_DIR_EXISTS) "kabc/plugins/dir" || $(MKDIR) "kabc/plugins/dir" |
93 | 93 | cd kabc/plugins/dir && $(QMAKE) dir.pro -o $(MAKEFILE) | |
94 | build_opie_plugin: build_microkde | 94 | sub-kabc-plugins-dir: kabc/plugins/dir/$(MAKEFILE) FORCE |
95 | ifdef BUILD_NO_OPIE_PLUGIN | 95 | cd kabc/plugins/dir && $(MAKE) -f $(MAKEFILE) |
96 | @echo == opie plugin not build. | 96 | |
97 | else | 97 | kabc/plugins/file/$(MAKEFILE): |
98 | for i in $(SUBDIRS_OPIE_PLUGIN); do pushd $$i; \ | 98 | @$(CHK_DIR_EXISTS) "kabc/plugins/file" || $(MKDIR) "kabc/plugins/file" |
99 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 99 | cd kabc/plugins/file && $(QMAKE) file.pro -o $(MAKEFILE) |
100 | done | 100 | sub-kabc-plugins-file: kabc/plugins/file/$(MAKEFILE) FORCE |
101 | endif | 101 | cd kabc/plugins/file && $(MAKE) -f $(MAKEFILE) |
102 | 102 | ||
103 | build_sharp_plugin: build_microkde | 103 | kabc/plugins/qtopia/$(MAKEFILE): |
104 | ifdef BUILD_NO_SHARP_PLUGIN | 104 | @$(CHK_DIR_EXISTS) "kabc/plugins/qtopia" || $(MKDIR) "kabc/plugins/qtopia" |
105 | @echo == ldap plugin not build. | 105 | cd kabc/plugins/qtopia && $(QMAKE) qtopia.pro -o $(MAKEFILE) |
106 | else | 106 | sub-kabc-plugins-qtopia: kabc/plugins/qtopia/$(MAKEFILE) FORCE |
107 | for i in $(SUBDIRS_SHARP_PLUGIN); do pushd $$i; \ | 107 | cd kabc/plugins/qtopia && $(MAKE) -f $(MAKEFILE) |
108 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 108 | |
109 | done | 109 | gammu/emb/common/$(MAKEFILE): |
110 | endif | 110 | @$(CHK_DIR_EXISTS) "gammu/emb/common" || $(MKDIR) "gammu/emb/common" |
111 | 111 | cd gammu/emb/common && $(QMAKE) common.pro -o $(MAKEFILE) | |
112 | build_ldap_plugin: build_microkde | 112 | sub-gammu-emb-common: gammu/emb/common/$(MAKEFILE) FORCE |
113 | ifdef BUILD_NO_LDAP_PLUGIN | 113 | cd gammu/emb/common && $(MAKE) -f $(MAKEFILE) |
114 | @echo == ldap plugin not build. | 114 | |
115 | else | 115 | gammu/emb/gammu/$(MAKEFILE): |
116 | for i in $(SUBDIRS_LDAP_PLUGIN); do pushd $$i; \ | 116 | @$(CHK_DIR_EXISTS) "gammu/emb/gammu" || $(MKDIR) "gammu/emb/gammu" |
117 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 117 | cd gammu/emb/gammu && $(QMAKE) gammu.pro -o $(MAKEFILE) |
118 | done | 118 | sub-gammu-emb-gammu: gammu/emb/gammu/$(MAKEFILE) FORCE |
119 | endif | 119 | cd gammu/emb/gammu && $(MAKE) -f $(MAKEFILE) |
120 | 120 | ||
121 | 121 | kmicromail/libetpan/$(MAKEFILE): | |
122 | build_micromail: build_microkde | 122 | @$(CHK_DIR_EXISTS) "kmicromail/libetpan" || $(MKDIR) "kmicromail/libetpan" |
123 | ifdef BUILD_NO_MICROMAIL | 123 | cd kmicromail/libetpan && $(QMAKE) libetpan.pro -o $(MAKEFILE) |
124 | @echo == kmicromail not build. | 124 | sub-kmicromail-libetpan: kmicromail/libetpan/$(MAKEFILE) FORCE |
125 | else | 125 | cd kmicromail/libetpan && $(MAKE) -f $(MAKEFILE) |
126 | for i in $(SUBDIRS_MICROMAIL); do pushd $$i; \ | 126 | |
127 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 127 | kmicromail/libmailwrapper/$(MAKEFILE): |
128 | done | 128 | @$(CHK_DIR_EXISTS) "kmicromail/libmailwrapper" || $(MKDIR) "kmicromail/libmailwrapper" |
129 | endif | 129 | cd kmicromail/libmailwrapper && $(QMAKE) libmailwrapper.pro -o $(MAKEFILE) |
130 | 130 | sub-kmicromail-libmailwrapper: kmicromail/libmailwrapper/$(MAKEFILE) FORCE | |
131 | build_gammu: variable_test tmake | 131 | cd kmicromail/libmailwrapper && $(MAKE) -f $(MAKEFILE) |
132 | ifdef BUILD_NO_GAMMU | 132 | |
133 | @echo == gammu not build. | 133 | kmicromail/$(MAKEFILE): |
134 | else | 134 | @$(CHK_DIR_EXISTS) "kmicromail" || $(MKDIR) "kmicromail" |
135 | for i in $(SUBDIRS_GAMMU); do pushd $$i; \ | 135 | cd kmicromail && $(QMAKE) kmicromail.pro -o $(MAKEFILE) |
136 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 136 | sub-kmicromail: kmicromail/$(MAKEFILE) FORCE |
137 | done | 137 | cd kmicromail && $(MAKE) -f $(MAKEFILE) |
138 | endif | 138 | |
139 | 139 | pwmanager/libcrypt/cipher/$(MAKEFILE): | |
140 | build_pwmanager: build_microkde | 140 | @$(CHK_DIR_EXISTS) "pwmanager/libcrypt/cipher" || $(MKDIR) "pwmanager/libcrypt/cipher" |
141 | ifdef BUILD_NO_PWMANAGER | 141 | cd pwmanager/libcrypt/cipher && $(QMAKE) cipher.pro -o $(MAKEFILE) |
142 | @echo == pwmanager not build. | 142 | sub-pwmanager-libcrypt-cipher: pwmanager/libcrypt/cipher/$(MAKEFILE) FORCE |
143 | else | 143 | cd pwmanager/libcrypt/cipher && $(MAKE) -f $(MAKEFILE) |
144 | for i in $(SUBDIRS_PWMANAGER); do pushd $$i; \ | 144 | |
145 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 145 | pwmanager/libcrypt/error/$(MAKEFILE): |
146 | done | 146 | @$(CHK_DIR_EXISTS) "pwmanager/libcrypt/error" || $(MKDIR) "pwmanager/libcrypt/error" |
147 | endif | 147 | cd pwmanager/libcrypt/error && $(QMAKE) error.pro -o $(MAKEFILE) |
148 | 148 | sub-pwmanager-libcrypt-error: pwmanager/libcrypt/error/$(MAKEFILE) FORCE | |
149 | 149 | cd pwmanager/libcrypt/error && $(MAKE) -f $(MAKEFILE) | |
150 | variable_info: | 150 | |
151 | @echo -------------------------------------- | 151 | pwmanager/libcrypt/mpi/$(MAKEFILE): |
152 | @echo KDEPIM buildsystem, variableinfo... | 152 | @$(CHK_DIR_EXISTS) "pwmanager/libcrypt/mpi" || $(MKDIR) "pwmanager/libcrypt/mpi" |
153 | @echo KDEPIMDIR=$(KDEPIMDIR) | 153 | cd pwmanager/libcrypt/mpi && $(QMAKE) mpi.pro -o $(MAKEFILE) |
154 | @echo QTDIR=$(QTDIR) | 154 | sub-pwmanager-libcrypt-mpi: pwmanager/libcrypt/mpi/$(MAKEFILE) FORCE |
155 | @echo QPEDIR=$(QPEDIR) | 155 | cd pwmanager/libcrypt/mpi && $(MAKE) -f $(MAKEFILE) |
156 | @echo OPIEDIR=$(OPIEDIR) | 156 | |
157 | @echo PLATFORM=$(PLATFORM) | 157 | pwmanager/libcrypt/zlib/$(MAKEFILE): |
158 | @echo RELEASE_DEBUG=$(RELEASE_DEBUG) | 158 | @$(CHK_DIR_EXISTS) "pwmanager/libcrypt/zlib" || $(MKDIR) "pwmanager/libcrypt/zlib" |
159 | @echo BUILD_NO_MICROMAIL=$(BUILD_NO_MICROMAIL) | 159 | cd pwmanager/libcrypt/zlib && $(QMAKE) zlib.pro -o $(MAKEFILE) |
160 | @echo BUILD_NO_LDAP_PLUGIN=$(BUILD_NO_LDAP_PLUGIN) | 160 | sub-pwmanager-libcrypt-zlib: pwmanager/libcrypt/zlib/$(MAKEFILE) FORCE |
161 | @echo BUILD_NO_OPIE_PLUGIN=$(BUILD_NO_OPIE_PLUGIN) | 161 | cd pwmanager/libcrypt/zlib && $(MAKE) -f $(MAKEFILE) |
162 | @echo BUILD_NO_QTOPIA_PLUGIN=$(BUILD_NO_QTOPIA_PLUGIN) | 162 | |
163 | @echo BUILD_NO_SHARP_PLUGIN=$(BUILD_NO_SHARP_PLUGIN) | 163 | pwmanager/pwmanager/$(MAKEFILE): |
164 | ifndef BUILD_NO_SHARP_PLUGIN | 164 | @$(CHK_DIR_EXISTS) "pwmanager/pwmanager" || $(MKDIR) "pwmanager/pwmanager" |
165 | @echo SHARPDTMSDK=$(SHARPDTMSDK) | 165 | cd pwmanager/pwmanager && $(QMAKE) pwmanager.pro -o $(MAKEFILE) |
166 | endif | 166 | sub-pwmanager-pwmanager: pwmanager/pwmanager/$(MAKEFILE) FORCE |
167 | @echo BUILD_NO_GAMMU=$(BUILD_NO_GAMMU) | 167 | cd pwmanager/pwmanager && $(MAKE) -f $(MAKEFILE) |
168 | @echo BUILD_NO_PWMANAGER=$(BUILD_NO_PWMANAGER) | 168 | |
169 | @echo -------------------------------------- | 169 | Makefile: kdepim-desktop.pro /usr/lib/qt3/mkspecs/default/qmake.conf |
170 | 170 | $(QMAKE) -o Makefile kdepim-desktop.pro | |
171 | variable_test: variable_info | 171 | qmake: qmake_all |
172 | @echo KDEPIM buildsystem, variablecheck... | 172 | @$(QMAKE) -o Makefile kdepim-desktop.pro |
173 | ifndef KDEPIMDIR | 173 | |
174 | @echo KDEPIMDIR is not defined. | 174 | all: $(SUBTARGETS) |
175 | $(error KDEPIMDIR is not defined) | 175 | qmake_all: libical/$(MAKEFILE) libkcal/$(MAKEFILE) kabc/$(MAKEFILE) libkdepim/$(MAKEFILE) microkde/$(MAKEFILE) korganizer/$(MAKEFILE) kaddressbook/$(MAKEFILE) kabc/plugins/file/$(MAKEFILE) kabc/plugins/dir/$(MAKEFILE) kabc/plugins/file/$(MAKEFILE) kabc/plugins/qtopia/$(MAKEFILE) gammu/emb/common/$(MAKEFILE) gammu/emb/gammu/$(MAKEFILE) kmicromail/libetpan/$(MAKEFILE) kmicromail/libmailwrapper/$(MAKEFILE) kmicromail/$(MAKEFILE) pwmanager/libcrypt/cipher/$(MAKEFILE) pwmanager/libcrypt/error/$(MAKEFILE) pwmanager/libcrypt/mpi/$(MAKEFILE) pwmanager/libcrypt/zlib/$(MAKEFILE) pwmanager/pwmanager/$(MAKEFILE) |
176 | endif | 176 | ( [ -d libical ] && cd libical ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
177 | ifndef PLATFORM | 177 | ( [ -d libkcal ] && cd libkcal ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
178 | @echo PLATFORM is not defined. | 178 | ( [ -d kabc ] && cd kabc ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
179 | $(error PLATFORM is not defined) | 179 | ( [ -d libkdepim ] && cd libkdepim ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
180 | endif | 180 | ( [ -d microkde ] && cd microkde ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
181 | ifdef BUILD_NO_LDAP_PLUGIN | 181 | ( [ -d korganizer ] && cd korganizer ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
182 | @echo LDAP PLUGIN will not be build, because BUILD_NO_LDAP_PLUGIN is set to $(BUILD_NO_LDAP_PLUGIN) | 182 | ( [ -d kaddressbook ] && cd kaddressbook ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
183 | endif | 183 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
184 | ifdef BUILD_NO_OPIE_PLUGIN | 184 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
185 | @echo OPIE PLUGIN will not be build, because BUILD_NO_OPIE_PLUGIN is set to $(BUILD_NO_OPIE_PLUGIN) | 185 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
186 | endif | 186 | ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
187 | ifdef BUILD_NO_QTOPIA_PLUGIN | 187 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
188 | @echo QTOPIA PLUGIN will not be build, because BUILD_NO__QTOPIA_PLUGIN is set to $(BUILD_NO__QTOPIA_PLUGIN) | 188 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
189 | endif | 189 | ( [ -d kmicromail/libetpan ] && cd kmicromail/libetpan ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
190 | ifdef BUILD_NO_MICROMAIL | 190 | ( [ -d kmicromail/libmailwrapper ] && cd kmicromail/libmailwrapper ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
191 | @echo MICROMAIL will not be build, because BUILD_NO_MICROMAIL is set to $(BUILD_NO_MICROMAIL) | 191 | ( [ -d kmicromail ] && cd kmicromail ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
192 | endif | 192 | ( [ -d pwmanager/libcrypt/cipher ] && cd pwmanager/libcrypt/cipher ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
193 | ifdef BUILD_NO_SHARP_PLUGIN | 193 | ( [ -d pwmanager/libcrypt/error ] && cd pwmanager/libcrypt/error ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
194 | @echo SHARP PLUGIN will not be build, because BUILD_NO_SHARP_PLUGIN is set to $(BUILD_NO_SHARP_PLUGIN) | 194 | ( [ -d pwmanager/libcrypt/mpi ] && cd pwmanager/libcrypt/mpi ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
195 | else | 195 | ( [ -d pwmanager/libcrypt/zlib ] && cd pwmanager/libcrypt/zlib ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
196 | ifndef SHARPDTMSDK | 196 | ( [ -d pwmanager/pwmanager ] && cd pwmanager/pwmanager ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
197 | @echo SHARP PLUGIN can not be build, because SHARPDTMSDK is set to $(SHARPDTMSDK) | 197 | clean uicables mocables uiclean mocclean lexclean yaccclean : qmake_all FORCE |
198 | $(error SHARPDTMSDK is not defined) | 198 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
199 | endif | 199 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
200 | endif | 200 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
201 | ifdef BUILD_NO_GAMMU | 201 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
202 | @echo GAMMU will not be build, because BUILD_NO_GAMMU is set to $(BUILD_NO_GAMMU) | 202 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
203 | endif | 203 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
204 | ifdef BUILD_NO_PWMANAGER | 204 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
205 | @echo PWMANAGER will not be build, because BUILD_NO_PWMANAGER is set to $(BUILD_NO_PWMANAGER) | 205 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
206 | endif | 206 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
207 | @echo -------------------------------------- | 207 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
208 | 208 | ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; $(MAKE) -f $(MAKEFILE) $@; ) || true | |
209 | 209 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) $@; ) || true | |
210 | objects: | 210 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
211 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done | 211 | ( [ -d kmicromail/libetpan ] && cd kmicromail/libetpan ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
212 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done | 212 | ( [ -d kmicromail/libmailwrapper ] && cd kmicromail/libmailwrapper ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
213 | mkdir -p libical/lib/$(PLATFORM) | 213 | ( [ -d kmicromail ] && cd kmicromail ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
214 | mkdir -p pwmanager/libcrypt/$(PLATFORM) | 214 | ( [ -d pwmanager/libcrypt/cipher ] && cd pwmanager/libcrypt/cipher ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
215 | 215 | ( [ -d pwmanager/libcrypt/error ] && cd pwmanager/libcrypt/error ; $(MAKE) -f $(MAKEFILE) $@; ) || true | |
216 | clean: | 216 | ( [ -d pwmanager/libcrypt/mpi ] && cd pwmanager/libcrypt/mpi ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
217 | rm -rf libical/lib/$(PLATFORM)/*; | 217 | ( [ -d pwmanager/libcrypt/zlib ] && cd pwmanager/libcrypt/zlib ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
218 | rm -rf pwmanager/libcrypt/$(PLATFORM)/*; | 218 | ( [ -d pwmanager/pwmanager ] && cd pwmanager/pwmanager ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
219 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ | 219 | uninstall_subdirs: qmake_all FORCE |
220 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ | 220 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
221 | done | 221 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
222 | 222 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | |
223 | install: | 223 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
224 | 224 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | |
225 | cd bin/kdepim; make install | 225 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
226 | cp -r Pim $(QPEDIR)/apps | 226 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
227 | cp db2file/db2file $(QPEDIR)/bin/db2file | 227 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
228 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop | 228 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
229 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop | 229 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
230 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kopiemail.desktop | 230 | ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
231 | cp pwmanager/pwmanager/pwmanager.desktop $(QPEDIR)/apps/Pim/pwmanager.desktop | 231 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
232 | 232 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | |
233 | dist: | 233 | ( [ -d kmicromail/libetpan ] && cd kmicromail/libetpan ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
234 | @echo Dont forget to do "make install" before "make dist" | 234 | ( [ -d kmicromail/libmailwrapper ] && cd kmicromail/libmailwrapper ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
235 | rm -f *arm.ipk | 235 | ( [ -d kmicromail ] && cd kmicromail ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
236 | rm -f *~ | 236 | ( [ -d pwmanager/libcrypt/cipher ] && cd pwmanager/libcrypt/cipher ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
237 | cd ..; tar czf kdepimpi-$(KDEPIM_VERSION).tar.gz --exclude=obj --exclude=moc --exclude=CVS --exclude=Makefilezaurus --exclude=Makefileqtopia kdepim | 237 | ( [ -d pwmanager/libcrypt/error ] && cd pwmanager/libcrypt/error ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
238 | mkipks kmicrokdelibs.control | 238 | ( [ -d pwmanager/libcrypt/mpi ] && cd pwmanager/libcrypt/mpi ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
239 | mkipks korganizer.control | 239 | ( [ -d pwmanager/libcrypt/zlib ] && cd pwmanager/libcrypt/zlib ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
240 | mkipks kaddressbook.control | 240 | ( [ -d pwmanager/pwmanager ] && cd pwmanager/pwmanager ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
241 | ifndef BUILD_NO_MICROMAIL | 241 | install_subdirs: qmake_all FORCE |
242 | mkipks kopiemail.control | 242 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) install; ) || true |
243 | endif | 243 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) install; ) || true |
244 | ifndef BUILD_NO_SHARP_PLUGIN | 244 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) install; ) || true |
245 | mkipks ksharpPIM-DTMaccess.control | 245 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) install; ) || true |
246 | endif | 246 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) install; ) || true |
247 | mkipks korganizer-alarm.control | 247 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) install; ) || true |
248 | ifndef BUILD_NO_GAMMU | 248 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) install; ) || true |
249 | mkipks kmobilephoneaccess.control | 249 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) install; ) || true |
250 | endif | 250 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) install; ) || true |
251 | ifndef BUILD_NO_PWMANAGER | 251 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) install; ) || true |
252 | mkipks pwmanager.control | 252 | ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; $(MAKE) -f $(MAKEFILE) install; ) || true |
253 | endif | 253 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) install; ) || true |
254 | mkipks pimTABicon.control | 254 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) install; ) || true |
255 | 255 | ( [ -d kmicromail/libetpan ] && cd kmicromail/libetpan ; $(MAKE) -f $(MAKEFILE) install; ) || true | |
256 | tmake: objects \ | 256 | ( [ -d kmicromail/libmailwrapper ] && cd kmicromail/libmailwrapper ; $(MAKE) -f $(MAKEFILE) install; ) || true |
257 | qtcompat/Makefile$(PLATFORM) \ | 257 | ( [ -d kmicromail ] && cd kmicromail ; $(MAKE) -f $(MAKEFILE) install; ) || true |
258 | microkde/Makefile$(PLATFORM) \ | 258 | ( [ -d pwmanager/libcrypt/cipher ] && cd pwmanager/libcrypt/cipher ; $(MAKE) -f $(MAKEFILE) install; ) || true |
259 | libkcal/Makefile$(PLATFORM) \ | 259 | ( [ -d pwmanager/libcrypt/error ] && cd pwmanager/libcrypt/error ; $(MAKE) -f $(MAKEFILE) install; ) || true |
260 | libkdepim/Makefile$(PLATFORM) \ | 260 | ( [ -d pwmanager/libcrypt/mpi ] && cd pwmanager/libcrypt/mpi ; $(MAKE) -f $(MAKEFILE) install; ) || true |
261 | korganizer/Makefile$(PLATFORM) \ | 261 | ( [ -d pwmanager/libcrypt/zlib ] && cd pwmanager/libcrypt/zlib ; $(MAKE) -f $(MAKEFILE) install; ) || true |
262 | kalarmd/Makefile$(PLATFORM) \ | 262 | ( [ -d pwmanager/pwmanager ] && cd pwmanager/pwmanager ; $(MAKE) -f $(MAKEFILE) install; ) || true |
263 | libical/src/libical/Makefile$(PLATFORM) \ | 263 | distclean: qmake_all FORCE |
264 | libical/src/libicalss/Makefile$(PLATFORM) \ | 264 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
265 | kabc/Makefile$(PLATFORM) \ | 265 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
266 | kabc/formats/binary/Makefile$(PLATFORM) \ | 266 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
267 | kabc/plugins/file/Makefile$(PLATFORM) \ | 267 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
268 | kabc/plugins/dir/Makefile$(PLATFORM) \ | 268 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
269 | kabc/plugins/ldap/Makefile$(PLATFORM) \ | 269 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
270 | kabc/plugins/opie/Makefile$(PLATFORM) \ | 270 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
271 | kabc/plugins/qtopia/Makefile$(PLATFORM) \ | 271 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
272 | kabc/plugins/sharpdtm/Makefile$(PLATFORM) \ | 272 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
273 | kaddressbook/Makefile$(PLATFORM) \ | 273 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
274 | kmicromail/Makefile$(PLATFORM) \ | 274 | ( [ -d kabc/plugins/qtopia ] && cd kabc/plugins/qtopia ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
275 | kmicromail/libetpan/Makefile$(PLATFORM) \ | 275 | ( [ -d gammu/emb/common ] && cd gammu/emb/common ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
276 | kmicromail/libmailwrapper/Makefile$(PLATFORM) \ | 276 | ( [ -d gammu/emb/gammu ] && cd gammu/emb/gammu ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
277 | gammu/emb/common/Makefile$(PLATFORM) \ | 277 | ( [ -d kmicromail/libetpan ] && cd kmicromail/libetpan ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
278 | gammu/emb/gammu/Makefile$(PLATFORM) \ | 278 | ( [ -d kmicromail/libmailwrapper ] && cd kmicromail/libmailwrapper ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
279 | pwmanager/pwmanager/Makefile$(PLATFORM) \ | 279 | ( [ -d kmicromail ] && cd kmicromail ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
280 | pwmanager/libcrypt/mpi/Makefile$(PLATFORM) \ | 280 | ( [ -d pwmanager/libcrypt/cipher ] && cd pwmanager/libcrypt/cipher ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
281 | pwmanager/libcrypt/error/Makefile$(PLATFORM) \ | 281 | ( [ -d pwmanager/libcrypt/error ] && cd pwmanager/libcrypt/error ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
282 | pwmanager/libcrypt/cipher/Makefile$(PLATFORM) \ | 282 | ( [ -d pwmanager/libcrypt/mpi ] && cd pwmanager/libcrypt/mpi ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
283 | pwmanager/libcrypt/zlib/Makefile$(PLATFORM) | 283 | ( [ -d pwmanager/libcrypt/zlib ] && cd pwmanager/libcrypt/zlib ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true |
284 | 284 | ( [ -d pwmanager/pwmanager ] && cd pwmanager/pwmanager ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | |
285 | qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro | 285 | |
286 | cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtcompat.pro -o Makefile$(PLATFORM) | 286 | install: install_subdirs |
287 | 287 | ||
288 | microkde/Makefile$(PLATFORM): microkde/microkdeE.pro | 288 | uninstall: uninstall_subdirs |
289 | cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" microkdeE.pro -o Makefile$(PLATFORM) | 289 | |
290 | 290 | FORCE: | |
291 | libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro | ||
292 | cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkcalE.pro -o Makefile$(PLATFORM) | ||
293 | |||
294 | |||
295 | libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro | ||
296 | cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libkdepimE.pro -o Makefile$(PLATFORM) | ||
297 | |||
298 | kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro | ||
299 | cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kalarmdE.pro -o Makefile$(PLATFORM) | ||
300 | |||
301 | korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro | ||
302 | cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" korganizerE.pro -o Makefile$(PLATFORM) | ||
303 | |||
304 | libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro | ||
305 | cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalE.pro -o Makefile$(PLATFORM) | ||
306 | |||
307 | libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro | ||
308 | cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libicalssE.pro -o Makefile$(PLATFORM) | ||
309 | |||
310 | kabc/Makefile$(PLATFORM): kabc/kabcE.pro | ||
311 | cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcE.pro -o Makefile$(PLATFORM) | ||
312 | |||
313 | kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro | ||
314 | cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) | ||
315 | |||
316 | kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/fileE.pro | ||
317 | cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" fileE.pro -o Makefile$(PLATFORM) | ||
318 | |||
319 | kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/dirE.pro | ||
320 | cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" dirE.pro -o Makefile$(PLATFORM) | ||
321 | |||
322 | kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/ldapE.pro | ||
323 | cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" ldapE.pro -o Makefile$(PLATFORM) | ||
324 | |||
325 | kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/opieE.pro | ||
326 | cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" opieE.pro -o Makefile$(PLATFORM) | ||
327 | |||
328 | kabc/plugins/qtopia/Makefile$(PLATFORM): kabc/plugins/qtopia/qtopiaE.pro | ||
329 | cd kabc/plugins/qtopia; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" qtopiaE.pro -o Makefile$(PLATFORM) | ||
330 | |||
331 | kabc/plugins/sharpdtm/Makefile$(PLATFORM): kabc/plugins/sharpdtm/sharpdtmE.pro | ||
332 | cd kabc/plugins/sharpdtm; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" sharpdtmE.pro -o Makefile$(PLATFORM) | ||
333 | |||
334 | kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro | ||
335 | cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kaddressbookE.pro -o Makefile$(PLATFORM) | ||
336 | |||
337 | kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro | ||
338 | cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" kmicromailE.pro -o Makefile$(PLATFORM) | ||
339 | |||
340 | kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro | ||
341 | cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libetpanE.pro -o Makefile$(PLATFORM) | ||
342 | |||
343 | kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro | ||
344 | cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" libmailwrapperE.pro -o Makefile$(PLATFORM) | ||
345 | |||
346 | gammu/emb/common/Makefile$(PLATFORM): gammu/emb/common/commonE.pro | ||
347 | cd gammu/emb/common; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" commonE.pro -o Makefile$(PLATFORM) | ||
348 | |||
349 | gammu/emb/gammu/Makefile$(PLATFORM): gammu/emb/gammu/gammuE.pro | ||
350 | cd gammu/emb/gammu; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" gammuE.pro -o Makefile$(PLATFORM) | ||
351 | |||
352 | pwmanager/pwmanager/Makefile$(PLATFORM): pwmanager/pwmanager/pwmanagerE.pro | ||
353 | cd pwmanager/pwmanager; tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" pwmanagerE.pro -o Makefile$(PLATFORM) | ||
354 | |||
355 | |||
356 | pwmanager/libcrypt/mpi/Makefile$(PLATFORM): pwmanager/libcrypt/mpi/mpi.pro | ||
357 | cd pwmanager/libcrypt/mpi;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" mpi.pro -o Makefile$(PLATFORM) | ||
358 | |||
359 | pwmanager/libcrypt/error/Makefile$(PLATFORM): pwmanager/libcrypt/error/error.pro | ||
360 | cd pwmanager/libcrypt/error;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" error.pro -o Makefile$(PLATFORM) | ||
361 | |||
362 | pwmanager/libcrypt/cipher/Makefile$(PLATFORM): pwmanager/libcrypt/cipher/cipher.pro | ||
363 | cd pwmanager/libcrypt/cipher;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" cipher.pro -o Makefile$(PLATFORM) | ||
364 | |||
365 | pwmanager/libcrypt/zlib/Makefile$(PLATFORM): pwmanager/libcrypt/zlib/zlib.pro | ||
366 | cd pwmanager/libcrypt/zlib;tmake "CONFIG+=$(RELEASE_DEBUG)" "VERSION=$(KDEPIM_VERSION)" zlib.pro -o Makefile$(PLATFORM) | ||
367 | |||
368 | 291 | ||
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index a7d1b90..a425311 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -2,24 +2,25 @@ Info about the changes in new versions of KDE-Pim/Pi | |||
2 | 2 | ||
3 | ********** VERSION 1.9.16 ************ | 3 | ********** VERSION 1.9.16 ************ |
4 | 4 | ||
5 | KO/Pi: | 5 | KO/Pi: |
6 | Fixed search dialog size on Z 6000 (480x640 display). | 6 | Fixed search dialog size on Z 6000 (480x640 display). |
7 | Added setting to hide/show time in agenda items. | 7 | Added setting to hide/show time in agenda items. |
8 | Added setting to hide not running todos in todo view. | 8 | Added setting to hide not running todos in todo view. |
9 | Added columns for start date/time in todo view. | 9 | Added columns for start date/time in todo view. |
10 | Replaced the solid half-hour lines in agenda view by dot lines. | 10 | Replaced the solid half-hour lines in agenda view by dot lines. |
11 | Added possibility of printing the What's Next View on the desktop | 11 | Added possibility of printing the What's Next View on the desktop |
12 | (i.e. Windows and Linux). | 12 | (i.e. Windows and Linux). |
13 | Fixed a crash in KO/Pi when starting KO/Pi with What's Next view. | 13 | Fixed a crash in KO/Pi when starting KO/Pi with What's Next view. |
14 | Added tooltips in month view.(Tooltips only available on desktop) | ||
14 | 15 | ||
15 | Fixed a strange problem in KO/Pi alarm applet. | 16 | Fixed a strange problem in KO/Pi alarm applet. |
16 | Did not find the actual problem, | 17 | Did not find the actual problem, |
17 | such that now Qtopia reboots again if deinstalling the alarm applet. | 18 | such that now Qtopia reboots again if deinstalling the alarm applet. |
18 | But the alarm applet should work again. | 19 | But the alarm applet should work again. |
19 | 20 | ||
20 | KA/Pi: | 21 | KA/Pi: |
21 | Fixed the problem, that internal pictures were not saved. | 22 | Fixed the problem, that internal pictures were not saved. |
22 | 23 | ||
23 | Fixed a problem in the pi-sync mode by increasing the timeout for data transfer from 20 seconds to 5 minutes. | 24 | Fixed a problem in the pi-sync mode by increasing the timeout for data transfer from 20 seconds to 5 minutes. |
24 | 25 | ||
25 | Fixed some minor problems. (Like word wrap in help text windows). | 26 | Fixed some minor problems. (Like word wrap in help text windows). |
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 08232e2..9344567 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp | |||
@@ -45,25 +45,27 @@ | |||
45 | #include "calprinter.h" | 45 | #include "calprinter.h" |
46 | #endif | 46 | #endif |
47 | #include "koprefs.h" | 47 | #include "koprefs.h" |
48 | #ifndef KORG_NOPLUGINS | 48 | #ifndef KORG_NOPLUGINS |
49 | #include "kocore.h" | 49 | #include "kocore.h" |
50 | #endif | 50 | #endif |
51 | #include "koglobals.h" | 51 | #include "koglobals.h" |
52 | #include <libkcal/kincidenceformatter.h> | 52 | #include <libkcal/kincidenceformatter.h> |
53 | 53 | ||
54 | #include "komonthview.h" | 54 | #include "komonthview.h" |
55 | 55 | ||
56 | #define PIXMAP_SIZE 5 | 56 | #define PIXMAP_SIZE 5 |
57 | 57 | #ifdef DESKTOP_VERSION | |
58 | QToolTipGroup *MonthViewCell::mToolTipGroup = 0; | ||
59 | #endif | ||
58 | class KNOWhatsThis :public QWhatsThis | 60 | class KNOWhatsThis :public QWhatsThis |
59 | { | 61 | { |
60 | public: | 62 | public: |
61 | KNOWhatsThis( KNoScrollListBox* sbox ) : QWhatsThis( sbox ), _wid( sbox) { }; | 63 | KNOWhatsThis( KNoScrollListBox* sbox ) : QWhatsThis( sbox ), _wid( sbox) { }; |
62 | 64 | ||
63 | protected: | 65 | protected: |
64 | virtual QString text( const QPoint& p) | 66 | virtual QString text( const QPoint& p) |
65 | { | 67 | { |
66 | return _wid->getWhatsThisText(p) ; | 68 | return _wid->getWhatsThisText(p) ; |
67 | }; | 69 | }; |
68 | private: | 70 | private: |
69 | KNoScrollListBox* _wid; | 71 | KNoScrollListBox* _wid; |
@@ -75,25 +77,25 @@ KNoScrollListBox::KNoScrollListBox(QWidget *parent,const char *name) | |||
75 | : QListBox(parent, name) | 77 | : QListBox(parent, name) |
76 | { | 78 | { |
77 | #ifndef DESKTOP_VERSION | 79 | #ifndef DESKTOP_VERSION |
78 | QPEApplication::setStylusOperation( viewport(), QPEApplication::RightOnHold ); | 80 | QPEApplication::setStylusOperation( viewport(), QPEApplication::RightOnHold ); |
79 | #endif | 81 | #endif |
80 | new KNOWhatsThis(this); | 82 | new KNOWhatsThis(this); |
81 | } | 83 | } |
82 | 84 | ||
83 | QString KNoScrollListBox::getWhatsThisText(QPoint p) | 85 | QString KNoScrollListBox::getWhatsThisText(QPoint p) |
84 | { | 86 | { |
85 | QListBoxItem* item = itemAt ( p ); | 87 | QListBoxItem* item = itemAt ( p ); |
86 | if ( ! item ) { | 88 | if ( ! item ) { |
87 | return i18n("Click in the cell or\non the date label\nto add an event!"); | 89 | return i18n("Click in the cell\nto add an event!"); |
88 | } | 90 | } |
89 | return KIncidenceFormatter::instance()->getFormattedText(((MonthViewItem*) item)->incidence()); | 91 | return KIncidenceFormatter::instance()->getFormattedText(((MonthViewItem*) item)->incidence()); |
90 | } | 92 | } |
91 | void KNoScrollListBox::keyPressEvent(QKeyEvent *e) | 93 | void KNoScrollListBox::keyPressEvent(QKeyEvent *e) |
92 | { | 94 | { |
93 | 95 | ||
94 | switch(e->key()) { | 96 | switch(e->key()) { |
95 | case Key_Right: | 97 | case Key_Right: |
96 | // if ( e->state() == Qt::ControlButton ) | 98 | // if ( e->state() == Qt::ControlButton ) |
97 | { | 99 | { |
98 | e->ignore(); | 100 | e->ignore(); |
99 | return; | 101 | return; |
@@ -286,25 +288,32 @@ MonthViewCell::MonthViewCell( KOMonthView *parent) | |||
286 | connect( mItemList, SIGNAL( doubleClicked( QListBoxItem *) ), | 288 | connect( mItemList, SIGNAL( doubleClicked( QListBoxItem *) ), |
287 | SLOT( defaultAction( QListBoxItem * ) ) ); | 289 | SLOT( defaultAction( QListBoxItem * ) ) ); |
288 | connect( mItemList, SIGNAL( rightButtonPressed( QListBoxItem *, | 290 | connect( mItemList, SIGNAL( rightButtonPressed( QListBoxItem *, |
289 | const QPoint &) ), | 291 | const QPoint &) ), |
290 | SLOT( contextMenu( QListBoxItem * ) ) ); | 292 | SLOT( contextMenu( QListBoxItem * ) ) ); |
291 | connect( mItemList, SIGNAL( highlighted( QListBoxItem *) ), | 293 | connect( mItemList, SIGNAL( highlighted( QListBoxItem *) ), |
292 | SLOT( selection( QListBoxItem * ) ) ); | 294 | SLOT( selection( QListBoxItem * ) ) ); |
293 | connect( mItemList, SIGNAL( clicked( QListBoxItem * ) ), | 295 | connect( mItemList, SIGNAL( clicked( QListBoxItem * ) ), |
294 | SLOT( cellClicked( QListBoxItem * ) ) ); | 296 | SLOT( cellClicked( QListBoxItem * ) ) ); |
295 | connect( mItemList, SIGNAL( clicked( QListBoxItem * ) ), | 297 | connect( mItemList, SIGNAL( clicked( QListBoxItem * ) ), |
296 | SLOT( selection( QListBoxItem * ) ) ); | 298 | SLOT( selection( QListBoxItem * ) ) ); |
297 | } | 299 | } |
298 | 300 | #ifdef DESKTOP_VERSION | |
301 | QToolTipGroup *MonthViewCell::toolTipGroup() | ||
302 | { | ||
303 | if (!mToolTipGroup) mToolTipGroup = new QToolTipGroup(0); | ||
304 | return mToolTipGroup; | ||
305 | } | ||
306 | #endif | ||
307 | |||
299 | void MonthViewCell::setDate( const QDate &date ) | 308 | void MonthViewCell::setDate( const QDate &date ) |
300 | { | 309 | { |
301 | // kdDebug() << "MonthViewCell::setDate(): " << date.toString() << endl; | 310 | // kdDebug() << "MonthViewCell::setDate(): " << date.toString() << endl; |
302 | 311 | ||
303 | mDate = date; | 312 | mDate = date; |
304 | 313 | ||
305 | QString text; | 314 | QString text; |
306 | bool smallDisplay = QApplication::desktop()->width() < 320 && KOPrefs::instance()->mMonthViewSatSunTog; | 315 | bool smallDisplay = QApplication::desktop()->width() < 320 && KOPrefs::instance()->mMonthViewSatSunTog; |
307 | if ( KOGlobals::self()->calendarSystem()->day( date ) == 1 || (date.dayOfWeek() == 7 && !smallDisplay ) || KOPrefs::instance()->mMonthShowShort) { | 316 | if ( KOGlobals::self()->calendarSystem()->day( date ) == 1 || (date.dayOfWeek() == 7 && !smallDisplay ) || KOPrefs::instance()->mMonthShowShort) { |
308 | text = KOGlobals::self()->calendarSystem()->monthName( date, true ) + " "; | 317 | text = KOGlobals::self()->calendarSystem()->monthName( date, true ) + " "; |
309 | mLabel->resize( mLabelBigSize ); | 318 | mLabel->resize( mLabelBigSize ); |
310 | text += QString::number( KOGlobals::self()->calendarSystem()->day(mDate) ); | 319 | text += QString::number( KOGlobals::self()->calendarSystem()->day(mDate) ); |
@@ -383,29 +392,34 @@ void MonthViewCell::keyPressEvent ( QKeyEvent * e ) | |||
383 | } | 392 | } |
384 | void MonthViewCell::updateCell() | 393 | void MonthViewCell::updateCell() |
385 | { | 394 | { |
386 | 395 | ||
387 | setPrimary( mDate.month()%2 ); | 396 | setPrimary( mDate.month()%2 ); |
388 | setHoliday( KOGlobals::self()->calendarSystem()->dayOfWeek(mDate) == KOGlobals::self()->calendarSystem()->weekDayOfPray() || ( mDate.dayOfWeek() == 6 ) && KOPrefs::instance()-> mExcludeSaturdays); | 397 | setHoliday( KOGlobals::self()->calendarSystem()->dayOfWeek(mDate) == KOGlobals::self()->calendarSystem()->weekDayOfPray() || ( mDate.dayOfWeek() == 6 ) && KOPrefs::instance()-> mExcludeSaturdays); |
389 | if ( mDate == QDate::currentDate() ) { | 398 | if ( mDate == QDate::currentDate() ) { |
390 | mItemList->setLineWidth( 3 ); | 399 | mItemList->setLineWidth( 3 ); |
391 | } else { | 400 | } else { |
392 | mItemList->setLineWidth( 1 ); | 401 | mItemList->setLineWidth( 1 ); |
393 | } | 402 | } |
394 | mItemList->clear(); | 403 | mItemList->clear(); |
404 | #ifdef DESKTOP_VERSION | ||
405 | QToolTip::remove(this); | ||
406 | #endif | ||
407 | QString tipText(""); | ||
395 | //qApp->processEvents(); | 408 | //qApp->processEvents(); |
396 | if ( !mHolidayString.isEmpty() ) { | 409 | if ( !mHolidayString.isEmpty() ) { |
397 | MonthViewItem *item = new MonthViewItem( 0, mDate, mHolidayString ); | 410 | MonthViewItem *item = new MonthViewItem( 0, mDate, mHolidayString ); |
398 | item->setPalette( mHolidayPalette ); | 411 | item->setPalette( mHolidayPalette ); |
399 | mItemList->insertItem( item ); | 412 | mItemList->insertItem( item ); |
413 | tipText += mHolidayString+"\n"; | ||
400 | } | 414 | } |
401 | //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); | 415 | //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); |
402 | QPtrList<Event> events = mMonthView->calendar()->events( mDate, true ); | 416 | QPtrList<Event> events = mMonthView->calendar()->events( mDate, true ); |
403 | Event *event; | 417 | Event *event; |
404 | for( event = events.first(); event; event = events.next() ) { | 418 | for( event = events.first(); event; event = events.next() ) { |
405 | if ( event->categories().contains("Holiday") || | 419 | if ( event->categories().contains("Holiday") || |
406 | event->categories().contains(i18n("Holiday"))) { | 420 | event->categories().contains(i18n("Holiday"))) { |
407 | setHoliday( true ); | 421 | setHoliday( true ); |
408 | if ( mDate.dayOfWeek() == 7 ) | 422 | if ( mDate.dayOfWeek() == 7 ) |
409 | mItemList->setLineWidth( 3 ); | 423 | mItemList->setLineWidth( 3 ); |
410 | } | 424 | } |
411 | QString text; | 425 | QString text; |
@@ -419,30 +433,34 @@ void MonthViewCell::updateCell() | |||
419 | if ( event->recursOn( mDate.addDays( -days)) ) | 433 | if ( event->recursOn( mDate.addDays( -days)) ) |
420 | prefix ="<-" ; | 434 | prefix ="<-" ; |
421 | } | 435 | } |
422 | 436 | ||
423 | } else { | 437 | } else { |
424 | if (mDate == event->dtStart().date()) { | 438 | if (mDate == event->dtStart().date()) { |
425 | prefix ="->" ; | 439 | prefix ="->" ; |
426 | } else if (mDate == event->dtEnd().date()) { | 440 | } else if (mDate == event->dtEnd().date()) { |
427 | prefix ="<-" ; | 441 | prefix ="<-" ; |
428 | } | 442 | } |
429 | } | 443 | } |
430 | text = prefix + event->summary(); | 444 | text = prefix + event->summary(); |
445 | tipText += text; | ||
431 | } else { | 446 | } else { |
432 | if (event->doesFloat()) | 447 | if (event->doesFloat()) { |
433 | text = event->summary(); | 448 | text = event->summary(); |
449 | tipText += text; | ||
450 | } | ||
434 | else { | 451 | else { |
435 | text = KGlobal::locale()->formatTime(event->dtStart().time()); | 452 | text = KGlobal::locale()->formatTime(event->dtStart().time()); |
436 | text += " " + event->summary(); | 453 | text += " " + event->summary(); |
454 | tipText += KGlobal::locale()->formatTime(event->dtStart().time()) +"-"+KGlobal::locale()->formatTime(event->dtEnd().time())+" " + event->summary(); | ||
437 | } | 455 | } |
438 | } | 456 | } |
439 | 457 | ||
440 | MonthViewItem *item = new MonthViewItem( event, mDate, text ); | 458 | MonthViewItem *item = new MonthViewItem( event, mDate, text ); |
441 | QPalette pal; | 459 | QPalette pal; |
442 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor) { | 460 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor) { |
443 | QStringList categories = event->categories(); | 461 | QStringList categories = event->categories(); |
444 | QString cat = categories.first(); | 462 | QString cat = categories.first(); |
445 | if ( KOPrefs::instance()->mMonthViewUsesForegroundColor ) { | 463 | if ( KOPrefs::instance()->mMonthViewUsesForegroundColor ) { |
446 | pal = getPalette(); | 464 | pal = getPalette(); |
447 | if (cat.isEmpty()) { | 465 | if (cat.isEmpty()) { |
448 | pal.setColor(QColorGroup::Foreground,KOPrefs::instance()->mEventColor); | 466 | pal.setColor(QColorGroup::Foreground,KOPrefs::instance()->mEventColor); |
@@ -474,26 +492,29 @@ void MonthViewCell::updateCell() | |||
474 | item->setReply(false); | 492 | item->setReply(false); |
475 | } else | 493 | } else |
476 | item->setReply(false); | 494 | item->setReply(false); |
477 | bool insert = true; | 495 | bool insert = true; |
478 | if ( !(event->doesRecur() == Recurrence::rNone) ) { | 496 | if ( !(event->doesRecur() == Recurrence::rNone) ) { |
479 | if ( !KOPrefs::instance()->mMonthDailyRecur && event->doesRecur() == Recurrence::rDaily ) | 497 | if ( !KOPrefs::instance()->mMonthDailyRecur && event->doesRecur() == Recurrence::rDaily ) |
480 | insert = false; | 498 | insert = false; |
481 | else | 499 | else |
482 | if ( !KOPrefs::instance()->mMonthWeeklyRecur && event->doesRecur() == Recurrence::rWeekly ) | 500 | if ( !KOPrefs::instance()->mMonthWeeklyRecur && event->doesRecur() == Recurrence::rWeekly ) |
483 | insert = false; | 501 | insert = false; |
484 | 502 | ||
485 | } | 503 | } |
486 | if ( insert ) | 504 | if ( insert ) { |
487 | mItemList->insertItem( item ); | 505 | mItemList->insertItem( item ); |
506 | tipText += "\n"; | ||
507 | } else | ||
508 | tipText = ""; | ||
488 | } | 509 | } |
489 | 510 | ||
490 | // insert due todos | 511 | // insert due todos |
491 | QPtrList<Todo> todos = mMonthView->calendar()->todos( mDate ); | 512 | QPtrList<Todo> todos = mMonthView->calendar()->todos( mDate ); |
492 | Todo *todo; | 513 | Todo *todo; |
493 | for(todo = todos.first(); todo; todo = todos.next()) { | 514 | for(todo = todos.first(); todo; todo = todos.next()) { |
494 | QString text; | 515 | QString text; |
495 | if (todo->hasDueDate()) { | 516 | if (todo->hasDueDate()) { |
496 | if (!todo->doesFloat()) { | 517 | if (!todo->doesFloat()) { |
497 | text += KGlobal::locale()->formatTime(todo->dtDue().time()); | 518 | text += KGlobal::locale()->formatTime(todo->dtDue().time()); |
498 | text += " "; | 519 | text += " "; |
499 | } | 520 | } |
@@ -518,25 +539,31 @@ void MonthViewCell::updateCell() | |||
518 | if (cat.isEmpty()) { | 539 | if (cat.isEmpty()) { |
519 | pal = QPalette(KOPrefs::instance()->mEventColor, KOPrefs::instance()->mEventColor); | 540 | pal = QPalette(KOPrefs::instance()->mEventColor, KOPrefs::instance()->mEventColor); |
520 | } else { | 541 | } else { |
521 | pal = QPalette(*(KOPrefs::instance()->categoryColor(cat)), *(KOPrefs::instance()->categoryColor(cat))); | 542 | pal = QPalette(*(KOPrefs::instance()->categoryColor(cat)), *(KOPrefs::instance()->categoryColor(cat))); |
522 | } | 543 | } |
523 | } | 544 | } |
524 | 545 | ||
525 | } else { | 546 | } else { |
526 | pal = mStandardPalette ; | 547 | pal = mStandardPalette ; |
527 | } | 548 | } |
528 | item->setPalette( pal ); | 549 | item->setPalette( pal ); |
529 | mItemList->insertItem( item ); | 550 | mItemList->insertItem( item ); |
551 | tipText += text+"\n"; | ||
530 | } | 552 | } |
553 | #ifdef DESKTOP_VERSION | ||
554 | if (tipText != "") | ||
555 | QToolTip::add(this,tipText,toolTipGroup(),""); | ||
556 | #endif | ||
557 | |||
531 | //setMyPalette(); | 558 | //setMyPalette(); |
532 | setMyPalette(); | 559 | setMyPalette(); |
533 | resizeEvent( 0 ); | 560 | resizeEvent( 0 ); |
534 | // if ( isVisible()) | 561 | // if ( isVisible()) |
535 | // qApp->processEvents(); | 562 | // qApp->processEvents(); |
536 | } | 563 | } |
537 | 564 | ||
538 | void MonthViewCell::updateConfig() | 565 | void MonthViewCell::updateConfig() |
539 | { | 566 | { |
540 | 567 | ||
541 | setFont( KOPrefs::instance()->mMonthViewFont ); | 568 | setFont( KOPrefs::instance()->mMonthViewFont ); |
542 | 569 | ||
@@ -805,24 +832,27 @@ void KOMonthView::updateConfig() | |||
805 | } | 832 | } |
806 | bool temp = mShowSatSunComp ; | 833 | bool temp = mShowSatSunComp ; |
807 | mShowSatSunComp = KOPrefs::instance()->mMonthViewSatSunTog ; | 834 | mShowSatSunComp = KOPrefs::instance()->mMonthViewSatSunTog ; |
808 | if ( temp != KOPrefs::instance()->mMonthViewSatSunTog ) | 835 | if ( temp != KOPrefs::instance()->mMonthViewSatSunTog ) |
809 | computeLayout(); | 836 | computeLayout(); |
810 | updateDayLabels(); | 837 | updateDayLabels(); |
811 | //qDebug("KOMonthView::updateConfig() %d %d %d ",height(), mDayLabels[0]->sizeHint().height() ,mNumWeeks); | 838 | //qDebug("KOMonthView::updateConfig() %d %d %d ",height(), mDayLabels[0]->sizeHint().height() ,mNumWeeks); |
812 | int cellHeight = (height() - mDayLabels[0]->sizeHint().height()) /mNumWeeks; | 839 | int cellHeight = (height() - mDayLabels[0]->sizeHint().height()) /mNumWeeks; |
813 | //resizeEvent( 0 ); | 840 | //resizeEvent( 0 ); |
814 | for (uint i = 0; i < mCells.count(); ++i) { | 841 | for (uint i = 0; i < mCells.count(); ++i) { |
815 | mCells[i]->updateConfig(); | 842 | mCells[i]->updateConfig(); |
816 | } | 843 | } |
844 | #ifdef DESKTOP_VERSION | ||
845 | MonthViewCell::toolTipGroup()->setEnabled(KOPrefs::instance()->mEnableToolTips); | ||
846 | #endif | ||
817 | } | 847 | } |
818 | 848 | ||
819 | void KOMonthView::updateDayLabels() | 849 | void KOMonthView::updateDayLabels() |
820 | { | 850 | { |
821 | 851 | ||
822 | for (int i = 0; i < 7; i++) { | 852 | for (int i = 0; i < 7; i++) { |
823 | if (mWeekStartsMonday) { | 853 | if (mWeekStartsMonday) { |
824 | bool show = mShortDayLabels; | 854 | bool show = mShortDayLabels; |
825 | if ( i > 4 && mShowSatSunComp && mWidthLongDayLabel > mDayLabels[i]->width() ) | 855 | if ( i > 4 && mShowSatSunComp && mWidthLongDayLabel > mDayLabels[i]->width() ) |
826 | show = true; | 856 | show = true; |
827 | mDayLabels[i]->setText(KOGlobals::self()->calendarSystem()->weekDayName(i+1,show)); | 857 | mDayLabels[i]->setText(KOGlobals::self()->calendarSystem()->weekDayName(i+1,show)); |
828 | } else { | 858 | } else { |
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h index 5124057..4c1567c 100644 --- a/korganizer/komonthview.h +++ b/korganizer/komonthview.h | |||
@@ -27,24 +27,28 @@ | |||
27 | #include <qpoint.h> | 27 | #include <qpoint.h> |
28 | #include <qlayout.h> | 28 | #include <qlayout.h> |
29 | #include <qintdict.h> | 29 | #include <qintdict.h> |
30 | #include <qpushbutton.h> | 30 | #include <qpushbutton.h> |
31 | #include <qvaluelist.h> | 31 | #include <qvaluelist.h> |
32 | #include <qptrvector.h> | 32 | #include <qptrvector.h> |
33 | 33 | ||
34 | #include <libkcal/calendar.h> | 34 | #include <libkcal/calendar.h> |
35 | #include <libkcal/event.h> | 35 | #include <libkcal/event.h> |
36 | 36 | ||
37 | #include "koeventview.h" | 37 | #include "koeventview.h" |
38 | 38 | ||
39 | #ifdef DESKTOP_VERSION | ||
40 | class QToolTipGroup; | ||
41 | #endif | ||
42 | |||
39 | class KOWeekButton : public QPushButton | 43 | class KOWeekButton : public QPushButton |
40 | { | 44 | { |
41 | Q_OBJECT | 45 | Q_OBJECT |
42 | public: | 46 | public: |
43 | KOWeekButton( QWidget *parent=0, const char *name=0 ) : | 47 | KOWeekButton( QWidget *parent=0, const char *name=0 ) : |
44 | QPushButton( parent, name) | 48 | QPushButton( parent, name) |
45 | { | 49 | { |
46 | connect( this, SIGNAL( clicked() ), | 50 | connect( this, SIGNAL( clicked() ), |
47 | SLOT( bottonClicked() )); | 51 | SLOT( bottonClicked() )); |
48 | mNumber = -1; | 52 | mNumber = -1; |
49 | } | 53 | } |
50 | void setWeekNum ( int num ) {mNumber = num; setText( QString::number ( num ));} | 54 | void setWeekNum ( int num ) {mNumber = num; setText( QString::number ( num ));} |
@@ -131,24 +135,27 @@ class MonthViewCell : public QWidget | |||
131 | void updateCell(); | 135 | void updateCell(); |
132 | 136 | ||
133 | void updateConfig(); | 137 | void updateConfig(); |
134 | 138 | ||
135 | void enableScrollBars( bool ); | 139 | void enableScrollBars( bool ); |
136 | 140 | ||
137 | Incidence *selectedIncidence(); | 141 | Incidence *selectedIncidence(); |
138 | QDate selectedIncidenceDate(); | 142 | QDate selectedIncidenceDate(); |
139 | 143 | ||
140 | void deselect(); | 144 | void deselect(); |
141 | void select(); | 145 | void select(); |
142 | 146 | ||
147 | #ifdef DESKTOP_VERSION | ||
148 | static QToolTipGroup *toolTipGroup(); | ||
149 | #endif | ||
143 | signals: | 150 | signals: |
144 | void defaultAction( Incidence * ); | 151 | void defaultAction( Incidence * ); |
145 | void newEventSignal( QDateTime ); | 152 | void newEventSignal( QDateTime ); |
146 | void showDaySignal( QDate ); | 153 | void showDaySignal( QDate ); |
147 | 154 | ||
148 | protected: | 155 | protected: |
149 | void resizeEvent( QResizeEvent * ); | 156 | void resizeEvent( QResizeEvent * ); |
150 | 157 | ||
151 | protected slots: | 158 | protected slots: |
152 | void defaultAction( QListBoxItem * ); | 159 | void defaultAction( QListBoxItem * ); |
153 | void contextMenu( QListBoxItem * ); | 160 | void contextMenu( QListBoxItem * ); |
154 | void selection( QListBoxItem * ); | 161 | void selection( QListBoxItem * ); |
@@ -158,25 +165,27 @@ class MonthViewCell : public QWidget | |||
158 | 165 | ||
159 | private: | 166 | private: |
160 | KOMonthView *mMonthView; | 167 | KOMonthView *mMonthView; |
161 | 168 | ||
162 | QDate mDate; | 169 | QDate mDate; |
163 | bool mPrimary; | 170 | bool mPrimary; |
164 | bool mHoliday; | 171 | bool mHoliday; |
165 | QString mHolidayString; | 172 | QString mHolidayString; |
166 | 173 | ||
167 | //QLabel *mLabel; | 174 | //QLabel *mLabel; |
168 | QPushButton *mLabel; | 175 | QPushButton *mLabel; |
169 | QListBox *mItemList; | 176 | QListBox *mItemList; |
170 | 177 | #ifdef DESKTOP_VERSION | |
178 | static QToolTipGroup *mToolTipGroup; | ||
179 | #endif | ||
171 | QSize mLabelSize; | 180 | QSize mLabelSize; |
172 | QSize mLabelBigSize; | 181 | QSize mLabelBigSize; |
173 | QPalette mHolidayPalette; | 182 | QPalette mHolidayPalette; |
174 | QPalette mStandardPalette; | 183 | QPalette mStandardPalette; |
175 | QPalette mPrimaryPalette; | 184 | QPalette mPrimaryPalette; |
176 | QPalette mNonPrimaryPalette; | 185 | QPalette mNonPrimaryPalette; |
177 | void setMyPalette(); | 186 | void setMyPalette(); |
178 | QPalette getPalette (); | 187 | QPalette getPalette (); |
179 | void keyPressEvent ( QKeyEvent * ) ; | 188 | void keyPressEvent ( QKeyEvent * ) ; |
180 | 189 | ||
181 | }; | 190 | }; |
182 | 191 | ||