author | zautrix <zautrix> | 2004-09-17 00:05:23 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-17 00:05:23 (UTC) |
commit | 8462751df135b9ad08b1269661d2c7eb18c67976 (patch) (unidiff) | |
tree | 1c40fa2638f9f22df2d96b0879acfd20a9c2c502 | |
parent | eebe4409884ccd4dedb7cb697a800f74b33eb292 (diff) | |
download | kdepimpi-8462751df135b9ad08b1269661d2c7eb18c67976.zip kdepimpi-8462751df135b9ad08b1269661d2c7eb18c67976.tar.gz kdepimpi-8462751df135b9ad08b1269661d2c7eb18c67976.tar.bz2 |
Rearranged linking
-rw-r--r-- | kabc/addresseeview.cpp | 401 | ||||
-rw-r--r-- | kabc/addresseeview.h | 60 | ||||
-rw-r--r-- | kabc/kabc.pro | 2 | ||||
-rw-r--r-- | kabc/kabcE.pro | 2 | ||||
-rw-r--r-- | kaddressbook/details/look_html.cpp | 2 | ||||
-rw-r--r-- | kaddressbook/kabcore.cpp | 2 | ||||
-rw-r--r-- | kaddressbook/kaddressbookE.pro | 6 | ||||
-rw-r--r-- | kaddressbook/xxportmanager.cpp | 2 | ||||
-rw-r--r-- | korganizer/calendarview.cpp | 4 | ||||
-rw-r--r-- | korganizer/incomingdialog.cpp | 3 | ||||
-rw-r--r-- | korganizer/korganizerE.pro | 4 | ||||
-rw-r--r-- | korganizer/publishdialog.cpp | 3 | ||||
-rw-r--r-- | libkdepim/libkdepim.pro | 2 | ||||
-rw-r--r-- | libkdepim/libkdepimE.pro | 2 |
14 files changed, 482 insertions, 13 deletions
diff --git a/kabc/addresseeview.cpp b/kabc/addresseeview.cpp new file mode 100644 index 0000000..b4717d7 --- a/dev/null +++ b/kabc/addresseeview.cpp | |||
@@ -0,0 +1,401 @@ | |||
1 | /* | ||
2 | This file is part of libkdepim. | ||
3 | |||
4 | Copyright (c) 2003 Tobias Koenig <tokoe@kde.org> | ||
5 | |||
6 | This library is free software; you can redistribute it and/or | ||
7 | modify it under the terms of the GNU Library General Public | ||
8 | License as published by the Free Software Foundation; either | ||
9 | version 2 of the License, or (at your option) any later version. | ||
10 | |||
11 | This library is distributed in the hope that it will be useful, | ||
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | Library General Public License for more details. | ||
15 | |||
16 | You should have received a copy of the GNU Library General Public License | ||
17 | along with this library; see the file COPYING.LIB. If not, write to | ||
18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
19 | Boston, MA 02111-1307, USA. | ||
20 | */ | ||
21 | |||
22 | #include <kabc/address.h> | ||
23 | #include <kabc/addressee.h> | ||
24 | #include <kabc/phonenumber.h> | ||
25 | #include <kglobal.h> | ||
26 | //US#include <kglobalsettings.h> | ||
27 | #include <kiconloader.h> | ||
28 | #include <klocale.h> | ||
29 | //US #include <kstringhandler.h> | ||
30 | #include <qscrollview.h> | ||
31 | #include <qregexp.h> | ||
32 | #include <qfile.h> | ||
33 | #include <qapplication.h> | ||
34 | |||
35 | |||
36 | #include "externalapphandler.h" | ||
37 | #include "addresseeview.h" | ||
38 | |||
39 | |||
40 | //US #ifndef DESKTOP_VERSION | ||
41 | //US #include <qtopia/qcopenvelope_qws.h> | ||
42 | //US #include <qpe/qpeapplication.h> | ||
43 | //US #endif | ||
44 | |||
45 | //US static int kphoneInstalled = 0; | ||
46 | |||
47 | using namespace KPIM; | ||
48 | |||
49 | AddresseeView::AddresseeView( QWidget *parent, const char *name ) | ||
50 | //US : KTextBrowser( parent, name ) | ||
51 | : QTextBrowser( parent, name ) | ||
52 | |||
53 | |||
54 | { | ||
55 | //US setWrapPolicy( QTextEdit::AtWordBoundary ); | ||
56 | setLinkUnderline( false ); | ||
57 | // setVScrollBarMode( QScrollView::AlwaysOff ); | ||
58 | //setHScrollBarMode( QScrollView::AlwaysOff ); | ||
59 | |||
60 | //US QStyleSheet *sheet = styleSheet(); | ||
61 | //US QStyleSheetItem *link = sheet->item( "a" ); | ||
62 | //US link->setColor( KGlobalSettings::linkColor() ); | ||
63 | |||
64 | } | ||
65 | |||
66 | void AddresseeView::setSource(const QString& n) | ||
67 | { | ||
68 | //qDebug("********AddresseeView::setSource %s", n.latin1()); | ||
69 | |||
70 | if ( n.left( 6 ) == "mailto" ) | ||
71 | ExternalAppHandler::instance()->mailToOneContact( n.mid(7) ); | ||
72 | else if ( n.left( 7 ) == "phoneto" ) | ||
73 | ExternalAppHandler::instance()->callByPhone( n.mid(8) ); | ||
74 | else if ( n.left( 5 ) == "faxto" ) | ||
75 | ExternalAppHandler::instance()->callByFax( n.mid(6) ); | ||
76 | else if ( n.left( 5 ) == "smsto" ) | ||
77 | ExternalAppHandler::instance()->callBySMS( n.mid(6) ); | ||
78 | else if ( n.left( 7 ) == "pagerto" ) | ||
79 | ExternalAppHandler::instance()->callByPager( n.mid(8) ); | ||
80 | else if ( n.left( 5 ) == "sipto" ) | ||
81 | ExternalAppHandler::instance()->callBySIP( n.mid(6) ); | ||
82 | |||
83 | } | ||
84 | void AddresseeView::setAddressee( const KABC::Addressee& addr ) | ||
85 | { | ||
86 | ExternalAppHandler* eah = ExternalAppHandler::instance(); | ||
87 | bool kemailAvail = eah->isEmailAppAvailable(); | ||
88 | bool kphoneAvail = eah->isPhoneAppAvailable(); | ||
89 | bool kfaxAvail = eah->isFaxAppAvailable(); | ||
90 | bool ksmsAvail = eah->isSMSAppAvailable(); | ||
91 | bool kpagerAvail = eah->isPagerAppAvailable(); | ||
92 | bool ksipAvail = eah->isSIPAppAvailable(); | ||
93 | |||
94 | |||
95 | mAddressee = addr; | ||
96 | // clear view | ||
97 | setText( QString::null ); | ||
98 | |||
99 | if ( mAddressee.isEmpty() ) | ||
100 | return; | ||
101 | |||
102 | QString name = ( mAddressee.assembledName().isEmpty() ? | ||
103 | mAddressee.formattedName() : mAddressee.assembledName() ); | ||
104 | |||
105 | QString dynamicPart; | ||
106 | |||
107 | QStringList emails = mAddressee.emails(); | ||
108 | QStringList::ConstIterator emailIt; | ||
109 | QString type = i18n( "Email" ); | ||
110 | emailIt = emails.begin(); | ||
111 | if ( emailIt != emails.end() ) { | ||
112 | if ( kemailAvail ) { | ||
113 | dynamicPart += QString( | ||
114 | "<tr><td align=\"right\"><b>%1</b></td>" | ||
115 | "<td align=\"left\"><a href=\"mailto:%2 <%3> \">%4</a></td></tr>" ) | ||
116 | .arg( type ) | ||
117 | .arg( name ) | ||
118 | .arg( *emailIt ) | ||
119 | .arg( *emailIt ); | ||
120 | ++emailIt; | ||
121 | } else { | ||
122 | dynamicPart += QString( | ||
123 | "<tr><td align=\"right\"><b>%1</b></td>" | ||
124 | "<td align=\"left\">%2</td></tr>" ) | ||
125 | .arg( type ) | ||
126 | .arg( *emailIt ); | ||
127 | ++emailIt; | ||
128 | } | ||
129 | } | ||
130 | if ( mAddressee.birthday().date().isValid() ) { | ||
131 | dynamicPart += QString( | ||
132 | "<tr><td align=\"right\"><b>%1</b></td>" | ||
133 | "<td align=\"left\">%2</td></tr>" ) | ||
134 | .arg( i18n ("Birthday") ) | ||
135 | .arg( KGlobal::locale()->formatDate( mAddressee.birthday().date() ,true) ); | ||
136 | } | ||
137 | KABC::PhoneNumber::List phones = mAddressee.phoneNumbers(); | ||
138 | KABC::PhoneNumber::List::ConstIterator phoneIt; | ||
139 | QString extension; | ||
140 | int phonetype; | ||
141 | QString sms; | ||
142 | for ( phoneIt = phones.begin(); phoneIt != phones.end(); ++phoneIt ) { | ||
143 | phonetype = (*phoneIt).type(); | ||
144 | if (ksmsAvail && | ||
145 | ( | ||
146 | ((phonetype & KABC::PhoneNumber::Car) == KABC::PhoneNumber::Car) || | ||
147 | ((phonetype & KABC::PhoneNumber::Cell) == KABC::PhoneNumber::Cell) | ||
148 | ) | ||
149 | ) | ||
150 | { | ||
151 | sms = QString("<a href=\"smsto:%1 \">(sms)</a>" ) | ||
152 | .arg( (*phoneIt).number() ); | ||
153 | |||
154 | } | ||
155 | else | ||
156 | sms = ""; | ||
157 | |||
158 | extension = QString::null; | ||
159 | if ((phonetype & KABC::PhoneNumber::Fax) == KABC::PhoneNumber::Fax) { | ||
160 | if (kfaxAvail) extension = "faxto:"; | ||
161 | } | ||
162 | else if ((phonetype & KABC::PhoneNumber::Pager) == KABC::PhoneNumber::Pager) { | ||
163 | if (kpagerAvail) extension = "pagerto:"; | ||
164 | } | ||
165 | else if ((phonetype & KABC::PhoneNumber::Sip) == KABC::PhoneNumber::Sip) { | ||
166 | if (ksipAvail) extension = "sipto:"; | ||
167 | } | ||
168 | else if (kphoneAvail) { | ||
169 | extension = "phoneto:"; | ||
170 | } | ||
171 | else | ||
172 | extension = QString::null; | ||
173 | |||
174 | if ( !extension.isEmpty() ) { | ||
175 | dynamicPart += QString( | ||
176 | "<tr><td align=\"right\"><b>%1</b></td>" | ||
177 | "<td align=\"left\"><a href=\"%2%3 \">%4</a> %5</td></tr>" ) | ||
178 | .arg( KABC::PhoneNumber::typeLabel( phonetype ) ) | ||
179 | .arg( extension ) | ||
180 | .arg( (*phoneIt).number() ) | ||
181 | .arg( (*phoneIt).number() ) | ||
182 | .arg( sms ); | ||
183 | |||
184 | } else { | ||
185 | dynamicPart += QString( | ||
186 | "<tr><td align=\"right\"><b>%1</b></td>" | ||
187 | "<td align=\"left\">%2 %3</td></tr>" ) | ||
188 | .arg( KABC::PhoneNumber::typeLabel( phonetype ) ) | ||
189 | .arg( (*phoneIt).number() ) | ||
190 | .arg( sms ); | ||
191 | } | ||
192 | } | ||
193 | |||
194 | |||
195 | for ( ; emailIt != emails.end(); ++emailIt ) { | ||
196 | if ( kemailAvail ) { | ||
197 | dynamicPart += QString( | ||
198 | "<tr><td align=\"right\"><b>%1</b></td>" | ||
199 | "<td align=\"left\"><a href=\"mailto:%2 <%3> \">%4</a></td></tr>" ) | ||
200 | .arg( type ) | ||
201 | .arg( name ) | ||
202 | .arg( *emailIt ) | ||
203 | .arg( *emailIt ); | ||
204 | } else { | ||
205 | dynamicPart += QString( | ||
206 | "<tr><td align=\"right\"><b>%1</b></td>" | ||
207 | "<td align=\"left\">%2</td></tr>" ) | ||
208 | .arg( type ) | ||
209 | .arg( *emailIt ); | ||
210 | } | ||
211 | } | ||
212 | |||
213 | if ( !mAddressee.url().url().isEmpty() ) { | ||
214 | dynamicPart += QString( | ||
215 | "<tr><td align=\"right\"><b>%1</b></td>" | ||
216 | "<td align=\"left\">%2</td></tr>" ) | ||
217 | .arg( i18n( "Homepage" ) ) | ||
218 | //US .arg( KStringHandler::tagURLs( mAddressee.url().url() ) ); | ||
219 | .arg( mAddressee.url().url() ); | ||
220 | //qDebug("AddresseeView::setAddressee has to be verified."); | ||
221 | } | ||
222 | |||
223 | KABC::Address::List addresses = mAddressee.addresses(); | ||
224 | KABC::Address::List::ConstIterator addrIt; | ||
225 | for ( addrIt = addresses.begin(); addrIt != addresses.end(); ++addrIt ) { | ||
226 | if ( true /*(*addrIt).label().isEmpty()*/ ) { | ||
227 | QString formattedAddress = (*addrIt).formattedAddress().stripWhiteSpace(); | ||
228 | //US formattedAddress = formattedAddress.replace( '\n', "<br>" ); | ||
229 | //qDebug("adresss %s ",formattedAddress.latin1() ); | ||
230 | formattedAddress = formattedAddress.replace( QRegExp("\n"), "<br>" ); | ||
231 | //qDebug("AddresseeView::setAddressee has to be verified."); | ||
232 | |||
233 | dynamicPart += QString( | ||
234 | "<tr><td align=\"right\"><b>%1</b></td>" | ||
235 | "<td align=\"left\">%2</td></tr>" ) | ||
236 | .arg( KABC::Address::typeLabel( (*addrIt).type() ) ) | ||
237 | .arg( formattedAddress ); | ||
238 | } else { | ||
239 | |||
240 | dynamicPart += QString( | ||
241 | "<tr><td align=\"right\"><b>%1</b></td>" | ||
242 | "<td align=\"left\">%2</td></tr>" ) | ||
243 | .arg( KABC::Address::typeLabel( (*addrIt).type() ) ) | ||
244 | //US .arg( (*addrIt).label().replace( '\n', "<br>" ) ); | ||
245 | .arg( (*addrIt).label() /*replace( QRegExp("\n"), "<br>" )*/ ); | ||
246 | |||
247 | } | ||
248 | } | ||
249 | |||
250 | QString notes; | ||
251 | if ( !mAddressee.note().isEmpty() ) { | ||
252 | notes = QString( | ||
253 | "<tr>" | ||
254 | "<td align=\"right\" valign=\"top\"><b>%1</b></td>" // note label | ||
255 | "<td align=\"left\">%2</td>" // note | ||
256 | "</tr>" ).arg( i18n( "Notes" ) ) | ||
257 | //US .arg( mAddressee.note().replace( '\n', "<br>" ) ); | ||
258 | .arg( mAddressee.note().replace( QRegExp("\n"), "<br>" ) ); | ||
259 | //qDebug("AddresseeView::setAddressee has to be verified."); | ||
260 | } | ||
261 | |||
262 | QString aRole = ""; | ||
263 | QString aOrga = ""; | ||
264 | if ( true /*!mAddressee.role().isEmpty()*/ ) { | ||
265 | aRole = "<tr>" | ||
266 | "<td align=\"left\">" + mAddressee.role() + "</td>" | ||
267 | "</tr>"; | ||
268 | } | ||
269 | if ( true /*!mAddressee.organization().isEmpty()*/ ) { | ||
270 | aOrga = "<tr>" | ||
271 | "<td align=\"left\">" + mAddressee.organization() + "</td>" ; | ||
272 | "</tr>"; | ||
273 | } | ||
274 | mText = ""; | ||
275 | QString picString = ""; | ||
276 | KABC::Picture picture = mAddressee.photo(); | ||
277 | bool picAvailintern = false; | ||
278 | bool picAvailUrl = false; | ||
279 | if (! picture.undefined() ) { | ||
280 | picAvailintern = (picture.isIntern() && !picture.data().isNull()); | ||
281 | picAvailUrl = !picture.isIntern() && QFile::exists(picture.url() ); | ||
282 | } | ||
283 | if ( picAvailUrl || picAvailintern || QApplication::desktop()->width() > 320 ) { | ||
284 | if ( picAvailintern ) { | ||
285 | QMimeSourceFactory::defaultFactory()->setImage( "myimage", picture.data() ); | ||
286 | } else { | ||
287 | if ( picAvailUrl ) { | ||
288 | QMimeSourceFactory::defaultFactory()->setPixmap( "myimage", QPixmap( picture.url() )); | ||
289 | } else { | ||
290 | QMimeSourceFactory::defaultFactory()->setPixmap( "myimage", KGlobal::iconLoader()->loadIcon( "package_toys", KIcon::Desktop, 128 ) ); | ||
291 | } | ||
292 | } | ||
293 | picString = "<img src=\"myimage\" width=\"50\" height=\"70\">"; | ||
294 | mText = QString::fromLatin1( | ||
295 | "<html>" | ||
296 | "<body text=\"%1\" bgcolor=\"%2\">" // text and background color | ||
297 | "<table>" | ||
298 | "<tr>" | ||
299 | "<td rowspan=\"3\" align=\"right\" valign=\"top\">" | ||
300 | "%3" | ||
301 | "</td>" | ||
302 | "<td align=\"left\"><font size=\"+2\"><b>%4</b></font></td>" // name | ||
303 | "</tr>" | ||
304 | "%5" // role | ||
305 | "%6" // organization | ||
306 | "<td colspan=\"2\"> </td>" | ||
307 | "%7" // dynamic part | ||
308 | "%8" // notes | ||
309 | "</table>" | ||
310 | "</body>" | ||
311 | "</html>") | ||
312 | //US | ||
313 | .arg( /*KGlobalSettings::textColor().name()*/ "black" ) | ||
314 | //US | ||
315 | .arg( /*KGlobalSettings::baseColor().name()*/ "white" ) | ||
316 | .arg( picString ) | ||
317 | .arg( name ) | ||
318 | .arg( aRole ) | ||
319 | .arg( aOrga ) | ||
320 | .arg( dynamicPart ) | ||
321 | .arg( notes ); | ||
322 | |||
323 | } else { // no picture! | ||
324 | |||
325 | mText = "<table width=\"100%\">\n"; | ||
326 | //mText += "<tr bgcolor=\"#3679AD\"><td><h2>"; | ||
327 | #ifdef DESKTOP_VERSION | ||
328 | mText += "<tr bgcolor=\"#5699CD\"><td align=\"left\"><h1>"; | ||
329 | #else | ||
330 | mText += "<tr bgcolor=\"#5699CD\"><td align=\"left\"><h2>"; | ||
331 | #endif | ||
332 | |||
333 | #ifdef DESKTOP_VERSION | ||
334 | mText += "<font color=\"#FFFFFF\"> <em>" + name+"</em></font></h1>"; | ||
335 | #else | ||
336 | mText += "<font color=\"#FFFFFF\"> <em>" + name +"</em></font></h2>"; | ||
337 | #endif | ||
338 | mText += "</td></tr>\n<tr bgcolor=\"#EAF8FA\"><td>"; | ||
339 | |||
340 | mText += "<table><td colspan=\"2\"> </td>"; | ||
341 | /* | ||
342 | mText += QString("<tr><td align=\"right\"><b2>%1</b2></td>" | ||
343 | "<td align=\"left\"><b>%2</b></td></tr>" ) | ||
344 | .arg( i18n(" ") ) | ||
345 | .arg( name ); | ||
346 | */ | ||
347 | if ( ! mAddressee.role().isEmpty() ) | ||
348 | mText += QString("<tr><td align=\"right\"><b>%1</b></td>" | ||
349 | "<td align=\"left\">%2</td></tr>" ) | ||
350 | .arg( i18n(" ") ) | ||
351 | .arg( mAddressee.role()); | ||
352 | if ( ! mAddressee.organization().isEmpty() ) | ||
353 | mText += QString("<tr><td align=\"right\"><b>%1</b></td>" | ||
354 | "<td align=\"left\">%2</td></tr>" ) | ||
355 | .arg( i18n(" ") ) | ||
356 | .arg( mAddressee.organization()); | ||
357 | mText += dynamicPart; | ||
358 | mText += notes; | ||
359 | mText += "</table>"; | ||
360 | |||
361 | } | ||
362 | |||
363 | // at last display it... | ||
364 | setText( mText ); | ||
365 | |||
366 | } | ||
367 | |||
368 | KABC::Addressee AddresseeView::addressee() const | ||
369 | { | ||
370 | return mAddressee; | ||
371 | } | ||
372 | void AddresseeView::addTag(const QString & tag,const QString & text) | ||
373 | { | ||
374 | if ( text.isEmpty() ) | ||
375 | return; | ||
376 | int number=text.contains("\n"); | ||
377 | QString str = "<" + tag + ">"; | ||
378 | QString tmpText=text; | ||
379 | QString tmpStr=str; | ||
380 | if(number !=-1) | ||
381 | { | ||
382 | if (number > 0) { | ||
383 | int pos=0; | ||
384 | QString tmp; | ||
385 | for(int i=0;i<=number;i++) { | ||
386 | pos=tmpText.find("\n"); | ||
387 | tmp=tmpText.left(pos); | ||
388 | tmpText=tmpText.right(tmpText.length()-pos-1); | ||
389 | tmpStr+=tmp+"<br>"; | ||
390 | } | ||
391 | } | ||
392 | else tmpStr += tmpText; | ||
393 | tmpStr+="</" + tag + ">"; | ||
394 | mText.append(tmpStr); | ||
395 | } | ||
396 | else | ||
397 | { | ||
398 | str += text + "</" + tag + ">"; | ||
399 | mText.append(str); | ||
400 | } | ||
401 | } | ||
diff --git a/kabc/addresseeview.h b/kabc/addresseeview.h new file mode 100644 index 0000000..1865fc4 --- a/dev/null +++ b/kabc/addresseeview.h | |||
@@ -0,0 +1,60 @@ | |||
1 | /* | ||
2 | This file is part of libkdepim. | ||
3 | |||
4 | Copyright (c) 2003 Tobias Koenig <tokoe@kde.org> | ||
5 | |||
6 | This library is free software; you can redistribute it and/or | ||
7 | modify it under the terms of the GNU Library General Public | ||
8 | License as published by the Free Software Foundation; either | ||
9 | version 2 of the License, or (at your option) any later version. | ||
10 | |||
11 | This library is distributed in the hope that it will be useful, | ||
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | Library General Public License for more details. | ||
15 | |||
16 | You should have received a copy of the GNU Library General Public License | ||
17 | along with this library; see the file COPYING.LIB. If not, write to | ||
18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | ||
19 | Boston, MA 02111-1307, USA. | ||
20 | */ | ||
21 | |||
22 | #ifndef KPIM_ADDRESSEEVIEW_H | ||
23 | #define KPIM_ADDRESSEEVIEW_H | ||
24 | |||
25 | #include <kabc/addressee.h> | ||
26 | |||
27 | //US #include <ktextbrowser.h> | ||
28 | #include <qtextbrowser.h> | ||
29 | |||
30 | namespace KPIM { | ||
31 | |||
32 | //US class AddresseeView : public KTextBrowser | ||
33 | class AddresseeView : public QTextBrowser | ||
34 | { | ||
35 | public: | ||
36 | AddresseeView( QWidget *parent = 0, const char *name = 0 ); | ||
37 | |||
38 | /** | ||
39 | Sets the addressee object. The addressee is displayed immediately. | ||
40 | |||
41 | @param addr The addressee object. | ||
42 | */ | ||
43 | void setAddressee( const KABC::Addressee& addr ); | ||
44 | void setSource(const QString& n); | ||
45 | /** | ||
46 | Returns the current addressee object. | ||
47 | */ | ||
48 | KABC::Addressee addressee() const; | ||
49 | |||
50 | private: | ||
51 | KABC::Addressee mAddressee; | ||
52 | QString mText; | ||
53 | void addTag(const QString & tag,const QString & text); | ||
54 | class AddresseeViewPrivate; | ||
55 | AddresseeViewPrivate *d; | ||
56 | }; | ||
57 | |||
58 | } | ||
59 | |||
60 | #endif | ||
diff --git a/kabc/kabc.pro b/kabc/kabc.pro index 417f5b0..d690acc 100644 --- a/kabc/kabc.pro +++ b/kabc/kabc.pro | |||
@@ -14,48 +14,49 @@ LIBS += -L$(QPEDIR)/lib | |||
14 | DEFINES += KAB_EMBEDDED DESKTOP_VERSION | 14 | DEFINES += KAB_EMBEDDED DESKTOP_VERSION |
15 | unix : { | 15 | unix : { |
16 | 16 | ||
17 | OBJECTS_DIR = obj/unix | 17 | OBJECTS_DIR = obj/unix |
18 | MOC_DIR = moc/unix | 18 | MOC_DIR = moc/unix |
19 | } | 19 | } |
20 | win32: { | 20 | win32: { |
21 | DEFINES += _WIN32_ | 21 | DEFINES += _WIN32_ |
22 | OBJECTS_DIR = obj/win | 22 | OBJECTS_DIR = obj/win |
23 | MOC_DIR = moc/win | 23 | MOC_DIR = moc/win |
24 | } | 24 | } |
25 | INTERFACES = \ | 25 | INTERFACES = \ |
26 | 26 | ||
27 | 27 | ||
28 | HEADERS = \ | 28 | HEADERS = \ |
29 | resource.h \ | 29 | resource.h \ |
30 | stdaddressbook.h \ | 30 | stdaddressbook.h \ |
31 | agent.h \ | 31 | agent.h \ |
32 | geo.h \ | 32 | geo.h \ |
33 | key.h \ | 33 | key.h \ |
34 | field.h \ | 34 | field.h \ |
35 | plugin.h \ | 35 | plugin.h \ |
36 | address.h \ | 36 | address.h \ |
37 | addresseelist.h \ | 37 | addresseelist.h \ |
38 | addresseeview.h \ | ||
38 | formatfactory.h \ | 39 | formatfactory.h \ |
39 | formatplugin.h \ | 40 | formatplugin.h \ |
40 | phonenumber.h \ | 41 | phonenumber.h \ |
41 | distributionlist.h \ | 42 | distributionlist.h \ |
42 | distributionlistdialog.h \ | 43 | distributionlistdialog.h \ |
43 | distributionlisteditor.h \ | 44 | distributionlisteditor.h \ |
44 | vcardformatplugin.h \ | 45 | vcardformatplugin.h \ |
45 | formats/vcardformatplugin2.h \ | 46 | formats/vcardformatplugin2.h \ |
46 | picture.h \ | 47 | picture.h \ |
47 | secrecy.h \ | 48 | secrecy.h \ |
48 | sound.h \ | 49 | sound.h \ |
49 | addressbook.h \ | 50 | addressbook.h \ |
50 | syncprefwidget.h \ | 51 | syncprefwidget.h \ |
51 | timezone.h \ | 52 | timezone.h \ |
52 | tmpaddressbook.h \ | 53 | tmpaddressbook.h \ |
53 | addressee.h \ | 54 | addressee.h \ |
54 | addresseedialog.h \ | 55 | addresseedialog.h \ |
55 | vcardconverter.h \ | 56 | vcardconverter.h \ |
56 | vcard21parser.h \ | 57 | vcard21parser.h \ |
57 | vcardformatimpl.h \ | 58 | vcardformatimpl.h \ |
58 | plugins/file/resourcefile.h \ | 59 | plugins/file/resourcefile.h \ |
59 | plugins/file/resourcefileconfig.h \ | 60 | plugins/file/resourcefileconfig.h \ |
60 | plugins/dir/resourcedir.h \ | 61 | plugins/dir/resourcedir.h \ |
61 | plugins/dir/resourcedirconfig.h \ | 62 | plugins/dir/resourcedirconfig.h \ |
@@ -131,48 +132,49 @@ vcard/include/generated/ClassValue-generated.h \ | |||
131 | vcard/include/generated/FloatValue-generated.h \ | 132 | vcard/include/generated/FloatValue-generated.h \ |
132 | vcard/include/generated/TextListValue-generated.h | 133 | vcard/include/generated/TextListValue-generated.h |
133 | 134 | ||
134 | 135 | ||
135 | # plugins/ldap/resourceldap.h \ | 136 | # plugins/ldap/resourceldap.h \ |
136 | # plugins/ldap/resourceldapconfig.h \ | 137 | # plugins/ldap/resourceldapconfig.h \ |
137 | #formats/binary/binaryformat.h \ | 138 | #formats/binary/binaryformat.h \ |
138 | 139 | ||
139 | #vcard/include/VCardTextNSParam.h \ | 140 | #vcard/include/VCardTextNSParam.h \ |
140 | 141 | ||
141 | SOURCES = \ | 142 | SOURCES = \ |
142 | distributionlist.cpp \ | 143 | distributionlist.cpp \ |
143 | distributionlistdialog.cpp \ | 144 | distributionlistdialog.cpp \ |
144 | distributionlisteditor.cpp \ | 145 | distributionlisteditor.cpp \ |
145 | vcardformatplugin.cpp \ | 146 | vcardformatplugin.cpp \ |
146 | formats/vcardformatplugin2.cpp \ | 147 | formats/vcardformatplugin2.cpp \ |
147 | formatfactory.cpp \ | 148 | formatfactory.cpp \ |
148 | resource.cpp \ | 149 | resource.cpp \ |
149 | stdaddressbook.cpp \ | 150 | stdaddressbook.cpp \ |
150 | plugin.cpp \ | 151 | plugin.cpp \ |
151 | agent.cpp \ | 152 | agent.cpp \ |
152 | geo.cpp \ | 153 | geo.cpp \ |
153 | key.cpp \ | 154 | key.cpp \ |
154 | field.cpp \ | 155 | field.cpp \ |
156 | addresseeview.cpp \ | ||
155 | address.cpp \ | 157 | address.cpp \ |
156 | phonenumber.cpp \ | 158 | phonenumber.cpp \ |
157 | picture.cpp \ | 159 | picture.cpp \ |
158 | secrecy.cpp \ | 160 | secrecy.cpp \ |
159 | sound.cpp \ | 161 | sound.cpp \ |
160 | addressbook.cpp \ | 162 | addressbook.cpp \ |
161 | syncprefwidget.cpp \ | 163 | syncprefwidget.cpp \ |
162 | timezone.cpp \ | 164 | timezone.cpp \ |
163 | tmpaddressbook.cpp \ | 165 | tmpaddressbook.cpp \ |
164 | addressee.cpp \ | 166 | addressee.cpp \ |
165 | addresseelist.cpp \ | 167 | addresseelist.cpp \ |
166 | addresseedialog.cpp \ | 168 | addresseedialog.cpp \ |
167 | vcardconverter.cpp \ | 169 | vcardconverter.cpp \ |
168 | vcard21parser.cpp \ | 170 | vcard21parser.cpp \ |
169 | vcardformatimpl.cpp \ | 171 | vcardformatimpl.cpp \ |
170 | plugins/file/resourcefile.cpp \ | 172 | plugins/file/resourcefile.cpp \ |
171 | plugins/file/resourcefileconfig.cpp \ | 173 | plugins/file/resourcefileconfig.cpp \ |
172 | plugins/dir/resourcedir.cpp \ | 174 | plugins/dir/resourcedir.cpp \ |
173 | plugins/dir/resourcedirconfig.cpp \ | 175 | plugins/dir/resourcedirconfig.cpp \ |
174 | vcardparser/vcardline.cpp \ | 176 | vcardparser/vcardline.cpp \ |
175 | vcardparser/vcard.cpp \ | 177 | vcardparser/vcard.cpp \ |
176 | vcardparser/vcardtool.cpp \ | 178 | vcardparser/vcardtool.cpp \ |
177 | vcardparser/vcardparser.cpp \ | 179 | vcardparser/vcardparser.cpp \ |
178 | vcard/AdrParam.cpp \ | 180 | vcard/AdrParam.cpp \ |
diff --git a/kabc/kabcE.pro b/kabc/kabcE.pro index dfdbcff..b360e8c 100644 --- a/kabc/kabcE.pro +++ b/kabc/kabcE.pro | |||
@@ -1,47 +1,48 @@ | |||
1 | TEMPLATE= lib | 1 | TEMPLATE= lib |
2 | CONFIG += qt warn_on | 2 | CONFIG += qt warn_on |
3 | TARGET = microkabc | 3 | TARGET = microkabc |
4 | 4 | ||
5 | 5 | ||
6 | INCLUDEPATH += . $(KDEPIMDIR) vcard/include vcard/include/generated $(KDEPIMDIR)/microkde $(KDEPIMDIR)/microkde/kdecore $(KDEPIMDIR)/microkde/kdeui $(KDEPIMDIR)/microkde/kio/kfile $(KDEPIMDIR)/microkde/kio/kio $(KDEPIMDIR)/libkdepim $(KDEPIMDIR)/qtcompat $(QPEDIR)/include | 6 | INCLUDEPATH += . $(KDEPIMDIR) vcard/include vcard/include/generated $(KDEPIMDIR)/microkde $(KDEPIMDIR)/microkde/kdecore $(KDEPIMDIR)/microkde/kdeui $(KDEPIMDIR)/microkde/kio/kfile $(KDEPIMDIR)/microkde/kio/kio $(KDEPIMDIR)/libkdepim $(KDEPIMDIR)/qtcompat $(QPEDIR)/include |
7 | OBJECTS_DIR = obj/$(PLATFORM) | 7 | OBJECTS_DIR = obj/$(PLATFORM) |
8 | MOC_DIR = moc/$(PLATFORM) | 8 | MOC_DIR = moc/$(PLATFORM) |
9 | DESTDIR = $(QPEDIR)/lib | 9 | DESTDIR = $(QPEDIR)/lib |
10 | LIBS += -lmicrokde | 10 | LIBS += -lmicrokde |
11 | LIBS += -lmicrokdepim | 11 | LIBS += -lmicrokdepim |
12 | #LIBS += -lldap | 12 | #LIBS += -lldap |
13 | LIBS += -L$(QPEDIR)/lib | 13 | LIBS += -L$(QPEDIR)/lib |
14 | DEFINES += KAB_EMBEDDED | 14 | DEFINES += KAB_EMBEDDED |
15 | 15 | ||
16 | INTERFACES = \ | 16 | INTERFACES = \ |
17 | 17 | ||
18 | HEADERS = \ | 18 | HEADERS = \ |
19 | address.h \ | 19 | address.h \ |
20 | addressbook.h \ | 20 | addressbook.h \ |
21 | addressee.h \ | 21 | addressee.h \ |
22 | addresseedialog.h \ | 22 | addresseedialog.h \ |
23 | addresseelist.h \ | 23 | addresseelist.h \ |
24 | addresseeview.h \ | ||
24 | agent.h \ | 25 | agent.h \ |
25 | distributionlist.h \ | 26 | distributionlist.h \ |
26 | distributionlistdialog.h \ | 27 | distributionlistdialog.h \ |
27 | distributionlisteditor.h \ | 28 | distributionlisteditor.h \ |
28 | field.h \ | 29 | field.h \ |
29 | formatfactory.h \ | 30 | formatfactory.h \ |
30 | formatplugin.h \ | 31 | formatplugin.h \ |
31 | geo.h \ | 32 | geo.h \ |
32 | key.h \ | 33 | key.h \ |
33 | phonenumber.h \ | 34 | phonenumber.h \ |
34 | picture.h \ | 35 | picture.h \ |
35 | plugin.h \ | 36 | plugin.h \ |
36 | resource.h \ | 37 | resource.h \ |
37 | secrecy.h \ | 38 | secrecy.h \ |
38 | sound.h \ | 39 | sound.h \ |
39 | stdaddressbook.h \ | 40 | stdaddressbook.h \ |
40 | syncprefwidget.h \ | 41 | syncprefwidget.h \ |
41 | timezone.h \ | 42 | timezone.h \ |
42 | tmpaddressbook.h \ | 43 | tmpaddressbook.h \ |
43 | vcardconverter.h \ | 44 | vcardconverter.h \ |
44 | vcard21parser.h \ | 45 | vcard21parser.h \ |
45 | vcardformatimpl.h \ | 46 | vcardformatimpl.h \ |
46 | vcardformatplugin.h \ | 47 | vcardformatplugin.h \ |
47 | vcardparser/vcardline.h \ | 48 | vcardparser/vcardline.h \ |
@@ -105,48 +106,49 @@ HEADERS = \ | |||
105 | vcard/include/generated/TextBinParam-generated.h \ | 106 | vcard/include/generated/TextBinParam-generated.h \ |
106 | vcard/include/generated/URIValue-generated.h \ | 107 | vcard/include/generated/URIValue-generated.h \ |
107 | vcard/include/generated/VCard-generated.h \ | 108 | vcard/include/generated/VCard-generated.h \ |
108 | vcard/include/generated/VCardEntity-generated.h \ | 109 | vcard/include/generated/VCardEntity-generated.h \ |
109 | vcard/include/generated/Value-generated.h \ | 110 | vcard/include/generated/Value-generated.h \ |
110 | vcard/include/generated/SoundValue-generated.h \ | 111 | vcard/include/generated/SoundValue-generated.h \ |
111 | vcard/include/generated/AgentValue-generated.h \ | 112 | vcard/include/generated/AgentValue-generated.h \ |
112 | vcard/include/generated/TelValue-generated.h \ | 113 | vcard/include/generated/TelValue-generated.h \ |
113 | vcard/include/generated/TextBinValue-generated.h \ | 114 | vcard/include/generated/TextBinValue-generated.h \ |
114 | vcard/include/generated/OrgValue-generated.h \ | 115 | vcard/include/generated/OrgValue-generated.h \ |
115 | vcard/include/generated/UTCValue-generated.h \ | 116 | vcard/include/generated/UTCValue-generated.h \ |
116 | vcard/include/generated/ClassValue-generated.h \ | 117 | vcard/include/generated/ClassValue-generated.h \ |
117 | vcard/include/generated/FloatValue-generated.h \ | 118 | vcard/include/generated/FloatValue-generated.h \ |
118 | vcard/include/generated/TextListValue-generated.h | 119 | vcard/include/generated/TextListValue-generated.h |
119 | 120 | ||
120 | 121 | ||
121 | 122 | ||
122 | 123 | ||
123 | SOURCES = \ | 124 | SOURCES = \ |
124 | address.cpp \ | 125 | address.cpp \ |
125 | addressbook.cpp \ | 126 | addressbook.cpp \ |
126 | addressee.cpp \ | 127 | addressee.cpp \ |
127 | addresseedialog.cpp \ | 128 | addresseedialog.cpp \ |
128 | addresseelist.cpp \ | 129 | addresseelist.cpp \ |
130 | addresseeview.cpp \ | ||
129 | agent.cpp \ | 131 | agent.cpp \ |
130 | distributionlist.cpp \ | 132 | distributionlist.cpp \ |
131 | distributionlistdialog.cpp \ | 133 | distributionlistdialog.cpp \ |
132 | distributionlisteditor.cpp \ | 134 | distributionlisteditor.cpp \ |
133 | field.cpp \ | 135 | field.cpp \ |
134 | formatfactory.cpp \ | 136 | formatfactory.cpp \ |
135 | geo.cpp \ | 137 | geo.cpp \ |
136 | key.cpp \ | 138 | key.cpp \ |
137 | phonenumber.cpp \ | 139 | phonenumber.cpp \ |
138 | picture.cpp \ | 140 | picture.cpp \ |
139 | plugin.cpp \ | 141 | plugin.cpp \ |
140 | resource.cpp \ | 142 | resource.cpp \ |
141 | secrecy.cpp \ | 143 | secrecy.cpp \ |
142 | sound.cpp \ | 144 | sound.cpp \ |
143 | stdaddressbook.cpp \ | 145 | stdaddressbook.cpp \ |
144 | syncprefwidget.cpp \ | 146 | syncprefwidget.cpp \ |
145 | timezone.cpp \ | 147 | timezone.cpp \ |
146 | tmpaddressbook.cpp \ | 148 | tmpaddressbook.cpp \ |
147 | vcardconverter.cpp \ | 149 | vcardconverter.cpp \ |
148 | vcard21parser.cpp \ | 150 | vcard21parser.cpp \ |
149 | vcardformatimpl.cpp \ | 151 | vcardformatimpl.cpp \ |
150 | vcardformatplugin.cpp \ | 152 | vcardformatplugin.cpp \ |
151 | vcardparser/vcardline.cpp \ | 153 | vcardparser/vcardline.cpp \ |
152 | vcardparser/vcard.cpp \ | 154 | vcardparser/vcard.cpp \ |
diff --git a/kaddressbook/details/look_html.cpp b/kaddressbook/details/look_html.cpp index 2a70273..63364a7 100644 --- a/kaddressbook/details/look_html.cpp +++ b/kaddressbook/details/look_html.cpp | |||
@@ -1,45 +1,45 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KAddressBook. | 2 | This file is part of KAddressBook. |
3 | Copyright (c) 2003 Tobias Koenig <tokoe@kde.org> | 3 | Copyright (c) 2003 Tobias Koenig <tokoe@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <libkdepim/addresseeview.h> | 24 | #include <addresseeview.h> |
25 | 25 | ||
26 | #include "look_html.h" | 26 | #include "look_html.h" |
27 | #include <qscrollview.h> | 27 | #include <qscrollview.h> |
28 | KABHtmlView::KABHtmlView( QWidget *parent, const char *name ) | 28 | KABHtmlView::KABHtmlView( QWidget *parent, const char *name ) |
29 | : KABBasicLook( parent, name ) | 29 | : KABBasicLook( parent, name ) |
30 | { | 30 | { |
31 | mView = new KPIM::AddresseeView( this ); | 31 | mView = new KPIM::AddresseeView( this ); |
32 | } | 32 | } |
33 | 33 | ||
34 | KABHtmlView::~KABHtmlView() | 34 | KABHtmlView::~KABHtmlView() |
35 | { | 35 | { |
36 | } | 36 | } |
37 | 37 | ||
38 | void KABHtmlView::setAddressee( const KABC::Addressee &addr ) | 38 | void KABHtmlView::setAddressee( const KABC::Addressee &addr ) |
39 | { | 39 | { |
40 | mView->setAddressee( addr ); | 40 | mView->setAddressee( addr ); |
41 | } | 41 | } |
42 | 42 | ||
43 | #ifndef KAB_EMBEDDED | 43 | #ifndef KAB_EMBEDDED |
44 | #include "look_html.moc" | 44 | #include "look_html.moc" |
45 | #endif //KAB_EMBEDDED | 45 | #endif //KAB_EMBEDDED |
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index f21507a..32dd43a 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -55,49 +55,49 @@ $Id$ | |||
55 | #include <kprinter.h> | 55 | #include <kprinter.h> |
56 | #include <kprotocolinfo.h> | 56 | #include <kprotocolinfo.h> |
57 | #include <kresources/selectdialog.h> | 57 | #include <kresources/selectdialog.h> |
58 | #include <kstandarddirs.h> | 58 | #include <kstandarddirs.h> |
59 | #include <ktempfile.h> | 59 | #include <ktempfile.h> |
60 | #include <kxmlguiclient.h> | 60 | #include <kxmlguiclient.h> |
61 | #include <kaboutdata.h> | 61 | #include <kaboutdata.h> |
62 | #include <libkdepim/categoryselectdialog.h> | 62 | #include <libkdepim/categoryselectdialog.h> |
63 | 63 | ||
64 | #include "addresseeutil.h" | 64 | #include "addresseeutil.h" |
65 | #include "addresseeeditordialog.h" | 65 | #include "addresseeeditordialog.h" |
66 | #include "extensionmanager.h" | 66 | #include "extensionmanager.h" |
67 | #include "kstdaction.h" | 67 | #include "kstdaction.h" |
68 | #include "kaddressbookservice.h" | 68 | #include "kaddressbookservice.h" |
69 | #include "ldapsearchdialog.h" | 69 | #include "ldapsearchdialog.h" |
70 | #include "printing/printingwizard.h" | 70 | #include "printing/printingwizard.h" |
71 | #else // KAB_EMBEDDED | 71 | #else // KAB_EMBEDDED |
72 | 72 | ||
73 | #include <kapplication.h> | 73 | #include <kapplication.h> |
74 | #include "KDGanttMinimizeSplitter.h" | 74 | #include "KDGanttMinimizeSplitter.h" |
75 | #include "kaddressbookmain.h" | 75 | #include "kaddressbookmain.h" |
76 | #include "kactioncollection.h" | 76 | #include "kactioncollection.h" |
77 | #include "addresseedialog.h" | 77 | #include "addresseedialog.h" |
78 | //US | 78 | //US |
79 | #include <libkdepim/addresseeview.h> | 79 | #include <addresseeview.h> |
80 | 80 | ||
81 | #include <qapp.h> | 81 | #include <qapp.h> |
82 | #include <qmenubar.h> | 82 | #include <qmenubar.h> |
83 | //#include <qtoolbar.h> | 83 | //#include <qtoolbar.h> |
84 | #include <qmessagebox.h> | 84 | #include <qmessagebox.h> |
85 | #include <kdebug.h> | 85 | #include <kdebug.h> |
86 | #include <kiconloader.h> // needed for SmallIcon | 86 | #include <kiconloader.h> // needed for SmallIcon |
87 | #include <kresources/kcmkresources.h> | 87 | #include <kresources/kcmkresources.h> |
88 | #include <ktoolbar.h> | 88 | #include <ktoolbar.h> |
89 | 89 | ||
90 | 90 | ||
91 | //#include <qlabel.h> | 91 | //#include <qlabel.h> |
92 | 92 | ||
93 | 93 | ||
94 | #ifndef DESKTOP_VERSION | 94 | #ifndef DESKTOP_VERSION |
95 | #include <qpe/ir.h> | 95 | #include <qpe/ir.h> |
96 | #include <qpe/qpemenubar.h> | 96 | #include <qpe/qpemenubar.h> |
97 | #include <qtopia/qcopenvelope_qws.h> | 97 | #include <qtopia/qcopenvelope_qws.h> |
98 | #else | 98 | #else |
99 | 99 | ||
100 | #include <qmenubar.h> | 100 | #include <qmenubar.h> |
101 | #endif | 101 | #endif |
102 | 102 | ||
103 | #endif // KAB_EMBEDDED | 103 | #endif // KAB_EMBEDDED |
diff --git a/kaddressbook/kaddressbookE.pro b/kaddressbook/kaddressbookE.pro index 1c9eeef..c027895 100644 --- a/kaddressbook/kaddressbookE.pro +++ b/kaddressbook/kaddressbookE.pro | |||
@@ -1,48 +1,50 @@ | |||
1 | TEMPLATE= app | 1 | TEMPLATE= app |
2 | CONFIG += qt warn_on | 2 | CONFIG += qt warn_on |
3 | 3 | ||
4 | 4 | ||
5 | TARGET = kapi | 5 | TARGET = kapi |
6 | OBJECTS_DIR = obj/$(PLATFORM) | 6 | OBJECTS_DIR = obj/$(PLATFORM) |
7 | MOC_DIR = moc/$(PLATFORM) | 7 | MOC_DIR = moc/$(PLATFORM) |
8 | DESTDIR=$(QPEDIR)/bin | 8 | DESTDIR=$(QPEDIR)/bin |
9 | 9 | ||
10 | INCLUDEPATH += . ./details ./features ./xxport ../libkdepim ../microkde ../microkde/kdecore ../microkde/kutils ../microkde/kio/kfile ../microkde/kio/kio ../microkde/kdeui ../microkde/kresources ../kabc ../qtcompat ../ interfaces $(QPEDIR)/include | 10 | INCLUDEPATH += . ./details ./features ./xxport ../libkdepim ../microkde ../microkde/kdecore ../microkde/kutils ../microkde/kio/kfile ../microkde/kio/kio ../microkde/kdeui ../microkde/kresources ../kabc ../qtcompat ../ interfaces $(QPEDIR)/include |
11 | DEFINES += KAB_EMBEDDED KAB_NOSPLITTER | 11 | DEFINES += KAB_EMBEDDED KAB_NOSPLITTER |
12 | #DEFINES += KORG_NODND KORG_NOPLUGINS KORG_NOKABC KORG_NOARCHIVE KORG_NOMAIL | 12 | #DEFINES += KORG_NODND KORG_NOPLUGINS KORG_NOKABC KORG_NOARCHIVE KORG_NOMAIL |
13 | #DEFINES += KORG_NOPRINTER KORG_NODCOP KORG_NOKALARMD KORG_NORESOURCEVIEW KORG_NOSPLITTER | 13 | #DEFINES += KORG_NOPRINTER KORG_NODCOP KORG_NOKALARMD KORG_NORESOURCEVIEW KORG_NOSPLITTER |
14 | #DEFINES += KORG_NOLVALTERNATION | 14 | #DEFINES += KORG_NOLVALTERNATION |
15 | LIBS += -lmicrokdepim | 15 | #LIBS += -lmicrokdepim |
16 | LIBS += -lmicrokcal | 16 | #LIBS += -lmicrokcal |
17 | LIBS += -lmicrokde | 17 | LIBS += -lmicrokde |
18 | LIBS += -lmicroqtcompat | 18 | LIBS += -lmicroqtcompat |
19 | LIBS += -lmicrokabc | 19 | LIBS += -lmicrokabc |
20 | LIBS += -lqpe | 20 | LIBS += -lqpe |
21 | LIBS += -ljpeg | 21 | LIBS += -ljpeg |
22 | LIBS += $(QTOPIALIB) | 22 | LIBS += $(QTOPIALIB) |
23 | LIBS += -L$(QPEDIR)/lib | 23 | LIBS += -L$(QPEDIR)/lib |
24 | LIBS += -Wl,-export-dynamic | 24 | LIBS += -Wl,-export-dynamic |
25 | LIBS += $(GCC3EXTRALIB1) | ||
26 | LIBS += $(GCC3EXTRALIB2) | ||
25 | 27 | ||
26 | INTERFACES = \ | 28 | INTERFACES = \ |
27 | # filteredit_base.ui \ | 29 | # filteredit_base.ui \ |
28 | # kofilterview_base.ui \ | 30 | # kofilterview_base.ui \ |
29 | 31 | ||
30 | HEADERS = \ | 32 | HEADERS = \ |
31 | features/mergewidget.h \ | 33 | features/mergewidget.h \ |
32 | features/distributionlistwidget.h \ | 34 | features/distributionlistwidget.h \ |
33 | kcmconfigs/addresseewidget.h \ | 35 | kcmconfigs/addresseewidget.h \ |
34 | kcmconfigs/extensionconfigdialog.h \ | 36 | kcmconfigs/extensionconfigdialog.h \ |
35 | kcmconfigs/kcmkabconfig.h \ | 37 | kcmconfigs/kcmkabconfig.h \ |
36 | kcmconfigs/kabconfigwidget.h \ | 38 | kcmconfigs/kabconfigwidget.h \ |
37 | addresseeeditordialog.h \ | 39 | addresseeeditordialog.h \ |
38 | addresseeeditorwidget.h \ | 40 | addresseeeditorwidget.h \ |
39 | addresseditwidget.h \ | 41 | addresseditwidget.h \ |
40 | addresseeconfig.h \ | 42 | addresseeconfig.h \ |
41 | addresseeutil.h \ | 43 | addresseeutil.h \ |
42 | emaileditwidget.h \ | 44 | emaileditwidget.h \ |
43 | filtereditdialog.h \ | 45 | filtereditdialog.h \ |
44 | kaddressbookmain.h \ | 46 | kaddressbookmain.h \ |
45 | kabprefs.h \ | 47 | kabprefs.h \ |
46 | kabcore.h \ | 48 | kabcore.h \ |
47 | viewmanager.h \ | 49 | viewmanager.h \ |
48 | extensionmanager.h \ | 50 | extensionmanager.h \ |
diff --git a/kaddressbook/xxportmanager.cpp b/kaddressbook/xxportmanager.cpp index 713b0fc..810c3e2 100644 --- a/kaddressbook/xxportmanager.cpp +++ b/kaddressbook/xxportmanager.cpp | |||
@@ -31,49 +31,49 @@ $Id$ | |||
31 | #include <qlayout.h> | 31 | #include <qlayout.h> |
32 | #include <qlist.h> | 32 | #include <qlist.h> |
33 | 33 | ||
34 | #include <kabc/addressbook.h> | 34 | #include <kabc/addressbook.h> |
35 | #include <kabc/resource.h> | 35 | #include <kabc/resource.h> |
36 | #include <kdebug.h> | 36 | #include <kdebug.h> |
37 | #include <kdialogbase.h> | 37 | #include <kdialogbase.h> |
38 | #include <klocale.h> | 38 | #include <klocale.h> |
39 | #include <kmessagebox.h> | 39 | #include <kmessagebox.h> |
40 | 40 | ||
41 | #ifndef KAB_EMBEDDED | 41 | #ifndef KAB_EMBEDDED |
42 | #include <ktrader.h> | 42 | #include <ktrader.h> |
43 | #else //KAB_EMBEDDED | 43 | #else //KAB_EMBEDDED |
44 | extern "C" | 44 | extern "C" |
45 | { | 45 | { |
46 | void* init_microkaddrbk_csv_xxport(); | 46 | void* init_microkaddrbk_csv_xxport(); |
47 | void* init_microkaddrbk_kde2_xxport(); | 47 | void* init_microkaddrbk_kde2_xxport(); |
48 | void* init_microkaddrbk_vcard_xxport(); | 48 | void* init_microkaddrbk_vcard_xxport(); |
49 | void* init_microkaddrbk_opie_xxport(); | 49 | void* init_microkaddrbk_opie_xxport(); |
50 | void* init_microkaddrbk_qtopia_xxport(); | 50 | void* init_microkaddrbk_qtopia_xxport(); |
51 | void* init_microkaddrbk_sharpdtm_xxport(); | 51 | void* init_microkaddrbk_sharpdtm_xxport(); |
52 | } | 52 | } |
53 | #endif //KAB_EMBEDDED | 53 | #endif //KAB_EMBEDDED |
54 | 54 | ||
55 | #include <libkdepim/addresseeview.h> | 55 | #include <addresseeview.h> |
56 | 56 | ||
57 | #include "kabcore.h" | 57 | #include "kabcore.h" |
58 | #include "undocmds.h" | 58 | #include "undocmds.h" |
59 | #include "xxportselectdialog.h" | 59 | #include "xxportselectdialog.h" |
60 | 60 | ||
61 | #include "xxportmanager.h" | 61 | #include "xxportmanager.h" |
62 | 62 | ||
63 | KURL XXPortManager::importURL = KURL(); | 63 | KURL XXPortManager::importURL = KURL(); |
64 | QString XXPortManager::importData = QString::null; | 64 | QString XXPortManager::importData = QString::null; |
65 | 65 | ||
66 | class PreviewDialog : public KDialogBase | 66 | class PreviewDialog : public KDialogBase |
67 | { | 67 | { |
68 | public: | 68 | public: |
69 | PreviewDialog( const KABC::Addressee &addr, | 69 | PreviewDialog( const KABC::Addressee &addr, |
70 | QWidget *parent, const char *name = 0 ); | 70 | QWidget *parent, const char *name = 0 ); |
71 | }; | 71 | }; |
72 | 72 | ||
73 | XXPortManager::XXPortManager( KABCore *core, QObject *parent, const char *name ) | 73 | XXPortManager::XXPortManager( KABCore *core, QObject *parent, const char *name ) |
74 | : QObject( parent, name ), mCore( core ), mShowPreview( false ) | 74 | : QObject( parent, name ), mCore( core ), mShowPreview( false ) |
75 | { | 75 | { |
76 | loadPlugins(); | 76 | loadPlugins(); |
77 | } | 77 | } |
78 | 78 | ||
79 | XXPortManager::~XXPortManager() | 79 | XXPortManager::~XXPortManager() |
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 369c7a0..56b3fb0 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -1305,91 +1305,93 @@ void CalendarView::syncExternal( int mode ) | |||
1305 | lse->setDescription( "" ); | 1305 | lse->setDescription( "" ); |
1306 | lse->setReadOnly( true ); | 1306 | lse->setReadOnly( true ); |
1307 | } | 1307 | } |
1308 | } | 1308 | } |
1309 | } | 1309 | } |
1310 | setModified( true ); | 1310 | setModified( true ); |
1311 | } else { | 1311 | } else { |
1312 | QString question = i18n("Sorry, the database access\ncommand failed!\n\nNothing synced!\n") ; | 1312 | QString question = i18n("Sorry, the database access\ncommand failed!\n\nNothing synced!\n") ; |
1313 | QMessageBox::information( 0, i18n("KO/Pi Import - ERROR"), | 1313 | QMessageBox::information( 0, i18n("KO/Pi Import - ERROR"), |
1314 | question, i18n("Ok")) ; | 1314 | question, i18n("Ok")) ; |
1315 | 1315 | ||
1316 | } | 1316 | } |
1317 | delete calendar; | 1317 | delete calendar; |
1318 | updateView(); | 1318 | updateView(); |
1319 | return ;//syncOK; | 1319 | return ;//syncOK; |
1320 | 1320 | ||
1321 | } | 1321 | } |
1322 | void CalendarView::syncSharp() | 1322 | void CalendarView::syncSharp() |
1323 | { | 1323 | { |
1324 | syncExternal( 0 ); | 1324 | syncExternal( 0 ); |
1325 | 1325 | ||
1326 | } | 1326 | } |
1327 | 1327 | ||
1328 | 1328 | ||
1329 | #include <kabc/stdaddressbook.h> | 1329 | //#include <kabc/stdaddressbook.h> |
1330 | bool CalendarView::importBday() | 1330 | bool CalendarView::importBday() |
1331 | { | 1331 | { |
1332 | #if 0 | ||
1332 | KABC::StdAddressBook* AddressBook = KABC::StdAddressBook::self( true ); | 1333 | KABC::StdAddressBook* AddressBook = KABC::StdAddressBook::self( true ); |
1333 | KABC::AddressBook::Iterator it; | 1334 | KABC::AddressBook::Iterator it; |
1334 | int count = 0; | 1335 | int count = 0; |
1335 | for( it = AddressBook->begin(); it != AddressBook->end(); ++it ) { | 1336 | for( it = AddressBook->begin(); it != AddressBook->end(); ++it ) { |
1336 | ++count; | 1337 | ++count; |
1337 | } | 1338 | } |
1338 | QProgressBar bar(count,0 ); | 1339 | QProgressBar bar(count,0 ); |
1339 | int w = 300; | 1340 | int w = 300; |
1340 | if ( QApplication::desktop()->width() < 320 ) | 1341 | if ( QApplication::desktop()->width() < 320 ) |
1341 | w = 220; | 1342 | w = 220; |
1342 | int h = bar.sizeHint().height() ; | 1343 | int h = bar.sizeHint().height() ; |
1343 | int dw = QApplication::desktop()->width(); | 1344 | int dw = QApplication::desktop()->width(); |
1344 | int dh = QApplication::desktop()->height(); | 1345 | int dh = QApplication::desktop()->height(); |
1345 | bar.setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); | 1346 | bar.setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); |
1346 | bar.show(); | 1347 | bar.show(); |
1347 | bar.setCaption (i18n("Reading addressbook - close to abort!") ); | 1348 | bar.setCaption (i18n("Reading addressbook - close to abort!") ); |
1348 | qApp->processEvents(); | 1349 | qApp->processEvents(); |
1349 | count = 0; | 1350 | count = 0; |
1350 | int addCount = 0; | 1351 | int addCount = 0; |
1351 | KCal::Attendee* a = 0; | 1352 | KCal::Attendee* a = 0; |
1352 | for( it = AddressBook->begin(); it != AddressBook->end(); ++it ) { | 1353 | for( it = AddressBook->begin(); it != AddressBook->end(); ++it ) { |
1353 | if ( ! bar.isVisible() ) | 1354 | if ( ! bar.isVisible() ) |
1354 | return false; | 1355 | return false; |
1355 | bar.setProgress( count++ ); | 1356 | bar.setProgress( count++ ); |
1356 | qApp->processEvents(); | 1357 | qApp->processEvents(); |
1357 | //qDebug("add BDay %s %s", (*it).realName().latin1(),(*it).birthday().date().toString().latin1() ); | 1358 | //qDebug("add BDay %s %s", (*it).realName().latin1(),(*it).birthday().date().toString().latin1() ); |
1358 | if ( (*it).birthday().date().isValid() ){ | 1359 | if ( (*it).birthday().date().isValid() ){ |
1359 | a = new KCal::Attendee( (*it).realName(), (*it).preferredEmail(),false,KCal::Attendee::NeedsAction,KCal::Attendee::ReqParticipant,(*it).uid()) ; | 1360 | a = new KCal::Attendee( (*it).realName(), (*it).preferredEmail(),false,KCal::Attendee::NeedsAction,KCal::Attendee::ReqParticipant,(*it).uid()) ; |
1360 | if ( addAnniversary( (*it).birthday().date(), (*it).assembledName(), a, true ) ) | 1361 | if ( addAnniversary( (*it).birthday().date(), (*it).assembledName(), a, true ) ) |
1361 | ++addCount; | 1362 | ++addCount; |
1362 | } | 1363 | } |
1363 | QDate anni = KGlobal::locale()->readDate( (*it).custom("KADDRESSBOOK", "X-Anniversary" ), "%Y-%m-%d"); | 1364 | QDate anni = KGlobal::locale()->readDate( (*it).custom("KADDRESSBOOK", "X-Anniversary" ), "%Y-%m-%d"); |
1364 | if ( anni.isValid() ){ | 1365 | if ( anni.isValid() ){ |
1365 | a = new KCal::Attendee( (*it).realName(), (*it).preferredEmail(),false,KCal::Attendee::NeedsAction,KCal::Attendee::ReqParticipant,(*it).uid()) ; | 1366 | a = new KCal::Attendee( (*it).realName(), (*it).preferredEmail(),false,KCal::Attendee::NeedsAction,KCal::Attendee::ReqParticipant,(*it).uid()) ; |
1366 | if ( addAnniversary( anni, (*it).assembledName(), a, false ) ) | 1367 | if ( addAnniversary( anni, (*it).assembledName(), a, false ) ) |
1367 | ++addCount; | 1368 | ++addCount; |
1368 | } | 1369 | } |
1369 | } | 1370 | } |
1370 | updateView(); | 1371 | updateView(); |
1371 | topLevelWidget()->setCaption(QString::number( addCount )+ i18n(" birthdays/anniversaries added!")); | 1372 | topLevelWidget()->setCaption(QString::number( addCount )+ i18n(" birthdays/anniversaries added!")); |
1373 | #endif | ||
1372 | return true; | 1374 | return true; |
1373 | } | 1375 | } |
1374 | 1376 | ||
1375 | bool CalendarView::addAnniversary( QDate date, QString name, KCal::Attendee* a, bool birthday) | 1377 | bool CalendarView::addAnniversary( QDate date, QString name, KCal::Attendee* a, bool birthday) |
1376 | { | 1378 | { |
1377 | //qDebug("addAnni "); | 1379 | //qDebug("addAnni "); |
1378 | Event * ev = new Event(); | 1380 | Event * ev = new Event(); |
1379 | if ( a ) { | 1381 | if ( a ) { |
1380 | ev->addAttendee( a ); | 1382 | ev->addAttendee( a ); |
1381 | } | 1383 | } |
1382 | QString kind; | 1384 | QString kind; |
1383 | if ( birthday ) | 1385 | if ( birthday ) |
1384 | kind = i18n( "Birthday" ); | 1386 | kind = i18n( "Birthday" ); |
1385 | else | 1387 | else |
1386 | kind = i18n( "Anniversary" ); | 1388 | kind = i18n( "Anniversary" ); |
1387 | ev->setSummary( name + " - " + kind ); | 1389 | ev->setSummary( name + " - " + kind ); |
1388 | ev->setOrganizer( "nobody@nowhere" ); | 1390 | ev->setOrganizer( "nobody@nowhere" ); |
1389 | ev->setCategories( kind ); | 1391 | ev->setCategories( kind ); |
1390 | ev->setDtStart( QDateTime(date) ); | 1392 | ev->setDtStart( QDateTime(date) ); |
1391 | ev->setDtEnd( QDateTime(date) ); | 1393 | ev->setDtEnd( QDateTime(date) ); |
1392 | ev->setFloats( true ); | 1394 | ev->setFloats( true ); |
1393 | Recurrence * rec = ev->recurrence(); | 1395 | Recurrence * rec = ev->recurrence(); |
1394 | rec->setYearly(Recurrence::rYearlyMonth,1,-1); | 1396 | rec->setYearly(Recurrence::rYearlyMonth,1,-1); |
1395 | rec->addYearlyNum( date.month() ); | 1397 | rec->addYearlyNum( date.month() ); |
diff --git a/korganizer/incomingdialog.cpp b/korganizer/incomingdialog.cpp index f3bd09f..50e3077 100644 --- a/korganizer/incomingdialog.cpp +++ b/korganizer/incomingdialog.cpp | |||
@@ -29,49 +29,50 @@ | |||
29 | #include <kmessagebox.h> | 29 | #include <kmessagebox.h> |
30 | 30 | ||
31 | #include <libkcal/incidence.h> | 31 | #include <libkcal/incidence.h> |
32 | #include <libkcal/event.h> | 32 | #include <libkcal/event.h> |
33 | #include <libkcal/calendar.h> | 33 | #include <libkcal/calendar.h> |
34 | #include <libkcal/freebusy.h> | 34 | #include <libkcal/freebusy.h> |
35 | #include <libkcal/attendee.h> | 35 | #include <libkcal/attendee.h> |
36 | #include <libkcal/calendarresources.h> | 36 | #include <libkcal/calendarresources.h> |
37 | #include <libkcal/resourcecalendar.h> | 37 | #include <libkcal/resourcecalendar.h> |
38 | #include <kresources/resourceselectdialog.h> | 38 | #include <kresources/resourceselectdialog.h> |
39 | 39 | ||
40 | #ifndef KORG_NOMAIL | 40 | #ifndef KORG_NOMAIL |
41 | #include "mailscheduler.h" | 41 | #include "mailscheduler.h" |
42 | #else | 42 | #else |
43 | #include <libkcal/dummyscheduler.h> | 43 | #include <libkcal/dummyscheduler.h> |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | 46 | ||
47 | #include "incomingdialog.h" | 47 | #include "incomingdialog.h" |
48 | #include "koeventviewerdialog.h" | 48 | #include "koeventviewerdialog.h" |
49 | #include "kocounterdialog.h" | 49 | #include "kocounterdialog.h" |
50 | #include "koprefs.h" | 50 | #include "koprefs.h" |
51 | 51 | ||
52 | #ifndef KORG_NOKABC | 52 | #ifndef KORG_NOKABC |
53 | #include <kabc/stdaddressbook.h> | 53 | #define KORG_NOKABC |
54 | //#include <kabc/stdaddressbook.h> | ||
54 | #define size count | 55 | #define size count |
55 | #endif | 56 | #endif |
56 | 57 | ||
57 | 58 | ||
58 | ScheduleItemIn::ScheduleItemIn(QListView *parent,IncidenceBase *ev, | 59 | ScheduleItemIn::ScheduleItemIn(QListView *parent,IncidenceBase *ev, |
59 | Scheduler::Method method,ScheduleMessage::Status status) | 60 | Scheduler::Method method,ScheduleMessage::Status status) |
60 | : QListViewItem(parent) | 61 | : QListViewItem(parent) |
61 | { | 62 | { |
62 | mIncidence = ev; | 63 | mIncidence = ev; |
63 | mMethod = method; | 64 | mMethod = method; |
64 | mStatus = status; | 65 | mStatus = status; |
65 | setText(6,Scheduler::translatedMethodName(mMethod)+" "); | 66 | setText(6,Scheduler::translatedMethodName(mMethod)+" "); |
66 | setText(7,ScheduleMessage::statusName(status)); | 67 | setText(7,ScheduleMessage::statusName(status)); |
67 | } | 68 | } |
68 | 69 | ||
69 | 70 | ||
70 | /* Visitor */ | 71 | /* Visitor */ |
71 | ScheduleItemVisitor::ScheduleItemVisitor(ScheduleItemIn *item) | 72 | ScheduleItemVisitor::ScheduleItemVisitor(ScheduleItemIn *item) |
72 | { | 73 | { |
73 | mItem = item; | 74 | mItem = item; |
74 | } | 75 | } |
75 | 76 | ||
76 | ScheduleItemVisitor::~ScheduleItemVisitor() | 77 | ScheduleItemVisitor::~ScheduleItemVisitor() |
77 | { | 78 | { |
diff --git a/korganizer/korganizerE.pro b/korganizer/korganizerE.pro index 4247838..d841193 100644 --- a/korganizer/korganizerE.pro +++ b/korganizer/korganizerE.pro | |||
@@ -1,47 +1,49 @@ | |||
1 | TEMPLATE= app | 1 | TEMPLATE= app |
2 | CONFIG += qt warn_on | 2 | CONFIG += qt warn_on |
3 | TARGET = kopi | 3 | TARGET = kopi |
4 | OBJECTS_DIR = obj/$(PLATFORM) | 4 | OBJECTS_DIR = obj/$(PLATFORM) |
5 | MOC_DIR = moc/$(PLATFORM) | 5 | MOC_DIR = moc/$(PLATFORM) |
6 | DESTDIR=$(QPEDIR)/bin | 6 | DESTDIR=$(QPEDIR)/bin |
7 | 7 | ||
8 | INCLUDEPATH += $(KDEPIMDIR) $(KDEPIMDIR)/microkde $(KDEPIMDIR)/microkde/kdecore $(KDEPIMDIR)/microkde/kio/kfile $(KDEPIMDIR)/microkde/kio/kio $(KDEPIMDIR)/microkde/kdeui $(KDEPIMDIR)/qtcompat $(KDEPIMDIR)/libkdepim interfaces $(KDEPIMDIR)/kabc $(QPEDIR)/include | 8 | INCLUDEPATH += $(KDEPIMDIR) $(KDEPIMDIR)/microkde $(KDEPIMDIR)/microkde/kdecore $(KDEPIMDIR)/microkde/kio/kfile $(KDEPIMDIR)/microkde/kio/kio $(KDEPIMDIR)/microkde/kdeui $(KDEPIMDIR)/qtcompat $(KDEPIMDIR)/libkdepim interfaces $(KDEPIMDIR)/kabc $(QPEDIR)/include |
9 | 9 | ||
10 | DEFINES += KORG_NODND KORG_NOPLUGINS KORG_NOARCHIVE KORG_NOMAIL | 10 | DEFINES += KORG_NODND KORG_NOPLUGINS KORG_NOARCHIVE KORG_NOMAIL |
11 | DEFINES += KORG_NOPRINTER KORG_NODCOP KORG_NOKALARMD KORG_NORESOURCEVIEW KORG_NOSPLITTER | 11 | DEFINES += KORG_NOPRINTER KORG_NODCOP KORG_NOKALARMD KORG_NORESOURCEVIEW KORG_NOSPLITTER |
12 | DEFINES += KORG_NOLVALTERNATION | 12 | DEFINES += KORG_NOLVALTERNATION |
13 | #KORG_NOKABC | 13 | #KORG_NOKABC |
14 | LIBS += -lmicrokdepim | 14 | LIBS += -lmicrokdepim |
15 | LIBS += -lmicrokcal | 15 | LIBS += -lmicrokcal |
16 | LIBS += -lmicrokde | 16 | LIBS += -lmicrokde |
17 | LIBS += -lmicroqtcompat | 17 | LIBS += -lmicroqtcompat |
18 | LIBS += -lmicrokabc | 18 | #LIBS += -lmicrokabc |
19 | 19 | ||
20 | #LIBS += $(QPEDIR)/lib/gammu | 20 | #LIBS += $(QPEDIR)/lib/gammu |
21 | #LIBS += -lmicrogammu | 21 | #LIBS += -lmicrogammu |
22 | #LIBS += -lbluetooth | 22 | #LIBS += -lbluetooth |
23 | #LIBS += -lsdp | 23 | #LIBS += -lsdp |
24 | LIBS += $(GCC3EXTRALIB1) | ||
25 | LIBS += $(GCC3EXTRALIB2) | ||
24 | 26 | ||
25 | 27 | ||
26 | LIBS += -lqpe | 28 | LIBS += -lqpe |
27 | LIBS += -ljpeg | 29 | LIBS += -ljpeg |
28 | LIBS += $(QTOPIALIB) | 30 | LIBS += $(QTOPIALIB) |
29 | LIBS += -L$(QPEDIR)/lib | 31 | LIBS += -L$(QPEDIR)/lib |
30 | 32 | ||
31 | INTERFACES = kofilterview_base.ui | 33 | INTERFACES = kofilterview_base.ui |
32 | #filteredit_base.ui | 34 | #filteredit_base.ui |
33 | 35 | ||
34 | HEADERS = \ | 36 | HEADERS = \ |
35 | wordsgerman.h \ | 37 | wordsgerman.h \ |
36 | filteredit_base.h \ | 38 | filteredit_base.h \ |
37 | alarmclient.h \ | 39 | alarmclient.h \ |
38 | calendarview.h \ | 40 | calendarview.h \ |
39 | customlistviewitem.h \ | 41 | customlistviewitem.h \ |
40 | datenavigator.h \ | 42 | datenavigator.h \ |
41 | docprefs.h \ | 43 | docprefs.h \ |
42 | filtereditdialog.h \ | 44 | filtereditdialog.h \ |
43 | incomingdialog.h \ | 45 | incomingdialog.h \ |
44 | incomingdialog_base.h \ | 46 | incomingdialog_base.h \ |
45 | interfaces/korganizer/baseview.h \ | 47 | interfaces/korganizer/baseview.h \ |
46 | interfaces/korganizer/calendarviewbase.h \ | 48 | interfaces/korganizer/calendarviewbase.h \ |
47 | journalentry.h \ | 49 | journalentry.h \ |
diff --git a/korganizer/publishdialog.cpp b/korganizer/publishdialog.cpp index 4323b91..2ae6720 100644 --- a/korganizer/publishdialog.cpp +++ b/korganizer/publishdialog.cpp | |||
@@ -6,49 +6,50 @@ | |||
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <qlineedit.h> | 24 | #include <qlineedit.h> |
25 | #include <kdebug.h> | 25 | #include <kdebug.h> |
26 | 26 | ||
27 | #include <kglobal.h> | 27 | #include <kglobal.h> |
28 | #include <klocale.h> | 28 | #include <klocale.h> |
29 | #ifndef KORG_NOKABC | 29 | #ifndef KORG_NOKABC |
30 | #include <kabc/addresseedialog.h> | 30 | #define KORG_NOKABC |
31 | //#include <kabc/addresseedialog.h> | ||
31 | #endif | 32 | #endif |
32 | 33 | ||
33 | #include "koprefs.h" | 34 | #include "koprefs.h" |
34 | #include "publishdialog.h" | 35 | #include "publishdialog.h" |
35 | 36 | ||
36 | PublishDialog::PublishDialog(QWidget* parent, const char* name, | 37 | PublishDialog::PublishDialog(QWidget* parent, const char* name, |
37 | bool modal, WFlags fl) | 38 | bool modal, WFlags fl) |
38 | : PublishDialog_base(parent,name,modal,fl) | 39 | : PublishDialog_base(parent,name,modal,fl) |
39 | { | 40 | { |
40 | setCaption(i18n("Select Addresses")); | 41 | setCaption(i18n("Select Addresses")); |
41 | mNameLineEdit->setEnabled(false); | 42 | mNameLineEdit->setEnabled(false); |
42 | mEmailLineEdit->setEnabled(false); | 43 | mEmailLineEdit->setEnabled(false); |
43 | connect(mAddressListView,SIGNAL(selectionChanged(QListViewItem *)), | 44 | connect(mAddressListView,SIGNAL(selectionChanged(QListViewItem *)), |
44 | SLOT(updateInput())); | 45 | SLOT(updateInput())); |
45 | } | 46 | } |
46 | 47 | ||
47 | PublishDialog::~PublishDialog() | 48 | PublishDialog::~PublishDialog() |
48 | { | 49 | { |
49 | } | 50 | } |
50 | 51 | ||
51 | void PublishDialog::addAttendee(Attendee *attendee) | 52 | void PublishDialog::addAttendee(Attendee *attendee) |
52 | { | 53 | { |
53 | mNameLineEdit->setEnabled(true); | 54 | mNameLineEdit->setEnabled(true); |
54 | mEmailLineEdit->setEnabled(true); | 55 | mEmailLineEdit->setEnabled(true); |
diff --git a/libkdepim/libkdepim.pro b/libkdepim/libkdepim.pro index 060145e..f5de653 100644 --- a/libkdepim/libkdepim.pro +++ b/libkdepim/libkdepim.pro | |||
@@ -10,50 +10,48 @@ include( ../variables.pri ) | |||
10 | unix : { | 10 | unix : { |
11 | OBJECTS_DIR = obj/unix | 11 | OBJECTS_DIR = obj/unix |
12 | MOC_DIR = moc/unix | 12 | MOC_DIR = moc/unix |
13 | } | 13 | } |
14 | win32: { | 14 | win32: { |
15 | DEFINES += _WIN32_ | 15 | DEFINES += _WIN32_ |
16 | OBJECTS_DIR = obj/win | 16 | OBJECTS_DIR = obj/win |
17 | MOC_DIR = moc/win | 17 | MOC_DIR = moc/win |
18 | } | 18 | } |
19 | INTERFACES = \ | 19 | INTERFACES = \ |
20 | 20 | ||
21 | HEADERS = \ | 21 | HEADERS = \ |
22 | categoryeditdialog.h \ | 22 | categoryeditdialog.h \ |
23 | categoryeditdialog_base.h \ | 23 | categoryeditdialog_base.h \ |
24 | categoryselectdialog.h \ | 24 | categoryselectdialog.h \ |
25 | categoryselectdialog_base.h \ | 25 | categoryselectdialog_base.h \ |
26 | externalapphandler.h \ | 26 | externalapphandler.h \ |
27 | kdateedit.h \ | 27 | kdateedit.h \ |
28 | kdatepicker.h \ | 28 | kdatepicker.h \ |
29 | kinputdialog.h \ | 29 | kinputdialog.h \ |
30 | kincidenceformatter.h \ | 30 | kincidenceformatter.h \ |
31 | kpimprefs.h \ | 31 | kpimprefs.h \ |
32 | kpimglobalprefs.h \ | 32 | kpimglobalprefs.h \ |
33 | kprefsdialog.h \ | 33 | kprefsdialog.h \ |
34 | addresseeview.h \ | ||
35 | ksyncprofile.h \ | 34 | ksyncprofile.h \ |
36 | ksyncprefsdialog.h \ | 35 | ksyncprefsdialog.h \ |
37 | kcmconfigs/kcmkdepimconfig.h \ | 36 | kcmconfigs/kcmkdepimconfig.h \ |
38 | kcmconfigs/kdepimconfigwidget.h | 37 | kcmconfigs/kdepimconfigwidget.h |
39 | 38 | ||
40 | SOURCES = \ | 39 | SOURCES = \ |
41 | categoryeditdialog.cpp \ | 40 | categoryeditdialog.cpp \ |
42 | categoryeditdialog_base.cpp \ | 41 | categoryeditdialog_base.cpp \ |
43 | categoryselectdialog.cpp \ | 42 | categoryselectdialog.cpp \ |
44 | categoryselectdialog_base.cpp \ | 43 | categoryselectdialog_base.cpp \ |
45 | externalapphandler.cpp \ | 44 | externalapphandler.cpp \ |
46 | kdateedit.cpp \ | 45 | kdateedit.cpp \ |
47 | kdatepicker.cpp \ | 46 | kdatepicker.cpp \ |
48 | kinputdialog.cpp \ | 47 | kinputdialog.cpp \ |
49 | kincidenceformatter.cpp \ | 48 | kincidenceformatter.cpp \ |
50 | kpimprefs.cpp \ | 49 | kpimprefs.cpp \ |
51 | kpimglobalprefs.cpp \ | 50 | kpimglobalprefs.cpp \ |
52 | kprefsdialog.cpp \ | 51 | kprefsdialog.cpp \ |
53 | addresseeview.cpp \ | ||
54 | ksyncprofile.cpp \ | 52 | ksyncprofile.cpp \ |
55 | ksyncprefsdialog.cpp \ | 53 | ksyncprefsdialog.cpp \ |
56 | kcmconfigs/kcmkdepimconfig.cpp \ | 54 | kcmconfigs/kcmkdepimconfig.cpp \ |
57 | kcmconfigs/kdepimconfigwidget.cpp | 55 | kcmconfigs/kdepimconfigwidget.cpp |
58 | 56 | ||
59 | 57 | ||
diff --git a/libkdepim/libkdepimE.pro b/libkdepim/libkdepimE.pro index b455a3e..102d827 100644 --- a/libkdepim/libkdepimE.pro +++ b/libkdepim/libkdepimE.pro | |||
@@ -4,50 +4,48 @@ TARGET = microkdepim | |||
4 | INCLUDEPATH += . $(KDEPIMDIR) $(KDEPIMDIR)/microkde $(KDEPIMDIR)/qtcompat $(KDEPIMDIR)/microkde/kdecore $(KDEPIMDIR)/microkde/kdeui $(QPEDIR)/include | 4 | INCLUDEPATH += . $(KDEPIMDIR) $(KDEPIMDIR)/microkde $(KDEPIMDIR)/qtcompat $(KDEPIMDIR)/microkde/kdecore $(KDEPIMDIR)/microkde/kdeui $(QPEDIR)/include |
5 | LIBS += -lmicrokde | 5 | LIBS += -lmicrokde |
6 | LIBS += -lmicrokcal | 6 | LIBS += -lmicrokcal |
7 | LIBS += -L$(QPEDIR)/lib | 7 | LIBS += -L$(QPEDIR)/lib |
8 | OBJECTS_DIR = obj/$(PLATFORM) | 8 | OBJECTS_DIR = obj/$(PLATFORM) |
9 | MOC_DIR = moc/$(PLATFORM) | 9 | MOC_DIR = moc/$(PLATFORM) |
10 | DESTDIR=$(QPEDIR)/lib | 10 | DESTDIR=$(QPEDIR)/lib |
11 | 11 | ||
12 | 12 | ||
13 | INTERFACES = \ | 13 | INTERFACES = \ |
14 | 14 | ||
15 | HEADERS = \ | 15 | HEADERS = \ |
16 | categoryeditdialog.h \ | 16 | categoryeditdialog.h \ |
17 | categoryeditdialog_base.h \ | 17 | categoryeditdialog_base.h \ |
18 | categoryselectdialog.h \ | 18 | categoryselectdialog.h \ |
19 | categoryselectdialog_base.h \ | 19 | categoryselectdialog_base.h \ |
20 | externalapphandler.h \ | 20 | externalapphandler.h \ |
21 | kdateedit.h \ | 21 | kdateedit.h \ |
22 | kdatepicker.h \ | 22 | kdatepicker.h \ |
23 | kinputdialog.h \ | 23 | kinputdialog.h \ |
24 | kincidenceformatter.h \ | 24 | kincidenceformatter.h \ |
25 | kpimprefs.h \ | 25 | kpimprefs.h \ |
26 | kpimglobalprefs.h \ | 26 | kpimglobalprefs.h \ |
27 | kprefsdialog.h \ | 27 | kprefsdialog.h \ |
28 | addresseeview.h \ | ||
29 | ksyncprofile.h \ | 28 | ksyncprofile.h \ |
30 | ksyncprefsdialog.h \ | 29 | ksyncprefsdialog.h \ |
31 | kcmconfigs/kcmkdepimconfig.h \ | 30 | kcmconfigs/kcmkdepimconfig.h \ |
32 | kcmconfigs/kdepimconfigwidget.h | 31 | kcmconfigs/kdepimconfigwidget.h |
33 | 32 | ||
34 | 33 | ||
35 | 34 | ||
36 | SOURCES = \ | 35 | SOURCES = \ |
37 | categoryeditdialog.cpp \ | 36 | categoryeditdialog.cpp \ |
38 | categoryeditdialog_base.cpp \ | 37 | categoryeditdialog_base.cpp \ |
39 | categoryselectdialog.cpp \ | 38 | categoryselectdialog.cpp \ |
40 | categoryselectdialog_base.cpp \ | 39 | categoryselectdialog_base.cpp \ |
41 | externalapphandler.cpp \ | 40 | externalapphandler.cpp \ |
42 | kdateedit.cpp \ | 41 | kdateedit.cpp \ |
43 | kinputdialog.cpp \ | 42 | kinputdialog.cpp \ |
44 | kdatepicker.cpp \ | 43 | kdatepicker.cpp \ |
45 | kincidenceformatter.cpp \ | 44 | kincidenceformatter.cpp \ |
46 | kpimprefs.cpp \ | 45 | kpimprefs.cpp \ |
47 | kpimglobalprefs.cpp \ | 46 | kpimglobalprefs.cpp \ |
48 | kprefsdialog.cpp \ | 47 | kprefsdialog.cpp \ |
49 | addresseeview.cpp \ | ||
50 | ksyncprofile.cpp \ | 48 | ksyncprofile.cpp \ |
51 | ksyncprefsdialog.cpp \ | 49 | ksyncprefsdialog.cpp \ |
52 | kcmconfigs/kcmkdepimconfig.cpp \ | 50 | kcmconfigs/kcmkdepimconfig.cpp \ |
53 | kcmconfigs/kdepimconfigwidget.cpp | 51 | kcmconfigs/kdepimconfigwidget.cpp |