author | zecke <zecke> | 2003-08-28 14:55:46 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-08-28 14:55:46 (UTC) |
commit | d687b15c95f022bd46a23758577a4816bd372505 (patch) (unidiff) | |
tree | 402a286cef17d0f1d47a58e41c429267cb5c9b1b | |
parent | fa605085c3f966aa2897cacea03b24025c5c23a3 (diff) | |
download | opie-d687b15c95f022bd46a23758577a4816bd372505.zip opie-d687b15c95f022bd46a23758577a4816bd372505.tar.gz opie-d687b15c95f022bd46a23758577a4816bd372505.tar.bz2 |
Add license
remove old unneeded files
-rw-r--r-- | core/launcher/Makefile | 1085 | ||||
-rw-r--r-- | core/launcher/background.cpp | 41 | ||||
-rw-r--r-- | core/launcher/background.h | 40 | ||||
-rw-r--r-- | core/launcher/desktop.cpp | 878 | ||||
-rw-r--r-- | core/launcher/desktop.h | 157 | ||||
-rw-r--r-- | core/launcher/info.cpp | 116 | ||||
-rw-r--r-- | core/launcher/info.h | 55 | ||||
-rw-r--r-- | core/launcher/launcher.pro | 125 | ||||
-rw-r--r-- | core/launcher/mediummountgui.cpp | 207 | ||||
-rw-r--r-- | core/launcher/mediummountgui.h | 67 | ||||
-rw-r--r-- | core/launcher/qcleanuphandler_p.h | 20 | ||||
-rw-r--r-- | core/launcher/quicklauncher.cpp | 49 | ||||
-rw-r--r-- | core/launcher/quicklauncher.h | 40 | ||||
-rw-r--r-- | core/launcher/sidething.cpp | 75 | ||||
-rw-r--r-- | core/launcher/sidething.h | 43 | ||||
-rw-r--r-- | core/launcher/syncdialog.ui | 228 |
16 files changed, 20 insertions, 3206 deletions
diff --git a/core/launcher/Makefile b/core/launcher/Makefile deleted file mode 100644 index a45dec8..0000000 --- a/core/launcher/Makefile +++ b/dev/null | |||
@@ -1,1085 +0,0 @@ | |||
1 | ############################################################################# | ||
2 | # Automatically generated from server/Makefile.in | ||
3 | # Build options from | ||
4 | ############################################################################# | ||
5 | |||
6 | default: all # package | ||
7 | |||
8 | CONTROL = server/qpe-taskbar.control | ||
9 | |||
10 | # Compiling | ||
11 | INTERFACE_DECL_PATH = . | ||
12 | SYSCONF_CXX = g++ | ||
13 | SYSCONF_CC = gcc | ||
14 | DASHCROSS = | ||
15 | |||
16 | # Compiling with support libraries | ||
17 | SYSCONF_CXXFLAGS_X11= | ||
18 | SYSCONF_CXXFLAGS_QT= -I$(QTDIR)/include | ||
19 | SYSCONF_CXXFLAGS_QTOPIA= -I$(QPEDIR)/include | ||
20 | SYSCONF_CFLAGS_QTOPIA= -I$(QPEDIR)/include | ||
21 | SYSCONF_CXXFLAGS_OPENGL= -I/usr/X11R6/include | ||
22 | |||
23 | # Compiling YACC output | ||
24 | SYSCONF_CXXFLAGS_YACC = -Wno-unused -Wno-parentheses | ||
25 | |||
26 | # Linking with support libraries | ||
27 | SYSCONF_RPATH_X11= | ||
28 | SYSCONF_RPATH_QT= -Wl,-rpath,$(QTDIR)/lib | ||
29 | SYSCONF_RPATH_QTOPIA= -Wl,-rpath,$(QPEDIR)/lib | ||
30 | SYSCONF_RPATH_OPENGL= -Wl,-rpath,/usr/X11R6/lib | ||
31 | |||
32 | # Linking with support libraries | ||
33 | # X11 | ||
34 | SYSCONF_LFLAGS_X11= | ||
35 | SYSCONF_LIBS_X11= | ||
36 | # Qt, Qt+OpenGL | ||
37 | SYSCONF_LFLAGS_QT= -L$(QTDIR)/lib | ||
38 | SYSCONF_LFLAGS_QTOPIA= -L$(QPEDIR)/lib | ||
39 | SYSCONF_LIBS_QT = -lqte$(QT_THREAD_SUFFIX) | ||
40 | SYSCONF_LIBS_QT_OPENGL= | ||
41 | SYSCONF_LIBS_QTOPIA= -lqtopia | ||
42 | # OpenGL | ||
43 | SYSCONF_LFLAGS_OPENGL= -L/usr/X11R6/lib | ||
44 | SYSCONF_LIBS_OPENGL= | ||
45 | # Yacc | ||
46 | SYSCONF_LIBS_YACC= | ||
47 | |||
48 | # Linking applications | ||
49 | SYSCONF_LINK = gcc | ||
50 | SYSCONF_LFLAGS = | ||
51 | SYSCONF_LIBS = | ||
52 | |||
53 | # Link flags for shared objects | ||
54 | SYSCONF_LFLAGS_SHOBJ= -shared | ||
55 | |||
56 | # Flags for threading | ||
57 | SYSCONF_CFLAGS_THREAD= -D_REENTRANT | ||
58 | SYSCONF_CXXFLAGS_THREAD= -D_REENTRANT | ||
59 | SYSCONF_LFLAGS_THREAD= | ||
60 | SYSCONF_LIBS_THREAD= -lpthread | ||
61 | |||
62 | # Meta-object compiler | ||
63 | SYSCONF_MOC = $(QTDIR)/bin/moc | ||
64 | |||
65 | # UI compiler | ||
66 | SYSCONF_UIC = $(QTDIR)/bin/uic | ||
67 | |||
68 | # Linking shared libraries | ||
69 | # - Build the $(TARGET) library, eg. lib$(TARGET).so.2.2.2 | ||
70 | # - Place target in $(DESTDIR) - which has a trailing / | ||
71 | # - Usually needs to incorporate $(VER_MAJ), $(VER_MIN) and $(VER_PATCH) | ||
72 | # | ||
73 | SYSCONF_LINK_SHLIB= gcc | ||
74 | SYSCONF_LINK_TARGET_SHARED= lib$(TARGET).so.$(VER_MAJ).$(VER_MIN).$(VER_PATCH) | ||
75 | SYSCONF_LINK_LIB_SHARED= $(SYSCONF_LINK_SHLIB) -shared -Wl,-soname,lib$(TARGET).so.$(VER_MAJ) \ | ||
76 | $(LFLAGS) -o $(SYSCONF_LINK_TARGET_SHARED) \ | ||
77 | $(OBJECTS) $(OBJMOC) $(LIBS) && \ | ||
78 | mv $(SYSCONF_LINK_TARGET_SHARED) $(DESTDIR); \ | ||
79 | cd $(DESTDIR) && \ | ||
80 | rm -f lib$(TARGET).so lib$(TARGET).so.$(VER_MAJ) lib$(TARGET).so.$(VER_MAJ).$(VER_MIN); \ | ||
81 | ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so; \ | ||
82 | ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ); \ | ||
83 | ln -s $(SYSCONF_LINK_TARGET_SHARED) lib$(TARGET).so.$(VER_MAJ).$(VER_MIN) | ||
84 | |||
85 | # Linking static libraries | ||
86 | # - Build the $(TARGET) library, eg. lib$(TARGET).a | ||
87 | # - Place target in $(DESTDIR) - which has a trailing / | ||
88 | # | ||
89 | SYSCONF_AR = ar cqs | ||
90 | SYSCONF_LINK_TARGET_STATIC = lib$(TARGET).a | ||
91 | SYSCONF_LINK_LIB_STATIC= rm -f $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) ; \ | ||
92 | $(SYSCONF_AR) $(DESTDIR)$(SYSCONF_LINK_TARGET_STATIC) $(OBJECTS) $(OBJMOC) | ||
93 | # Compiling application source | ||
94 | SYSCONF_CXXFLAGS= -pipe -DQWS -fno-exceptions -fno-rtti -g -Wall -W | ||
95 | SYSCONF_CFLAGS = -pipe -g -Wall -W | ||
96 | # Default link type (static linking is still be used where required) | ||
97 | SYSCONF_LINK_LIB= $(SYSCONF_LINK_LIB_SHARED) | ||
98 | SYSCONF_LINK_TARGET= $(SYSCONF_LINK_TARGET_SHARED) | ||
99 | # Compiling library source | ||
100 | SYSCONF_CXXFLAGS_LIB= -fPIC | ||
101 | SYSCONF_CFLAGS_LIB= -fPIC | ||
102 | # Compiling shared-object source | ||
103 | SYSCONF_CXXFLAGS_SHOBJ= -fPIC | ||
104 | SYSCONF_CFLAGS_SHOBJ= -fPIC | ||
105 | # Linking Qt | ||
106 | SYSCONF_LIBS_QTLIB= $(SYSCONF_LFLAGS_X11) $(QT_LIBS_MT) $(QT_LIBS_OPT) | ||
107 | # Linking Qt applications | ||
108 | SYSCONF_LIBS_QTAPP= | ||
109 | |||
110 | # Platform output directories | ||
111 | MOC_DIR = .moc/linux-generic-g++/ | ||
112 | OBJECTS_DIR = .obj/linux-generic-g++/ | ||
113 | |||
114 | ############################################################################# | ||
115 | |||
116 | ####### Compiler, tools and options | ||
117 | |||
118 | CXX =$(SYSCONF_CXX) $(QT_CXX_MT) | ||
119 | CXXFLAGS=$(SYSCONF_CXXFLAGS_QTOPIA) $(SYSCONF_CXXFLAGS_QT) $(SYSCONF_CXXFLAGS) -DQTOPIA_APP_INTERFACE | ||
120 | CC =$(SYSCONF_CC) $(QT_C_MT) | ||
121 | CFLAGS =$(SYSCONF_CFLAGS_QTOPIA) $(SYSCONF_CFLAGS) -DQTOPIA_APP_INTERFACE | ||
122 | INCPATH =-I$(MOC_DIR) -I$(QPEDIR)/src/settings/calibrate -I$(QPEDIR)/src/3rdparty/libraries/rsync | ||
123 | LFLAGS =$(SYSCONF_LFLAGS_QTOPIA) $(SYSCONF_RPATH_QTOPIA) $(SYSCONF_LFLAGS_QT) $(SYSCONF_RPATH_QT) $(SYSCONF_LFLAGS) $(QT_LFLAGS_MT) | ||
124 | LIBS =$(SUBLIBS) -ljpeg -Wl,-Bstatic -Wl,-whole-archive -Wl,-no-whole-archive -Wl,-Bdynamic -lcrypt -luuid -lqpe $(SYSCONF_LIBS_QTOPIA) $(SYSCONF_LIBS_QT) $(SYSCONF_LIBS) $(SYSCONF_LIBS_QTAPP) | ||
125 | MOC =$(SYSCONF_MOC) | ||
126 | UIC =$(SYSCONF_UIC) | ||
127 | |||
128 | ####### Target | ||
129 | |||
130 | DESTDIR = $(QPEDIR)/bin/ | ||
131 | VER_MAJ = 1 | ||
132 | VER_MIN = 0 | ||
133 | VER_PATCH = 0 | ||
134 | TARGET= qpe | ||
135 | TARGET1 = lib$(TARGET).so.$(VER_MAJ) | ||
136 | |||
137 | ####### Files | ||
138 | |||
139 | HEADERS =server.h \ | ||
140 | serverinterface.h \ | ||
141 | launchertab.h \ | ||
142 | documentlist.h \ | ||
143 | suspendmonitor.h \ | ||
144 | appicons.h \ | ||
145 | taskbar.h \ | ||
146 | runningappbar.h \ | ||
147 | applauncher.h \ | ||
148 | stabmon.h \ | ||
149 | inputmethods.h \ | ||
150 | systray.h \ | ||
151 | wait.h \ | ||
152 | shutdownimpl.h \ | ||
153 | launcher.h \ | ||
154 | launcherview.h \ | ||
155 | $(QPEDIR)/src/settings/calibrate/calibrate.h \ | ||
156 | startmenu.h \ | ||
157 | transferserver.h \ | ||
158 | qcopbridge.h \ | ||
159 | packageslave.h \ | ||
160 | irserver.h \ | ||
161 | firstuse.h \ | ||
162 | $(QPEDIR)/src/3rdparty/libraries/rsync/buf.h \ | ||
163 | $(QPEDIR)/src/3rdparty/libraries/rsync/checksum.h \ | ||
164 | $(QPEDIR)/src/3rdparty/libraries/rsync/command.h \ | ||
165 | $(QPEDIR)/src/3rdparty/libraries/rsync/emit.h \ | ||
166 | $(QPEDIR)/src/3rdparty/libraries/rsync/job.h \ | ||
167 | $(QPEDIR)/src/3rdparty/libraries/rsync/netint.h \ | ||
168 | $(QPEDIR)/src/3rdparty/libraries/rsync/protocol.h \ | ||
169 | $(QPEDIR)/src/3rdparty/libraries/rsync/prototab.h \ | ||
170 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
171 | $(QPEDIR)/src/3rdparty/libraries/rsync/search.h \ | ||
172 | $(QPEDIR)/src/3rdparty/libraries/rsync/stream.h \ | ||
173 | $(QPEDIR)/src/3rdparty/libraries/rsync/sumset.h \ | ||
174 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h \ | ||
175 | $(QPEDIR)/src/3rdparty/libraries/rsync/types.h \ | ||
176 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h \ | ||
177 | $(QPEDIR)/src/3rdparty/libraries/rsync/whole.h \ | ||
178 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
179 | $(QPEDIR)/src/3rdparty/libraries/rsync/qrsync.h \ | ||
180 | syncdialog.h \ | ||
181 | serverapp.h | ||
182 | SOURCES =server.cpp \ | ||
183 | serverinterface.cpp \ | ||
184 | launchertab.cpp \ | ||
185 | documentlist.cpp \ | ||
186 | suspendmonitor.cpp \ | ||
187 | appicons.cpp \ | ||
188 | taskbar.cpp \ | ||
189 | runningappbar.cpp \ | ||
190 | applauncher.cpp \ | ||
191 | stabmon.cpp \ | ||
192 | inputmethods.cpp \ | ||
193 | systray.cpp \ | ||
194 | wait.cpp \ | ||
195 | shutdownimpl.cpp \ | ||
196 | launcher.cpp \ | ||
197 | launcherview.cpp \ | ||
198 | $(QPEDIR)/src/settings/calibrate/calibrate.cpp \ | ||
199 | transferserver.cpp \ | ||
200 | packageslave.cpp \ | ||
201 | irserver.cpp \ | ||
202 | qcopbridge.cpp \ | ||
203 | startmenu.cpp \ | ||
204 | main.cpp \ | ||
205 | firstuse.cpp \ | ||
206 | $(QPEDIR)/src/3rdparty/libraries/rsync/base64.c \ | ||
207 | $(QPEDIR)/src/3rdparty/libraries/rsync/buf.c \ | ||
208 | $(QPEDIR)/src/3rdparty/libraries/rsync/checksum.c \ | ||
209 | $(QPEDIR)/src/3rdparty/libraries/rsync/command.c \ | ||
210 | $(QPEDIR)/src/3rdparty/libraries/rsync/delta.c \ | ||
211 | $(QPEDIR)/src/3rdparty/libraries/rsync/emit.c \ | ||
212 | $(QPEDIR)/src/3rdparty/libraries/rsync/hex.c \ | ||
213 | $(QPEDIR)/src/3rdparty/libraries/rsync/job.c \ | ||
214 | $(QPEDIR)/src/3rdparty/libraries/rsync/mdfour.c \ | ||
215 | $(QPEDIR)/src/3rdparty/libraries/rsync/mksum.c \ | ||
216 | $(QPEDIR)/src/3rdparty/libraries/rsync/msg.c \ | ||
217 | $(QPEDIR)/src/3rdparty/libraries/rsync/netint.c \ | ||
218 | $(QPEDIR)/src/3rdparty/libraries/rsync/patch.c \ | ||
219 | $(QPEDIR)/src/3rdparty/libraries/rsync/prototab.c \ | ||
220 | $(QPEDIR)/src/3rdparty/libraries/rsync/readsums.c \ | ||
221 | $(QPEDIR)/src/3rdparty/libraries/rsync/scoop.c \ | ||
222 | $(QPEDIR)/src/3rdparty/libraries/rsync/search.c \ | ||
223 | $(QPEDIR)/src/3rdparty/libraries/rsync/stats.c \ | ||
224 | $(QPEDIR)/src/3rdparty/libraries/rsync/stream.c \ | ||
225 | $(QPEDIR)/src/3rdparty/libraries/rsync/sumset.c \ | ||
226 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.c \ | ||
227 | $(QPEDIR)/src/3rdparty/libraries/rsync/tube.c \ | ||
228 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.c \ | ||
229 | $(QPEDIR)/src/3rdparty/libraries/rsync/version.c \ | ||
230 | $(QPEDIR)/src/3rdparty/libraries/rsync/whole.c \ | ||
231 | $(QPEDIR)/src/3rdparty/libraries/rsync/qrsync.cpp \ | ||
232 | syncdialog.cpp \ | ||
233 | serverapp.cpp | ||
234 | OBJECTS =$(OBJECTS_DIR)/server.o \ | ||
235 | $(OBJECTS_DIR)/serverinterface.o \ | ||
236 | $(OBJECTS_DIR)/launchertab.o \ | ||
237 | $(OBJECTS_DIR)/documentlist.o \ | ||
238 | $(OBJECTS_DIR)/suspendmonitor.o \ | ||
239 | $(OBJECTS_DIR)/appicons.o \ | ||
240 | $(OBJECTS_DIR)/taskbar.o \ | ||
241 | $(OBJECTS_DIR)/runningappbar.o \ | ||
242 | $(OBJECTS_DIR)/applauncher.o \ | ||
243 | $(OBJECTS_DIR)/stabmon.o \ | ||
244 | $(OBJECTS_DIR)/inputmethods.o \ | ||
245 | $(OBJECTS_DIR)/systray.o \ | ||
246 | $(OBJECTS_DIR)/wait.o \ | ||
247 | $(OBJECTS_DIR)/shutdownimpl.o \ | ||
248 | $(OBJECTS_DIR)/launcher.o \ | ||
249 | $(OBJECTS_DIR)/launcherview.o \ | ||
250 | $(OBJECTS_DIR)/calibrate.o \ | ||
251 | $(OBJECTS_DIR)/transferserver.o \ | ||
252 | $(OBJECTS_DIR)/packageslave.o \ | ||
253 | $(OBJECTS_DIR)/irserver.o \ | ||
254 | $(OBJECTS_DIR)/qcopbridge.o \ | ||
255 | $(OBJECTS_DIR)/startmenu.o \ | ||
256 | $(OBJECTS_DIR)/main.o \ | ||
257 | $(OBJECTS_DIR)/firstuse.o \ | ||
258 | $(OBJECTS_DIR)/base64.o \ | ||
259 | $(OBJECTS_DIR)/buf.o \ | ||
260 | $(OBJECTS_DIR)/checksum.o \ | ||
261 | $(OBJECTS_DIR)/command.o \ | ||
262 | $(OBJECTS_DIR)/delta.o \ | ||
263 | $(OBJECTS_DIR)/emit.o \ | ||
264 | $(OBJECTS_DIR)/hex.o \ | ||
265 | $(OBJECTS_DIR)/job.o \ | ||
266 | $(OBJECTS_DIR)/mdfour.o \ | ||
267 | $(OBJECTS_DIR)/mksum.o \ | ||
268 | $(OBJECTS_DIR)/msg.o \ | ||
269 | $(OBJECTS_DIR)/netint.o \ | ||
270 | $(OBJECTS_DIR)/patch.o \ | ||
271 | $(OBJECTS_DIR)/prototab.o \ | ||
272 | $(OBJECTS_DIR)/readsums.o \ | ||
273 | $(OBJECTS_DIR)/scoop.o \ | ||
274 | $(OBJECTS_DIR)/search.o \ | ||
275 | $(OBJECTS_DIR)/stats.o \ | ||
276 | $(OBJECTS_DIR)/stream.o \ | ||
277 | $(OBJECTS_DIR)/sumset.o \ | ||
278 | $(OBJECTS_DIR)/trace.o \ | ||
279 | $(OBJECTS_DIR)/tube.o \ | ||
280 | $(OBJECTS_DIR)/util.o \ | ||
281 | $(OBJECTS_DIR)/version.o \ | ||
282 | $(OBJECTS_DIR)/whole.o \ | ||
283 | $(OBJECTS_DIR)/qrsync.o \ | ||
284 | $(OBJECTS_DIR)/syncdialog.o \ | ||
285 | $(OBJECTS_DIR)/serverapp.o \ | ||
286 | $(OBJECTS_DIR)/shutdown.o | ||
287 | INTERFACES = shutdown.ui | ||
288 | UICDECLS = shutdown.h | ||
289 | UICIMPLS = shutdown.cpp | ||
290 | SRCMOC =$(MOC_DIR)/moc_server.cpp \ | ||
291 | $(MOC_DIR)/moc_launchertab.cpp \ | ||
292 | $(MOC_DIR)/moc_documentlist.cpp \ | ||
293 | $(MOC_DIR)/moc_suspendmonitor.cpp \ | ||
294 | $(MOC_DIR)/moc_appicons.cpp \ | ||
295 | $(MOC_DIR)/moc_taskbar.cpp \ | ||
296 | $(MOC_DIR)/moc_runningappbar.cpp \ | ||
297 | $(MOC_DIR)/moc_applauncher.cpp \ | ||
298 | $(MOC_DIR)/moc_inputmethods.cpp \ | ||
299 | $(MOC_DIR)/moc_systray.cpp \ | ||
300 | $(MOC_DIR)/moc_shutdownimpl.cpp \ | ||
301 | $(MOC_DIR)/moc_launcher.cpp \ | ||
302 | $(MOC_DIR)/moc_launcherview.cpp \ | ||
303 | $(MOC_DIR)/moc_calibrate.cpp \ | ||
304 | $(MOC_DIR)/moc_startmenu.cpp \ | ||
305 | $(MOC_DIR)/moc_transferserver.cpp \ | ||
306 | $(MOC_DIR)/moc_qcopbridge.cpp \ | ||
307 | $(MOC_DIR)/moc_packageslave.cpp \ | ||
308 | $(MOC_DIR)/moc_irserver.cpp \ | ||
309 | $(MOC_DIR)/moc_firstuse.cpp \ | ||
310 | $(MOC_DIR)/moc_syncdialog.cpp \ | ||
311 | $(MOC_DIR)/moc_serverapp.cpp \ | ||
312 | $(MOC_DIR)/moc_shutdown.cpp \ | ||
313 | $(MOC_DIR)/serverinterface.moc \ | ||
314 | $(MOC_DIR)/documentlist.moc \ | ||
315 | $(MOC_DIR)/appicons.moc \ | ||
316 | $(MOC_DIR)/taskbar.moc \ | ||
317 | $(MOC_DIR)/serverapp.moc | ||
318 | OBJMOC =$(OBJECTS_DIR)/moc_server.o \ | ||
319 | $(OBJECTS_DIR)/moc_launchertab.o \ | ||
320 | $(OBJECTS_DIR)/moc_documentlist.o \ | ||
321 | $(OBJECTS_DIR)/moc_suspendmonitor.o \ | ||
322 | $(OBJECTS_DIR)/moc_appicons.o \ | ||
323 | $(OBJECTS_DIR)/moc_taskbar.o \ | ||
324 | $(OBJECTS_DIR)/moc_runningappbar.o \ | ||
325 | $(OBJECTS_DIR)/moc_applauncher.o \ | ||
326 | $(OBJECTS_DIR)/moc_inputmethods.o \ | ||
327 | $(OBJECTS_DIR)/moc_systray.o \ | ||
328 | $(OBJECTS_DIR)/moc_shutdownimpl.o \ | ||
329 | $(OBJECTS_DIR)/moc_launcher.o \ | ||
330 | $(OBJECTS_DIR)/moc_launcherview.o \ | ||
331 | $(OBJECTS_DIR)/moc_calibrate.o \ | ||
332 | $(OBJECTS_DIR)/moc_startmenu.o \ | ||
333 | $(OBJECTS_DIR)/moc_transferserver.o \ | ||
334 | $(OBJECTS_DIR)/moc_qcopbridge.o \ | ||
335 | $(OBJECTS_DIR)/moc_packageslave.o \ | ||
336 | $(OBJECTS_DIR)/moc_irserver.o \ | ||
337 | $(OBJECTS_DIR)/moc_firstuse.o \ | ||
338 | $(OBJECTS_DIR)/moc_syncdialog.o \ | ||
339 | $(OBJECTS_DIR)/moc_serverapp.o \ | ||
340 | $(OBJECTS_DIR)/moc_shutdown.o | ||
341 | |||
342 | |||
343 | ####### Implicit rules | ||
344 | |||
345 | .SUFFIXES: .cpp .cxx .cc .C .c | ||
346 | |||
347 | .cpp.o: | ||
348 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
349 | |||
350 | .cxx.o: | ||
351 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
352 | |||
353 | .cc.o: | ||
354 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
355 | |||
356 | .C.o: | ||
357 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< | ||
358 | |||
359 | .c.o: | ||
360 | $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< | ||
361 | |||
362 | ####### Build rules | ||
363 | |||
364 | |||
365 | all: $(DESTDIR)$(TARGET) | ||
366 | |||
367 | $(DESTDIR)$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) $(SUBLIBS) | ||
368 | $(SYSCONF_LINK) $(LFLAGS) -o $(DESTDIR)$(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) | ||
369 | |||
370 | moc: $(SRCMOC) | ||
371 | |||
372 | tmake: | ||
373 | tmake server.pro | ||
374 | |||
375 | clean: | ||
376 | -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) | ||
377 | -rm -f *~ core | ||
378 | -rm -f allmoc.cpp | ||
379 | |||
380 | ####### Extension Modules | ||
381 | |||
382 | listpromodules: | ||
383 | @echo | ||
384 | |||
385 | listallmodules: | ||
386 | @echo | ||
387 | |||
388 | listaddonpromodules: | ||
389 | @echo | ||
390 | |||
391 | listaddonentmodules: | ||
392 | @echo | ||
393 | |||
394 | |||
395 | REQUIRES= | ||
396 | |||
397 | ####### Sub-libraries | ||
398 | |||
399 | |||
400 | ###### Combined headers | ||
401 | |||
402 | |||
403 | |||
404 | ####### Compile | ||
405 | |||
406 | $(OBJECTS_DIR)/server.o: server.cpp \ | ||
407 | server.h \ | ||
408 | serverapp.h \ | ||
409 | shutdownimpl.h \ | ||
410 | shutdown.h \ | ||
411 | launcher.h \ | ||
412 | launcherview.h \ | ||
413 | launchertab.h \ | ||
414 | serverinterface.h \ | ||
415 | startmenu.h \ | ||
416 | transferserver.h \ | ||
417 | qcopbridge.h \ | ||
418 | irserver.h \ | ||
419 | packageslave.h \ | ||
420 | $(QPEDIR)/src/settings/calibrate/calibrate.h \ | ||
421 | $(QPEDIR)/src/3rdparty/libraries/rsync/qrsync.h \ | ||
422 | syncdialog.h \ | ||
423 | applauncher.h \ | ||
424 | suspendmonitor.h \ | ||
425 | documentlist.h \ | ||
426 | apps.h \ | ||
427 | ../applications/addressbook/addressbook.h \ | ||
428 | ../applications/datebook/datebook.h \ | ||
429 | ../applications/todo/mainwindow.h \ | ||
430 | ../libraries/qtopiacalc/calculator.h \ | ||
431 | ../applications/clock/clock.h \ | ||
432 | ../applications/helpbrowser/helpbrowser.h \ | ||
433 | ../applications/imageviewer/showimg.h \ | ||
434 | ../applications/mediaplayer/maindocumentwidgetstack.h \ | ||
435 | ../applications/textedit/textedit.h \ | ||
436 | ../games/fifteen/fifteen.h \ | ||
437 | ../games/mindbreaker/mindbreaker.h \ | ||
438 | ../games/minesweep/minesweep.h \ | ||
439 | ../games/qasteroids/toplevel.h \ | ||
440 | ../games/snake/interface.h \ | ||
441 | ../games/solitaire/canvascardwindow.h \ | ||
442 | ../settings/systemtime/settime.h \ | ||
443 | ../settings/appearance/appearance.h | ||
444 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/server.o server.cpp | ||
445 | |||
446 | $(OBJECTS_DIR)/serverinterface.o: serverinterface.cpp \ | ||
447 | $(MOC_DIR)/serverinterface.moc \ | ||
448 | serverinterface.h \ | ||
449 | server.h \ | ||
450 | documentlist.h | ||
451 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/serverinterface.o serverinterface.cpp | ||
452 | |||
453 | $(OBJECTS_DIR)/launchertab.o: launchertab.cpp \ | ||
454 | launchertab.h | ||
455 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/launchertab.o launchertab.cpp | ||
456 | |||
457 | $(OBJECTS_DIR)/documentlist.o: documentlist.cpp \ | ||
458 | $(MOC_DIR)/documentlist.moc \ | ||
459 | documentlist.h \ | ||
460 | serverinterface.h | ||
461 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/documentlist.o documentlist.cpp | ||
462 | |||
463 | $(OBJECTS_DIR)/suspendmonitor.o: suspendmonitor.cpp \ | ||
464 | suspendmonitor.h | ||
465 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/suspendmonitor.o suspendmonitor.cpp | ||
466 | |||
467 | $(OBJECTS_DIR)/appicons.o: appicons.cpp \ | ||
468 | $(MOC_DIR)/appicons.moc \ | ||
469 | appicons.h | ||
470 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/appicons.o appicons.cpp | ||
471 | |||
472 | $(OBJECTS_DIR)/taskbar.o: taskbar.cpp \ | ||
473 | $(MOC_DIR)/taskbar.moc \ | ||
474 | startmenu.h \ | ||
475 | inputmethods.h \ | ||
476 | runningappbar.h \ | ||
477 | systray.h \ | ||
478 | wait.h \ | ||
479 | appicons.h \ | ||
480 | taskbar.h \ | ||
481 | serverinterface.h \ | ||
482 | server.h | ||
483 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/taskbar.o taskbar.cpp | ||
484 | |||
485 | $(OBJECTS_DIR)/runningappbar.o: runningappbar.cpp \ | ||
486 | runningappbar.h \ | ||
487 | serverinterface.h | ||
488 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/runningappbar.o runningappbar.cpp | ||
489 | |||
490 | $(OBJECTS_DIR)/applauncher.o: applauncher.cpp \ | ||
491 | applauncher.h \ | ||
492 | documentlist.h | ||
493 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/applauncher.o applauncher.cpp | ||
494 | |||
495 | $(OBJECTS_DIR)/stabmon.o: stabmon.cpp \ | ||
496 | stabmon.h | ||
497 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/stabmon.o stabmon.cpp | ||
498 | |||
499 | $(OBJECTS_DIR)/inputmethods.o: inputmethods.cpp \ | ||
500 | inputmethods.h \ | ||
501 | ../plugins/inputmethods/handwriting/handwritingimpl.h \ | ||
502 | ../plugins/inputmethods/keyboard/keyboardimpl.h \ | ||
503 | ../3rdparty/plugins/inputmethods/pickboard/pickboardimpl.h | ||
504 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/inputmethods.o inputmethods.cpp | ||
505 | |||
506 | $(OBJECTS_DIR)/systray.o: systray.cpp \ | ||
507 | systray.h \ | ||
508 | ../plugins/applets/clockapplet/clockappletimpl.h | ||
509 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/systray.o systray.cpp | ||
510 | |||
511 | $(OBJECTS_DIR)/wait.o: wait.cpp \ | ||
512 | wait.h | ||
513 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/wait.o wait.cpp | ||
514 | |||
515 | $(OBJECTS_DIR)/shutdownimpl.o: shutdownimpl.cpp \ | ||
516 | shutdownimpl.h \ | ||
517 | shutdown.h | ||
518 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/shutdownimpl.o shutdownimpl.cpp | ||
519 | |||
520 | $(OBJECTS_DIR)/launcher.o: launcher.cpp \ | ||
521 | startmenu.h \ | ||
522 | taskbar.h \ | ||
523 | serverinterface.h \ | ||
524 | launcherview.h \ | ||
525 | launcher.h \ | ||
526 | launchertab.h \ | ||
527 | server.h | ||
528 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/launcher.o launcher.cpp | ||
529 | |||
530 | $(OBJECTS_DIR)/launcherview.o: launcherview.cpp \ | ||
531 | launcherview.h | ||
532 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/launcherview.o launcherview.cpp | ||
533 | |||
534 | $(OBJECTS_DIR)/calibrate.o: $(QPEDIR)/src/settings/calibrate/calibrate.cpp \ | ||
535 | $(QPEDIR)/src/settings/calibrate/calibrate.h | ||
536 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/calibrate.o $(QPEDIR)/src/settings/calibrate/calibrate.cpp | ||
537 | |||
538 | $(OBJECTS_DIR)/transferserver.o: transferserver.cpp \ | ||
539 | transferserver.h | ||
540 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/transferserver.o transferserver.cpp | ||
541 | |||
542 | $(OBJECTS_DIR)/packageslave.o: packageslave.cpp \ | ||
543 | packageslave.h | ||
544 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/packageslave.o packageslave.cpp | ||
545 | |||
546 | $(OBJECTS_DIR)/irserver.o: irserver.cpp \ | ||
547 | irserver.h \ | ||
548 | obexinterface.h | ||
549 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/irserver.o irserver.cpp | ||
550 | |||
551 | $(OBJECTS_DIR)/qcopbridge.o: qcopbridge.cpp \ | ||
552 | qcopbridge.h \ | ||
553 | transferserver.h | ||
554 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/qcopbridge.o qcopbridge.cpp | ||
555 | |||
556 | $(OBJECTS_DIR)/startmenu.o: startmenu.cpp \ | ||
557 | startmenu.h | ||
558 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/startmenu.o startmenu.cpp | ||
559 | |||
560 | $(OBJECTS_DIR)/main.o: main.cpp \ | ||
561 | server.h \ | ||
562 | serverapp.h \ | ||
563 | shutdownimpl.h \ | ||
564 | shutdown.h \ | ||
565 | taskbar.h \ | ||
566 | serverinterface.h \ | ||
567 | startmenu.h \ | ||
568 | stabmon.h \ | ||
569 | launcher.h \ | ||
570 | launcherview.h \ | ||
571 | launchertab.h \ | ||
572 | firstuse.h \ | ||
573 | $(QPEDIR)/src/settings/calibrate/../calibrate/calibrate.h | ||
574 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/main.o main.cpp | ||
575 | |||
576 | $(OBJECTS_DIR)/firstuse.o: firstuse.cpp \ | ||
577 | firstuse.h \ | ||
578 | inputmethods.h \ | ||
579 | applauncher.h \ | ||
580 | serverapp.h \ | ||
581 | shutdownimpl.h \ | ||
582 | shutdown.h \ | ||
583 | ../settings/calibrate/calibrate.h \ | ||
584 | documentlist.h | ||
585 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/firstuse.o firstuse.cpp | ||
586 | |||
587 | $(OBJECTS_DIR)/base64.o: $(QPEDIR)/src/3rdparty/libraries/rsync/base64.c \ | ||
588 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
589 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
590 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h | ||
591 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/base64.o $(QPEDIR)/src/3rdparty/libraries/rsync/base64.c | ||
592 | |||
593 | $(OBJECTS_DIR)/buf.o: $(QPEDIR)/src/3rdparty/libraries/rsync/buf.c \ | ||
594 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
595 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
596 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
597 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h \ | ||
598 | $(QPEDIR)/src/3rdparty/libraries/rsync/buf.h \ | ||
599 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h | ||
600 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/buf.o $(QPEDIR)/src/3rdparty/libraries/rsync/buf.c | ||
601 | |||
602 | $(OBJECTS_DIR)/checksum.o: $(QPEDIR)/src/3rdparty/libraries/rsync/checksum.c \ | ||
603 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
604 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
605 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
606 | $(QPEDIR)/src/3rdparty/libraries/rsync/checksum.h | ||
607 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/checksum.o $(QPEDIR)/src/3rdparty/libraries/rsync/checksum.c | ||
608 | |||
609 | $(OBJECTS_DIR)/command.o: $(QPEDIR)/src/3rdparty/libraries/rsync/command.c \ | ||
610 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
611 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
612 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
613 | $(QPEDIR)/src/3rdparty/libraries/rsync/command.h | ||
614 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/command.o $(QPEDIR)/src/3rdparty/libraries/rsync/command.c | ||
615 | |||
616 | $(OBJECTS_DIR)/delta.o: $(QPEDIR)/src/3rdparty/libraries/rsync/delta.c \ | ||
617 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
618 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
619 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
620 | $(QPEDIR)/src/3rdparty/libraries/rsync/emit.h \ | ||
621 | $(QPEDIR)/src/3rdparty/libraries/rsync/stream.h \ | ||
622 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h \ | ||
623 | $(QPEDIR)/src/3rdparty/libraries/rsync/sumset.h \ | ||
624 | $(QPEDIR)/src/3rdparty/libraries/rsync/job.h \ | ||
625 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h \ | ||
626 | $(QPEDIR)/src/3rdparty/libraries/rsync/checksum.h \ | ||
627 | $(QPEDIR)/src/3rdparty/libraries/rsync/search.h \ | ||
628 | $(QPEDIR)/src/3rdparty/libraries/rsync/types.h | ||
629 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/delta.o $(QPEDIR)/src/3rdparty/libraries/rsync/delta.c | ||
630 | |||
631 | $(OBJECTS_DIR)/emit.o: $(QPEDIR)/src/3rdparty/libraries/rsync/emit.c \ | ||
632 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
633 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
634 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
635 | $(QPEDIR)/src/3rdparty/libraries/rsync/command.h \ | ||
636 | $(QPEDIR)/src/3rdparty/libraries/rsync/protocol.h \ | ||
637 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h \ | ||
638 | $(QPEDIR)/src/3rdparty/libraries/rsync/emit.h \ | ||
639 | $(QPEDIR)/src/3rdparty/libraries/rsync/prototab.h \ | ||
640 | $(QPEDIR)/src/3rdparty/libraries/rsync/netint.h \ | ||
641 | $(QPEDIR)/src/3rdparty/libraries/rsync/sumset.h \ | ||
642 | $(QPEDIR)/src/3rdparty/libraries/rsync/job.h | ||
643 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/emit.o $(QPEDIR)/src/3rdparty/libraries/rsync/emit.c | ||
644 | |||
645 | $(OBJECTS_DIR)/hex.o: $(QPEDIR)/src/3rdparty/libraries/rsync/hex.c \ | ||
646 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
647 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
648 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h | ||
649 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/hex.o $(QPEDIR)/src/3rdparty/libraries/rsync/hex.c | ||
650 | |||
651 | $(OBJECTS_DIR)/job.o: $(QPEDIR)/src/3rdparty/libraries/rsync/job.c \ | ||
652 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
653 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
654 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
655 | $(QPEDIR)/src/3rdparty/libraries/rsync/stream.h \ | ||
656 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h \ | ||
657 | $(QPEDIR)/src/3rdparty/libraries/rsync/sumset.h \ | ||
658 | $(QPEDIR)/src/3rdparty/libraries/rsync/job.h \ | ||
659 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h | ||
660 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/job.o $(QPEDIR)/src/3rdparty/libraries/rsync/job.c | ||
661 | |||
662 | $(OBJECTS_DIR)/mdfour.o: $(QPEDIR)/src/3rdparty/libraries/rsync/mdfour.c \ | ||
663 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
664 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
665 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
666 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h \ | ||
667 | $(QPEDIR)/src/3rdparty/libraries/rsync/types.h | ||
668 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/mdfour.o $(QPEDIR)/src/3rdparty/libraries/rsync/mdfour.c | ||
669 | |||
670 | $(OBJECTS_DIR)/mksum.o: $(QPEDIR)/src/3rdparty/libraries/rsync/mksum.c \ | ||
671 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
672 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
673 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
674 | $(QPEDIR)/src/3rdparty/libraries/rsync/stream.h \ | ||
675 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h \ | ||
676 | $(QPEDIR)/src/3rdparty/libraries/rsync/sumset.h \ | ||
677 | $(QPEDIR)/src/3rdparty/libraries/rsync/job.h \ | ||
678 | $(QPEDIR)/src/3rdparty/libraries/rsync/protocol.h \ | ||
679 | $(QPEDIR)/src/3rdparty/libraries/rsync/netint.h \ | ||
680 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h \ | ||
681 | $(QPEDIR)/src/3rdparty/libraries/rsync/checksum.h | ||
682 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/mksum.o $(QPEDIR)/src/3rdparty/libraries/rsync/mksum.c | ||
683 | |||
684 | $(OBJECTS_DIR)/msg.o: $(QPEDIR)/src/3rdparty/libraries/rsync/msg.c \ | ||
685 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
686 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
687 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h | ||
688 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/msg.o $(QPEDIR)/src/3rdparty/libraries/rsync/msg.c | ||
689 | |||
690 | $(OBJECTS_DIR)/netint.o: $(QPEDIR)/src/3rdparty/libraries/rsync/netint.c \ | ||
691 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
692 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
693 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
694 | $(QPEDIR)/src/3rdparty/libraries/rsync/job.h \ | ||
695 | $(QPEDIR)/src/3rdparty/libraries/rsync/netint.h \ | ||
696 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h \ | ||
697 | $(QPEDIR)/src/3rdparty/libraries/rsync/stream.h | ||
698 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/netint.o $(QPEDIR)/src/3rdparty/libraries/rsync/netint.c | ||
699 | |||
700 | $(OBJECTS_DIR)/patch.o: $(QPEDIR)/src/3rdparty/libraries/rsync/patch.c \ | ||
701 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
702 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
703 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
704 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h \ | ||
705 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h \ | ||
706 | $(QPEDIR)/src/3rdparty/libraries/rsync/protocol.h \ | ||
707 | $(QPEDIR)/src/3rdparty/libraries/rsync/netint.h \ | ||
708 | $(QPEDIR)/src/3rdparty/libraries/rsync/command.h \ | ||
709 | $(QPEDIR)/src/3rdparty/libraries/rsync/sumset.h \ | ||
710 | $(QPEDIR)/src/3rdparty/libraries/rsync/prototab.h \ | ||
711 | $(QPEDIR)/src/3rdparty/libraries/rsync/stream.h \ | ||
712 | $(QPEDIR)/src/3rdparty/libraries/rsync/job.h | ||
713 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/patch.o $(QPEDIR)/src/3rdparty/libraries/rsync/patch.c | ||
714 | |||
715 | $(OBJECTS_DIR)/prototab.o: $(QPEDIR)/src/3rdparty/libraries/rsync/prototab.c \ | ||
716 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
717 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
718 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
719 | $(QPEDIR)/src/3rdparty/libraries/rsync/protocol.h \ | ||
720 | $(QPEDIR)/src/3rdparty/libraries/rsync/command.h \ | ||
721 | $(QPEDIR)/src/3rdparty/libraries/rsync/prototab.h | ||
722 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/prototab.o $(QPEDIR)/src/3rdparty/libraries/rsync/prototab.c | ||
723 | |||
724 | $(OBJECTS_DIR)/readsums.o: $(QPEDIR)/src/3rdparty/libraries/rsync/readsums.c \ | ||
725 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
726 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
727 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
728 | $(QPEDIR)/src/3rdparty/libraries/rsync/sumset.h \ | ||
729 | $(QPEDIR)/src/3rdparty/libraries/rsync/job.h \ | ||
730 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h \ | ||
731 | $(QPEDIR)/src/3rdparty/libraries/rsync/netint.h \ | ||
732 | $(QPEDIR)/src/3rdparty/libraries/rsync/protocol.h \ | ||
733 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h \ | ||
734 | $(QPEDIR)/src/3rdparty/libraries/rsync/stream.h | ||
735 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/readsums.o $(QPEDIR)/src/3rdparty/libraries/rsync/readsums.c | ||
736 | |||
737 | $(OBJECTS_DIR)/scoop.o: $(QPEDIR)/src/3rdparty/libraries/rsync/scoop.c \ | ||
738 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
739 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
740 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
741 | $(QPEDIR)/src/3rdparty/libraries/rsync/job.h \ | ||
742 | $(QPEDIR)/src/3rdparty/libraries/rsync/stream.h \ | ||
743 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h \ | ||
744 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h | ||
745 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/scoop.o $(QPEDIR)/src/3rdparty/libraries/rsync/scoop.c | ||
746 | |||
747 | $(OBJECTS_DIR)/search.o: $(QPEDIR)/src/3rdparty/libraries/rsync/search.c \ | ||
748 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
749 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
750 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
751 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h \ | ||
752 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h \ | ||
753 | $(QPEDIR)/src/3rdparty/libraries/rsync/sumset.h \ | ||
754 | $(QPEDIR)/src/3rdparty/libraries/rsync/search.h \ | ||
755 | $(QPEDIR)/src/3rdparty/libraries/rsync/checksum.h | ||
756 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/search.o $(QPEDIR)/src/3rdparty/libraries/rsync/search.c | ||
757 | |||
758 | $(OBJECTS_DIR)/stats.o: $(QPEDIR)/src/3rdparty/libraries/rsync/stats.c \ | ||
759 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
760 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
761 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
762 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h | ||
763 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/stats.o $(QPEDIR)/src/3rdparty/libraries/rsync/stats.c | ||
764 | |||
765 | $(OBJECTS_DIR)/stream.o: $(QPEDIR)/src/3rdparty/libraries/rsync/stream.c \ | ||
766 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
767 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
768 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
769 | $(QPEDIR)/src/3rdparty/libraries/rsync/stream.h \ | ||
770 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h \ | ||
771 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h | ||
772 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/stream.o $(QPEDIR)/src/3rdparty/libraries/rsync/stream.c | ||
773 | |||
774 | $(OBJECTS_DIR)/sumset.o: $(QPEDIR)/src/3rdparty/libraries/rsync/sumset.c \ | ||
775 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
776 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
777 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
778 | $(QPEDIR)/src/3rdparty/libraries/rsync/sumset.h \ | ||
779 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h \ | ||
780 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h | ||
781 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/sumset.o $(QPEDIR)/src/3rdparty/libraries/rsync/sumset.c | ||
782 | |||
783 | $(OBJECTS_DIR)/trace.o: $(QPEDIR)/src/3rdparty/libraries/rsync/trace.c \ | ||
784 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
785 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
786 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
787 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h \ | ||
788 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h | ||
789 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/trace.o $(QPEDIR)/src/3rdparty/libraries/rsync/trace.c | ||
790 | |||
791 | $(OBJECTS_DIR)/tube.o: $(QPEDIR)/src/3rdparty/libraries/rsync/tube.c \ | ||
792 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
793 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
794 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
795 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h \ | ||
796 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h \ | ||
797 | $(QPEDIR)/src/3rdparty/libraries/rsync/job.h \ | ||
798 | $(QPEDIR)/src/3rdparty/libraries/rsync/stream.h | ||
799 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/tube.o $(QPEDIR)/src/3rdparty/libraries/rsync/tube.c | ||
800 | |||
801 | $(OBJECTS_DIR)/util.o: $(QPEDIR)/src/3rdparty/libraries/rsync/util.c \ | ||
802 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
803 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
804 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h \ | ||
805 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
806 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h | ||
807 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/util.o $(QPEDIR)/src/3rdparty/libraries/rsync/util.c | ||
808 | |||
809 | $(OBJECTS_DIR)/version.o: $(QPEDIR)/src/3rdparty/libraries/rsync/version.c \ | ||
810 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
811 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
812 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h | ||
813 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/version.o $(QPEDIR)/src/3rdparty/libraries/rsync/version.c | ||
814 | |||
815 | $(OBJECTS_DIR)/whole.o: $(QPEDIR)/src/3rdparty/libraries/rsync/whole.c \ | ||
816 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_rsync.h \ | ||
817 | $(QPEDIR)/src/3rdparty/libraries/rsync/config_linux.h \ | ||
818 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h \ | ||
819 | $(QPEDIR)/src/3rdparty/libraries/rsync/trace.h \ | ||
820 | $(QPEDIR)/src/3rdparty/libraries/rsync/fileutil.h \ | ||
821 | $(QPEDIR)/src/3rdparty/libraries/rsync/sumset.h \ | ||
822 | $(QPEDIR)/src/3rdparty/libraries/rsync/job.h \ | ||
823 | $(QPEDIR)/src/3rdparty/libraries/rsync/buf.h \ | ||
824 | $(QPEDIR)/src/3rdparty/libraries/rsync/whole.h \ | ||
825 | $(QPEDIR)/src/3rdparty/libraries/rsync/util.h | ||
826 | $(CC) -c $(CFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/whole.o $(QPEDIR)/src/3rdparty/libraries/rsync/whole.c | ||
827 | |||
828 | $(OBJECTS_DIR)/qrsync.o: $(QPEDIR)/src/3rdparty/libraries/rsync/qrsync.cpp \ | ||
829 | $(QPEDIR)/src/3rdparty/libraries/rsync/qrsync.h \ | ||
830 | $(QPEDIR)/src/3rdparty/libraries/rsync/rsync.h | ||
831 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/qrsync.o $(QPEDIR)/src/3rdparty/libraries/rsync/qrsync.cpp | ||
832 | |||
833 | $(OBJECTS_DIR)/syncdialog.o: syncdialog.cpp \ | ||
834 | syncdialog.h | ||
835 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/syncdialog.o syncdialog.cpp | ||
836 | |||
837 | $(OBJECTS_DIR)/serverapp.o: serverapp.cpp \ | ||
838 | $(MOC_DIR)/serverapp.moc \ | ||
839 | serverapp.h \ | ||
840 | shutdownimpl.h \ | ||
841 | shutdown.h | ||
842 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/serverapp.o serverapp.cpp | ||
843 | |||
844 | shutdown.h: shutdown.ui | ||
845 | $(UIC) shutdown.ui -o $(INTERFACE_DECL_PATH)/shutdown.h | ||
846 | |||
847 | shutdown.cpp: shutdown.ui | ||
848 | $(UIC) shutdown.ui -i shutdown.h -o shutdown.cpp | ||
849 | |||
850 | $(OBJECTS_DIR)/shutdown.o: shutdown.cpp \ | ||
851 | shutdown.h \ | ||
852 | shutdown.ui | ||
853 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/shutdown.o shutdown.cpp | ||
854 | |||
855 | $(OBJECTS_DIR)/moc_server.o: $(MOC_DIR)/moc_server.cpp \ | ||
856 | server.h | ||
857 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_server.o $(MOC_DIR)/moc_server.cpp | ||
858 | |||
859 | $(OBJECTS_DIR)/moc_launchertab.o: $(MOC_DIR)/moc_launchertab.cpp \ | ||
860 | launchertab.h | ||
861 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_launchertab.o $(MOC_DIR)/moc_launchertab.cpp | ||
862 | |||
863 | $(OBJECTS_DIR)/moc_documentlist.o: $(MOC_DIR)/moc_documentlist.cpp \ | ||
864 | documentlist.h | ||
865 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_documentlist.o $(MOC_DIR)/moc_documentlist.cpp | ||
866 | |||
867 | $(OBJECTS_DIR)/moc_suspendmonitor.o: $(MOC_DIR)/moc_suspendmonitor.cpp \ | ||
868 | suspendmonitor.h | ||
869 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_suspendmonitor.o $(MOC_DIR)/moc_suspendmonitor.cpp | ||
870 | |||
871 | $(OBJECTS_DIR)/moc_appicons.o: $(MOC_DIR)/moc_appicons.cpp \ | ||
872 | appicons.h | ||
873 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_appicons.o $(MOC_DIR)/moc_appicons.cpp | ||
874 | |||
875 | $(OBJECTS_DIR)/moc_taskbar.o: $(MOC_DIR)/moc_taskbar.cpp \ | ||
876 | taskbar.h \ | ||
877 | serverinterface.h \ | ||
878 | startmenu.h | ||
879 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_taskbar.o $(MOC_DIR)/moc_taskbar.cpp | ||
880 | |||
881 | $(OBJECTS_DIR)/moc_runningappbar.o: $(MOC_DIR)/moc_runningappbar.cpp \ | ||
882 | runningappbar.h | ||
883 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_runningappbar.o $(MOC_DIR)/moc_runningappbar.cpp | ||
884 | |||
885 | $(OBJECTS_DIR)/moc_applauncher.o: $(MOC_DIR)/moc_applauncher.cpp \ | ||
886 | applauncher.h | ||
887 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_applauncher.o $(MOC_DIR)/moc_applauncher.cpp | ||
888 | |||
889 | $(OBJECTS_DIR)/moc_inputmethods.o: $(MOC_DIR)/moc_inputmethods.cpp \ | ||
890 | inputmethods.h | ||
891 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_inputmethods.o $(MOC_DIR)/moc_inputmethods.cpp | ||
892 | |||
893 | $(OBJECTS_DIR)/moc_systray.o: $(MOC_DIR)/moc_systray.cpp \ | ||
894 | systray.h | ||
895 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_systray.o $(MOC_DIR)/moc_systray.cpp | ||
896 | |||
897 | $(OBJECTS_DIR)/moc_shutdownimpl.o: $(MOC_DIR)/moc_shutdownimpl.cpp \ | ||
898 | shutdownimpl.h \ | ||
899 | shutdown.h | ||
900 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_shutdownimpl.o $(MOC_DIR)/moc_shutdownimpl.cpp | ||
901 | |||
902 | $(OBJECTS_DIR)/moc_launcher.o: $(MOC_DIR)/moc_launcher.cpp \ | ||
903 | launcher.h \ | ||
904 | launcherview.h \ | ||
905 | launchertab.h \ | ||
906 | serverinterface.h | ||
907 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_launcher.o $(MOC_DIR)/moc_launcher.cpp | ||
908 | |||
909 | $(OBJECTS_DIR)/moc_launcherview.o: $(MOC_DIR)/moc_launcherview.cpp \ | ||
910 | launcherview.h | ||
911 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_launcherview.o $(MOC_DIR)/moc_launcherview.cpp | ||
912 | |||
913 | $(OBJECTS_DIR)/moc_calibrate.o: $(MOC_DIR)/moc_calibrate.cpp \ | ||
914 | $(QPEDIR)/src/settings/calibrate/calibrate.h | ||
915 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_calibrate.o $(MOC_DIR)/moc_calibrate.cpp | ||
916 | |||
917 | $(OBJECTS_DIR)/moc_startmenu.o: $(MOC_DIR)/moc_startmenu.cpp \ | ||
918 | startmenu.h | ||
919 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_startmenu.o $(MOC_DIR)/moc_startmenu.cpp | ||
920 | |||
921 | $(OBJECTS_DIR)/moc_transferserver.o: $(MOC_DIR)/moc_transferserver.cpp \ | ||
922 | transferserver.h | ||
923 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_transferserver.o $(MOC_DIR)/moc_transferserver.cpp | ||
924 | |||
925 | $(OBJECTS_DIR)/moc_qcopbridge.o: $(MOC_DIR)/moc_qcopbridge.cpp \ | ||
926 | qcopbridge.h | ||
927 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_qcopbridge.o $(MOC_DIR)/moc_qcopbridge.cpp | ||
928 | |||
929 | $(OBJECTS_DIR)/moc_packageslave.o: $(MOC_DIR)/moc_packageslave.cpp \ | ||
930 | packageslave.h | ||
931 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_packageslave.o $(MOC_DIR)/moc_packageslave.cpp | ||
932 | |||
933 | $(OBJECTS_DIR)/moc_irserver.o: $(MOC_DIR)/moc_irserver.cpp \ | ||
934 | irserver.h | ||
935 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_irserver.o $(MOC_DIR)/moc_irserver.cpp | ||
936 | |||
937 | $(OBJECTS_DIR)/moc_firstuse.o: $(MOC_DIR)/moc_firstuse.cpp \ | ||
938 | firstuse.h | ||
939 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_firstuse.o $(MOC_DIR)/moc_firstuse.cpp | ||
940 | |||
941 | $(OBJECTS_DIR)/moc_syncdialog.o: $(MOC_DIR)/moc_syncdialog.cpp \ | ||
942 | syncdialog.h | ||
943 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_syncdialog.o $(MOC_DIR)/moc_syncdialog.cpp | ||
944 | |||
945 | $(OBJECTS_DIR)/moc_serverapp.o: $(MOC_DIR)/moc_serverapp.cpp \ | ||
946 | serverapp.h \ | ||
947 | shutdownimpl.h \ | ||
948 | shutdown.h | ||
949 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_serverapp.o $(MOC_DIR)/moc_serverapp.cpp | ||
950 | |||
951 | $(OBJECTS_DIR)/moc_shutdown.o: $(MOC_DIR)/moc_shutdown.cpp \ | ||
952 | shutdown.h | ||
953 | $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $(OBJECTS_DIR)/moc_shutdown.o $(MOC_DIR)/moc_shutdown.cpp | ||
954 | |||
955 | $(MOC_DIR)/moc_server.cpp: server.h | ||
956 | $(MOC) server.h -o $(MOC_DIR)/moc_server.cpp | ||
957 | |||
958 | $(MOC_DIR)/moc_launchertab.cpp: launchertab.h | ||
959 | $(MOC) launchertab.h -o $(MOC_DIR)/moc_launchertab.cpp | ||
960 | |||
961 | $(MOC_DIR)/moc_documentlist.cpp: documentlist.h | ||
962 | $(MOC) documentlist.h -o $(MOC_DIR)/moc_documentlist.cpp | ||
963 | |||
964 | $(MOC_DIR)/moc_suspendmonitor.cpp: suspendmonitor.h | ||
965 | $(MOC) suspendmonitor.h -o $(MOC_DIR)/moc_suspendmonitor.cpp | ||
966 | |||
967 | $(MOC_DIR)/moc_appicons.cpp: appicons.h | ||
968 | $(MOC) appicons.h -o $(MOC_DIR)/moc_appicons.cpp | ||
969 | |||
970 | $(MOC_DIR)/moc_taskbar.cpp: taskbar.h | ||
971 | $(MOC) taskbar.h -o $(MOC_DIR)/moc_taskbar.cpp | ||
972 | |||
973 | $(MOC_DIR)/moc_runningappbar.cpp: runningappbar.h | ||
974 | $(MOC) runningappbar.h -o $(MOC_DIR)/moc_runningappbar.cpp | ||
975 | |||
976 | $(MOC_DIR)/moc_applauncher.cpp: applauncher.h | ||
977 | $(MOC) applauncher.h -o $(MOC_DIR)/moc_applauncher.cpp | ||
978 | |||
979 | $(MOC_DIR)/moc_inputmethods.cpp: inputmethods.h | ||
980 | $(MOC) inputmethods.h -o $(MOC_DIR)/moc_inputmethods.cpp | ||
981 | |||
982 | $(MOC_DIR)/moc_systray.cpp: systray.h | ||
983 | $(MOC) systray.h -o $(MOC_DIR)/moc_systray.cpp | ||
984 | |||
985 | $(MOC_DIR)/moc_shutdownimpl.cpp: shutdownimpl.h | ||
986 | $(MOC) shutdownimpl.h -o $(MOC_DIR)/moc_shutdownimpl.cpp | ||
987 | |||
988 | $(MOC_DIR)/moc_launcher.cpp: launcher.h | ||
989 | $(MOC) launcher.h -o $(MOC_DIR)/moc_launcher.cpp | ||
990 | |||
991 | $(MOC_DIR)/moc_launcherview.cpp: launcherview.h | ||
992 | $(MOC) launcherview.h -o $(MOC_DIR)/moc_launcherview.cpp | ||
993 | |||
994 | $(MOC_DIR)/moc_calibrate.cpp: $(QPEDIR)/src/settings/calibrate/calibrate.h | ||
995 | $(MOC) $(QPEDIR)/src/settings/calibrate/calibrate.h -o $(MOC_DIR)/moc_calibrate.cpp | ||
996 | |||
997 | $(MOC_DIR)/moc_startmenu.cpp: startmenu.h | ||
998 | $(MOC) startmenu.h -o $(MOC_DIR)/moc_startmenu.cpp | ||
999 | |||
1000 | $(MOC_DIR)/moc_transferserver.cpp: transferserver.h | ||
1001 | $(MOC) transferserver.h -o $(MOC_DIR)/moc_transferserver.cpp | ||
1002 | |||
1003 | $(MOC_DIR)/moc_qcopbridge.cpp: qcopbridge.h | ||
1004 | $(MOC) qcopbridge.h -o $(MOC_DIR)/moc_qcopbridge.cpp | ||
1005 | |||
1006 | $(MOC_DIR)/moc_packageslave.cpp: packageslave.h | ||
1007 | $(MOC) packageslave.h -o $(MOC_DIR)/moc_packageslave.cpp | ||
1008 | |||
1009 | $(MOC_DIR)/moc_irserver.cpp: irserver.h | ||
1010 | $(MOC) irserver.h -o $(MOC_DIR)/moc_irserver.cpp | ||
1011 | |||
1012 | $(MOC_DIR)/moc_firstuse.cpp: firstuse.h | ||
1013 | $(MOC) firstuse.h -o $(MOC_DIR)/moc_firstuse.cpp | ||
1014 | |||
1015 | $(MOC_DIR)/moc_syncdialog.cpp: syncdialog.h | ||
1016 | $(MOC) syncdialog.h -o $(MOC_DIR)/moc_syncdialog.cpp | ||
1017 | |||
1018 | $(MOC_DIR)/moc_serverapp.cpp: serverapp.h | ||
1019 | $(MOC) serverapp.h -o $(MOC_DIR)/moc_serverapp.cpp | ||
1020 | |||
1021 | $(MOC_DIR)/serverinterface.moc: serverinterface.cpp | ||
1022 | $(MOC) serverinterface.cpp -o $(MOC_DIR)/serverinterface.moc | ||
1023 | |||
1024 | $(MOC_DIR)/documentlist.moc: documentlist.cpp | ||
1025 | $(MOC) documentlist.cpp -o $(MOC_DIR)/documentlist.moc | ||
1026 | |||
1027 | $(MOC_DIR)/appicons.moc: appicons.cpp | ||
1028 | $(MOC) appicons.cpp -o $(MOC_DIR)/appicons.moc | ||
1029 | |||
1030 | $(MOC_DIR)/taskbar.moc: taskbar.cpp | ||
1031 | $(MOC) taskbar.cpp -o $(MOC_DIR)/taskbar.moc | ||
1032 | |||
1033 | $(MOC_DIR)/serverapp.moc: serverapp.cpp | ||
1034 | $(MOC) serverapp.cpp -o $(MOC_DIR)/serverapp.moc | ||
1035 | |||
1036 | $(MOC_DIR)/moc_shutdown.cpp: shutdown.h | ||
1037 | $(MOC) shutdown.h -o $(MOC_DIR)/moc_shutdown.cpp | ||
1038 | |||
1039 | |||
1040 | |||
1041 | lupdate-check: | ||
1042 | @sed -e '/$$$$QTOPIA1DIR[^ ]*/ d' \ | ||
1043 | -e '/$$(.*/ d' \ | ||
1044 | -e 's/^static:.*//' \ | ||
1045 | <server.pro >t$$$$.pro && \ | ||
1046 | rm -rf t$$$$&& \ | ||
1047 | mkdir t$$$$ && \ | ||
1048 | cp -a *.ts t$$$$ && \ | ||
1049 | chmod +w *.ts && \ | ||
1050 | lupdate t$$$$.pro && \ | ||
1051 | rm t$$$$.pro && \ | ||
1052 | for i in *.ts; \ | ||
1053 | do \ | ||
1054 | if cmp -s $$i t$$$$/$$i; \ | ||
1055 | then \ | ||
1056 | true; \ | ||
1057 | else \ | ||
1058 | echo out-of-date $$i; \ | ||
1059 | fi; \ | ||
1060 | rm $$i; \ | ||
1061 | mv t$$$$/$$i $$i; \ | ||
1062 | done && \ | ||
1063 | rmdir t$$$$ | ||
1064 | |||
1065 | lupdate: | ||
1066 | sed -e '/$$$$QTOPIA1DIR[^ ]*/ d' \ | ||
1067 | -e '/$$(.*/ d' \ | ||
1068 | -e 's/^static:.*//' \ | ||
1069 | <server.pro >t$$$$.pro && \ | ||
1070 | lupdate t$$$$.pro && \ | ||
1071 | rm t$$$$.pro | ||
1072 | |||
1073 | lrelease: | ||
1074 | lrelease server.pro | ||
1075 | $(QPEDIR)/bin/qtopia-linstall server.pro | ||
1076 | |||
1077 | |||
1078 | ipkg: $(DESTDIR)$(TARGET) # among other things... | ||
1079 | CTL="$(CONTROL)"; for ctrl in $$CTL; do cd $(QPEDIR)/ipkg; ../bin/mkipks -platform generic $(QPEDIR)/src/$$ctrl ; done | ||
1080 | |||
1081 | package: ipkg | ||
1082 | cd $(QPEDIR)/ipkg; ../bin/mkPackages | ||
1083 | |||
1084 | Makefile: server.pro | ||
1085 | cd $(QPEDIR)/src; ./configure -debug -make server | ||
diff --git a/core/launcher/background.cpp b/core/launcher/background.cpp deleted file mode 100644 index 04ebc37..0000000 --- a/core/launcher/background.cpp +++ b/dev/null | |||
@@ -1,41 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
21 | #include "background.h" | ||
22 | #include "desktop.h" | ||
23 | |||
24 | #include <qpe/resource.h> | ||
25 | |||
26 | #include <qpainter.h> | ||
27 | |||
28 | |||
29 | Background::Background( Desktop *d ) : | ||
30 | QWidget( d, 0, WStyle_Tool | WStyle_Customize ) | ||
31 | { | ||
32 | /* | ||
33 | if ( QPixmap::defaultDepth() < 12 ) { | ||
34 | setBackgroundColor(QColor(0x20, 0xb0, 0x50)); | ||
35 | } else { | ||
36 | setBackgroundPixmap( Resource::loadPixmap( "bg" ) ); | ||
37 | } | ||
38 | */ | ||
39 | setBackgroundMode( PaletteButton ); | ||
40 | } | ||
41 | |||
diff --git a/core/launcher/background.h b/core/launcher/background.h deleted file mode 100644 index 0885747..0000000 --- a/core/launcher/background.h +++ b/dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
21 | #ifndef __BACKGROUND_H__ | ||
22 | #define __BACKGROUND_H__ | ||
23 | |||
24 | |||
25 | #include <qwidget.h> | ||
26 | |||
27 | |||
28 | class Desktop; | ||
29 | |||
30 | |||
31 | class Background : public QWidget { | ||
32 | Q_OBJECT | ||
33 | public: | ||
34 | Background( Desktop *d ); | ||
35 | }; | ||
36 | |||
37 | |||
38 | #endif // __BACKGROUND_H__ | ||
39 | |||
40 | |||
diff --git a/core/launcher/desktop.cpp b/core/launcher/desktop.cpp deleted file mode 100644 index 067a167..0000000 --- a/core/launcher/desktop.cpp +++ b/dev/null | |||
@@ -1,878 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
21 | #include <syslog.h> | ||
22 | |||
23 | #include "desktop.h" | ||
24 | #include "info.h" | ||
25 | #include "launcher.h" | ||
26 | #include "qcopbridge.h" | ||
27 | #include "shutdownimpl.h" | ||
28 | #include "startmenu.h" | ||
29 | #include "taskbar.h" | ||
30 | #include "transferserver.h" | ||
31 | #include "irserver.h" | ||
32 | #include "packageslave.h" | ||
33 | #include "screensaver.h" | ||
34 | |||
35 | #include <qpe/applnk.h> | ||
36 | #include <qpe/mimetype.h> | ||
37 | #include <qpe/password.h> | ||
38 | #include <qpe/config.h> | ||
39 | #include <qpe/power.h> | ||
40 | #include <qpe/timeconversion.h> | ||
41 | #include <qpe/qcopenvelope_qws.h> | ||
42 | #include <qpe/network.h> | ||
43 | #include <qpe/global.h> | ||
44 | |||
45 | #if defined( QT_QWS_SL5XXX ) || defined( QT_QWS_IPAQ ) || defined(QT_QWS_RAMSES) | ||
46 | #include <qpe/custom.h> | ||
47 | #endif | ||
48 | |||
49 | #include <opie/odevice.h> | ||
50 | |||
51 | #include <qgfx_qws.h> | ||
52 | #include <qmainwindow.h> | ||
53 | #include <qmessagebox.h> | ||
54 | #include <qtimer.h> | ||
55 | #include <qwindowsystem_qws.h> | ||
56 | |||
57 | #include <qvaluelist.h> | ||
58 | |||
59 | #include <stdlib.h> | ||
60 | #include <unistd.h> | ||
61 | #include <fcntl.h> | ||
62 | |||
63 | |||
64 | using namespace Opie; | ||
65 | |||
66 | class QCopKeyRegister | ||
67 | { | ||
68 | public: | ||
69 | QCopKeyRegister() : keyCode( 0 ) | ||
70 | { } | ||
71 | QCopKeyRegister( int k, const QCString &c, const QCString &m ) | ||
72 | : keyCode( k ), channel( c ), message( m ) | ||
73 | { } | ||
74 | |||
75 | int getKeyCode() const | ||
76 | { | ||
77 | return keyCode; | ||
78 | } | ||
79 | QCString getChannel() const | ||
80 | { | ||
81 | return channel; | ||
82 | } | ||
83 | QCString getMessage() const | ||
84 | { | ||
85 | return message; | ||
86 | } | ||
87 | |||
88 | private: | ||
89 | int keyCode; | ||
90 | QCString channel, message; | ||
91 | }; | ||
92 | |||
93 | typedef QValueList<QCopKeyRegister> KeyRegisterList; | ||
94 | KeyRegisterList keyRegisterList; | ||
95 | |||
96 | static Desktop* qpedesktop = 0; | ||
97 | static int loggedin = 0; | ||
98 | static void login( bool at_poweron ) | ||
99 | { | ||
100 | if ( !loggedin ) { | ||
101 | Global::terminateBuiltin( "calibrate" ); | ||
102 | Password::authenticate( at_poweron ); | ||
103 | loggedin = 1; | ||
104 | QCopEnvelope e( "QPE/Desktop", "unlocked()" ); | ||
105 | } | ||
106 | } | ||
107 | |||
108 | bool Desktop::screenLocked() | ||
109 | { | ||
110 | return loggedin == 0; | ||
111 | } | ||
112 | |||
113 | /* | ||
114 | Priority is number of alerts that are needed to pop up | ||
115 | alert. | ||
116 | */ | ||
117 | class DesktopPowerAlerter : public QMessageBox | ||
118 | { | ||
119 | public: | ||
120 | DesktopPowerAlerter( QWidget *parent, const char *name = 0 ) | ||
121 | : QMessageBox( tr( "Battery Status" ), "Low Battery", | ||
122 | QMessageBox::Critical, | ||
123 | QMessageBox::Ok | QMessageBox::Default, | ||
124 | QMessageBox::NoButton, QMessageBox::NoButton, | ||
125 | parent, name, FALSE ) | ||
126 | { | ||
127 | currentPriority = INT_MAX; | ||
128 | alertCount = 0; | ||
129 | } | ||
130 | |||
131 | void alert( const QString &text, int priority ); | ||
132 | void hideEvent( QHideEvent * ); | ||
133 | private: | ||
134 | int currentPriority; | ||
135 | int alertCount; | ||
136 | }; | ||
137 | |||
138 | void DesktopPowerAlerter::alert( const QString &text, int priority ) | ||
139 | { | ||
140 | alertCount++; | ||
141 | if ( alertCount < priority ) | ||
142 | return ; | ||
143 | if ( priority > currentPriority ) | ||
144 | return ; | ||
145 | currentPriority = priority; | ||
146 | setText( text ); | ||
147 | show(); | ||
148 | } | ||
149 | |||
150 | |||
151 | void DesktopPowerAlerter::hideEvent( QHideEvent *e ) | ||
152 | { | ||
153 | QMessageBox::hideEvent( e ); | ||
154 | alertCount = 0; | ||
155 | currentPriority = INT_MAX; | ||
156 | } | ||
157 | |||
158 | |||
159 | void DesktopApplication::switchLCD ( bool on ) | ||
160 | { | ||
161 | if ( qApp ) { | ||
162 | DesktopApplication *dapp = (DesktopApplication *) qApp; | ||
163 | |||
164 | if ( dapp-> m_screensaver ) { | ||
165 | if ( on ) { | ||
166 | dapp-> m_screensaver-> setDisplayState ( true ); | ||
167 | dapp-> m_screensaver-> setBacklight ( -3 ); | ||
168 | } | ||
169 | else { | ||
170 | dapp-> m_screensaver-> setDisplayState ( false ); | ||
171 | } | ||
172 | } | ||
173 | } | ||
174 | } | ||
175 | |||
176 | |||
177 | DesktopApplication::DesktopApplication( int& argc, char **argv, Type appType ) | ||
178 | : QPEApplication( argc, argv, appType ) | ||
179 | { | ||
180 | m_ps = new PowerStatus; | ||
181 | m_ps_last = new PowerStatus; | ||
182 | pa = new DesktopPowerAlerter( 0 ); | ||
183 | |||
184 | m_apm_timer = new QTimer ( this ); | ||
185 | connect ( m_apm_timer, SIGNAL( timeout ( )), this, SLOT( apmTimeout ( ))); | ||
186 | reloadPowerWarnSettings ( ); | ||
187 | |||
188 | m_last_button = 0; | ||
189 | m_button_timer = new QTimer ( ); | ||
190 | connect ( m_button_timer, SIGNAL( timeout ( )), this, SLOT( sendHeldAction ( ))); | ||
191 | |||
192 | channel = new QCopChannel( "QPE/System", this ); | ||
193 | connect( channel, SIGNAL( received( const QCString&, const QByteArray& ) ), | ||
194 | this, SLOT( systemMessage( const QCString&, const QByteArray& ) ) ); | ||
195 | |||
196 | channel = new QCopChannel( "QPE/Launcher", this ); | ||
197 | connect( channel, SIGNAL( received( const QCString&, const QByteArray& ) ), | ||
198 | this, SLOT( launcherMessage( const QCString&, const QByteArray& ) ) ); | ||
199 | |||
200 | m_screensaver = new OpieScreenSaver ( ); | ||
201 | m_screensaver-> setInterval ( -1 ); | ||
202 | QWSServer::setScreenSaver( m_screensaver ); | ||
203 | |||
204 | rereadVolumes(); | ||
205 | connect( qApp, SIGNAL( volumeChanged( bool ) ), this, SLOT( rereadVolumes() ) ); | ||
206 | |||
207 | apmTimeout ( ); | ||
208 | |||
209 | grabKeyboard ( ); | ||
210 | } | ||
211 | |||
212 | |||
213 | DesktopApplication::~DesktopApplication() | ||
214 | { | ||
215 | ungrabKeyboard ( ); | ||
216 | |||
217 | delete m_ps; | ||
218 | delete m_ps_last; | ||
219 | delete pa; | ||
220 | } | ||
221 | |||
222 | void DesktopApplication::apmTimeout() | ||
223 | { | ||
224 | qpedesktop-> checkMemory ( ); // in case no events are being generated | ||
225 | |||
226 | *m_ps_last = *m_ps; | ||
227 | *m_ps = PowerStatusManager::readStatus(); | ||
228 | |||
229 | if ( m_ps-> acStatus ( ) != m_ps_last-> acStatus ( )) | ||
230 | m_screensaver-> powerStatusChanged ( *m_ps ); | ||
231 | |||
232 | if ( m_ps-> acStatus ( ) != PowerStatus::Online ) { | ||
233 | int bat = m_ps-> batteryPercentRemaining ( ); | ||
234 | |||
235 | if ( bat < m_ps_last-> batteryPercentRemaining ( )) { | ||
236 | if ( bat <= m_powerCritical ) | ||
237 | pa->alert( tr( "Battery level is critical!\nKeep power off until power restored!" ), 1 ); | ||
238 | else if ( bat <= m_powerVeryLow ) | ||
239 | pa->alert( tr( "Battery is running very low." ), 2 ); | ||
240 | } | ||
241 | if ( m_ps-> backupBatteryStatus ( ) == PowerStatus::VeryLow ) | ||
242 | pa->alert( tr( "The Back-up battery is very low.\nPlease charge the back-up battery." ), 2 ); | ||
243 | } | ||
244 | } | ||
245 | |||
246 | |||
247 | void DesktopApplication::systemMessage( const QCString & msg, const QByteArray & data ) | ||
248 | { | ||
249 | QDataStream stream ( data, IO_ReadOnly ); | ||
250 | |||
251 | if ( msg == "setScreenSaverInterval(int)" ) { | ||
252 | int time; | ||
253 | stream >> time; | ||
254 | m_screensaver-> setInterval( time ); | ||
255 | } | ||
256 | else if ( msg == "setScreenSaverIntervals(int,int,int)" ) { | ||
257 | int t1, t2, t3; | ||
258 | stream >> t1 >> t2 >> t3; | ||
259 | m_screensaver-> setIntervals( t1, t2, t3 ); | ||
260 | } | ||
261 | else if ( msg == "setBacklight(int)" ) { | ||
262 | int bright; | ||
263 | stream >> bright; | ||
264 | m_screensaver-> setBacklight( bright ); | ||
265 | } | ||
266 | else if ( msg == "setScreenSaverMode(int)" ) { | ||
267 | int mode; | ||
268 | stream >> mode; | ||
269 | m_screensaver-> setMode ( mode ); | ||
270 | } | ||
271 | else if ( msg == "reloadPowerWarnSettings()" ) { | ||
272 | reloadPowerWarnSettings(); | ||
273 | } | ||
274 | else if ( msg == "setDisplayState(int)" ) { | ||
275 | int state; | ||
276 | stream >> state; | ||
277 | m_screensaver-> setDisplayState ( state != 0 ); | ||
278 | } | ||
279 | else if ( msg == "suspend()" ) { | ||
280 | emit power(); | ||
281 | } | ||
282 | else if ( msg == "sendBusinessCard()" ) { | ||
283 | QString card = ::getenv ( "HOME" ); | ||
284 | card += "/Applications/addressbook/businesscard.vcf"; | ||
285 | |||
286 | if ( QFile::exists( card ) ) { | ||
287 | QCopEnvelope e ( "QPE/Obex", "send(QString,QString,QString)" ); | ||
288 | QString mimetype = "text/x-vCard"; | ||
289 | e << tr( "business card" ) << card << mimetype; | ||
290 | } | ||
291 | } | ||
292 | } | ||
293 | |||
294 | void DesktopApplication::reloadPowerWarnSettings ( ) | ||
295 | { | ||
296 | Config cfg ( "apm" ); | ||
297 | cfg. setGroup ( "Warnings" ); | ||
298 | |||
299 | int iv = cfg. readNumEntry ( "checkinterval", 10000 ); | ||
300 | |||
301 | m_apm_timer-> stop ( ); | ||
302 | if ( iv ) | ||
303 | m_apm_timer-> start ( iv ); | ||
304 | |||
305 | m_powerVeryLow = cfg. readNumEntry ( "powerverylow", 10 ); | ||
306 | m_powerCritical = cfg. readNumEntry ( "powervcritical", 5 ); | ||
307 | } | ||
308 | |||
309 | |||
310 | enum MemState { Unknown, VeryLow, Low, Normal } memstate = Unknown; | ||
311 | |||
312 | |||
313 | void DesktopApplication::launcherMessage( const QCString & msg, const QByteArray & data ) | ||
314 | { | ||
315 | QDataStream stream ( data, IO_ReadOnly ); | ||
316 | |||
317 | if ( msg == "deviceButton(int,int,int)" ) { | ||
318 | int keycode, press, autoRepeat; | ||
319 | stream >> keycode >> press >> autoRepeat; | ||
320 | |||
321 | const ODeviceButton *db = ODevice::inst ( )-> buttonForKeycode ( keycode ); | ||
322 | |||
323 | if ( db ) | ||
324 | checkButtonAction ( db, keycode, press, autoRepeat ); | ||
325 | } | ||
326 | else if ( msg == "keyRegister(int,QCString,QCString)" ) { | ||
327 | int k; | ||
328 | QCString c, m; | ||
329 | stream >> k >> c >> m; | ||
330 | |||
331 | keyRegisterList.append ( QCopKeyRegister ( k, c, m )); | ||
332 | } | ||
333 | } | ||
334 | |||
335 | void DesktopApplication::sendHeldAction ( ) | ||
336 | { | ||
337 | if ( m_last_button ) { | ||
338 | m_last_button-> heldAction ( ). send ( ); | ||
339 | m_last_button = 0; | ||
340 | } | ||
341 | } | ||
342 | |||
343 | |||
344 | |||
345 | bool DesktopApplication::checkButtonAction ( const ODeviceButton *db, int /*keycode*/, bool press, bool autoRepeat ) | ||
346 | { | ||
347 | if ( db ) { | ||
348 | if ( !press && !autoRepeat && m_button_timer-> isActive ( )) { | ||
349 | m_button_timer-> stop ( ); | ||
350 | |||
351 | if (!db-> pressedAction ( ). channel ( ) .isEmpty()) | ||
352 | { | ||
353 | |||
354 | if ( db-> pressedAction ( ). channel ( )!="ignore") { | ||
355 | |||
356 | db-> pressedAction ( ). send ( ); | ||
357 | } | ||
358 | else | ||
359 | return false; | ||
360 | } | ||
361 | } | ||
362 | else if ( press && !autoRepeat ) { | ||
363 | m_button_timer-> stop ( ); | ||
364 | if (!db-> pressedAction ( ). channel ( ) .isEmpty()) | ||
365 | { | ||
366 | |||
367 | if ( db-> heldAction ( ). channel ( )!="ignore") { | ||
368 | m_last_button = db; | ||
369 | m_button_timer-> start ( ODevice::inst ( )-> buttonHoldTime ( ), true ); | ||
370 | } | ||
371 | else return false; | ||
372 | } | ||
373 | } | ||
374 | } | ||
375 | return true; | ||
376 | } | ||
377 | |||
378 | bool DesktopApplication::eventFilter ( QObject *o, QEvent *e ) | ||
379 | { | ||
380 | |||
381 | if ( e-> type ( ) == QEvent::KeyPress || e-> type ( ) == QEvent::KeyRelease ) { | ||
382 | QKeyEvent *ke = (QKeyEvent *) e; | ||
383 | |||
384 | const ODeviceButton *db = ODevice::inst ( )-> buttonForKeycode ( ke-> key ( )); | ||
385 | |||
386 | if ( db ) { | ||
387 | if (checkButtonAction ( db, ke-> key ( ), e-> type ( ) == QEvent::KeyPress, ke-> isAutoRepeat ( ))) | ||
388 | return true; //checkButtonAction retrune false if events should be routed through | ||
389 | } | ||
390 | } | ||
391 | return QPEApplication::eventFilter ( o, e ); | ||
392 | } | ||
393 | |||
394 | #ifdef Q_WS_QWS | ||
395 | |||
396 | bool DesktopApplication::qwsEventFilter( QWSEvent *e ) | ||
397 | { | ||
398 | qpedesktop->checkMemory(); | ||
399 | |||
400 | if ( e->type == QWSEvent::Key ) { | ||
401 | QWSKeyEvent * ke = (QWSKeyEvent *) e; | ||
402 | ushort keycode = ke-> simpleData. keycode; | ||
403 | |||
404 | if ( !loggedin && keycode != Key_F34 ) | ||
405 | return true; | ||
406 | |||
407 | bool press = ke-> simpleData. is_press; | ||
408 | bool autoRepeat = ke-> simpleData. is_auto_repeat; | ||
409 | |||
410 | if ( !keyboardGrabbed ( )) { | ||
411 | // app that registers key/message to be sent back to the app, when it doesn't have focus, | ||
412 | // when user presses key, unless keyboard has been requested from app. | ||
413 | // will not send multiple repeats if user holds key | ||
414 | // i.e. one shot | ||
415 | |||
416 | if ( keycode != 0 && press && !autoRepeat ) { | ||
417 | for ( KeyRegisterList::Iterator it = keyRegisterList.begin(); it != keyRegisterList.end(); ++it ) { | ||
418 | if (( *it ). getKeyCode ( ) == keycode ) { | ||
419 | QCopEnvelope (( *it ). getChannel ( ), ( *it ). getMessage ( )); | ||
420 | return true; | ||
421 | } | ||
422 | } | ||
423 | } | ||
424 | } | ||
425 | |||
426 | if ( keycode == HardKey_Suspend ) { | ||
427 | if ( press ) | ||
428 | emit power ( ); | ||
429 | return true; | ||
430 | } | ||
431 | else if ( keycode == HardKey_Backlight ) { | ||
432 | if ( press ) | ||
433 | emit backlight ( ); | ||
434 | return true; | ||
435 | } | ||
436 | else if ( keycode == Key_F32 ) { | ||
437 | if ( press ) | ||
438 | QCopEnvelope e( "QPE/Desktop", "startSync()" ); | ||
439 | return true; | ||
440 | } | ||
441 | else if ( keycode == Key_F31 && !ke-> simpleData. modifiers ) { // Symbol Key -> show Unicode IM | ||
442 | if ( press ) | ||
443 | emit symbol ( ); | ||
444 | return true; | ||
445 | } | ||
446 | else if ( keycode == Key_NumLock ) { | ||
447 | if ( press ) | ||
448 | emit numLockStateToggle ( ); | ||
449 | } | ||
450 | else if ( keycode == Key_CapsLock ) { | ||
451 | if ( press ) | ||
452 | emit capsLockStateToggle(); | ||
453 | } | ||
454 | if (( press && !autoRepeat ) || ( !press && autoRepeat )) { | ||
455 | if ( m_keyclick_sound ) | ||
456 | ODevice::inst ( )-> keySound ( ); | ||
457 | } | ||
458 | } | ||
459 | else if ( e-> type == QWSEvent::Mouse ) { | ||
460 | QWSMouseEvent * me = ( QWSMouseEvent * ) e; | ||
461 | static bool up = true; | ||
462 | |||
463 | if ( me-> simpleData. state & LeftButton ) { | ||
464 | if ( up ) { | ||
465 | up = false; | ||
466 | if ( m_screentap_sound ) | ||
467 | ODevice::inst ( ) -> touchSound ( ); | ||
468 | } | ||
469 | } | ||
470 | else { | ||
471 | up = true; | ||
472 | } | ||
473 | } | ||
474 | |||
475 | return QPEApplication::qwsEventFilter ( e ); | ||
476 | } | ||
477 | #endif | ||
478 | |||
479 | |||
480 | |||
481 | #if defined(QPE_HAVE_MEMALERTER) | ||
482 | QPE_MEMALERTER_IMPL | ||
483 | #endif | ||
484 | |||
485 | //=========================================================================== | ||
486 | |||
487 | Desktop::Desktop() : | ||
488 | QWidget( 0, 0, WStyle_Tool | WStyle_Customize ), | ||
489 | qcopBridge( 0 ), | ||
490 | transferServer( 0 ), | ||
491 | packageSlave( 0 ) | ||
492 | { | ||
493 | qpedesktop = this; | ||
494 | |||
495 | // bg = new Info( this ); | ||
496 | tb = new TaskBar; | ||
497 | |||
498 | launcher = new Launcher( 0, 0, WStyle_Customize | QWidget::WGroupLeader ); | ||
499 | |||
500 | connect( launcher, SIGNAL( busy() ), tb, SLOT( startWait() ) ); | ||
501 | connect( launcher, SIGNAL( notBusy( const QString& ) ), tb, SLOT( stopWait( const QString& ) ) ); | ||
502 | |||
503 | int displayw = qApp->desktop() ->width(); | ||
504 | int displayh = qApp->desktop() ->height(); | ||
505 | |||
506 | |||
507 | QSize sz = tb->sizeHint(); | ||
508 | |||
509 | setGeometry( 0, displayh - sz.height(), displayw, sz.height() ); | ||
510 | layout(); | ||
511 | |||
512 | tb->show(); | ||
513 | launcher->showMaximized(); | ||
514 | launcher->show(); | ||
515 | launcher->raise(); | ||
516 | #if defined(QPE_HAVE_MEMALERTER) | ||
517 | |||
518 | initMemalerter(); | ||
519 | #endif | ||
520 | // start services | ||
521 | startTransferServer(); | ||
522 | ( void ) new IrServer( this ); | ||
523 | |||
524 | packageSlave = new PackageSlave( this ); | ||
525 | |||
526 | qApp->installEventFilter( this ); | ||
527 | qApp->desktop()->installEventFilter( this ); | ||
528 | |||
529 | qApp-> setMainWidget ( launcher ); | ||
530 | } | ||
531 | |||
532 | void Desktop::show() | ||
533 | { | ||
534 | login( TRUE ); | ||
535 | QWidget::show(); | ||
536 | } | ||
537 | |||
538 | Desktop::~Desktop() | ||
539 | { | ||
540 | delete launcher; | ||
541 | delete tb; | ||
542 | delete qcopBridge; | ||
543 | delete transferServer; | ||
544 | } | ||
545 | |||
546 | bool Desktop::recoverMemory() | ||
547 | { | ||
548 | return tb->recoverMemory(); | ||
549 | } | ||
550 | |||
551 | void Desktop::checkMemory() | ||
552 | { | ||
553 | #if defined(QPE_HAVE_MEMALERTER) | ||
554 | static bool ignoreNormal = FALSE; | ||
555 | static bool existingMessage = FALSE; | ||
556 | |||
557 | if ( existingMessage ) | ||
558 | return ; // don't show a second message while still on first | ||
559 | |||
560 | existingMessage = TRUE; | ||
561 | switch ( memstate ) { | ||
562 | case Unknown: | ||
563 | break; | ||
564 | case Low: | ||
565 | memstate = Unknown; | ||
566 | if ( recoverMemory() ) | ||
567 | ignoreNormal = TRUE; | ||
568 | else | ||
569 | QMessageBox::warning( 0 , "Memory Status", | ||
570 | "The memory smacks of shortage. \n" | ||
571 | "Please save data. " ); | ||
572 | break; | ||
573 | case Normal: | ||
574 | memstate = Unknown; | ||
575 | if ( ignoreNormal ) | ||
576 | ignoreNormal = FALSE; | ||
577 | // else | ||
578 | // QMessageBox::information ( 0 , "Memory Status", | ||
579 | // "There is enough memory again." ); | ||
580 | break; | ||
581 | case VeryLow: | ||
582 | memstate = Unknown; | ||
583 | QMessageBox::critical( 0 , "Memory Status", | ||
584 | "The memory is very low. \n" | ||
585 | "Please end this application \n" | ||
586 | "immediately." ); | ||
587 | recoverMemory(); | ||
588 | } | ||
589 | existingMessage = FALSE; | ||
590 | #endif | ||
591 | } | ||
592 | |||
593 | static bool isVisibleWindow( int wid ) | ||
594 | { | ||
595 | #ifdef QWS | ||
596 | const QList<QWSWindow> &list = qwsServer->clientWindows(); | ||
597 | QWSWindow* w; | ||
598 | for ( QListIterator<QWSWindow> it( list ); ( w = it.current() ); ++it ) { | ||
599 | if ( w->winId() == wid ) | ||
600 | return !w->isFullyObscured(); | ||
601 | } | ||
602 | #endif | ||
603 | return FALSE; | ||
604 | } | ||
605 | |||
606 | static bool hasVisibleWindow( const QString& clientname ) | ||
607 | { | ||
608 | #ifdef QWS | ||
609 | const QList<QWSWindow> &list = qwsServer->clientWindows(); | ||
610 | QWSWindow* w; | ||
611 | for ( QListIterator<QWSWindow> it( list ); ( w = it.current() ); ++it ) { | ||
612 | if ( w->client() ->identity() == clientname && !w->isFullyObscured() ) | ||
613 | return TRUE; | ||
614 | } | ||
615 | #endif | ||
616 | return FALSE; | ||
617 | } | ||
618 | |||
619 | |||
620 | void Desktop::executeOrModify( const QString& appLnkFile ) | ||
621 | { | ||
622 | AppLnk lnk( MimeType::appsFolderName() + "/" + appLnkFile ); | ||
623 | if ( lnk.isValid() ) { | ||
624 | QCString app = lnk.exec().utf8(); | ||
625 | Global::terminateBuiltin( "calibrate" ); | ||
626 | if ( QCopChannel::isRegistered( "QPE/Application/" + app ) ) { | ||
627 | // MRUList::addTask( &lnk ); | ||
628 | if ( hasVisibleWindow( app ) ) | ||
629 | QCopChannel::send( "QPE/Application/" + app, "nextView()" ); | ||
630 | else | ||
631 | QCopChannel::send( "QPE/Application/" + app, "raise()" ); | ||
632 | } | ||
633 | else { | ||
634 | lnk.execute(); | ||
635 | } | ||
636 | } | ||
637 | } | ||
638 | |||
639 | // autoStarts apps on resume and start | ||
640 | void Desktop::execAutoStart() | ||
641 | { | ||
642 | QString appName; | ||
643 | int delay; | ||
644 | QDateTime now = QDateTime::currentDateTime(); | ||
645 | Config cfg( "autostart" ); | ||
646 | cfg.setGroup( "AutoStart" ); | ||
647 | appName = cfg.readEntry( "Apps", "" ); | ||
648 | delay = ( cfg.readEntry( "Delay", "0" ) ).toInt(); | ||
649 | // If the time between suspend and resume was longer then the | ||
650 | // value saved as delay, start the app | ||
651 | if ( suspendTime.secsTo( now ) >= ( delay * 60 ) && !appName.isEmpty() ) { | ||
652 | QCopEnvelope e( "QPE/System", "execute(QString)" ); | ||
653 | e << QString( appName ); | ||
654 | } | ||
655 | } | ||
656 | |||
657 | #if defined(QPE_HAVE_TOGGLELIGHT) | ||
658 | #include <qpe/config.h> | ||
659 | |||
660 | #include <sys/ioctl.h> | ||
661 | #include <sys/types.h> | ||
662 | #include <fcntl.h> | ||
663 | #include <unistd.h> | ||
664 | #include <errno.h> | ||
665 | #include <linux/ioctl.h> | ||
666 | #include <time.h> | ||
667 | #endif | ||
668 | |||
669 | |||
670 | void Desktop::togglePower() | ||
671 | { | ||
672 | static bool excllock = false; | ||
673 | |||
674 | if ( excllock ) | ||
675 | return ; | ||
676 | |||
677 | excllock = true; | ||
678 | |||
679 | bool wasloggedin = loggedin; | ||
680 | loggedin = 0; | ||
681 | suspendTime = QDateTime::currentDateTime(); | ||
682 | |||
683 | #ifdef QWS | ||
684 | |||
685 | if ( Password::needToAuthenticate ( true ) && qt_screen ) { | ||
686 | // Should use a big black window instead. | ||
687 | // But this would not show up fast enough | ||
688 | QGfx *g = qt_screen-> screenGfx ( ); | ||
689 | g-> fillRect ( 0, 0, qt_screen-> width ( ), qt_screen-> height ( )); | ||
690 | delete g; | ||
691 | } | ||
692 | #endif | ||
693 | |||
694 | ODevice::inst ( )-> suspend ( ); | ||
695 | |||
696 | DesktopApplication::switchLCD ( true ); // force LCD on without slow qcop call | ||
697 | QWSServer::screenSaverActivate ( false ); | ||
698 | |||
699 | { | ||
700 | QCopEnvelope( "QPE/Card", "mtabChanged()" ); // might have changed while asleep | ||
701 | } | ||
702 | |||
703 | if ( wasloggedin ) | ||
704 | login ( true ); | ||
705 | |||
706 | execAutoStart(); | ||
707 | //qcopBridge->closeOpenConnections(); | ||
708 | |||
709 | excllock = false; | ||
710 | } | ||
711 | |||
712 | void Desktop::toggleLight() | ||
713 | { | ||
714 | QCopEnvelope e( "QPE/System", "setBacklight(int)" ); | ||
715 | e << -2; // toggle | ||
716 | } | ||
717 | |||
718 | void Desktop::toggleSymbolInput() | ||
719 | { | ||
720 | tb->toggleSymbolInput(); | ||
721 | } | ||
722 | |||
723 | void Desktop::toggleNumLockState() | ||
724 | { | ||
725 | tb->toggleNumLockState(); | ||
726 | } | ||
727 | |||
728 | void Desktop::toggleCapsLockState() | ||
729 | { | ||
730 | tb->toggleCapsLockState(); | ||
731 | } | ||
732 | |||
733 | void Desktop::styleChange( QStyle &s ) | ||
734 | { | ||
735 | QWidget::styleChange( s ); | ||
736 | layout(); | ||
737 | } | ||
738 | |||
739 | void DesktopApplication::shutdown() | ||
740 | { | ||
741 | if ( type() != GuiServer ) | ||
742 | return ; | ||
743 | ShutdownImpl *sd = new ShutdownImpl( 0, 0, WDestructiveClose ); | ||
744 | connect( sd, SIGNAL( shutdown( ShutdownImpl::Type ) ), | ||
745 | this, SLOT( shutdown( ShutdownImpl::Type ) ) ); | ||
746 | sd->showMaximized(); | ||
747 | } | ||
748 | |||
749 | void DesktopApplication::shutdown( ShutdownImpl::Type t ) | ||
750 | { | ||
751 | char *opt = 0; | ||
752 | |||
753 | switch ( t ) { | ||
754 | case ShutdownImpl::ShutdownSystem: | ||
755 | opt = "-h"; | ||
756 | // fall through | ||
757 | case ShutdownImpl::RebootSystem: | ||
758 | if ( opt == 0 ) | ||
759 | opt = "-r"; | ||
760 | |||
761 | if ( execl( "/sbin/shutdown", "shutdown", opt, "now", ( void* ) 0) < 0 ) | ||
762 | perror("shutdown"); | ||
763 | // ::syslog ( LOG_ERR, "Erroring execing shutdown\n" ); | ||
764 | |||
765 | break; | ||
766 | case ShutdownImpl::RestartDesktop: | ||
767 | restart(); | ||
768 | break; | ||
769 | case ShutdownImpl::TerminateDesktop: | ||
770 | prepareForTermination( FALSE ); | ||
771 | |||
772 | // This is a workaround for a Qt bug | ||
773 | // clipboard applet has to stop its poll timer, or Qt/E | ||
774 | // will hang on quit() right before it emits aboutToQuit() | ||
775 | emit aboutToQuit ( ); | ||
776 | |||
777 | quit(); | ||
778 | break; | ||
779 | } | ||
780 | } | ||
781 | |||
782 | void DesktopApplication::restart() | ||
783 | { | ||
784 | prepareForTermination( TRUE ); | ||
785 | |||
786 | #ifdef Q_WS_QWS | ||
787 | |||
788 | for ( int fd = 3; fd < 100; fd++ ) | ||
789 | close( fd ); | ||
790 | #if defined(QT_DEMO_SINGLE_FLOPPY) | ||
791 | |||
792 | execl( "/sbin/init", "qpe", 0 ); | ||
793 | #elif defined(QT_QWS_CASSIOPEIA) | ||
794 | |||
795 | execl( "/bin/sh", "sh", 0 ); | ||
796 | #else | ||
797 | |||
798 | execl( ( qpeDir() + "/bin/qpe" ).latin1(), "qpe", 0 ); | ||
799 | #endif | ||
800 | |||
801 | exit( 1 ); | ||
802 | #endif | ||
803 | } | ||
804 | |||
805 | void Desktop::layout() | ||
806 | { | ||
807 | int displayw = qApp->desktop() ->width(); | ||
808 | int displayh = qApp->desktop() ->height(); | ||
809 | |||
810 | QSize sz = tb->sizeHint(); | ||
811 | |||
812 | tb->setGeometry( 0, displayh - sz.height(), displayw, sz.height() ); | ||
813 | tb->calcMaxWindowRect(); | ||
814 | } | ||
815 | |||
816 | void Desktop::startTransferServer() | ||
817 | { | ||
818 | // start qcop bridge server | ||
819 | qcopBridge = new QCopBridge( 4243 ); | ||
820 | if ( !qcopBridge->ok() ) { | ||
821 | delete qcopBridge; | ||
822 | qcopBridge = 0; | ||
823 | } | ||
824 | // start transfer server | ||
825 | transferServer = new TransferServer( 4242 ); | ||
826 | if ( !transferServer->ok() ) { | ||
827 | delete transferServer; | ||
828 | transferServer = 0; | ||
829 | } | ||
830 | if ( !transferServer || !qcopBridge ) | ||
831 | startTimer( 2000 ); | ||
832 | } | ||
833 | |||
834 | void Desktop::timerEvent( QTimerEvent *e ) | ||
835 | { | ||
836 | killTimer( e->timerId() ); | ||
837 | startTransferServer(); | ||
838 | } | ||
839 | |||
840 | bool Desktop::eventFilter( QObject *o, QEvent *ev ) | ||
841 | { | ||
842 | if ( o != qApp->desktop() || ev->type() != QEvent::Resize ) | ||
843 | return QWidget::eventFilter( o, ev ); | ||
844 | |||
845 | layout(); | ||
846 | |||
847 | return QWidget::eventFilter( o, ev ); | ||
848 | } | ||
849 | |||
850 | void Desktop::terminateServers() | ||
851 | { | ||
852 | delete transferServer; | ||
853 | delete qcopBridge; | ||
854 | transferServer = 0; | ||
855 | qcopBridge = 0; | ||
856 | } | ||
857 | |||
858 | void DesktopApplication::rereadVolumes() | ||
859 | { | ||
860 | Config cfg( "qpe" ); | ||
861 | cfg. setGroup ( "Volume" ); | ||
862 | |||
863 | m_screentap_sound = cfg. readBoolEntry ( "TouchSound" ); | ||
864 | m_keyclick_sound = cfg. readBoolEntry ( "KeySound" ); | ||
865 | m_alarm_sound = cfg. readBoolEntry ( "AlarmSound" ); | ||
866 | } | ||
867 | |||
868 | void DesktopApplication::soundAlarm() | ||
869 | { | ||
870 | if ( me ( )-> m_alarm_sound ) | ||
871 | ODevice::inst ( )-> alarmSound ( ); | ||
872 | } | ||
873 | |||
874 | DesktopApplication *DesktopApplication::me ( ) | ||
875 | { | ||
876 | return (DesktopApplication *) qApp; | ||
877 | } | ||
878 | |||
diff --git a/core/launcher/desktop.h b/core/launcher/desktop.h deleted file mode 100644 index 86d8aa8..0000000 --- a/core/launcher/desktop.h +++ b/dev/null | |||
@@ -1,157 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
21 | #ifndef __DESKTOP_H__ | ||
22 | #define __DESKTOP_H__ | ||
23 | |||
24 | |||
25 | #include "shutdownimpl.h" | ||
26 | |||
27 | #include <qpe/qpeapplication.h> | ||
28 | #include <opie/odevicebutton.h> | ||
29 | |||
30 | #include <qwidget.h> | ||
31 | #include <qdatetime.h> | ||
32 | |||
33 | class Background; | ||
34 | class Launcher; | ||
35 | class TaskBar; | ||
36 | class PowerStatus; | ||
37 | class QCopBridge; | ||
38 | class TransferServer; | ||
39 | class DesktopPowerAlerter; | ||
40 | class PackageSlave; | ||
41 | class OpieScreenSaver; | ||
42 | |||
43 | class DesktopApplication : public QPEApplication | ||
44 | { | ||
45 | Q_OBJECT | ||
46 | public: | ||
47 | DesktopApplication( int& argc, char **argv, Type t ); | ||
48 | ~DesktopApplication(); | ||
49 | |||
50 | static void switchLCD ( bool on ); // only for togglePower in Desktop | ||
51 | |||
52 | static void soundAlarm(); // only because QCop soundAlarm() is defined in QPE/TaskBar | ||
53 | |||
54 | signals: | ||
55 | void menu(); | ||
56 | void home(); | ||
57 | void launch(); | ||
58 | void backlight(); | ||
59 | void power(); | ||
60 | void symbol(); | ||
61 | void numLockStateToggle(); | ||
62 | void capsLockStateToggle(); | ||
63 | void prepareForRestart(); | ||
64 | |||
65 | protected: | ||
66 | #ifdef Q_WS_QWS | ||
67 | |||
68 | bool qwsEventFilter( QWSEvent * ); | ||
69 | #endif | ||
70 | |||
71 | void shutdown(); | ||
72 | void restart(); | ||
73 | |||
74 | public slots: | ||
75 | virtual void systemMessage ( const QCString &msg, const QByteArray &data ); | ||
76 | virtual void launcherMessage ( const QCString &msg, const QByteArray &data ); | ||
77 | void rereadVolumes(); | ||
78 | |||
79 | protected slots: | ||
80 | void shutdown ( ShutdownImpl::Type ); | ||
81 | void apmTimeout ( ); | ||
82 | void sendHeldAction ( ); | ||
83 | |||
84 | protected: | ||
85 | virtual bool eventFilter ( QObject *o, QEvent *e ); | ||
86 | bool checkButtonAction ( const Opie::ODeviceButton *db, int keycode, bool press, bool autoRepeat ); | ||
87 | |||
88 | private: | ||
89 | static DesktopApplication *me ( ); | ||
90 | |||
91 | private: | ||
92 | void reloadPowerWarnSettings(); | ||
93 | DesktopPowerAlerter *pa; | ||
94 | PowerStatus *m_ps, *m_ps_last; | ||
95 | QTimer *cardSendTimer; | ||
96 | QCopChannel *channel; | ||
97 | OpieScreenSaver *m_screensaver; | ||
98 | QTimer * m_apm_timer; | ||
99 | int m_powerVeryLow; | ||
100 | int m_powerCritical; | ||
101 | int m_currentPowerLevel; | ||
102 | |||
103 | const Opie::ODeviceButton *m_last_button; | ||
104 | QTimer *m_button_timer; | ||
105 | |||
106 | bool m_keyclick_sound : 1; | ||
107 | bool m_screentap_sound : 1; | ||
108 | bool m_alarm_sound : 1; | ||
109 | }; | ||
110 | |||
111 | |||
112 | class Desktop : public QWidget | ||
113 | { | ||
114 | Q_OBJECT | ||
115 | public: | ||
116 | Desktop(); | ||
117 | ~Desktop(); | ||
118 | |||
119 | static bool screenLocked(); | ||
120 | |||
121 | void show(); | ||
122 | void checkMemory(); | ||
123 | |||
124 | public slots: | ||
125 | void execAutoStart(); | ||
126 | void togglePower(); | ||
127 | void toggleLight(); | ||
128 | void toggleNumLockState(); | ||
129 | void toggleCapsLockState(); | ||
130 | void toggleSymbolInput(); | ||
131 | void terminateServers(); | ||
132 | |||
133 | protected: | ||
134 | void executeOrModify( const QString& appLnkFile ); | ||
135 | void styleChange( QStyle & ); | ||
136 | void timerEvent( QTimerEvent *e ); | ||
137 | virtual bool eventFilter( QObject *o, QEvent *ev ); | ||
138 | |||
139 | QWidget *bg; | ||
140 | Launcher *launcher; | ||
141 | TaskBar *tb; | ||
142 | |||
143 | private: | ||
144 | void layout(); | ||
145 | void startTransferServer(); | ||
146 | bool recoverMemory(); | ||
147 | |||
148 | QCopBridge *qcopBridge; | ||
149 | TransferServer *transferServer; | ||
150 | PackageSlave *packageSlave; | ||
151 | |||
152 | QDateTime suspendTime; | ||
153 | }; | ||
154 | |||
155 | |||
156 | #endif // __DESKTOP_H__ | ||
157 | |||
diff --git a/core/launcher/info.cpp b/core/launcher/info.cpp deleted file mode 100644 index 609e9e2..0000000 --- a/core/launcher/info.cpp +++ b/dev/null | |||
@@ -1,116 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
21 | #include "info.h" | ||
22 | #include "desktop.h" | ||
23 | |||
24 | #include <qpe/resource.h> | ||
25 | #include <qpe/version.h> | ||
26 | |||
27 | #include <qlayout.h> | ||
28 | #include <qimage.h> | ||
29 | #include <qpainter.h> | ||
30 | #include <qsimplerichtext.h> | ||
31 | |||
32 | |||
33 | Info *desktopInfo = NULL; | ||
34 | |||
35 | |||
36 | Info::Info( Desktop *d ) : Background( d ), needsClear(FALSE), menuHasBeenClicked(FALSE) | ||
37 | { | ||
38 | QString motd; | ||
39 | /* eg. | ||
40 | = | ||
41 | "<table width=100% cellspacing=0 cellpadding=2>" | ||
42 | "<tr><td bgcolor=#9090ff><h2>Today <small>June 15, 2001</small></h2></td>" | ||
43 | "<tr><td bgcolor=#c0c0ff><big><a href=datebook>Appointments</a></big>" | ||
44 | "<tr><td bgcolor=#e0e0ff>" | ||
45 | "<b>8:30am</b> Meeting with John<br>" | ||
46 | "<b>1:10pm</b> Lunch with Sharon" | ||
47 | "<tr><td bgcolor=#c0c0ff><big><a href=todo>Reminders</a></big>" | ||
48 | "<tr><td bgcolor=#e0e0ff>" | ||
49 | "<b>#1</b> Port XMAME to QPE<br>" | ||
50 | "<b>#2</b> Flowers for wife" | ||
51 | "<tr><td bgcolor=#c0c0ff><big><a href=channels>Net channels</a></big>" | ||
52 | "<tr><td bgcolor=#e0e0ff>" | ||
53 | "<b>LinuxDevices:</b><a href=http://www.linuxdevices.com> QPE announcement</a><br>" | ||
54 | "<b>Slashdot:</b><a href=http://www.slashdot.org> GPL Examined</a>" | ||
55 | "</table>"; | ||
56 | */ | ||
57 | info = new QSimpleRichText(motd, QFont("lucidux_sans",10)); | ||
58 | desktopInfo = this; | ||
59 | } | ||
60 | |||
61 | |||
62 | void Info::mouseReleaseEvent( QMouseEvent * ) | ||
63 | { | ||
64 | } | ||
65 | |||
66 | |||
67 | void Info::menuClicked( ) | ||
68 | { | ||
69 | QPainter p(this); | ||
70 | if ( needsClear ) { | ||
71 | QColor col = colorGroup().color( QColorGroup::Button ).dark( 0 ); | ||
72 | p.fillRect( 5, height() - 24, width() - 5, 20, col ); | ||
73 | needsClear = FALSE; | ||
74 | menuHasBeenClicked = TRUE; | ||
75 | } | ||
76 | } | ||
77 | |||
78 | |||
79 | void Info::paintEvent( QPaintEvent *e ) | ||
80 | { | ||
81 | QPainter p(this); | ||
82 | |||
83 | BrushStyle styles[] = { Dense1Pattern, Dense2Pattern, Dense3Pattern, | ||
84 | Dense4Pattern, Dense5Pattern, Dense6Pattern }; | ||
85 | |||
86 | QColor shade = colorGroup().color( QColorGroup::Button ).dark( 110 ); | ||
87 | int blend = width() * 3 / 4; | ||
88 | int step = blend/6; | ||
89 | p.fillRect( 0, 0, width()-blend, 30, shade ); | ||
90 | for ( int i = 0; i < 6; i++ ) { | ||
91 | QBrush brush( shade, styles[i] ); | ||
92 | p.fillRect( width()-blend+i*step, 0, step, 30, brush ); | ||
93 | } | ||
94 | p.setFont( QFont("Helvetica", 24, QFont::Bold) ); | ||
95 | p.setPen( shade.dark( 140 ) ); | ||
96 | p.drawText( 5, 24, "QPE" ); | ||
97 | int pos = 5 + p.fontMetrics().width( "QPE" ); | ||
98 | QFont f("Helvetica", 10, QFont::Bold); | ||
99 | p.setFont( f ); | ||
100 | p.drawText( pos + 5, 24, QString( "Version " ) + QPE_VERSION ); | ||
101 | |||
102 | if (!menuHasBeenClicked) { | ||
103 | p.drawText( 5, height()-10, QString( "Click on the " ) ); | ||
104 | int pos = 5 + p.fontMetrics().width( "Click on the " ); | ||
105 | p.drawPixmap( pos, height()-10-14, Resource::loadPixmap( "go" ) ); | ||
106 | p.drawText( pos + 16, height()-10, QString( " logo to start." ) ); | ||
107 | needsClear = TRUE; | ||
108 | } | ||
109 | |||
110 | if ( info ) { | ||
111 | info->setWidth(&p,width()-10); | ||
112 | info->draw(&p, 5, 35, e->region(), colorGroup()); | ||
113 | } | ||
114 | } | ||
115 | |||
116 | |||
diff --git a/core/launcher/info.h b/core/launcher/info.h deleted file mode 100644 index 317dec5..0000000 --- a/core/launcher/info.h +++ b/dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
21 | #ifndef __INFO_H__ | ||
22 | #define __INFO_H__ | ||
23 | |||
24 | |||
25 | #include <qwidget.h> | ||
26 | #include <qpainter.h> | ||
27 | #include "background.h" | ||
28 | |||
29 | class QSimpleRichText; | ||
30 | |||
31 | class Info : public Background { | ||
32 | Q_OBJECT | ||
33 | public: | ||
34 | Info( Desktop *d ); | ||
35 | void menuClicked( ); | ||
36 | |||
37 | signals: | ||
38 | void giveInfo( ); | ||
39 | |||
40 | protected: | ||
41 | void mouseReleaseEvent( QMouseEvent *e ); | ||
42 | void paintEvent( QPaintEvent *pe ); | ||
43 | |||
44 | private: | ||
45 | QSimpleRichText* info; | ||
46 | bool needsClear; | ||
47 | bool menuHasBeenClicked; | ||
48 | }; | ||
49 | |||
50 | |||
51 | extern Info *desktopInfo; | ||
52 | |||
53 | |||
54 | #endif // __INFO_H__ | ||
55 | |||
diff --git a/core/launcher/launcher.pro b/core/launcher/launcher.pro deleted file mode 100644 index f5597c5..0000000 --- a/core/launcher/launcher.pro +++ b/dev/null | |||
@@ -1,125 +0,0 @@ | |||
1 | TEMPLATE= app | ||
2 | CONFIG = qt warn_on release | ||
3 | DESTDIR = ../../bin | ||
4 | HEADERS = background.h \ | ||
5 | desktop.h \ | ||
6 | screensaver.h \ | ||
7 | mediummountgui.h \ | ||
8 | info.h \ | ||
9 | appicons.h \ | ||
10 | taskbar.h \ | ||
11 | sidething.h \ | ||
12 | runningappbar.h \ | ||
13 | stabmon.h \ | ||
14 | inputmethods.h \ | ||
15 | systray.h \ | ||
16 | wait.h \ | ||
17 | shutdownimpl.h \ | ||
18 | launcher.h \ | ||
19 | launcherview.h \ | ||
20 | ../../core/apps/calibrate/calibrate.h \ | ||
21 | startmenu.h \ | ||
22 | transferserver.h \ | ||
23 | qcopbridge.h \ | ||
24 | packageslave.h \ | ||
25 | irserver.h \ | ||
26 | ../../rsync/buf.h \ | ||
27 | ../../rsync/checksum.h \ | ||
28 | ../../rsync/command.h \ | ||
29 | ../../rsync/emit.h \ | ||
30 | ../../rsync/job.h \ | ||
31 | ../../rsync/netint.h \ | ||
32 | ../../rsync/protocol.h \ | ||
33 | ../../rsync/prototab.h \ | ||
34 | ../../rsync/rsync.h \ | ||
35 | ../../rsync/search.h \ | ||
36 | ../../rsync/stream.h \ | ||
37 | ../../rsync/sumset.h \ | ||
38 | ../../rsync/trace.h \ | ||
39 | ../../rsync/types.h \ | ||
40 | ../../rsync/util.h \ | ||
41 | ../../rsync/whole.h \ | ||
42 | ../../rsync/config_rsync.h \ | ||
43 | ../../rsync/qrsync.h \ | ||
44 | quicklauncher.h | ||
45 | SOURCES = background.cpp \ | ||
46 | desktop.cpp \ | ||
47 | screensaver.cpp \ | ||
48 | mediummountgui.cpp \ | ||
49 | info.cpp \ | ||
50 | appicons.cpp \ | ||
51 | taskbar.cpp \ | ||
52 | sidething.cpp \ | ||
53 | runningappbar.cpp \ | ||
54 | stabmon.cpp \ | ||
55 | inputmethods.cpp \ | ||
56 | systray.cpp \ | ||
57 | wait.cpp \ | ||
58 | shutdownimpl.cpp \ | ||
59 | launcher.cpp \ | ||
60 | launcherview.cpp \ | ||
61 | ../../core/apps/calibrate/calibrate.cpp \ | ||
62 | transferserver.cpp \ | ||
63 | packageslave.cpp \ | ||
64 | irserver.cpp \ | ||
65 | qcopbridge.cpp \ | ||
66 | startmenu.cpp \ | ||
67 | main.cpp \ | ||
68 | ../../rsync/base64.c \ | ||
69 | ../../rsync/buf.c \ | ||
70 | ../../rsync/checksum.c \ | ||
71 | ../../rsync/command.c \ | ||
72 | ../../rsync/delta.c \ | ||
73 | ../../rsync/emit.c \ | ||
74 | ../../rsync/hex.c \ | ||
75 | ../../rsync/job.c \ | ||
76 | ../../rsync/mdfour.c \ | ||
77 | ../../rsync/mksum.c \ | ||
78 | ../../rsync/msg.c \ | ||
79 | ../../rsync/netint.c \ | ||
80 | ../../rsync/patch.c \ | ||
81 | ../../rsync/prototab.c \ | ||
82 | ../../rsync/readsums.c \ | ||
83 | ../../rsync/scoop.c \ | ||
84 | ../../rsync/search.c \ | ||
85 | ../../rsync/stats.c \ | ||
86 | ../../rsync/stream.c \ | ||
87 | ../../rsync/sumset.c \ | ||
88 | ../../rsync/trace.c \ | ||
89 | ../../rsync/tube.c \ | ||
90 | ../../rsync/util.c \ | ||
91 | ../../rsync/version.c \ | ||
92 | ../../rsync/whole.c \ | ||
93 | ../../rsync/qrsync.cpp | ||
94 | INTERFACES= syncdialog.ui | ||
95 | INCLUDEPATH += ../../include | ||
96 | DEPENDPATH+= ../../include . | ||
97 | INCLUDEPATH += ../../core/apps/calibrate | ||
98 | DEPENDPATH+= ../../core/apps/calibrate | ||
99 | INCLUDEPATH += ../../rsync | ||
100 | DEPENDPATH+= ../../rsync | ||
101 | TARGET = qpe | ||
102 | LIBS += -lqpe -lcrypt -lopie | ||
103 | |||
104 | TRANSLATIONS = ../../i18n/de/qpe.ts \ | ||
105 | ../../i18n/nl/qpe.ts \ | ||
106 | ../../i18n/xx/qpe.ts \ | ||
107 | ../../i18n/en/qpe.ts \ | ||
108 | ../../i18n/es/qpe.ts \ | ||
109 | ../../i18n/fr/qpe.ts \ | ||
110 | ../../i18n/hu/qpe.ts \ | ||
111 | ../../i18n/ja/qpe.ts \ | ||
112 | ../../i18n/ko/qpe.ts \ | ||
113 | ../../i18n/no/qpe.ts \ | ||
114 | ../../i18n/pl/qpe.ts \ | ||
115 | ../../i18n/pt/qpe.ts \ | ||
116 | ../../i18n/pt_BR/qpe.ts \ | ||
117 | ../../i18n/sl/qpe.ts \ | ||
118 | ../../i18n/zh_CN/qpe.ts \ | ||
119 | ../../i18n/it/qpe.ts \ | ||
120 | ../../i18n/zh_TW/qpe.ts \ | ||
121 | ../../i18n/da/qpe.ts | ||
122 | |||
123 | |||
124 | |||
125 | include ( $(OPIEDIR)/include.pro ) | ||
diff --git a/core/launcher/mediummountgui.cpp b/core/launcher/mediummountgui.cpp deleted file mode 100644 index b0a1b10..0000000 --- a/core/launcher/mediummountgui.cpp +++ b/dev/null | |||
@@ -1,207 +0,0 @@ | |||
1 | |||
2 | #include "mediummountgui.h" | ||
3 | |||
4 | #include <qcheckbox.h> | ||
5 | #include <qgroupbox.h> | ||
6 | #include <qlabel.h> | ||
7 | #include <qlineedit.h> | ||
8 | #include <qpushbutton.h> | ||
9 | #include <qlayout.h> | ||
10 | #include <qimage.h> | ||
11 | #include <qpixmap.h> | ||
12 | #include <qvbox.h> | ||
13 | #include <qhbox.h> | ||
14 | |||
15 | #include <qpe/resource.h> | ||
16 | #include <qpe/config.h> | ||
17 | |||
18 | |||
19 | MediumMountGui::MediumMountGui( Config *cfg, const QString &path ,QWidget* parent, const char* name, bool , WFlags ) | ||
20 | : QDialog( parent, name, true ) { | ||
21 | |||
22 | m_cfg = cfg; | ||
23 | setCaption( tr( "Medium inserted" ) ); | ||
24 | |||
25 | mediumPath = path; | ||
26 | readConfig(); | ||
27 | startGui(); | ||
28 | showMaximized(); | ||
29 | } | ||
30 | |||
31 | void MediumMountGui::readConfig() { | ||
32 | |||
33 | //OConfig cfg (mediumPath +"/.opiestorage.cf"); | ||
34 | m_cfg->setGroup( "main" ); | ||
35 | checkagain = m_cfg->readBoolEntry( "check", false ); | ||
36 | |||
37 | m_cfg->setGroup( "mimetypes" ); | ||
38 | checkmimeaudio = m_cfg->readBoolEntry( "audio", true ); | ||
39 | checkmimeimage = m_cfg->readBoolEntry( "image", true ); | ||
40 | checkmimetext = m_cfg->readBoolEntry( "text" , true ); | ||
41 | checkmimevideo = m_cfg->readBoolEntry( "video", true ); | ||
42 | checkmimeall = m_cfg->readBoolEntry( "all" , false ); | ||
43 | |||
44 | m_cfg->setGroup( "dirs" ); | ||
45 | limittodirs = m_cfg->readEntry( "dirs", "" ); | ||
46 | } | ||
47 | |||
48 | bool MediumMountGui::check() { | ||
49 | return !checkagain; | ||
50 | } | ||
51 | |||
52 | QStringList MediumMountGui::dirs() { | ||
53 | return QStringList::split( ",", limittodirs ); | ||
54 | } | ||
55 | |||
56 | void MediumMountGui::writeConfig( bool autocheck ) { | ||
57 | |||
58 | //OConfig cfg (mediumPath +"/.opiestorage.cf"); | ||
59 | m_cfg->setGroup( "main" ); | ||
60 | m_cfg->writeEntry( "check", AskBox->isChecked() ); | ||
61 | m_cfg->writeEntry( "autocheck", autocheck ); | ||
62 | |||
63 | m_cfg->setGroup( "mimetypes" ); | ||
64 | |||
65 | m_cfg->writeEntry( "audio", CheckBoxAudio->isChecked() ); | ||
66 | m_cfg->writeEntry( "image", CheckBoxImage->isChecked() ); | ||
67 | m_cfg->writeEntry( "text", CheckBoxImage->isChecked() ); | ||
68 | m_cfg->writeEntry( "video", CheckBoxVideo->isChecked() ); | ||
69 | m_cfg->writeEntry( "all", CheckBoxAll->isChecked() ); | ||
70 | |||
71 | m_cfg->setGroup( "dirs" ); | ||
72 | m_cfg->writeEntry( "dirs", "" ); | ||
73 | |||
74 | // if all is checked then add only "QString::null" to the list. | ||
75 | if ( checkmimeall ) { | ||
76 | mimeTypeList.clear(); | ||
77 | mimeTypeList += QString::null; | ||
78 | } else { | ||
79 | if ( checkmimeaudio ) { | ||
80 | mimeTypeList += ( "audio/*" ); | ||
81 | } | ||
82 | if ( checkmimetext ) { | ||
83 | mimeTypeList += ( "text/*" ); | ||
84 | } | ||
85 | if ( checkmimevideo ) { | ||
86 | mimeTypeList += ( "video/*" ); | ||
87 | } | ||
88 | if ( checkmimeimage ) { | ||
89 | mimeTypeList += ( "image/*" ); | ||
90 | } | ||
91 | } | ||
92 | m_cfg->write(); // not really needed here but just to be sure | ||
93 | } | ||
94 | |||
95 | void MediumMountGui::startGui() { | ||
96 | |||
97 | QVBoxLayout* mainLayout = new QVBoxLayout( this ); | ||
98 | |||
99 | QHBoxLayout * titelBox = new QHBoxLayout( mainLayout ); | ||
100 | Text_2 = new QLabel( this ); | ||
101 | // FIXME needs an image | ||
102 | Text_2->setPixmap( Resource::loadPixmap( "mediummount/mediummount" ) ); | ||
103 | |||
104 | Text = new QLabel( this, "Text" ); | ||
105 | Text->setText( tr( "A <b>storage medium</b> was inserted. Should it be scanned for media files?" ) ); | ||
106 | titelBox->addWidget( Text_2 ); | ||
107 | titelBox->setStretchFactor( Text_2, 2 ); | ||
108 | titelBox->addWidget( Text ); | ||
109 | titelBox->setStretchFactor( Text, 8 ); | ||
110 | |||
111 | // media box | ||
112 | GroupBox1 = new QGroupBox( this, "GroupBox1" ); | ||
113 | GroupBox1->setTitle( tr( "Which media files" ) ); | ||
114 | |||
115 | QGridLayout *mimeLayout = new QGridLayout( GroupBox1, 3, 2, 10 ); | ||
116 | |||
117 | CheckBoxAudio = new QCheckBox( GroupBox1, "CheckBoxAudio" ); | ||
118 | CheckBoxAudio->setText( tr( "Audio" ) ); | ||
119 | |||
120 | CheckBoxImage = new QCheckBox( GroupBox1, "CheckBoxImage" ); | ||
121 | CheckBoxImage->setText( tr( "Image" ) ); | ||
122 | |||
123 | CheckBoxText = new QCheckBox( GroupBox1, "CheckBoxText" ); | ||
124 | CheckBoxText->setText( tr( "Text" ) ); | ||
125 | |||
126 | CheckBoxVideo = new QCheckBox( GroupBox1, "CheckBoxVideo" ); | ||
127 | CheckBoxVideo->setText( tr( "Video" ) ); | ||
128 | |||
129 | CheckBoxAll = new QCheckBox ( GroupBox1 ); | ||
130 | CheckBoxAll->setText( tr( "All" ) ); | ||
131 | |||
132 | CheckBoxLink = new QCheckBox ( GroupBox1 ); | ||
133 | CheckBoxLink->setText( tr( "Link apps" ) ); | ||
134 | // as long as the feature is not supported | ||
135 | CheckBoxLink->setEnabled( false ); | ||
136 | |||
137 | mimeLayout->addWidget( CheckBoxAudio, 0, 0 ); | ||
138 | mimeLayout->addWidget( CheckBoxImage, 0, 1 ); | ||
139 | mimeLayout->addWidget( CheckBoxText , 1, 0 ); | ||
140 | mimeLayout->addWidget( CheckBoxVideo, 1, 1 ); | ||
141 | mimeLayout->addWidget( CheckBoxAll, 2, 0 ); | ||
142 | mimeLayout->addWidget( CheckBoxLink, 2, 1 ); | ||
143 | |||
144 | connect( CheckBoxAll, SIGNAL( clicked() ), this, SLOT( deactivateOthers() ) ); | ||
145 | |||
146 | QVBox* dirBox = new QVBox( this ); | ||
147 | dirBox->setMargin( 5 ); | ||
148 | |||
149 | // select dirs | ||
150 | DirSelectText = new QLabel( dirBox, "DirSelectText" ); | ||
151 | DirSelectText->setText( tr( "Limit search to dir: (not used yet)" ) ); | ||
152 | |||
153 | QHBox* dirLineBox = new QHBox( dirBox ); | ||
154 | LineEdit1 = new QLineEdit( dirLineBox ); | ||
155 | PushButton3 = new QPushButton( dirLineBox ); | ||
156 | PushButton3->setText( tr( "Add" ) ); | ||
157 | PushButton3->setFocus(); | ||
158 | |||
159 | // decision | ||
160 | DirSelectText_2 = new QLabel( dirBox ); | ||
161 | DirSelectText_2->setText( tr( "Your decision will be stored on the medium." ) ); | ||
162 | |||
163 | // ask again | ||
164 | AskBox = new QCheckBox( dirBox ); | ||
165 | AskBox->setText( tr( "Do not ask again for this medium" ) ); | ||
166 | |||
167 | AskBox->setChecked( checkagain ); | ||
168 | CheckBoxAudio->setChecked( checkmimeaudio ); | ||
169 | CheckBoxImage->setChecked( checkmimeimage ); | ||
170 | CheckBoxText->setChecked( checkmimetext ); | ||
171 | CheckBoxVideo->setChecked( checkmimevideo ); | ||
172 | CheckBoxAll->setChecked( checkmimeall ); | ||
173 | deactivateOthers(); | ||
174 | |||
175 | mainLayout->addWidget( GroupBox1 ); | ||
176 | mainLayout->addWidget( dirBox ); | ||
177 | mainLayout->addStretch( 0 ); | ||
178 | } | ||
179 | |||
180 | |||
181 | void MediumMountGui::deactivateOthers() { | ||
182 | bool mod = !( CheckBoxAll->isChecked() ); | ||
183 | CheckBoxVideo->setEnabled( mod ); | ||
184 | CheckBoxAudio->setEnabled( mod ); | ||
185 | CheckBoxText->setEnabled( mod ); | ||
186 | CheckBoxImage->setEnabled( mod ); | ||
187 | } | ||
188 | |||
189 | void MediumMountGui::accept() { | ||
190 | writeConfig( true ); | ||
191 | // and do something | ||
192 | QDialog::accept(); | ||
193 | } | ||
194 | |||
195 | |||
196 | QStringList MediumMountGui::mimeTypes() { | ||
197 | return mimeTypeList; | ||
198 | } | ||
199 | |||
200 | void MediumMountGui::reject() { | ||
201 | writeConfig( false ); | ||
202 | QDialog::reject(); | ||
203 | } | ||
204 | |||
205 | MediumMountGui::~MediumMountGui() { | ||
206 | } | ||
207 | |||
diff --git a/core/launcher/mediummountgui.h b/core/launcher/mediummountgui.h deleted file mode 100644 index d5c0fe7..0000000 --- a/core/launcher/mediummountgui.h +++ b/dev/null | |||
@@ -1,67 +0,0 @@ | |||
1 | #ifndef MEDIUMMOUNTGUI_H | ||
2 | #define MEDIUMMOUNTGUI_H | ||
3 | |||
4 | #include <qvariant.h> | ||
5 | #include <qdialog.h> | ||
6 | |||
7 | class QVBoxLayout; | ||
8 | class QHBoxLayout; | ||
9 | class QGridLayout; | ||
10 | class QCheckBox; | ||
11 | class QGroupBox; | ||
12 | class QLabel; | ||
13 | class QLineEdit; | ||
14 | class QPushButton; | ||
15 | class Config; | ||
16 | |||
17 | class MediumMountGui : public QDialog { | ||
18 | Q_OBJECT | ||
19 | |||
20 | public: | ||
21 | MediumMountGui( Config *cfg, const QString &path = "tmp/", QWidget* parent = 0, const char* name = 0, bool modal = FALSE ,WFlags fl = 0 ); | ||
22 | ~MediumMountGui(); | ||
23 | |||
24 | protected: | ||
25 | QLabel* DirSelectText_2; | ||
26 | QLineEdit* LineEdit1; | ||
27 | QPushButton* PushButton3; | ||
28 | QLabel* DirSelectText; | ||
29 | QLabel* Text_2; | ||
30 | QLabel* Text; | ||
31 | QGroupBox* GroupBox1; | ||
32 | QCheckBox* CheckBoxAudio; | ||
33 | QCheckBox* CheckBoxImage; | ||
34 | QCheckBox* CheckBoxText; | ||
35 | QCheckBox* CheckBoxVideo; | ||
36 | QCheckBox* CheckBoxAll; | ||
37 | QCheckBox* CheckBoxLink; | ||
38 | QCheckBox* AskBox; | ||
39 | |||
40 | public: | ||
41 | bool check(); | ||
42 | QStringList mimeTypes(); | ||
43 | QStringList dirs(); | ||
44 | private: | ||
45 | void startGui(); | ||
46 | void readConfig(); | ||
47 | void writeConfig( bool checkagain ); | ||
48 | |||
49 | private slots: | ||
50 | void accept(); | ||
51 | void reject(); | ||
52 | void deactivateOthers(); | ||
53 | private: | ||
54 | QString mediumPath; | ||
55 | bool checkagain:1; | ||
56 | bool checkmimeaudio:1; | ||
57 | bool checkmimeimage:1; | ||
58 | bool checkmimetext:1; | ||
59 | bool checkmimevideo:1; | ||
60 | bool checkmimeall:1; | ||
61 | QString limittodirs; | ||
62 | QStringList mimeTypeList; | ||
63 | Config *m_cfg; | ||
64 | |||
65 | }; | ||
66 | |||
67 | #endif | ||
diff --git a/core/launcher/qcleanuphandler_p.h b/core/launcher/qcleanuphandler_p.h index d8cddac..04d5c7e 100644 --- a/core/launcher/qcleanuphandler_p.h +++ b/core/launcher/qcleanuphandler_p.h | |||
@@ -1 +1,21 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of the Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
1 | #ifndef QCLEANUPHANDLER_H | 21 | #ifndef QCLEANUPHANDLER_H |
diff --git a/core/launcher/quicklauncher.cpp b/core/launcher/quicklauncher.cpp deleted file mode 100644 index 925b3b5..0000000 --- a/core/launcher/quicklauncher.cpp +++ b/dev/null | |||
@@ -1,49 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
21 | #include <qapplication.h> | ||
22 | #include <qlayout.h> | ||
23 | #include <qpushbutton.h> | ||
24 | #include <applnk.h> | ||
25 | #include <resource.h> | ||
26 | #include "quicklauncher.h" | ||
27 | |||
28 | |||
29 | void QuickLauncher::addLauncherButton( AppLnk *appLnk ) | ||
30 | { | ||
31 | QPushButton *pb = new QPushButton( this ); | ||
32 | // It's no a QObject anymore | ||
33 | //pb->connect( pb, SIGNAL( clicked( ) ), appLnk, SLOT( execute() ) ); | ||
34 | pb->setPixmap( appLnk->pixmap() ); | ||
35 | pb->setFocusPolicy( QWidget::NoFocus ); | ||
36 | pb->setFlat( TRUE ); | ||
37 | pb->setFixedSize( 18, 18 ); | ||
38 | } | ||
39 | |||
40 | |||
41 | QuickLauncher::QuickLauncher( QWidget *parent ) : QHBox( parent ) | ||
42 | { | ||
43 | // Example usage to add icons to the quick launcher area | ||
44 | // addLauncherButton( "filebrowser_icon", "filebrowser" ); | ||
45 | // addLauncherButton( "textedit_icon", "textedit" ); | ||
46 | // addLauncherButton( "help_icon", "helpbrowser" ); | ||
47 | } | ||
48 | |||
49 | |||
diff --git a/core/launcher/quicklauncher.h b/core/launcher/quicklauncher.h deleted file mode 100644 index 92c6c66..0000000 --- a/core/launcher/quicklauncher.h +++ b/dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
21 | #ifndef __QUICK_LAUNCHER_H__ | ||
22 | #define __QUICK_LAUNCHER_H__ | ||
23 | |||
24 | |||
25 | #include <qhbox.h> | ||
26 | |||
27 | class AppLnk; | ||
28 | |||
29 | |||
30 | class QuickLauncher : public QHBox { | ||
31 | Q_OBJECT | ||
32 | public: | ||
33 | QuickLauncher( QWidget *parent ); | ||
34 | void addLauncherButton( AppLnk * ); | ||
35 | }; | ||
36 | |||
37 | |||
38 | #endif // __QUICK_LAUNCHER_H__ | ||
39 | |||
40 | |||
diff --git a/core/launcher/sidething.cpp b/core/launcher/sidething.cpp deleted file mode 100644 index 821c9d5..0000000 --- a/core/launcher/sidething.cpp +++ b/dev/null | |||
@@ -1,75 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
21 | #include "sidething.h" | ||
22 | |||
23 | #include <qpe/resource.h> | ||
24 | |||
25 | #include <qrect.h> | ||
26 | #include <qpopupmenu.h> | ||
27 | #include <qpainter.h> | ||
28 | |||
29 | |||
30 | void PopupWithLaunchSideThing::setFrameRect( const QRect &r ) | ||
31 | { | ||
32 | fr = r; | ||
33 | QPopupMenu::setFrameRect( r ); | ||
34 | } | ||
35 | |||
36 | |||
37 | void PopupWithLaunchSideThing::paintEvent( QPaintEvent *event ) | ||
38 | { | ||
39 | QPainter paint( this ); | ||
40 | |||
41 | if ( !contentsRect().contains( event->rect() ) ) { | ||
42 | |||
43 | QPopupMenu::setFrameRect( fr ); | ||
44 | int oldLW = lineWidth(); | ||
45 | setUpdatesEnabled(FALSE); | ||
46 | setLineWidth(oldLW); | ||
47 | setUpdatesEnabled(TRUE); | ||
48 | |||
49 | paint.save(); | ||
50 | paint.setClipRegion( event->region().intersect( frameRect() ) ); | ||
51 | QPixmap pm( Resource::loadPixmap( sidePixmap ) ); | ||
52 | paint.drawPixmap( 2, fr.height() - pm.height() - 2, pm ); | ||
53 | //Need to draw a filled rectangle that extends the colour from the | ||
54 | //end of the pixmap up to the top of the popupmenu | ||
55 | //paint.fillRect(); | ||
56 | drawFrame( &paint ); | ||
57 | paint.restore(); | ||
58 | |||
59 | } | ||
60 | if ( event->rect().intersects( contentsRect() ) /* && | ||
61 | (fstyle & MShape) != HLine && (fstyle & MShape) != VLine */ ) { | ||
62 | |||
63 | QPopupMenu::setFrameRect( QRect(fr.left() + 21, fr.top(), fr.width() - 21, fr.height()) ); | ||
64 | int oldLW = lineWidth(); | ||
65 | setUpdatesEnabled(FALSE); | ||
66 | setLineWidth(oldLW); | ||
67 | setUpdatesEnabled(TRUE); | ||
68 | |||
69 | paint.setClipRegion( event->region().intersect( contentsRect() ) ); | ||
70 | drawContents( &paint ); | ||
71 | } | ||
72 | |||
73 | } | ||
74 | |||
75 | |||
diff --git a/core/launcher/sidething.h b/core/launcher/sidething.h deleted file mode 100644 index 666a59d..0000000 --- a/core/launcher/sidething.h +++ b/dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | |||
21 | #ifndef __SIDE_THING_H__ | ||
22 | #define __SIDE_THING_H__ | ||
23 | |||
24 | |||
25 | #include "startmenu.h" | ||
26 | |||
27 | |||
28 | class PopupWithLaunchSideThing : public StartPopupMenu | ||
29 | { | ||
30 | Q_OBJECT | ||
31 | public: | ||
32 | PopupWithLaunchSideThing( QWidget *parent, QString *pixmap ) : StartPopupMenu( parent ), sidePixmap(*pixmap) { } | ||
33 | |||
34 | protected: | ||
35 | void setFrameRect( const QRect & ); | ||
36 | void paintEvent( QPaintEvent *event ); | ||
37 | QRect fr; | ||
38 | QString sidePixmap; | ||
39 | }; | ||
40 | |||
41 | |||
42 | #endif // __SIDE_THING_H__ | ||
43 | |||
diff --git a/core/launcher/syncdialog.ui b/core/launcher/syncdialog.ui deleted file mode 100644 index 141f123..0000000 --- a/core/launcher/syncdialog.ui +++ b/dev/null | |||
@@ -1,228 +0,0 @@ | |||
1 | <!DOCTYPE UI><UI> | ||
2 | <class>SyncDialog</class> | ||
3 | <widget> | ||
4 | <class>QDialog</class> | ||
5 | <property stdset="1"> | ||
6 | <name>name</name> | ||
7 | <cstring>SyncDialog</cstring> | ||
8 | </property> | ||
9 | <property stdset="1"> | ||
10 | <name>geometry</name> | ||
11 | <rect> | ||
12 | <x>0</x> | ||
13 | <y>0</y> | ||
14 | <width>210</width> | ||
15 | <height>244</height> | ||
16 | </rect> | ||
17 | </property> | ||
18 | <property stdset="1"> | ||
19 | <name>caption</name> | ||
20 | <string>Syncing</string> | ||
21 | </property> | ||
22 | <property stdset="1"> | ||
23 | <name>sizeGripEnabled</name> | ||
24 | <bool>true</bool> | ||
25 | </property> | ||
26 | <vbox> | ||
27 | <property stdset="1"> | ||
28 | <name>margin</name> | ||
29 | <number>11</number> | ||
30 | </property> | ||
31 | <property stdset="1"> | ||
32 | <name>spacing</name> | ||
33 | <number>6</number> | ||
34 | </property> | ||
35 | <spacer> | ||
36 | <property> | ||
37 | <name>name</name> | ||
38 | <cstring>Spacer10</cstring> | ||
39 | </property> | ||
40 | <property stdset="1"> | ||
41 | <name>orientation</name> | ||
42 | <enum>Vertical</enum> | ||
43 | </property> | ||
44 | <property stdset="1"> | ||
45 | <name>sizeType</name> | ||
46 | <enum>Expanding</enum> | ||
47 | </property> | ||
48 | <property> | ||
49 | <name>sizeHint</name> | ||
50 | <size> | ||
51 | <width>20</width> | ||
52 | <height>20</height> | ||
53 | </size> | ||
54 | </property> | ||
55 | </spacer> | ||
56 | <widget> | ||
57 | <class>QLayoutWidget</class> | ||
58 | <property stdset="1"> | ||
59 | <name>name</name> | ||
60 | <cstring>Layout3</cstring> | ||
61 | </property> | ||
62 | <hbox> | ||
63 | <property stdset="1"> | ||
64 | <name>margin</name> | ||
65 | <number>0</number> | ||
66 | </property> | ||
67 | <property stdset="1"> | ||
68 | <name>spacing</name> | ||
69 | <number>6</number> | ||
70 | </property> | ||
71 | <widget> | ||
72 | <class>QLabel</class> | ||
73 | <property stdset="1"> | ||
74 | <name>name</name> | ||
75 | <cstring>TextLabel1</cstring> | ||
76 | </property> | ||
77 | <property stdset="1"> | ||
78 | <name>text</name> | ||
79 | <string>Syncing</string> | ||
80 | </property> | ||
81 | <property stdset="1"> | ||
82 | <name>alignment</name> | ||
83 | <set>AlignCenter</set> | ||
84 | </property> | ||
85 | <property> | ||
86 | <name>hAlign</name> | ||
87 | </property> | ||
88 | </widget> | ||
89 | <widget> | ||
90 | <class>QLabel</class> | ||
91 | <property stdset="1"> | ||
92 | <name>name</name> | ||
93 | <cstring>whatLabel</cstring> | ||
94 | </property> | ||
95 | <property stdset="1"> | ||
96 | <name>text</name> | ||
97 | <string><b>Contacts</b></string> | ||
98 | </property> | ||
99 | </widget> | ||
100 | </hbox> | ||
101 | </widget> | ||
102 | <spacer> | ||
103 | <property> | ||
104 | <name>name</name> | ||
105 | <cstring>Spacer11</cstring> | ||
106 | </property> | ||
107 | <property stdset="1"> | ||
108 | <name>orientation</name> | ||
109 | <enum>Vertical</enum> | ||
110 | </property> | ||
111 | <property stdset="1"> | ||
112 | <name>sizeType</name> | ||
113 | <enum>Expanding</enum> | ||
114 | </property> | ||
115 | <property> | ||
116 | <name>sizeHint</name> | ||
117 | <size> | ||
118 | <width>20</width> | ||
119 | <height>20</height> | ||
120 | </size> | ||
121 | </property> | ||
122 | </spacer> | ||
123 | <widget> | ||
124 | <class>QLayoutWidget</class> | ||
125 | <property stdset="1"> | ||
126 | <name>name</name> | ||
127 | <cstring>Layout4</cstring> | ||
128 | </property> | ||
129 | <hbox> | ||
130 | <property stdset="1"> | ||
131 | <name>margin</name> | ||
132 | <number>0</number> | ||
133 | </property> | ||
134 | <property stdset="1"> | ||
135 | <name>spacing</name> | ||
136 | <number>6</number> | ||
137 | </property> | ||
138 | <spacer> | ||
139 | <property> | ||
140 | <name>name</name> | ||
141 | <cstring>Spacer4</cstring> | ||
142 | </property> | ||
143 | <property stdset="1"> | ||
144 | <name>orientation</name> | ||
145 | <enum>Horizontal</enum> | ||
146 | </property> | ||
147 | <property stdset="1"> | ||
148 | <name>sizeType</name> | ||
149 | <enum>Expanding</enum> | ||
150 | </property> | ||
151 | <property> | ||
152 | <name>sizeHint</name> | ||
153 | <size> | ||
154 | <width>20</width> | ||
155 | <height>20</height> | ||
156 | </size> | ||
157 | </property> | ||
158 | </spacer> | ||
159 | <widget> | ||
160 | <class>QPushButton</class> | ||
161 | <property stdset="1"> | ||
162 | <name>name</name> | ||
163 | <cstring>buttonCancel</cstring> | ||
164 | </property> | ||
165 | <property stdset="1"> | ||
166 | <name>text</name> | ||
167 | <string>&Cancel</string> | ||
168 | </property> | ||
169 | <property stdset="1"> | ||
170 | <name>autoDefault</name> | ||
171 | <bool>true</bool> | ||
172 | </property> | ||
173 | </widget> | ||
174 | <spacer> | ||
175 | <property> | ||
176 | <name>name</name> | ||
177 | <cstring>Spacer5</cstring> | ||
178 | </property> | ||
179 | <property stdset="1"> | ||
180 | <name>orientation</name> | ||
181 | <enum>Horizontal</enum> | ||
182 | </property> | ||
183 | <property stdset="1"> | ||
184 | <name>sizeType</name> | ||
185 | <enum>Expanding</enum> | ||
186 | </property> | ||
187 | <property> | ||
188 | <name>sizeHint</name> | ||
189 | <size> | ||
190 | <width>20</width> | ||
191 | <height>20</height> | ||
192 | </size> | ||
193 | </property> | ||
194 | </spacer> | ||
195 | </hbox> | ||
196 | </widget> | ||
197 | <spacer> | ||
198 | <property> | ||
199 | <name>name</name> | ||
200 | <cstring>Spacer12</cstring> | ||
201 | </property> | ||
202 | <property stdset="1"> | ||
203 | <name>orientation</name> | ||
204 | <enum>Vertical</enum> | ||
205 | </property> | ||
206 | <property stdset="1"> | ||
207 | <name>sizeType</name> | ||
208 | <enum>Expanding</enum> | ||
209 | </property> | ||
210 | <property> | ||
211 | <name>sizeHint</name> | ||
212 | <size> | ||
213 | <width>20</width> | ||
214 | <height>20</height> | ||
215 | </size> | ||
216 | </property> | ||
217 | </spacer> | ||
218 | </vbox> | ||
219 | </widget> | ||
220 | <connections> | ||
221 | <connection> | ||
222 | <sender>buttonCancel</sender> | ||
223 | <signal>clicked()</signal> | ||
224 | <receiver>SyncDialog</receiver> | ||
225 | <slot>reject()</slot> | ||
226 | </connection> | ||
227 | </connections> | ||
228 | </UI> | ||