author | zautrix <zautrix> | 2004-07-07 11:56:39 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-07 11:56:39 (UTC) |
commit | 56721aac86c9ae5253abac8962474c8d1a7e648a (patch) (unidiff) | |
tree | c12f41eba0d5724ee800cdb92727ffd6d3c1cf6c | |
parent | 13d88c91f2916090bd45e23b504d0b665c68126f (diff) | |
download | kdepimpi-56721aac86c9ae5253abac8962474c8d1a7e648a.zip kdepimpi-56721aac86c9ae5253abac8962474c8d1a7e648a.tar.gz kdepimpi-56721aac86c9ae5253abac8962474c8d1a7e648a.tar.bz2 |
Changes for compiling on desktop
-rw-r--r-- | Makefile | 263 | ||||
-rw-r--r-- | kabc/kabc.pro | 4 | ||||
-rw-r--r-- | kabc/plugins/dir/dir.pro | 29 | ||||
-rw-r--r-- | kabc/plugins/dir/resourcedir.cpp | 6 | ||||
-rw-r--r-- | kabc/plugins/file/file.pro | 30 | ||||
-rw-r--r-- | kabc/plugins/file/resourcefile.cpp | 6 | ||||
-rw-r--r-- | kaddressbook/kcmconfigs/addresseewidget.cpp | 1 | ||||
-rw-r--r-- | kaddressbook/mainembedded.cpp | 7 | ||||
-rw-r--r-- | kopi-desktop.pro | 2 | ||||
-rw-r--r-- | kopiemail.control | 2 | ||||
-rw-r--r-- | microkde/kdecore/klibloader.cpp | 17 | ||||
-rw-r--r-- | microkde/kdecore/kstandarddirs.cpp | 3 | ||||
-rw-r--r-- | microkde/kdeui/ktoolbar.cpp | 2 | ||||
-rw-r--r-- | microkde/kresources/factory.cpp | 3 | ||||
-rw-r--r-- | microkde/microkde.pro | 10 |
15 files changed, 239 insertions, 146 deletions
@@ -1,118 +1,147 @@ | |||
1 | DISTPATH = $(shell pwd) | 1 | ############################################################################# |
2 | DISTDIR = $(shell basename $(DISTPATH)) | 2 | # Makefile for building: kopi-desktop |
3 | 3 | # Generated by qmake (1.07a) (Qt 3.3.2) on: Wed Jul 7 13:43:59 2004 | |
4 | SUBDIRS = libical/src/libical libical/src/libicalss qtcompat microkde \ | 4 | # Project: kopi-desktop.pro |
5 | libkcal libkdepim kabc kabc/converter/opie kabc/formats/binary kabc/plugins/file kabc/plugins/dir \ | 5 | # Template: subdirs |
6 | kabc/plugins/opie \ | 6 | # Command: $(QMAKE) "CONFIG+=thread" "CONFIG+=debug" -o Makefile kopi-desktop.pro |
7 | korganizer kalarmd kaddressbook kmicromail/libetpan kmicromail/libmailwrapper kmicromail | 7 | ############################################################################# |
8 | all: tmake | 8 | |
9 | for i in $(SUBDIRS); do pushd $$i; \ | 9 | MAKEFILE =Makefile |
10 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | 10 | QMAKE =qmake |
11 | done | 11 | DEL_FILE = rm -f |
12 | 12 | CHK_DIR_EXISTS= test -d | |
13 | objects: | 13 | MKDIR = mkdir -p |
14 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done | 14 | INSTALL_FILE= |
15 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done | 15 | INSTALL_DIR = |
16 | mkdir -p libical/lib/$(PLATFORM) | 16 | SUBTARGETS = \ |
17 | 17 | sub-libical \ | |
18 | clean: | 18 | sub-libkcal \ |
19 | rm -f libical/lib/$(PLATFORM)/*; | 19 | sub-microkde \ |
20 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ | 20 | sub-libkdepim \ |
21 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ | 21 | sub-kabc \ |
22 | done | 22 | sub-korganizer \ |
23 | install: | 23 | sub-kaddressbook \ |
24 | cd bin/kdepim; make install | 24 | sub-kabc-plugins-file \ |
25 | cp db2file/db2file $(QPEDIR)/bin/db2file | 25 | sub-kabc-plugins-dir |
26 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop | 26 | |
27 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kmicromail.desktop | 27 | first: all |
28 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop | 28 | |
29 | 29 | all: Makefile $(SUBTARGETS) | |
30 | dist: | 30 | |
31 | @echo Dont forget to do "make install" before "make dist" | 31 | libical/$(MAKEFILE): |
32 | rm -f *arm.ipk | 32 | @$(CHK_DIR_EXISTS) "libical" || $(MKDIR) "libical" |
33 | rm -f *~ | 33 | cd libical && $(QMAKE) libical.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) |
34 | cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc kdepim | 34 | sub-libical: libical/$(MAKEFILE) FORCE |
35 | mkipks kmicrokdelibs.control | 35 | cd libical && $(MAKE) -f $(MAKEFILE) |
36 | mkipks korganizer.control | 36 | |
37 | mkipks kaddressbook.control | 37 | libkcal/$(MAKEFILE): |
38 | mkipks kopiemail.control | 38 | @$(CHK_DIR_EXISTS) "libkcal" || $(MKDIR) "libkcal" |
39 | mkipks korganizer-alarm.control | 39 | cd libkcal && $(QMAKE) libkcal.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) |
40 | 40 | sub-libkcal: libkcal/$(MAKEFILE) FORCE | |
41 | tmake: objects qtcompat/Makefile$(PLATFORM) microkde/Makefile$(PLATFORM) \ | 41 | cd libkcal && $(MAKE) -f $(MAKEFILE) |
42 | libkcal/Makefile$(PLATFORM) \ | 42 | |
43 | libkdepim/Makefile$(PLATFORM) korganizer/Makefile$(PLATFORM) \ | 43 | microkde/$(MAKEFILE): |
44 | kalarmd/Makefile$(PLATFORM) \ | 44 | @$(CHK_DIR_EXISTS) "microkde" || $(MKDIR) "microkde" |
45 | libical/src/libical/Makefile$(PLATFORM) \ | 45 | cd microkde && $(QMAKE) microkde.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) |
46 | libical/src/libicalss/Makefile$(PLATFORM) \ | 46 | sub-microkde: microkde/$(MAKEFILE) FORCE |
47 | kabc/Makefile$(PLATFORM) \ | 47 | cd microkde && $(MAKE) -f $(MAKEFILE) |
48 | kabc/converter/opie/Makefile$(PLATFORM) \ | 48 | |
49 | kabc/formats/binary/Makefile$(PLATFORM) \ | 49 | libkdepim/$(MAKEFILE): |
50 | kabc/plugins/file/Makefile$(PLATFORM) \ | 50 | @$(CHK_DIR_EXISTS) "libkdepim" || $(MKDIR) "libkdepim" |
51 | kabc/plugins/dir/Makefile$(PLATFORM) \ | 51 | cd libkdepim && $(QMAKE) libkdepim.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) |
52 | kabc/plugins/ldap/Makefile$(PLATFORM) \ | 52 | sub-libkdepim: libkdepim/$(MAKEFILE) FORCE |
53 | kabc/plugins/opie/Makefile$(PLATFORM) \ | 53 | cd libkdepim && $(MAKE) -f $(MAKEFILE) |
54 | kaddressbook/Makefile$(PLATFORM) \ | 54 | |
55 | kmicromail/Makefile$(PLATFORM) \ | 55 | kabc/$(MAKEFILE): |
56 | kmicromail/libetpan/Makefile$(PLATFORM) \ | 56 | @$(CHK_DIR_EXISTS) "kabc" || $(MKDIR) "kabc" |
57 | kmicromail/libmailwrapper/Makefile$(PLATFORM) | 57 | cd kabc && $(QMAKE) kabc.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) |
58 | 58 | sub-kabc: kabc/$(MAKEFILE) FORCE | |
59 | 59 | cd kabc && $(MAKE) -f $(MAKEFILE) | |
60 | 60 | ||
61 | qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro | 61 | korganizer/$(MAKEFILE): |
62 | cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" qtcompat.pro -o Makefile$(PLATFORM) | 62 | @$(CHK_DIR_EXISTS) "korganizer" || $(MKDIR) "korganizer" |
63 | 63 | cd korganizer && $(QMAKE) korganizer.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) | |
64 | microkde/Makefile$(PLATFORM): microkde/microkdeE.pro | 64 | sub-korganizer: korganizer/$(MAKEFILE) FORCE |
65 | cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" microkdeE.pro -o Makefile$(PLATFORM) | 65 | cd korganizer && $(MAKE) -f $(MAKEFILE) |
66 | 66 | ||
67 | libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro | 67 | kaddressbook/$(MAKEFILE): |
68 | cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" libkcalE.pro -o Makefile$(PLATFORM) | 68 | @$(CHK_DIR_EXISTS) "kaddressbook" || $(MKDIR) "kaddressbook" |
69 | 69 | cd kaddressbook && $(QMAKE) kaddressbook.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) | |
70 | 70 | sub-kaddressbook: kaddressbook/$(MAKEFILE) FORCE | |
71 | libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro | 71 | cd kaddressbook && $(MAKE) -f $(MAKEFILE) |
72 | cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" libkdepimE.pro -o Makefile$(PLATFORM) | 72 | |
73 | 73 | kabc/plugins/file/$(MAKEFILE): | |
74 | kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro | 74 | @$(CHK_DIR_EXISTS) "kabc/plugins/file" || $(MKDIR) "kabc/plugins/file" |
75 | cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" kalarmdE.pro -o Makefile$(PLATFORM) | 75 | cd kabc/plugins/file && $(QMAKE) file.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) |
76 | 76 | sub-kabc-plugins-file: kabc/plugins/file/$(MAKEFILE) FORCE | |
77 | korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro | 77 | cd kabc/plugins/file && $(MAKE) -f $(MAKEFILE) |
78 | cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" korganizerE.pro -o Makefile$(PLATFORM) | 78 | |
79 | 79 | kabc/plugins/dir/$(MAKEFILE): | |
80 | libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro | 80 | @$(CHK_DIR_EXISTS) "kabc/plugins/dir" || $(MKDIR) "kabc/plugins/dir" |
81 | cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalE.pro -o Makefile$(PLATFORM) | 81 | cd kabc/plugins/dir && $(QMAKE) dir.pro "CONFIG+=thread" "CONFIG+=debug" -o $(MAKEFILE) |
82 | 82 | sub-kabc-plugins-dir: kabc/plugins/dir/$(MAKEFILE) FORCE | |
83 | libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro | 83 | cd kabc/plugins/dir && $(MAKE) -f $(MAKEFILE) |
84 | cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalssE.pro -o Makefile$(PLATFORM) | 84 | |
85 | 85 | Makefile: kopi-desktop.pro /usr/local/qtgcc/mkspecs/default/qmake.conf | |
86 | kabc/Makefile$(PLATFORM): kabc/kabcE.pro | 86 | $(QMAKE) "CONFIG+=thread" "CONFIG+=debug" -o Makefile kopi-desktop.pro |
87 | cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcE.pro -o Makefile$(PLATFORM) | 87 | qmake: qmake_all |
88 | 88 | @$(QMAKE) "CONFIG+=thread" "CONFIG+=debug" -o Makefile kopi-desktop.pro | |
89 | kabc/converter/opie/Makefile$(PLATFORM): kabc/converter/opie/opieconverterE.pro | 89 | |
90 | cd kabc/converter/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" opieconverterE.pro -o Makefile$(PLATFORM) | 90 | all: $(SUBTARGETS) |
91 | 91 | qmake_all: libical/$(MAKEFILE) libkcal/$(MAKEFILE) microkde/$(MAKEFILE) libkdepim/$(MAKEFILE) kabc/$(MAKEFILE) korganizer/$(MAKEFILE) kaddressbook/$(MAKEFILE) kabc/plugins/file/$(MAKEFILE) kabc/plugins/dir/$(MAKEFILE) | |
92 | kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro | 92 | ( [ -d libical ] && cd libical ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
93 | cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) | 93 | ( [ -d libkcal ] && cd libkcal ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
94 | 94 | ( [ -d microkde ] && cd microkde ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true | |
95 | kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/kabc_fileE.pro | 95 | ( [ -d libkdepim ] && cd libkdepim ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
96 | cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" kabc_fileE.pro -o Makefile$(PLATFORM) | 96 | ( [ -d kabc ] && cd kabc ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
97 | 97 | ( [ -d korganizer ] && cd korganizer ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true | |
98 | kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/kabc_dirE.pro | 98 | ( [ -d kaddressbook ] && cd kaddressbook ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
99 | cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" kabc_dirE.pro -o Makefile$(PLATFORM) | 99 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true |
100 | 100 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; grep "^qmake_all:" $(MAKEFILE) && $(MAKE) -f $(MAKEFILE) qmake_all; ) || true | |
101 | kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/kabc_ldapE.pro | 101 | clean uicables mocables uiclean mocclean lexclean yaccclean : qmake_all FORCE |
102 | cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" kabc_ldapE.pro -o Makefile$(PLATFORM) | 102 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
103 | 103 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) $@; ) || true | |
104 | kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/kabc_opieE.pro | 104 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
105 | cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" kabc_opieE.pro -o Makefile$(PLATFORM) | 105 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
106 | 106 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) $@; ) || true | |
107 | 107 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) $@; ) || true | |
108 | kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro | 108 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
109 | cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" kaddressbookE.pro -o Makefile$(PLATFORM) | 109 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; ) || true |
110 | 110 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) $@; ) || true | |
111 | 111 | uninstall_subdirs: qmake_all FORCE | |
112 | kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro | 112 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
113 | cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" kmicromailE.pro -o Makefile$(PLATFORM) | 113 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
114 | kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro | 114 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
115 | cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" libetpanE.pro -o Makefile$(PLATFORM) | 115 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
116 | kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro | 116 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
117 | cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" libmailwrapperE.pro -o Makefile$(PLATFORM) | 117 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true |
118 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | ||
119 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | ||
120 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) uninstall; ) || true | ||
121 | install_subdirs: qmake_all FORCE | ||
122 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) install; ) || true | ||
123 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) install; ) || true | ||
124 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) install; ) || true | ||
125 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) install; ) || true | ||
126 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) install; ) || true | ||
127 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) install; ) || true | ||
128 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) install; ) || true | ||
129 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) install; ) || true | ||
130 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) install; ) || true | ||
131 | distclean: qmake_all FORCE | ||
132 | ( [ -d libical ] && cd libical ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | ||
133 | ( [ -d libkcal ] && cd libkcal ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | ||
134 | ( [ -d microkde ] && cd microkde ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | ||
135 | ( [ -d libkdepim ] && cd libkdepim ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | ||
136 | ( [ -d kabc ] && cd kabc ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | ||
137 | ( [ -d korganizer ] && cd korganizer ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | ||
138 | ( [ -d kaddressbook ] && cd kaddressbook ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | ||
139 | ( [ -d kabc/plugins/file ] && cd kabc/plugins/file ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | ||
140 | ( [ -d kabc/plugins/dir ] && cd kabc/plugins/dir ; $(MAKE) -f $(MAKEFILE) $@; $(DEL_FILE) $(MAKEFILE); ) || true | ||
141 | |||
142 | install: install_subdirs | ||
143 | |||
144 | uninstall: uninstall_subdirs | ||
145 | |||
146 | FORCE: | ||
118 | 147 | ||
diff --git a/kabc/kabc.pro b/kabc/kabc.pro index ea4bbb7..4a8d73a 100644 --- a/kabc/kabc.pro +++ b/kabc/kabc.pro | |||
@@ -29,33 +29,32 @@ 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 | formatfactory.h \ | 38 | formatfactory.h \ |
39 | formatplugin.h \ | 39 | formatplugin.h \ |
40 | phonenumber.h \ | 40 | phonenumber.h \ |
41 | distributionlist.h \ | 41 | distributionlist.h \ |
42 | distributionlistdialog.h \ | 42 | distributionlistdialog.h \ |
43 | distributionlisteditor.h \ | 43 | distributionlisteditor.h \ |
44 | vcardformatplugin.h \ | 44 | vcardformatplugin.h \ |
45 | formats/binaryformat.h \ | ||
46 | formats/vcardformatplugin2.h \ | 45 | formats/vcardformatplugin2.h \ |
47 | picture.h \ | 46 | picture.h \ |
48 | secrecy.h \ | 47 | secrecy.h \ |
49 | sound.h \ | 48 | sound.h \ |
50 | addressbook.h \ | 49 | addressbook.h \ |
51 | timezone.h \ | 50 | timezone.h \ |
52 | addressee.h \ | 51 | addressee.h \ |
53 | addresseedialog.h \ | 52 | addresseedialog.h \ |
54 | vcardconverter.h \ | 53 | vcardconverter.h \ |
55 | vcard21parser.h \ | 54 | vcard21parser.h \ |
56 | vcardformatimpl.h \ | 55 | vcardformatimpl.h \ |
57 | plugins/file/resourcefile.h \ | 56 | plugins/file/resourcefile.h \ |
58 | plugins/file/resourcefileconfig.h \ | 57 | plugins/file/resourcefileconfig.h \ |
59 | plugins/dir/resourcedir.h \ | 58 | plugins/dir/resourcedir.h \ |
60 | plugins/dir/resourcedirconfig.h \ | 59 | plugins/dir/resourcedirconfig.h \ |
61 | vcardparser/vcardline.h \ | 60 | vcardparser/vcardline.h \ |
@@ -121,40 +120,40 @@ vcard/include/generated/URIValue-generated.h \ | |||
121 | vcard/include/generated/VCard-generated.h \ | 120 | vcard/include/generated/VCard-generated.h \ |
122 | vcard/include/generated/VCardEntity-generated.h \ | 121 | vcard/include/generated/VCardEntity-generated.h \ |
123 | vcard/include/generated/Value-generated.h \ | 122 | vcard/include/generated/Value-generated.h \ |
124 | vcard/include/generated/SoundValue-generated.h \ | 123 | vcard/include/generated/SoundValue-generated.h \ |
125 | vcard/include/generated/AgentValue-generated.h \ | 124 | vcard/include/generated/AgentValue-generated.h \ |
126 | vcard/include/generated/TelValue-generated.h \ | 125 | vcard/include/generated/TelValue-generated.h \ |
127 | vcard/include/generated/TextBinValue-generated.h \ | 126 | vcard/include/generated/TextBinValue-generated.h \ |
128 | vcard/include/generated/OrgValue-generated.h \ | 127 | vcard/include/generated/OrgValue-generated.h \ |
129 | vcard/include/generated/UTCValue-generated.h \ | 128 | vcard/include/generated/UTCValue-generated.h \ |
130 | vcard/include/generated/ClassValue-generated.h \ | 129 | vcard/include/generated/ClassValue-generated.h \ |
131 | vcard/include/generated/FloatValue-generated.h \ | 130 | vcard/include/generated/FloatValue-generated.h \ |
132 | vcard/include/generated/TextListValue-generated.h | 131 | vcard/include/generated/TextListValue-generated.h |
133 | 132 | ||
134 | 133 | ||
135 | # plugins/ldap/resourceldap.h \ | 134 | # plugins/ldap/resourceldap.h \ |
136 | # plugins/ldap/resourceldapconfig.h \ | 135 | # plugins/ldap/resourceldapconfig.h \ |
136 | #formats/binary/binaryformat.h \ | ||
137 | 137 | ||
138 | 138 | ||
139 | SOURCES = \ | 139 | SOURCES = \ |
140 | distributionlist.cpp \ | 140 | distributionlist.cpp \ |
141 | distributionlistdialog.cpp \ | 141 | distributionlistdialog.cpp \ |
142 | distributionlisteditor.cpp \ | 142 | distributionlisteditor.cpp \ |
143 | vcardformatplugin.cpp \ | 143 | vcardformatplugin.cpp \ |
144 | formats/binaryformat.cpp \ | ||
145 | formats/vcardformatplugin2.cpp \ | 144 | formats/vcardformatplugin2.cpp \ |
146 | formatfactory.cpp \ | 145 | formatfactory.cpp \ |
147 | resource.cpp \ | 146 | resource.cpp \ |
148 | stdaddressbook.cpp \ | 147 | stdaddressbook.cpp \ |
149 | plugin.cpp \ | 148 | plugin.cpp \ |
150 | agent.cpp \ | 149 | agent.cpp \ |
151 | geo.cpp \ | 150 | geo.cpp \ |
152 | key.cpp \ | 151 | key.cpp \ |
153 | field.cpp \ | 152 | field.cpp \ |
154 | address.cpp \ | 153 | address.cpp \ |
155 | phonenumber.cpp \ | 154 | phonenumber.cpp \ |
156 | picture.cpp \ | 155 | picture.cpp \ |
157 | secrecy.cpp \ | 156 | secrecy.cpp \ |
158 | sound.cpp \ | 157 | sound.cpp \ |
159 | addressbook.cpp \ | 158 | addressbook.cpp \ |
160 | timezone.cpp \ | 159 | timezone.cpp \ |
@@ -199,16 +198,17 @@ vcard/VCardv.cpp \ | |||
199 | vcard/VCardEntity.cpp \ | 198 | vcard/VCardEntity.cpp \ |
200 | vcard/Value.cpp \ | 199 | vcard/Value.cpp \ |
201 | vcard/SoundValue.cpp \ | 200 | vcard/SoundValue.cpp \ |
202 | vcard/AgentValue.cpp \ | 201 | vcard/AgentValue.cpp \ |
203 | vcard/TelValue.cpp \ | 202 | vcard/TelValue.cpp \ |
204 | vcard/TextBinValue.cpp \ | 203 | vcard/TextBinValue.cpp \ |
205 | vcard/OrgValue.cpp \ | 204 | vcard/OrgValue.cpp \ |
206 | vcard/UTCValue.cpp \ | 205 | vcard/UTCValue.cpp \ |
207 | vcard/ClassValue.cpp \ | 206 | vcard/ClassValue.cpp \ |
208 | vcard/FloatValue.cpp \ | 207 | vcard/FloatValue.cpp \ |
209 | vcard/TextListValue.cpp | 208 | vcard/TextListValue.cpp |
210 | 209 | ||
211 | 210 | ||
212 | # plugins/ldap/resourceldap.cpp \ | 211 | # plugins/ldap/resourceldap.cpp \ |
213 | # plugins/ldap/resourceldapconfig.cpp \ | 212 | # plugins/ldap/resourceldapconfig.cpp \ |
214 | 213 | ||
214 | #formats/binary/binaryformat.cpp \ | ||
diff --git a/kabc/plugins/dir/dir.pro b/kabc/plugins/dir/dir.pro new file mode 100644 index 0000000..3db201f --- a/dev/null +++ b/kabc/plugins/dir/dir.pro | |||
@@ -0,0 +1,29 @@ | |||
1 | TEMPLATE= lib | ||
2 | CONFIG += qt warn_on release | ||
3 | #release debug | ||
4 | |||
5 | TARGET = microkabc_dir | ||
6 | INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../qtcompat | ||
7 | DESTDIR = ../../../bin | ||
8 | #LIBS += -lmicrokde -lmicrokabc | ||
9 | #LIBS += -L$(QPEDIR)/lib | ||
10 | |||
11 | INTERFACES = \ | ||
12 | |||
13 | HEADERS = \ | ||
14 | resourcedir.h \ | ||
15 | resourcedirconfig.h | ||
16 | |||
17 | SOURCES = \ | ||
18 | resourcedir.cpp \ | ||
19 | resourcedirconfig.cpp | ||
20 | |||
21 | unix : { | ||
22 | OBJECTS_DIR = obj/unix | ||
23 | MOC_DIR = moc/unix | ||
24 | } | ||
25 | win32: { | ||
26 | DEFINES += _WIN32_ | ||
27 | OBJECTS_DIR = obj/win | ||
28 | MOC_DIR = moc/win | ||
29 | } \ No newline at end of file | ||
diff --git a/kabc/plugins/dir/resourcedir.cpp b/kabc/plugins/dir/resourcedir.cpp index be19821..6ea2f4b 100644 --- a/kabc/plugins/dir/resourcedir.cpp +++ b/kabc/plugins/dir/resourcedir.cpp | |||
@@ -247,35 +247,37 @@ bool ResourceDir::lock( const QString &path ) | |||
247 | 247 | ||
248 | QString lockUniqueName; | 248 | QString lockUniqueName; |
249 | lockUniqueName = p + KApplication::randomString( 8 ); | 249 | lockUniqueName = p + KApplication::randomString( 8 ); |
250 | 250 | ||
251 | url = lockUniqueName; | 251 | url = lockUniqueName; |
252 | //US mLockUniqueName = locateLocal( "data", "kabc/lock/" + lockUniqueName ); | 252 | //US mLockUniqueName = locateLocal( "data", "kabc/lock/" + lockUniqueName ); |
253 | mLockUniqueName = locateLocal( "data", "kabc/lock/" + url.fileName() ); | 253 | mLockUniqueName = locateLocal( "data", "kabc/lock/" + url.fileName() ); |
254 | 254 | ||
255 | kdDebug(5700) << "-- lock unique name: " << mLockUniqueName << endl; | 255 | kdDebug(5700) << "-- lock unique name: " << mLockUniqueName << endl; |
256 | 256 | ||
257 | // Create unique file | 257 | // Create unique file |
258 | QFile file( mLockUniqueName ); | 258 | QFile file( mLockUniqueName ); |
259 | file.open( IO_WriteOnly ); | 259 | file.open( IO_WriteOnly ); |
260 | file.close(); | 260 | file.close(); |
261 | 261 | ||
262 | // Create lock file | 262 | // Create lock file |
263 | int result = ::link( QFile::encodeName( mLockUniqueName ), | 263 | int result = 0; |
264 | #ifndef _WIN32_ | ||
265 | result = ::link( QFile::encodeName( mLockUniqueName ), | ||
264 | QFile::encodeName( lockName ) ); | 266 | QFile::encodeName( lockName ) ); |
265 | 267 | #endif | |
266 | if ( result == 0 ) { | 268 | if ( result == 0 ) { |
267 | addressBook()->emitAddressBookLocked(); | 269 | addressBook()->emitAddressBookLocked(); |
268 | return true; | 270 | return true; |
269 | } | 271 | } |
270 | 272 | ||
271 | // TODO: check stat | 273 | // TODO: check stat |
272 | 274 | ||
273 | return false; | 275 | return false; |
274 | } | 276 | } |
275 | 277 | ||
276 | void ResourceDir::unlock( const QString &path ) | 278 | void ResourceDir::unlock( const QString &path ) |
277 | { | 279 | { |
278 | QString p = path; | 280 | QString p = path; |
279 | //US change the implementation how the lockfilename is getting created | 281 | //US change the implementation how the lockfilename is getting created |
280 | //US p.replace( QRegExp( "/" ), "_" ); | 282 | //US p.replace( QRegExp( "/" ), "_" ); |
281 | //US QString lockName = locate( "data", "kabc/lock/" + p + ".lock" ); | 283 | //US QString lockName = locate( "data", "kabc/lock/" + p + ".lock" ); |
diff --git a/kabc/plugins/file/file.pro b/kabc/plugins/file/file.pro new file mode 100644 index 0000000..a5ade93 --- a/dev/null +++ b/kabc/plugins/file/file.pro | |||
@@ -0,0 +1,30 @@ | |||
1 | TEMPLATE= lib | ||
2 | CONFIG += qt warn_on release | ||
3 | #release debug | ||
4 | |||
5 | TARGET = microkabc_file | ||
6 | INCLUDEPATH += ../.. ../../../microkde ../../../microkde/kdecore ../../../microkde/kio/kfile ../../../qtcompat | ||
7 | |||
8 | DESTDIR = ../../../bin | ||
9 | #LIBS += -lmicrokde -lmicrokabc | ||
10 | #LIBS += -L$(QPEDIR)/lib | ||
11 | |||
12 | INTERFACES = \ | ||
13 | |||
14 | HEADERS = \ | ||
15 | resourcefile.h \ | ||
16 | resourcefileconfig.h | ||
17 | |||
18 | SOURCES = \ | ||
19 | resourcefile.cpp \ | ||
20 | resourcefileconfig.cpp | ||
21 | |||
22 | unix : { | ||
23 | OBJECTS_DIR = obj/unix | ||
24 | MOC_DIR = moc/unix | ||
25 | } | ||
26 | win32: { | ||
27 | DEFINES += _WIN32_ | ||
28 | OBJECTS_DIR = obj/win | ||
29 | MOC_DIR = moc/win | ||
30 | } \ No newline at end of file | ||
diff --git a/kabc/plugins/file/resourcefile.cpp b/kabc/plugins/file/resourcefile.cpp index 3920f69..4b4c935 100644 --- a/kabc/plugins/file/resourcefile.cpp +++ b/kabc/plugins/file/resourcefile.cpp | |||
@@ -273,35 +273,37 @@ bool ResourceFile::lock( const QString &fileName ) | |||
273 | if (QFile::exists( lockName )) return false; | 273 | if (QFile::exists( lockName )) return false; |
274 | 274 | ||
275 | QString lockUniqueName; | 275 | QString lockUniqueName; |
276 | lockUniqueName = fn + KApplication::randomString( 8 ); | 276 | lockUniqueName = fn + KApplication::randomString( 8 ); |
277 | 277 | ||
278 | url = lockUniqueName; | 278 | url = lockUniqueName; |
279 | //US mLockUniqueName = locateLocal( "data", "kabc/lock/" + lockUniqueName ); | 279 | //US mLockUniqueName = locateLocal( "data", "kabc/lock/" + lockUniqueName ); |
280 | mLockUniqueName = locateLocal( "data", "kabc/lock/" + url.fileName() ); | 280 | mLockUniqueName = locateLocal( "data", "kabc/lock/" + url.fileName() ); |
281 | kdDebug(5700) << "-- lock unique name: " << mLockUniqueName << endl; | 281 | kdDebug(5700) << "-- lock unique name: " << mLockUniqueName << endl; |
282 | 282 | ||
283 | // Create unique file | 283 | // Create unique file |
284 | QFile file( mLockUniqueName ); | 284 | QFile file( mLockUniqueName ); |
285 | file.open( IO_WriteOnly ); | 285 | file.open( IO_WriteOnly ); |
286 | file.close(); | 286 | file.close(); |
287 | 287 | ||
288 | // Create lock file | 288 | // Create lock file |
289 | int result = ::link( QFile::encodeName( mLockUniqueName ), | 289 | int result = 0; |
290 | #ifndef _WIN32_ | ||
291 | result = ::link( QFile::encodeName( mLockUniqueName ), | ||
290 | QFile::encodeName( lockName ) ); | 292 | QFile::encodeName( lockName ) ); |
291 | 293 | #endif | |
292 | if ( result == 0 ) { | 294 | if ( result == 0 ) { |
293 | addressBook()->emitAddressBookLocked(); | 295 | addressBook()->emitAddressBookLocked(); |
294 | return true; | 296 | return true; |
295 | } | 297 | } |
296 | 298 | ||
297 | // TODO: check stat | 299 | // TODO: check stat |
298 | 300 | ||
299 | return false; | 301 | return false; |
300 | } | 302 | } |
301 | 303 | ||
302 | void ResourceFile::unlock( const QString &fileName ) | 304 | void ResourceFile::unlock( const QString &fileName ) |
303 | { | 305 | { |
304 | QString fn = fileName; | 306 | QString fn = fileName; |
305 | //US change the implementation how the lockfilename is getting created | 307 | //US change the implementation how the lockfilename is getting created |
306 | //US fn.replace( QRegExp( "/" ), "_" ); | 308 | //US fn.replace( QRegExp( "/" ), "_" ); |
307 | //US QString lockName = locateLocal( "data", "kabc/lock/" + fn + ".lock" ); | 309 | //US QString lockName = locateLocal( "data", "kabc/lock/" + fn + ".lock" ); |
diff --git a/kaddressbook/kcmconfigs/addresseewidget.cpp b/kaddressbook/kcmconfigs/addresseewidget.cpp index f84b2ba..eb5bdd9 100644 --- a/kaddressbook/kcmconfigs/addresseewidget.cpp +++ b/kaddressbook/kcmconfigs/addresseewidget.cpp | |||
@@ -13,32 +13,33 @@ | |||
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 <qgroupbox.h> | 24 | #include <qgroupbox.h> |
25 | #include <qlabel.h> | 25 | #include <qlabel.h> |
26 | #include <qlayout.h> | 26 | #include <qlayout.h> |
27 | #include <qlistbox.h> | 27 | #include <qlistbox.h> |
28 | #include <qpushbutton.h> | 28 | #include <qpushbutton.h> |
29 | #include <qapplication.h> | ||
29 | 30 | ||
30 | #include <kbuttonbox.h> | 31 | #include <kbuttonbox.h> |
31 | #include <kcombobox.h> | 32 | #include <kcombobox.h> |
32 | #include <kconfig.h> | 33 | #include <kconfig.h> |
33 | #include <kdialog.h> | 34 | #include <kdialog.h> |
34 | #include <klocale.h> | 35 | #include <klocale.h> |
35 | #include <kglobal.h> | 36 | #include <kglobal.h> |
36 | #include <klineedit.h> | 37 | #include <klineedit.h> |
37 | #include <kstandarddirs.h> | 38 | #include <kstandarddirs.h> |
38 | 39 | ||
39 | #include "addresseewidget.h" | 40 | #include "addresseewidget.h" |
40 | 41 | ||
41 | NamePartWidget::NamePartWidget( const QString &title, QWidget *parent, | 42 | NamePartWidget::NamePartWidget( const QString &title, QWidget *parent, |
42 | const char *name ) | 43 | const char *name ) |
43 | : QWidget( parent, name ) | 44 | : QWidget( parent, name ) |
44 | { | 45 | { |
diff --git a/kaddressbook/mainembedded.cpp b/kaddressbook/mainembedded.cpp index dce6a88..cf1fd3e 100644 --- a/kaddressbook/mainembedded.cpp +++ b/kaddressbook/mainembedded.cpp | |||
@@ -32,46 +32,47 @@ int main( int argc, char **argv ) | |||
32 | printf(" no command: Start KA/E in usual way\n"); | 32 | printf(" no command: Start KA/E in usual way\n"); |
33 | printf(" -help: This output\n"); | 33 | printf(" -help: This output\n"); |
34 | printf(" KA/E is exiting now. Bye!\n"); | 34 | printf(" KA/E is exiting now. Bye!\n"); |
35 | exitHelp = true; | 35 | exitHelp = true; |
36 | } | 36 | } |
37 | } | 37 | } |
38 | if ( ! exitHelp ) { | 38 | if ( ! exitHelp ) { |
39 | 39 | ||
40 | KGlobal::setAppName( "kaddressbook" ); | 40 | KGlobal::setAppName( "kaddressbook" ); |
41 | #ifndef DESKTOP_VERSION | 41 | #ifndef DESKTOP_VERSION |
42 | if ( QApplication::desktop()->width() > 320 ) | 42 | if ( QApplication::desktop()->width() > 320 ) |
43 | KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/kaddressbook/icons22/"); | 43 | KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/kaddressbook/icons22/"); |
44 | else | 44 | else |
45 | KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/kaddressbook/icons16/"); | 45 | KGlobal::iconLoader()->setIconPath(QString(getenv("QPEDIR"))+"/pics/kdepim/kaddressbook/icons16/"); |
46 | #else | 46 | #else |
47 | QString fileName ; | 47 | QString fileName ; |
48 | fileName = qApp->applicationDirPath () + "/kdepim/kaddressbook/"; | 48 | fileName = qApp->applicationDirPath () + "/kdepim/kaddressbook/icons22/"; |
49 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); | 49 | KGlobal::iconLoader()->setIconPath(QDir::convertSeparators(fileName)); |
50 | QApplication::addLibraryPath ( qApp->applicationDirPath () ); | ||
50 | 51 | ||
51 | #endif | 52 | #endif |
52 | KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kaddressbook"))); | 53 | KStandardDirs::setAppDir( QDir::convertSeparators(locateLocal("data", "kaddressbook"))); |
53 | KAddressBookMain m ; | 54 | KAddressBookMain m ; |
54 | //US MainWindow m; | 55 | //US MainWindow m; |
55 | //US QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&m, SLOT(recieve( const QCString&, const QByteArray& ))); | 56 | //US QObject::connect( &a, SIGNAL (appMessage ( const QCString &, const QByteArray & )),&m, SLOT(recieve( const QCString&, const QByteArray& ))); |
56 | 57 | ||
57 | #ifndef DESKTOP_VERSION | 58 | #ifndef DESKTOP_VERSION |
58 | a.showMainWidget( &m ); | 59 | a.showMainWidget( &m ); |
59 | #else | 60 | #else |
60 | a.setMainWidget(m ); | 61 | a.setMainWidget( &m ); |
61 | m->show(); | 62 | m.show(); |
62 | #endif | 63 | #endif |
63 | a.exec(); | 64 | a.exec(); |
64 | 65 | ||
65 | } | 66 | } |
66 | qDebug("KA: Bye! "); | 67 | qDebug("KA: Bye! "); |
67 | } | 68 | } |
68 | 69 | ||
69 | /* | 70 | /* |
70 | #include <stdlib.h> | 71 | #include <stdlib.h> |
71 | 72 | ||
72 | #include <qstring.h> | 73 | #include <qstring.h> |
73 | 74 | ||
74 | #include <kabc/stdaddressbook.h> | 75 | #include <kabc/stdaddressbook.h> |
75 | #include <kaboutdata.h> | 76 | #include <kaboutdata.h> |
76 | #include <kcmdlineargs.h> | 77 | #include <kcmdlineargs.h> |
77 | #include <kcrash.h> | 78 | #include <kcrash.h> |
diff --git a/kopi-desktop.pro b/kopi-desktop.pro index 1a5fabd..b255756 100644 --- a/kopi-desktop.pro +++ b/kopi-desktop.pro | |||
@@ -1,6 +1,6 @@ | |||
1 | 1 | ||
2 | 2 | ||
3 | TEMPLATE = subdirs | 3 | TEMPLATE = subdirs |
4 | SUBDIRS = libical libkcal microkde libkdepim kabc korganizer kaddressbook | 4 | SUBDIRS = libical libkcal microkde libkdepim kabc korganizer kaddressbook kabc/plugins/file kabc/plugins/dir |
5 | #kalarmd | 5 | #kalarmd |
6 | 6 | ||
diff --git a/kopiemail.control b/kopiemail.control index 3d563f0..7a93a1b 100644 --- a/kopiemail.control +++ b/kopiemail.control | |||
@@ -1,14 +1,14 @@ | |||
1 | Files: bin/ompi apps/Pim/kmicromail.desktop pics/kdepim/kmicromail/* lib/libssl* lib/libcrypto.* lib/libkmicro* | 1 | Files: bin/ompi apps/Pim/kmicromail.desktop pics/kdepim/kmicromail/* lib/libssl* lib/libcrypto.* lib/libkmicro* |
2 | 2 | ||
3 | Priority: optional | 3 | Priority: optional |
4 | Section: qpe/pim | 4 | Section: qpe/pim |
5 | Maintainer: Lutz Rogowski <lutz@pi-sync.net> | 5 | Maintainer: Lutz Rogowski <lutz@pi-sync.net> |
6 | Architecture: arm | 6 | Architecture: arm |
7 | Version: 1.9.2a | 7 | Version: 1.9.2b |
8 | License: GPL | 8 | License: GPL |
9 | Depends: lib/libmicrokde.so | 9 | Depends: lib/libmicrokde.so |
10 | Description: KOrganizer/Pi and Kaddressbook/Pi | 10 | Description: KOrganizer/Pi and Kaddressbook/Pi |
11 | The embedded version of KOrganizer/Platform-independend, | 11 | The embedded version of KOrganizer/Platform-independend, |
12 | the KDE calendar and scheduling program | 12 | the KDE calendar and scheduling program |
13 | optimized for 640x480 and 320x240 resolution | 13 | optimized for 640x480 and 320x240 resolution |
14 | on Zaurus PDA | 14 | on Zaurus PDA |
diff --git a/microkde/kdecore/klibloader.cpp b/microkde/kdecore/klibloader.cpp index c07d50f..c091e05 100644 --- a/microkde/kdecore/klibloader.cpp +++ b/microkde/kdecore/klibloader.cpp | |||
@@ -27,40 +27,37 @@ | |||
27 | #include "kapplication.h" | 27 | #include "kapplication.h" |
28 | #include "klibloader.h" | 28 | #include "klibloader.h" |
29 | #include "kstandarddirs.h" | 29 | #include "kstandarddirs.h" |
30 | #include "kdebug.h" | 30 | #include "kdebug.h" |
31 | #include "klocale.h" | 31 | #include "klocale.h" |
32 | 32 | ||
33 | /*US | 33 | /*US |
34 | #ifndef NDEBUG | 34 | #ifndef NDEBUG |
35 | #include "ltdl.h" | 35 | #include "ltdl.h" |
36 | #endif | 36 | #endif |
37 | */ | 37 | */ |
38 | 38 | ||
39 | //US do everything through qlibrary | 39 | //US do everything through qlibrary |
40 | #ifndef DESKTOP_VERSION | 40 | #ifndef DESKTOP_VERSION |
41 | #include <qpe/qpeapplication.h> | 41 | #include <qpe/qpeapplication.h> |
42 | #include <qtopia/qlibrary.h> | 42 | #include <qtopia/qlibrary.h> |
43 | #else | ||
44 | #include <qlibrary.h> | ||
43 | #endif | 45 | #endif |
44 | 46 | ||
45 | /*US | 47 | |
46 | #ifdef Q_WS_X11 | ||
47 | #include <X11/Xlib.h> | ||
48 | #include <X11/Xatom.h> | ||
49 | #endif | ||
50 | */ | ||
51 | template class QAsciiDict<KLibrary>; | 48 | template class QAsciiDict<KLibrary>; |
52 | 49 | ||
53 | #include <stdlib.h> //getenv | 50 | #include <stdlib.h> //getenv |
54 | 51 | ||
55 | /*US | 52 | /*US |
56 | #if HAVE_DLFCN_H | 53 | #if HAVE_DLFCN_H |
57 | # include <dlfcn.h> | 54 | # include <dlfcn.h> |
58 | #endif | 55 | #endif |
59 | 56 | ||
60 | #ifdef RTLD_GLOBAL | 57 | #ifdef RTLD_GLOBAL |
61 | # define LT_GLOBAL RTLD_GLOBAL | 58 | # define LT_GLOBAL RTLD_GLOBAL |
62 | #else | 59 | #else |
63 | # ifdef DL_GLOBAL | 60 | # ifdef DL_GLOBAL |
64 | # define LT_GLOBAL DL_GLOBAL | 61 | # define LT_GLOBAL DL_GLOBAL |
65 | # endif | 62 | # endif |
66 | #endif | 63 | #endif |
@@ -179,33 +176,32 @@ KLibFactory* KLibrary::factory() | |||
179 | return 0; | 176 | return 0; |
180 | } | 177 | } |
181 | 178 | ||
182 | connect( m_factory, SIGNAL( objectCreated( QObject * ) ), | 179 | connect( m_factory, SIGNAL( objectCreated( QObject * ) ), |
183 | this, SLOT( slotObjectCreated( QObject * ) ) ); | 180 | this, SLOT( slotObjectCreated( QObject * ) ) ); |
184 | 181 | ||
185 | return m_factory; | 182 | return m_factory; |
186 | } | 183 | } |
187 | 184 | ||
188 | void* KLibrary::symbol( const char* symname ) const | 185 | void* KLibrary::symbol( const char* symname ) const |
189 | { | 186 | { |
190 | //US void* sym = lt_dlsym( (lt_dlhandle) m_handle, symname ); | 187 | //US void* sym = lt_dlsym( (lt_dlhandle) m_handle, symname ); |
191 | void* sym = m_handle->resolve( symname ); | 188 | void* sym = m_handle->resolve( symname ); |
192 | if ( !sym ) | 189 | if ( !sym ) |
193 | { | 190 | { |
194 | //US kdWarning(150) << "KLibrary: " << lt_dlerror() << endl; | 191 | //US kdWarning(150) << "KLibrary: " << lt_dlerror() << endl; |
195 | kdWarning(150) << "KLibrary: " << m_libname << ", symbol:" << symname << " not found " << endl; | ||
196 | return 0; | 192 | return 0; |
197 | } | 193 | } |
198 | 194 | ||
199 | return sym; | 195 | return sym; |
200 | } | 196 | } |
201 | 197 | ||
202 | bool KLibrary::hasSymbol( const char* symname ) const | 198 | bool KLibrary::hasSymbol( const char* symname ) const |
203 | { | 199 | { |
204 | //US void* sym = lt_dlsym( (lt_dlhandle) m_handle, symname ); | 200 | //US void* sym = lt_dlsym( (lt_dlhandle) m_handle, symname ); |
205 | void* sym = m_handle->resolve( symname ); | 201 | void* sym = m_handle->resolve( symname ); |
206 | return (sym != 0L ); | 202 | return (sym != 0L ); |
207 | } | 203 | } |
208 | 204 | ||
209 | void KLibrary::unload() const | 205 | void KLibrary::unload() const |
210 | { | 206 | { |
211 | if (KLibLoader::s_self) | 207 | if (KLibLoader::s_self) |
@@ -464,34 +460,37 @@ KLibrary* KLibLoader::library( const char *name ) | |||
464 | for (; it.current(); ++it) { | 460 | for (; it.current(); ++it) { |
465 | if (it.current()->name == name) | 461 | if (it.current()->name == name) |
466 | wrap = it.current(); | 462 | wrap = it.current(); |
467 | } | 463 | } |
468 | 464 | ||
469 | if (wrap) { | 465 | if (wrap) { |
470 | d->pending_close.removeRef(wrap); | 466 | d->pending_close.removeRef(wrap); |
471 | if (!wrap->lib) { | 467 | if (!wrap->lib) { |
472 | /* This lib only was in loaded_stack, but not in m_libs. */ | 468 | /* This lib only was in loaded_stack, but not in m_libs. */ |
473 | wrap->lib = new KLibrary( name, wrap->filename, wrap->handle ); | 469 | wrap->lib = new KLibrary( name, wrap->filename, wrap->handle ); |
474 | } | 470 | } |
475 | wrap->ref_count++; | 471 | wrap->ref_count++; |
476 | } else { | 472 | } else { |
477 | QString libfile = findLibrary( name ); | 473 | QString libfile = findLibrary( name ); |
478 | if ( libfile.isEmpty() ) | 474 | if ( libfile.isEmpty() ) |
479 | return 0; | 475 | return 0; |
480 | 476 | #ifdef DESKTOP_VERSION | |
477 | QLibrary *qlib = new QLibrary( libfile.latin1() ); | ||
478 | #else | ||
481 | QLibrary *qlib = new QLibrary( libfile.latin1(), QLibrary::Immediately ); | 479 | QLibrary *qlib = new QLibrary( libfile.latin1(), QLibrary::Immediately ); |
480 | #endif | ||
482 | 481 | ||
483 | //US lt_dlhandle handle = lt_dlopen( libfile.latin1() ); | 482 | //US lt_dlhandle handle = lt_dlopen( libfile.latin1() ); |
484 | //US if ( !handle ) | 483 | //US if ( !handle ) |
485 | if ( !qlib ) | 484 | if ( !qlib ) |
486 | { | 485 | { |
487 | //US const char* errmsg = lt_dlerror(); | 486 | //US const char* errmsg = lt_dlerror(); |
488 | char* errmsg; | 487 | char* errmsg; |
489 | sprintf(errmsg, "KLibLoader::library could not load library: %s", libfile.latin1()); | 488 | sprintf(errmsg, "KLibLoader::library could not load library: %s", libfile.latin1()); |
490 | qDebug(errmsg); | 489 | qDebug(errmsg); |
491 | 490 | ||
492 | if(errmsg) | 491 | if(errmsg) |
493 | d->errorMessage = QString::fromLatin1(errmsg); | 492 | d->errorMessage = QString::fromLatin1(errmsg); |
494 | else | 493 | else |
495 | d->errorMessage = QString::null; | 494 | d->errorMessage = QString::null; |
496 | kdWarning(150) << "library=" << name << ": file=" << libfile << ": " << d->errorMessage << endl; | 495 | kdWarning(150) << "library=" << name << ": file=" << libfile << ": " << d->errorMessage << endl; |
497 | return 0; | 496 | return 0; |
@@ -586,61 +585,63 @@ void KLibLoader::close_pending(KLibWrapPrivate *wrap) | |||
586 | the symbol __kde_do_unload. */ | 585 | the symbol __kde_do_unload. */ |
587 | if (d->unload_mode != KLibLoaderPrivate::UNLOAD | 586 | if (d->unload_mode != KLibLoaderPrivate::UNLOAD |
588 | && wrap->unload_mode != KLibWrapPrivate::UNLOAD) | 587 | && wrap->unload_mode != KLibWrapPrivate::UNLOAD) |
589 | break; | 588 | break; |
590 | 589 | ||
591 | /* Now ensure, that the libs are only unloaded in the reverse direction | 590 | /* Now ensure, that the libs are only unloaded in the reverse direction |
592 | they were loaded. */ | 591 | they were loaded. */ |
593 | if (!d->pending_close.containsRef( wrap )) { | 592 | if (!d->pending_close.containsRef( wrap )) { |
594 | if (!deleted_one) | 593 | if (!deleted_one) |
595 | /* Only diagnose, if we really haven't deleted anything. */ | 594 | /* Only diagnose, if we really haven't deleted anything. */ |
596 | // kdDebug(150) << "try to dlclose " << wrap->name << ": not yet" << endl; | 595 | // kdDebug(150) << "try to dlclose " << wrap->name << ": not yet" << endl; |
597 | break; | 596 | break; |
598 | } | 597 | } |
599 | 598 | ||
600 | // kdDebug(150) << "try to dlclose " << wrap->name << ": yes, done." << endl; | 599 | // kdDebug(150) << "try to dlclose " << wrap->name << ": yes, done." << endl; |
601 | 600 | ||
601 | #if 0 | ||
602 | #ifndef Q_WS_QWS | 602 | #ifndef Q_WS_QWS |
603 | if ( !deleted_one ) { | 603 | if ( !deleted_one ) { |
604 | /* Only do the hack once in this loop. | 604 | /* Only do the hack once in this loop. |
605 | WABA: *HACK* | 605 | WABA: *HACK* |
606 | We need to make sure to clear the clipboard before unloading a DSO | 606 | We need to make sure to clear the clipboard before unloading a DSO |
607 | because the DSO could have defined an object derived from QMimeSource | 607 | because the DSO could have defined an object derived from QMimeSource |
608 | and placed that on the clipboard. */ | 608 | and placed that on the clipboard. */ |
609 | /*kapp->clipboard()->clear();*/ | 609 | /*kapp->clipboard()->clear();*/ |
610 | 610 | ||
611 | /* Well.. let's do something more subtle... convert the clipboard context | 611 | /* Well.. let's do something more subtle... convert the clipboard context |
612 | to text. That should be safe as it only uses objects defined by Qt. */ | 612 | to text. That should be safe as it only uses objects defined by Qt. */ |
613 | 613 | ||
614 | QWidgetList *widgetlist = QApplication::topLevelWidgets(); | 614 | QWidgetList *widgetlist = QApplication::topLevelWidgets(); |
615 | QWidget *co = widgetlist->first(); | 615 | QWidget *co = widgetlist->first(); |
616 | while (co) { | 616 | while (co) { |
617 | if (qstrcmp(co->name(), "internal clipboard owner") == 0) { | 617 | if (qstrcmp(co->name(), "internal clipboard owner") == 0) { |
618 | if (XGetSelectionOwner(co->x11Display(), XA_PRIMARY) == co->winId()) | 618 | if (XGetSelectionOwner(co->x11Display(), XA_PRIMARY) == co->winId()) |
619 | kapp->clipboard()->setText(kapp->clipboard()->text()); | 619 | kapp->clipboard()->setText(kapp->clipboard()->text()); |
620 | 620 | ||
621 | break; | 621 | break; |
622 | } | 622 | } |
623 | co = widgetlist->next(); | 623 | co = widgetlist->next(); |
624 | } | 624 | } |
625 | delete widgetlist; | 625 | delete widgetlist; |
626 | } | 626 | } |
627 | #else | 627 | #else |
628 | // FIXME(E): Implement in Qt Embedded | 628 | // FIXME(E): Implement in Qt Embedded |
629 | #endif | 629 | #endif |
630 | 630 | ||
631 | #endif // 0 | ||
631 | deleted_one = true; | 632 | deleted_one = true; |
632 | //US lt_dlclose(wrap->handle); | 633 | //US lt_dlclose(wrap->handle); |
633 | wrap->handle->unload(); | 634 | wrap->handle->unload(); |
634 | 635 | ||
635 | d->pending_close.removeRef(wrap); | 636 | d->pending_close.removeRef(wrap); |
636 | /* loaded_stack is AutoDelete, so wrap is freed */ | 637 | /* loaded_stack is AutoDelete, so wrap is freed */ |
637 | d->loaded_stack.remove(); | 638 | d->loaded_stack.remove(); |
638 | } | 639 | } |
639 | } | 640 | } |
640 | 641 | ||
641 | void KLibLoader::virtual_hook( int, void* ) | 642 | void KLibLoader::virtual_hook( int, void* ) |
642 | { /*BASE::virtual_hook( id, data );*/ } | 643 | { /*BASE::virtual_hook( id, data );*/ } |
643 | 644 | ||
644 | void KLibFactory::virtual_hook( int, void* ) | 645 | void KLibFactory::virtual_hook( int, void* ) |
645 | { /*BASE::virtual_hook( id, data );*/ } | 646 | { /*BASE::virtual_hook( id, data );*/ } |
646 | 647 | ||
diff --git a/microkde/kdecore/kstandarddirs.cpp b/microkde/kdecore/kstandarddirs.cpp index 1a1e027..7f51d78 100644 --- a/microkde/kdecore/kstandarddirs.cpp +++ b/microkde/kdecore/kstandarddirs.cpp | |||
@@ -30,33 +30,32 @@ | |||
30 | #include <assert.h> | 30 | #include <assert.h> |
31 | //US#include <errno.h> | 31 | //US#include <errno.h> |
32 | //US #ifdef HAVE_SYS_STAT_H | 32 | //US #ifdef HAVE_SYS_STAT_H |
33 | //US #include <sys/stat.h> | 33 | //US #include <sys/stat.h> |
34 | //US #endif | 34 | //US #endif |
35 | //US#include <sys/types.h> | 35 | //US#include <sys/types.h> |
36 | //US#include <dirent.h> | 36 | //US#include <dirent.h> |
37 | //US#include <pwd.h> | 37 | //US#include <pwd.h> |
38 | 38 | ||
39 | #include <qregexp.h> | 39 | #include <qregexp.h> |
40 | #include <qasciidict.h> | 40 | #include <qasciidict.h> |
41 | #include <qdict.h> | 41 | #include <qdict.h> |
42 | #include <qdir.h> | 42 | #include <qdir.h> |
43 | #include <qfileinfo.h> | 43 | #include <qfileinfo.h> |
44 | #include <qstring.h> | 44 | #include <qstring.h> |
45 | #include <qstringlist.h> | 45 | #include <qstringlist.h> |
46 | #include <qpe/qpeapplication.h> | ||
47 | 46 | ||
48 | #include "kstandarddirs.h" | 47 | #include "kstandarddirs.h" |
49 | #include "kconfig.h" | 48 | #include "kconfig.h" |
50 | #include "kdebug.h" | 49 | #include "kdebug.h" |
51 | //US #include "kinstance.h" | 50 | //US #include "kinstance.h" |
52 | #include "kshell.h" | 51 | #include "kshell.h" |
53 | //US#include <sys/param.h> | 52 | //US#include <sys/param.h> |
54 | //US#include <unistd.h> | 53 | //US#include <unistd.h> |
55 | 54 | ||
56 | //US | 55 | //US |
57 | QString KStandardDirs::mAppDir = QString::null; | 56 | QString KStandardDirs::mAppDir = QString::null; |
58 | 57 | ||
59 | 58 | ||
60 | template class QDict<QStringList>; | 59 | template class QDict<QStringList>; |
61 | 60 | ||
62 | #if 0 | 61 | #if 0 |
@@ -1212,33 +1211,33 @@ void KStandardDirs::addKDEDefaults() | |||
1212 | QString kdedirs = readEnvPath("MICROKDEDIRS"); | 1211 | QString kdedirs = readEnvPath("MICROKDEDIRS"); |
1213 | if (!kdedirs.isEmpty()) | 1212 | if (!kdedirs.isEmpty()) |
1214 | { | 1213 | { |
1215 | tokenize(kdedirList, kdedirs, ":"); | 1214 | tokenize(kdedirList, kdedirs, ":"); |
1216 | } | 1215 | } |
1217 | else | 1216 | else |
1218 | { | 1217 | { |
1219 | QString kdedir = readEnvPath("MICROKDEDIR"); | 1218 | QString kdedir = readEnvPath("MICROKDEDIR"); |
1220 | if (!kdedir.isEmpty()) | 1219 | if (!kdedir.isEmpty()) |
1221 | { | 1220 | { |
1222 | kdedir = KShell::tildeExpand(kdedir); | 1221 | kdedir = KShell::tildeExpand(kdedir); |
1223 | kdedirList.append(kdedir); | 1222 | kdedirList.append(kdedir); |
1224 | } | 1223 | } |
1225 | } | 1224 | } |
1226 | //US kdedirList.append(KDEDIR); | 1225 | //US kdedirList.append(KDEDIR); |
1227 | //US for embedded, add qtopia dir as kdedir | 1226 | //US for embedded, add qtopia dir as kdedir |
1228 | kdedirList.append(QPEApplication::qpeDir()); | 1227 | kdedirList.append(readEnvPath("QPEDIR" )); |
1229 | 1228 | ||
1230 | #ifdef __KDE_EXECPREFIX | 1229 | #ifdef __KDE_EXECPREFIX |
1231 | QString execPrefix(__KDE_EXECPREFIX); | 1230 | QString execPrefix(__KDE_EXECPREFIX); |
1232 | if (execPrefix!="NONE") | 1231 | if (execPrefix!="NONE") |
1233 | kdedirList.append(execPrefix); | 1232 | kdedirList.append(execPrefix); |
1234 | #endif | 1233 | #endif |
1235 | 1234 | ||
1236 | QString localKdeDir; | 1235 | QString localKdeDir; |
1237 | 1236 | ||
1238 | //US if (getuid()) | 1237 | //US if (getuid()) |
1239 | if (true) | 1238 | if (true) |
1240 | { | 1239 | { |
1241 | localKdeDir = readEnvPath("MICROKDEHOME"); | 1240 | localKdeDir = readEnvPath("MICROKDEHOME"); |
1242 | if (!localKdeDir.isEmpty()) | 1241 | if (!localKdeDir.isEmpty()) |
1243 | { | 1242 | { |
1244 | if (localKdeDir.at(localKdeDir.length()-1) != '/') | 1243 | if (localKdeDir.at(localKdeDir.length()-1) != '/') |
diff --git a/microkde/kdeui/ktoolbar.cpp b/microkde/kdeui/ktoolbar.cpp index 92cb8d2..79b0f9d 100644 --- a/microkde/kdeui/ktoolbar.cpp +++ b/microkde/kdeui/ktoolbar.cpp | |||
@@ -1011,33 +1011,33 @@ void KToolBar::setIconSize(int size, bool update) | |||
1011 | } | 1011 | } |
1012 | 1012 | ||
1013 | 1013 | ||
1014 | int KToolBar::iconSize() const | 1014 | int KToolBar::iconSize() const |
1015 | { | 1015 | { |
1016 | /*US | 1016 | /*US |
1017 | if ( !d->m_iconSize ) // default value? | 1017 | if ( !d->m_iconSize ) // default value? |
1018 | { | 1018 | { |
1019 | if (!::qstrcmp(QObject::name(), "mainToolBar")) | 1019 | if (!::qstrcmp(QObject::name(), "mainToolBar")) |
1020 | return KGlobal::iconLoader()->currentSize(KIcon::MainToolbar); | 1020 | return KGlobal::iconLoader()->currentSize(KIcon::MainToolbar); |
1021 | else | 1021 | else |
1022 | return KGlobal::iconLoader()->currentSize(KIcon::Toolbar); | 1022 | return KGlobal::iconLoader()->currentSize(KIcon::Toolbar); |
1023 | } | 1023 | } |
1024 | return d->m_iconSize; | 1024 | return d->m_iconSize; |
1025 | */ | 1025 | */ |
1026 | int ret = 18; | 1026 | int ret = 18; |
1027 | if ( QApplication::desktop()->width() > 320 && QApplication::desktop()->width() < 650 ) | 1027 | if ( QApplication::desktop()->width() > 320 ) |
1028 | ret = 30; | 1028 | ret = 30; |
1029 | return ret; | 1029 | return ret; |
1030 | } | 1030 | } |
1031 | 1031 | ||
1032 | 1032 | ||
1033 | void KToolBar::setEnableContextMenu(bool enable ) | 1033 | void KToolBar::setEnableContextMenu(bool enable ) |
1034 | { | 1034 | { |
1035 | d->m_enableContext = enable; | 1035 | d->m_enableContext = enable; |
1036 | } | 1036 | } |
1037 | 1037 | ||
1038 | 1038 | ||
1039 | bool KToolBar::contextMenuEnabled() const | 1039 | bool KToolBar::contextMenuEnabled() const |
1040 | { | 1040 | { |
1041 | return d->m_enableContext; | 1041 | return d->m_enableContext; |
1042 | } | 1042 | } |
1043 | 1043 | ||
diff --git a/microkde/kresources/factory.cpp b/microkde/kresources/factory.cpp index 827ec38..2253de4 100644 --- a/microkde/kresources/factory.cpp +++ b/microkde/kresources/factory.cpp | |||
@@ -13,34 +13,35 @@ | |||
13 | This library is distributed in the hope that it will be useful, | 13 | This library is distributed in the hope that it will be useful, |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 | Library General Public License for more details. | 16 | Library General Public License for more details. |
17 | 17 | ||
18 | You should have received a copy of the GNU Library General Public License | 18 | You should have received a copy of the GNU Library General Public License |
19 | along with this library; see the file COPYING.LIB. If not, write to | 19 | along with this library; see the file COPYING.LIB. If not, write to |
20 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 20 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
21 | Boston, MA 02111-1307, USA. | 21 | Boston, MA 02111-1307, USA. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <kdebug.h> | 24 | #include <kdebug.h> |
25 | #include <klocale.h> | 25 | #include <klocale.h> |
26 | #include <ksimpleconfig.h> | 26 | #include <ksimpleconfig.h> |
27 | #include <kstandarddirs.h> | 27 | #include <kstandarddirs.h> |
28 | #include <kstaticdeleter.h> | 28 | #include <kstaticdeleter.h> |
29 | //#ifndef DESKTOP_VERSION | ||
29 | #include <klibloader.h> | 30 | #include <klibloader.h> |
30 | 31 | //#endif | |
31 | #include <qfile.h> | 32 | #include <qfile.h> |
32 | 33 | ||
33 | #include "resource.h" | 34 | #include "resource.h" |
34 | #include "factory.h" | 35 | #include "factory.h" |
35 | 36 | ||
36 | using namespace KRES; | 37 | using namespace KRES; |
37 | 38 | ||
38 | QDict<Factory> *Factory::mSelves = 0; | 39 | QDict<Factory> *Factory::mSelves = 0; |
39 | static KStaticDeleter< QDict<Factory> > staticDeleter; | 40 | static KStaticDeleter< QDict<Factory> > staticDeleter; |
40 | 41 | ||
41 | Factory *Factory::self( const QString& resourceFamily ) | 42 | Factory *Factory::self( const QString& resourceFamily ) |
42 | { | 43 | { |
43 | 44 | ||
44 | 45 | ||
45 | Factory *factory = 0; | 46 | Factory *factory = 0; |
46 | if ( !mSelves ) | 47 | if ( !mSelves ) |
diff --git a/microkde/microkde.pro b/microkde/microkde.pro index 1e9b022..05833a9 100644 --- a/microkde/microkde.pro +++ b/microkde/microkde.pro | |||
@@ -85,33 +85,34 @@ KDGanttMinimizeSplitter.h \ | |||
85 | kdecore/klocale.h \ | 85 | kdecore/klocale.h \ |
86 | kdecore/kcatalogue.h \ | 86 | kdecore/kcatalogue.h \ |
87 | kdecore/ksharedptr.h \ | 87 | kdecore/ksharedptr.h \ |
88 | kdecore/kshell.h \ | 88 | kdecore/kshell.h \ |
89 | kdecore/kstandarddirs.h \ | 89 | kdecore/kstandarddirs.h \ |
90 | kdecore/kstringhandler.h \ | 90 | kdecore/kstringhandler.h \ |
91 | kdecore/kshortcut.h \ | 91 | kdecore/kshortcut.h \ |
92 | kutils/kcmultidialog.h \ | 92 | kutils/kcmultidialog.h \ |
93 | kdeui/kxmlguiclient.h \ | 93 | kdeui/kxmlguiclient.h \ |
94 | kdeui/kstdaction.h \ | 94 | kdeui/kstdaction.h \ |
95 | kdeui/kmainwindow.h \ | 95 | kdeui/kmainwindow.h \ |
96 | kdeui/ktoolbar.h \ | 96 | kdeui/ktoolbar.h \ |
97 | kdeui/ktoolbarbutton.h \ | 97 | kdeui/ktoolbarbutton.h \ |
98 | kdeui/ktoolbarhandler.h \ | 98 | kdeui/ktoolbarhandler.h \ |
99 | kdeui/kaction.h \ | 99 | kdeui/kaction.h \ |
100 | kdeui/kactionclasses.h \ | 100 | kdeui/kactionclasses.h \ |
101 | kdeui/kactioncollection.h | 101 | kdeui/kactioncollection.h \ |
102 | kdecore/klibloader.h | ||
102 | 103 | ||
103 | 104 | ||
104 | # kdecore/klibloader.h \ | 105 | # kdecore/klibloader.h \ |
105 | 106 | ||
106 | 107 | ||
107 | SOURCES = \ | 108 | SOURCES = \ |
108 | KDGanttMinimizeSplitter.cpp \ | 109 | KDGanttMinimizeSplitter.cpp \ |
109 | kapplication.cpp \ | 110 | kapplication.cpp \ |
110 | kcalendarsystem.cpp \ | 111 | kcalendarsystem.cpp \ |
111 | kcalendarsystemgregorian.cpp \ | 112 | kcalendarsystemgregorian.cpp \ |
112 | kcolorbutton.cpp \ | 113 | kcolorbutton.cpp \ |
113 | kcolordialog.cpp \ | 114 | kcolordialog.cpp \ |
114 | kconfig.cpp \ | 115 | kconfig.cpp \ |
115 | kdatetbl.cpp \ | 116 | kdatetbl.cpp \ |
116 | kdialog.cpp \ | 117 | kdialog.cpp \ |
117 | kdialogbase.cpp \ | 118 | kdialogbase.cpp \ |
@@ -150,21 +151,18 @@ KDGanttMinimizeSplitter.cpp \ | |||
150 | kresources/configdialog.cpp \ | 151 | kresources/configdialog.cpp \ |
151 | kresources/configwidget.cpp \ | 152 | kresources/configwidget.cpp \ |
152 | kresources/factory.cpp \ | 153 | kresources/factory.cpp \ |
153 | kresources/kcmkresources.cpp \ | 154 | kresources/kcmkresources.cpp \ |
154 | kresources/managerimpl.cpp \ | 155 | kresources/managerimpl.cpp \ |
155 | kresources/resource.cpp \ | 156 | kresources/resource.cpp \ |
156 | kresources/selectdialog.cpp \ | 157 | kresources/selectdialog.cpp \ |
157 | kutils/kcmultidialog.cpp \ | 158 | kutils/kcmultidialog.cpp \ |
158 | kdeui/kaction.cpp \ | 159 | kdeui/kaction.cpp \ |
159 | kdeui/kactionclasses.cpp \ | 160 | kdeui/kactionclasses.cpp \ |
160 | kdeui/kactioncollection.cpp \ | 161 | kdeui/kactioncollection.cpp \ |
161 | kdeui/kmainwindow.cpp \ | 162 | kdeui/kmainwindow.cpp \ |
162 | kdeui/ktoolbar.cpp \ | 163 | kdeui/ktoolbar.cpp \ |
163 | kdeui/ktoolbarbutton.cpp \ | 164 | kdeui/ktoolbarbutton.cpp \ |
164 | kdeui/ktoolbarhandler.cpp \ | 165 | kdeui/ktoolbarhandler.cpp \ |
165 | kdeui/kstdaction.cpp \ | 166 | kdeui/kstdaction.cpp \ |
166 | kdeui/kxmlguiclient.cpp | 167 | kdeui/kxmlguiclient.cpp \ |
167 | 168 | kdecore/klibloader.cpp \ No newline at end of file | |
168 | |||
169 | |||
170 | # kdecore/klibloader.cpp \ \ No newline at end of file | ||