From: educa33e Date: Tue, 1 Feb 2011 02:15:32 +0000 (+0100) Subject: cleaning comment and test X-Git-Url: http://vcs.maemo.org/git/?p=qwp;a=commitdiff_plain;h=537e6ec61f576a4a3a40e30e900c55ea219a55c6 cleaning comment and test Signed-off-by: educa33e --- diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bf399f2 --- /dev/null +++ b/Makefile @@ -0,0 +1,267 @@ +############################################################################# +# Makefile for building: qwp +# Generated by qmake (2.01a) (Qt 4.7.0) on: dim. 30. janv. 22:26:48 2011 +# Project: qwp.pro +# Template: app +# Command: c:/qtsdk/maemo/4.6.2/targets/fremantle-pr13/bin/qmake.exe -spec ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/default -unix QMLJSDEBUGGER_PATH=C:/QtSDK/QtCreator/share/qtcreator/qml/qmljsdebugger -o Makefile qwp.pro +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +DEFINES = -DQT_GL_NO_SCISSOR_TEST -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DQT_NO_DEBUG -DQT_DECLARATIVE_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED +CFLAGS = -pipe -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wall -W -D_REENTRANT $(DEFINES) +CXXFLAGS = -pipe -O3 -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wall -W -D_REENTRANT $(DEFINES) +INCPATH = -I../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/default -I. -I../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/include/QtCore -I../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/include/QtGui -I../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/include/QtDeclarative -I../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/include -Iqmlapplicationviewer -I. +LINK = g++ +LFLAGS = -Wl,-rpath-link,/usr/lib -Wl,-O1 -Wl,--hash-style=gnu +LIBS = $(SUBLIBS) -LC:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib -lQtDeclarative -L/usr/lib -L/usr/X11R6/lib -lQtScript -lQtSvg -lQtSql -lQtXmlPatterns -lQtOpenGL -lQtNetwork -lQtGui -lQtDBus -lQtXml -lQtCore -lpthread +AR = ar cqs +RANLIB = +QMAKE = c:/qtsdk/maemo/4.6.2/targets/fremantle-pr13/bin/qmake.exe +TAR = tar -cf +COMPRESS = gzip -9f +COPY = cp -f +SED = sed +COPY_FILE = $(COPY) +COPY_DIR = $(COPY) -r +STRIP = strip +INSTALL_FILE = install -m 644 -p +INSTALL_DIR = $(COPY_DIR) +INSTALL_PROGRAM = install -m 755 -p +DEL_FILE = rm -f +SYMLINK = ln -f -s +DEL_DIR = rmdir +MOVE = mv -f +CHK_DIR_EXISTS= test -d +MKDIR = mkdir -p + +####### Output directory + +OBJECTS_DIR = ./ + +####### Files + +SOURCES = main.cpp \ + qmlapplicationviewer/qmlapplicationviewer.cpp moc_qmlapplicationviewer.cpp +OBJECTS = main.o \ + qmlapplicationviewer.o \ + moc_qmlapplicationviewer.o +DIST = ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/common/unix.conf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/common/linux.conf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/qconfig.pri \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/qt_functions.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/qt_config.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/exclusive_builds.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/default_pre.prf \ + qmlapplicationviewer/qmlapplicationviewer.pri \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/release.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/default_post.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/warn_on.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/qt.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/unix/thread.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/moc.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/resources.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/uic.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/yacc.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/lex.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/include_source_dir.prf \ + qwp.pro +QMAKE_TARGET = qwp +DESTDIR = +TARGET = qwp + +first: all +####### Implicit rules + +.SUFFIXES: .o .c .cpp .cc .cxx + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o "$@" "$<" + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o "$@" "$<" + +####### Build rules + +all: Makefile $(TARGET) + +$(TARGET): $(OBJECTS) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJCOMP) $(LIBS) + +Makefile: qwp.pro ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/default/qmake.conf ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/common/unix.conf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/common/linux.conf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/qconfig.pri \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/qt_functions.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/qt_config.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/exclusive_builds.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/default_pre.prf \ + qmlapplicationviewer/qmlapplicationviewer.pri \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/release.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/default_post.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/warn_on.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/qt.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/unix/thread.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/moc.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/resources.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/uic.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/yacc.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/lex.prf \ + ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/include_source_dir.prf \ + c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtDeclarative.prl \ + c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtScript.prl \ + c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtCore.prl \ + c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtSvg.prl \ + c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtGui.prl \ + c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtDBus.prl \ + c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtXml.prl \ + c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtSql.prl \ + c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtXmlPatterns.prl \ + c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtNetwork.prl \ + c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtOpenGL.prl + $(QMAKE) -spec ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/default -unix QMLJSDEBUGGER_PATH=C:/QtSDK/QtCreator/share/qtcreator/qml/qmljsdebugger -o Makefile qwp.pro +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/common/unix.conf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/common/linux.conf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/qconfig.pri: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/qt_functions.prf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/qt_config.prf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/exclusive_builds.prf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/default_pre.prf: +qmlapplicationviewer/qmlapplicationviewer.pri: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/release.prf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/default_post.prf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/warn_on.prf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/qt.prf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/unix/thread.prf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/moc.prf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/resources.prf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/uic.prf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/yacc.prf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/lex.prf: +../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/features/include_source_dir.prf: +c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtDeclarative.prl: +c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtScript.prl: +c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtCore.prl: +c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtSvg.prl: +c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtGui.prl: +c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtDBus.prl: +c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtXml.prl: +c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtSql.prl: +c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtXmlPatterns.prl: +c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtNetwork.prl: +c:/QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/lib/libQtOpenGL.prl: +qmake: FORCE + @$(QMAKE) -spec ../../QtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-20.2010.36-2-slim/usr/share/qt4/mkspecs/default -unix QMLJSDEBUGGER_PATH=C:/QtSDK/QtCreator/share/qtcreator/qml/qmljsdebugger -o Makefile qwp.pro + +dist: + @$(CHK_DIR_EXISTS) .tmp/qwp1.0.0 || $(MKDIR) .tmp/qwp1.0.0 + $(COPY_FILE) --parents $(SOURCES) $(DIST) .tmp/qwp1.0.0/ && $(COPY_FILE) --parents qmlapplicationviewer/qmlapplicationviewer.h .tmp/qwp1.0.0/ && $(COPY_FILE) --parents main.cpp qmlapplicationviewer/qmlapplicationviewer.cpp .tmp/qwp1.0.0/ && (cd `dirname .tmp/qwp1.0.0` && $(TAR) qwp1.0.0.tar qwp1.0.0 && $(COMPRESS) qwp1.0.0.tar) && $(MOVE) `dirname .tmp/qwp1.0.0`/qwp1.0.0.tar.gz . && $(DEL_FILE) -r .tmp/qwp1.0.0 + + +clean:compiler_clean + -$(DEL_FILE) $(OBJECTS) + -$(DEL_FILE) *~ core *.core + + +####### Sub-libraries + +distclean: clean + -$(DEL_FILE) $(TARGET) + -$(DEL_FILE) Makefile + + +check: first + +mocclean: compiler_moc_header_clean compiler_moc_source_clean + +mocables: compiler_moc_header_make_all compiler_moc_source_make_all + +compiler_moc_header_make_all: moc_qmlapplicationviewer.cpp +compiler_moc_header_clean: + -$(DEL_FILE) moc_qmlapplicationviewer.cpp +moc_qmlapplicationviewer.cpp: qmlapplicationviewer/qmlapplicationviewer.h + C:/QtSDK/Maemo/4.6.2/targets/fremantle-pr13/bin/moc.exe $(DEFINES) $(INCPATH) qmlapplicationviewer/qmlapplicationviewer.h -o moc_qmlapplicationviewer.cpp + +compiler_rcc_make_all: +compiler_rcc_clean: +compiler_image_collection_make_all: qmake_image_collection.cpp +compiler_image_collection_clean: + -$(DEL_FILE) qmake_image_collection.cpp +compiler_moc_source_make_all: +compiler_moc_source_clean: +compiler_uic_make_all: +compiler_uic_clean: +compiler_yacc_decl_make_all: +compiler_yacc_decl_clean: +compiler_yacc_impl_make_all: +compiler_yacc_impl_clean: +compiler_lex_make_all: +compiler_lex_clean: +compiler_clean: compiler_moc_header_clean + +####### Compile + +main.o: main.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp + +qmlapplicationviewer.o: qmlapplicationviewer/qmlapplicationviewer.cpp qmlapplicationviewer/qmlapplicationviewer.h + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o qmlapplicationviewer.o qmlapplicationviewer/qmlapplicationviewer.cpp + +moc_qmlapplicationviewer.o: moc_qmlapplicationviewer.cpp + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o moc_qmlapplicationviewer.o moc_qmlapplicationviewer.cpp + +####### Install + +install_itemfolder_01: first FORCE + @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/opt/usr/share/qwp/qml/ || $(MKDIR) $(INSTALL_ROOT)/opt/usr/share/qwp/qml/ + -$(INSTALL_DIR) c:/qt_eric/qwp/qml/qwp $(INSTALL_ROOT)/opt/usr/share/qwp/qml/ + + +uninstall_itemfolder_01: FORCE + -$(DEL_FILE) -r $(INSTALL_ROOT)/opt/usr/share/qwp/qml/qwp + -$(DEL_DIR) $(INSTALL_ROOT)/opt/usr/share/qwp/qml/ + + +install_desktopfile: first FORCE + @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/applications/hildon/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/applications/hildon/ + -$(INSTALL_FILE) c:/qt_eric/qwp/qwp.desktop $(INSTALL_ROOT)/usr/share/applications/hildon/ + + +uninstall_desktopfile: FORCE + -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/applications/hildon/qwp.desktop + -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/applications/hildon/ + + +install_icon: first FORCE + @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ || $(MKDIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ + -$(INSTALL_FILE) c:/qt_eric/qwp/qwp.png $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ + + +uninstall_icon: FORCE + -$(DEL_FILE) -r $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/qwp.png + -$(DEL_DIR) $(INSTALL_ROOT)/usr/share/icons/hicolor/64x64/apps/ + + +install_target: first FORCE + @$(CHK_DIR_EXISTS) $(INSTALL_ROOT)/opt/usr/bin/ || $(MKDIR) $(INSTALL_ROOT)/opt/usr/bin/ + -$(INSTALL_PROGRAM) "$(QMAKE_TARGET)" "$(INSTALL_ROOT)/opt/usr/bin/$(QMAKE_TARGET)" + -$(STRIP) "$(INSTALL_ROOT)/opt/usr/bin/$(QMAKE_TARGET)" + +uninstall_target: FORCE + -$(DEL_FILE) "$(INSTALL_ROOT)/opt/usr/bin/$(QMAKE_TARGET)" + -$(DEL_DIR) $(INSTALL_ROOT)/opt/usr/bin/ + + +install: install_itemfolder_01 install_desktopfile install_icon install_target FORCE + +uninstall: uninstall_itemfolder_01 uninstall_desktopfile uninstall_icon uninstall_target FORCE + +FORCE: + diff --git a/debian/.qtcreator b/debian/.qtcreator new file mode 100644 index 0000000..e69de29 diff --git a/debian/README b/debian/README new file mode 100644 index 0000000..e874387 --- /dev/null +++ b/debian/README @@ -0,0 +1,6 @@ +The Debian Package qwp +---------------------------- + +Comments regarding the Package + + -- unknown <> Fri, 28 Jan 2011 08:55:57 +0000 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..12e4fcc --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +qwp (0.0.1) unstable; urgency=low + + * Initial Release. + + -- EDUCA33E <> Fri, 28 Jan 2011 08:55:57 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +7 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..5033c2b --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: qwp +Section: user/education +Priority: optional +Maintainer: EDUCA33E +Build-Depends: debhelper (>= 5), libqt4-dev +Standards-Version: 3.7.3 +Homepage: + +Package: qwp +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, mcsp +Description: QML Search tool for Wikipedia on N900 + QML Search tool for Wikipedia on N900 diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..38bf6ef --- /dev/null +++ b/debian/copyright @@ -0,0 +1,40 @@ +This package was debianized by unknown <> on +Fri, 28 Jan 2011 08:55:57 +0000. + +It was downloaded from + +Upstream Author(s): + + + + +Copyright: + + + + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2011, unknown <> and +is licensed under the GPL, see above. + + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..5904970 --- /dev/null +++ b/debian/rules @@ -0,0 +1,91 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/qwp.sgml > qwp.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/qwp. + $(MAKE) INSTALL_ROOT="$(CURDIR)"/debian/qwp install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + # dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + # dh_shlibdeps # Uncomment this line for publishing! + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..19444d8 --- /dev/null +++ b/main.cpp @@ -0,0 +1,14 @@ +#include +#include "qmlapplicationviewer.h" + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + + QmlApplicationViewer viewer; + viewer.setOrientation(QmlApplicationViewer::ScreenOrientationAuto); + viewer.setMainQmlFile(QLatin1String("qml/qwp/main.qml")); + viewer.showExpanded(); + + return app.exec(); +} diff --git a/main.o b/main.o new file mode 100644 index 0000000..8c98f96 Binary files /dev/null and b/main.o differ diff --git a/moc_qmlapplicationviewer.cpp b/moc_qmlapplicationviewer.cpp new file mode 100644 index 0000000..8e791b3 --- /dev/null +++ b/moc_qmlapplicationviewer.cpp @@ -0,0 +1,69 @@ +/**************************************************************************** +** Meta object code from reading C++ file 'qmlapplicationviewer.h' +** +** Created: Sat 29. Jan 00:33:35 2011 +** by: The Qt Meta Object Compiler version 62 (Qt 4.7.0) +** +** WARNING! All changes made in this file will be lost! +*****************************************************************************/ + +#include "qmlapplicationviewer/qmlapplicationviewer.h" +#if !defined(Q_MOC_OUTPUT_REVISION) +#error "The header file 'qmlapplicationviewer.h' doesn't include ." +#elif Q_MOC_OUTPUT_REVISION != 62 +#error "This file was generated using the moc from 4.7.0. It" +#error "cannot be used with the include files from this version of Qt." +#error "(The moc has changed too much.)" +#endif + +QT_BEGIN_MOC_NAMESPACE +static const uint qt_meta_data_QmlApplicationViewer[] = { + + // content: + 5, // revision + 0, // classname + 0, 0, // classinfo + 0, 0, // methods + 0, 0, // properties + 0, 0, // enums/sets + 0, 0, // constructors + 0, // flags + 0, // signalCount + + 0 // eod +}; + +static const char qt_meta_stringdata_QmlApplicationViewer[] = { + "QmlApplicationViewer\0" +}; + +const QMetaObject QmlApplicationViewer::staticMetaObject = { + { &QDeclarativeView::staticMetaObject, qt_meta_stringdata_QmlApplicationViewer, + qt_meta_data_QmlApplicationViewer, 0 } +}; + +#ifdef Q_NO_DATA_RELOCATION +const QMetaObject &QmlApplicationViewer::getStaticMetaObject() { return staticMetaObject; } +#endif //Q_NO_DATA_RELOCATION + +const QMetaObject *QmlApplicationViewer::metaObject() const +{ + return QObject::d_ptr->metaObject ? QObject::d_ptr->metaObject : &staticMetaObject; +} + +void *QmlApplicationViewer::qt_metacast(const char *_clname) +{ + if (!_clname) return 0; + if (!strcmp(_clname, qt_meta_stringdata_QmlApplicationViewer)) + return static_cast(const_cast< QmlApplicationViewer*>(this)); + return QDeclarativeView::qt_metacast(_clname); +} + +int QmlApplicationViewer::qt_metacall(QMetaObject::Call _c, int _id, void **_a) +{ + _id = QDeclarativeView::qt_metacall(_c, _id, _a); + if (_id < 0) + return _id; + return _id; +} +QT_END_MOC_NAMESPACE diff --git a/moc_qmlapplicationviewer.o b/moc_qmlapplicationviewer.o new file mode 100644 index 0000000..e9cea79 Binary files /dev/null and b/moc_qmlapplicationviewer.o differ diff --git a/qml/qwp/content/BoutonMenu.qml b/qml/qwp/content/BoutonMenu.qml new file mode 100644 index 0000000..bbc79c1 --- /dev/null +++ b/qml/qwp/content/BoutonMenu.qml @@ -0,0 +1,33 @@ +import QtQuick 1.0 + +ListModel { + + ListElement { + name: "schBt" + bouton: "content/vue.png" + btmenu: "Configuration" + action: "" + vueON: 1 + } + /* + ListElement { + //name: "Jim Williams" + bouton: "content/progress.png" + btmenu: "" + action: "onoff" + } + ListElement { + //name: "John Brown" + bouton: "content/meet.png" + btmenu: "UserChoice" + action: "" + } */ + ListElement { + name: "closeBt" + bouton: "content/cancel.png" + btmenu: "" + action: "" + vueON: 0 + } +} + diff --git a/qml/qwp/content/Button.qml b/qml/qwp/content/Button.qml new file mode 100644 index 0000000..9d99575 --- /dev/null +++ b/qml/qwp/content/Button.qml @@ -0,0 +1,49 @@ +import QtQuick 1.0 + +Item { + id: container + + signal clicked + + property string text + property bool keyUsing: false + + BorderImage { + id: buttonImage + source: "images/toolbutton.sci" + width: container.width; height: container.height + } + BorderImage { + id: pressed + opacity: 0 + source: "images/toolbutton.sci" + width: container.width; height: container.height + } + MouseArea { + id: mouseRegion + anchors.fill: buttonImage + onClicked: { container.clicked(); } + } + Text { + id: btnText + color: if(container.keyUsing){"#D0D0D0";} else {"#FFFFFF";} + anchors.centerIn: buttonImage; font.bold: true + text: container.text; style: Text.Raised; styleColor: "black" + //font.pixelSize: 12 + } + states: [ + State { + name: "Pressed" + when: mouseRegion.pressed == true + PropertyChanges { target: pressed; opacity: 1 } + }, + State { + name: "Focused" + when: container.activeFocus == true + PropertyChanges { target: btnText; color: "#FFFFFF" } + } + ] + transitions: Transition { + ColorAnimation { target: btnText; } + } +} diff --git a/qml/qwp/content/Config.qml b/qml/qwp/content/Config.qml new file mode 100644 index 0000000..6db4c3a --- /dev/null +++ b/qml/qwp/content/Config.qml @@ -0,0 +1,88 @@ +import QtQuick 1.0 + +ShadowRectangle { + y: parent.height + anchors.horizontalCenter: parent.horizontalCenter + opacity: 1 + width: parent.width + height: wrappersc.height + color: "#7d7b97" + + Flow { + id: wrappersc + flow: Flow.TopToBottom + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter + spacing: 10 + anchors.bottomMargin: 5 + anchors.topMargin: 5 + Text { + text: "Language:" + font.bold: true; color: "white"; style: Text.Raised; styleColor: "black" + horizontalAlignment: Qt.AlignRight + } + Input{ + id: fromIn + KeyNavigation.backtab: searchbutton + KeyNavigation.tab:phraseIn + onAccepted:searchbutton.doSearch(); + focus: true + text: schModel.from + } + Text { + text: "Search:" + font.bold: true; color: "white"; style: Text.Raised; styleColor: "black" + horizontalAlignment: Qt.AlignRight + } + Input{ + id: phraseIn + KeyNavigation.backtab: fromIn + KeyNavigation.tab:searchbutton + onAccepted:searchbutton.doSearch(); + text: schModel.phrase + } + + Button { + x: 2 + width: menu.width-4 + height: menu.height + id: searchbutton + keyUsing: true; + opacity: 1 + text: "Go" + KeyNavigation.tab: fromIn + Keys.onReturnPressed: searchbutton.doSearch(); + Keys.onEnterPressed: searchbutton.doSearch(); + Keys.onSelectPressed: searchbutton.doSearch(); + Keys.onSpacePressed: searchbutton.doSearch(); + onClicked: searchbutton.doSearch(); + + function doSearch() { + // Search ! allowed + if (wrappersc.state=="invalidinput") + return; + + schModel.from=fromIn.text; + schModel.phrase = phraseIn.text; + fond.focus = true; + fond.state = "" + } + } + } + + states: + State { + name: "invalidinput" + when: fromIn.text=="" // && phraseIn.text=="" + PropertyChanges { target: searchbutton ; opacity: 0.6 ; } + } + + transitions: + Transition { + NumberAnimation { target: searchbutton; property: "opacity"; duration: 200 } + } +} + + + + diff --git a/qml/qwp/content/FatDelegate.qml b/qml/qwp/content/FatDelegate.qml new file mode 100644 index 0000000..2a83d99 --- /dev/null +++ b/qml/qwp/content/FatDelegate.qml @@ -0,0 +1,166 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the QtDeclarative module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the Technology Preview License Agreement accompanying +** this package. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain additional +** rights. These rights are described in the Nokia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** If you have questions regarding the use of this file, please contact +** Nokia at qt-info@nokia.com. +** +** +** +** +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +import QtQuick 1.0 +import QtWebKit 1.0 + +Component { + id: listDelegate + Item {property real detailsOpacity : 0 + id: wrapper; width: wrapper.ListView.view.width; height: if(txt.height > 60){txt.height+10}else{60} //50+5+5 + function handleLink(link){ + if(link.slice(0,3) == 'app'){ + screen.setUser(link.slice(7)); + }else if(link.slice(0,4) == 'http'){ + Qt.openUrlExternally(link); + } + } + function addTags(str){ + var ret = str.replace(/@[a-zA-Z0-9_]+/g, '$&');//click to jump to user? + var ret2 = ret.replace(/http:\/\/[^ \n\t]+/g, '$&');//surrounds http links with html link tags + return ret2; + } + + // Strip away paranthesis + function userName(str) { + var user = str.replace(/\([\S|\s]*\)/gi, ""); + return user.trim(); + } + + MouseArea { + anchors.fill: parent + onClicked: { + wrapper.state = 'Details'; + //timer.stop(); + loader.sourceComponent = webViewPage; + } + } + + Item { + id: moveMe; height: parent.height + Rectangle { + id: blackRect + color: "black"; opacity: wrapper.ListView.index % 2 ? 0.2 : 0.3; height: wrapper.height-2; width: wrapper.width; y: 1 + } + + Item { + id: image; x: 6; width: 48; height: 48; smooth: true + anchors.verticalCenter: parent.verticalCenter + + Loading { x: 1; y: 1; width: 48; height: 48; visible: realImage.status != Image.Ready } + Image { + id: realImage; + source: userImage; x: 1; y: 1; + width:48; height:48; opacity:0 ; + onStatusChanged: { + if(status==Image.Ready) + image.state="loaded" + } + } + states: State { + name: "loaded"; + PropertyChanges { target: realImage ; opacity:1 } + } + transitions: Transition { NumberAnimation { target: realImage; property: "opacity"; duration: 200 } } + + } + Text { id:txt; y:4; x: 56 + text: '' + + ''+userName(name) + " from " +source + + "
" + statusText + ""; + textFormat: Qt.RichText + color: "#cccccc"; style: Text.Raised; styleColor: "black"; wrapMode: Text.WordWrap + anchors.left: image.right; anchors.right: blackRect.right; anchors.leftMargin: 6; anchors.rightMargin: 6 + onLinkActivated: wrapper.handleLink(link) + } + } + Item { + id: details + x: 0; width: parent.width // - 20 + anchors { top: parent.top; topMargin: 10; bottom: parent.bottom; bottomMargin: 10 } + opacity: wrapper.detailsOpacity + + Grid { + columns: 3 + id: pages + height: parent.height; width: parent.width + + Component { + id: webViewPage + Rectangle { + width: webView.width + height: webView.height + border.color: "gray" + + WebView { + id: webView + newWindowComponent: webViewPage + newWindowParent: pages + url: "http://fr.wikipedia.org/w/index.php?title=" + name + } + } + } + + Loader { + id: loader + } + // Loader { sourceComponent: webViewPage } + } + } + + states: State { + name: "Details" + + PropertyChanges { target: blackRect; color: "#c0c0c0" } + //PropertyChanges { target: recipeImage; width: 130; height: 130 } // Make picture bigger + PropertyChanges { target: wrapper; detailsOpacity: 1; x: 0 } // Make details visible + PropertyChanges { target: wrapper; height: wrapper.ListView.view.height } //lstRC.height } // Fill the entire list area with the detailed view + + // Move the list so that this item is at the top. + PropertyChanges { target: wrapper.ListView.view; explicit: true; contentY: listDelegate.y } + + // Disallow flicking while we're in detailed view + PropertyChanges { target: wrapper.ListView.view; interactive: false } + } + + + } +} diff --git a/qml/qwp/content/Input.qml b/qml/qwp/content/Input.qml new file mode 100644 index 0000000..8e69415 --- /dev/null +++ b/qml/qwp/content/Input.qml @@ -0,0 +1,25 @@ +import QtQuick 1.0 + +FocusScope { + id:container + x:2 + width: menu.width-4 + height: menu.height + BorderImage { source: "images/lineedit.sci"; anchors.fill: parent } + signal accepted + property alias text: input.text + property alias item:input + TextInput{ + id: input + width: parent.width - 12 + anchors.centerIn: parent + maximumLength:21 + //font.pixelSize: 16; + font.bold: true + color: "#151515"; selectionColor: "mediumseagreen" + focus: true + onAccepted:{container.accepted()} + text: "" + selectByMouse: true + } +} diff --git a/qml/qwp/content/Loading.qml b/qml/qwp/content/Loading.qml new file mode 100644 index 0000000..13958b5 --- /dev/null +++ b/qml/qwp/content/Loading.qml @@ -0,0 +1,9 @@ +import QtQuick 1.0 + +Image { + id: loading; source: "loading.png" + //id: loading; source: "progress.png" + NumberAnimation on rotation { + from: 0; to: 360; running: loading.visible == true; loops: Animation.Infinite; duration: 900 + } +} diff --git a/qml/qwp/content/ParseModel.qml b/qml/qwp/content/ParseModel.qml new file mode 100644 index 0000000..dca051d --- /dev/null +++ b/qml/qwp/content/ParseModel.qml @@ -0,0 +1,12 @@ +import QtQuick 1.0 + +XmlListModel { + + source: "http://"+schModel.from+".wikipedia.org/w/api.php?action=parse&page="+innerTxt.text + +"&format=xml" + query: "/api/parse" + + XmlRole { name: "article"; query: "text/string()" } + + +} diff --git a/qml/qwp/content/RcDelegate.qml b/qml/qwp/content/RcDelegate.qml new file mode 100644 index 0000000..b0d6e6f --- /dev/null +++ b/qml/qwp/content/RcDelegate.qml @@ -0,0 +1,258 @@ +import QtQuick 1.0 +import QtWebKit 1.0 + + +Component { id: rcDelegate + Item { + id: delegateItem + property real detailsOpacity : 0 + property real minSize : 18 + width: parent.width; + height: 120 + Rectangle { + id: background + x: 2; y: 2; width: parent.width - x*2; height: parent.height - y*2 + // color: "#c0c0c0" + // border.color: "#606060" + radius: 3 + //opacity: delegateItem.detailsOpacity + gradient: Gradient { + GradientStop { + position: 0 + color: "#7d7b97" + } + + GradientStop { + position: 1 + color: "#313f4d" + } + } + } + MouseArea { + anchors.fill: parent + onClicked: { + delegateItem.state = 'Details'; + timer.stop(); + loader.sourceComponent = webViewPage; + } + } + + Row { + id: topLayout + //anchors.verticalCenter: parent.verticalCenter + spacing: 5 + width: parent.width-10 + height: parent.height-4 + x: 5 + Column { + ///anchors.verticalCenter: parent.verticalCenter + ///anchors.margins: 5 + width: parent.width + height: parent.height + //width: 2*parent.width/3 + Text { + anchors.margins: 5 + id: innerTxt + width: delegateItem.width; + text: title + color: "white" + font.pixelSize: delegateItem.minSize+2 + font.bold: true + wrapMode: Text.WrapAtWordBoundaryOrAnywhere + // opacity: delegateItem.detailsOpacity + } + Row { + spacing: 5 + Column { + Text { text: comment + width: delegateItem.width; + color: "White" + font.pixelSize: delegateItem.minSize + wrapMode: Text.WrapAtWordBoundaryOrAnywhere + // opacity: delegateItem.detailsOpacity + } + } + } + Row { + spacing: 5 + width: parent.width + ///anchors.bottom: parent.bottom + Column { + width: parent.width/2-2 + Text { + text: user + color: "white" + //font.bold: true + font.pixelSize: delegateItem.minSize + anchors.left: parent.left + } + } + Column { + width: parent.width/2-2 + Text { text: timestamp + color: "White" + font.pixelSize: delegateItem.minSize + anchors.right: parent.right + //opacity: delegateItem.detailsOpacity + } + } + } + } + } + + Item { + id: details + x: 0; width: parent.width //- 20 + anchors { top: topLayout.top; topMargin: 0; bottom: parent.bottom; bottomMargin: 0 } + // anchors.margins: 10 + opacity: delegateItem.detailsOpacity + //opacity: webView.progress == 1.0 ? 0.0 : 1.0 + + + Grid { + columns: 1 //3 + id: pages + height: parent.height; width: parent.width + + Component { + id: webViewPage + //Content.ParseModel { id: parseModel } + + Rectangle { + //width: webView.width + //height: webView.height + //border.color: "gray" + //color: "red" + /* + Content.ParseModel { id: parseModel } + WebView { + id: webView + width: details.width + height: details.height-60 + newWindowComponent: webViewPage + newWindowParent: pages + //url: "http://en.wikipedia.org/w/index.php?title=" + innerTxt.text + //url: "http://fr.wikipedia.org/w/api.php?action=parse&page="+innerTxt.text + +"&format=xml" + + function getArticle(title) { + parseModel.reload(); + + var article = parseModel.get(0).article; + console.debug("=>>>>innerText"+title); + return article; + } + html: getArticle(innerTxt.text) + } */ + ParseModel { id: parseModel } + + ListView { + id: lstTest + anchors.fill: parent + model: parseModel + + delegate: + //Text { text: article } + Rectangle { + color: "green" + width: details.width + height: details.height +/* + Flickable { + id: flickable + width: parent.width + height: parent.height + contentWidth: Math.max(flickable.width,webView.width) + contentHeight: Math.max(flickable.height,webView.height) + pressDelay: 100 +*/ + WebView { + id: webView + + transformOrigin: Item.TopLeft + + // smooth: false // We don't want smooth scaling, since we only scale during (fast) transitions + // focus: true + + + width: parent.width + height: parent.height + newWindowComponent: webViewPage + newWindowParent: pages + //color:"white" + html: "
"+article+"
" } + } + } + // } + } + } + /* Flickable { + id: flickable + width: parent.width + height: parent.height + contentWidth: Math.max(flickable.width,webView.width) + contentHeight: Math.max(flickable.height,webView.height) + pressDelay: 100 */ + + Loader { + id: loader + } + // } + + // Loader { sourceComponent: webViewPage } + } + } + + // A button to close the detailed view, i.e. set the state back to default (''). + TextButton { + //y: 10 + anchors { right: background.right; bottom: background.bottom ;rightMargin: 10 } + opacity: delegateItem.detailsOpacity + text: "Close" + + onClicked: { + delegateItem.state = ''; + timer.start(); + } + } + + // Animate adding and removing of items: + + ListView.onAdd: SequentialAnimation { + PropertyAction { target: delegateItem; property: "height"; value: 0 } + NumberAnimation { target: delegateItem; property: "height"; to: 120; duration: 250; easing.type: Easing.InOutQuad } + } + + ListView.onRemove: SequentialAnimation { + PropertyAction { target: delegateItem; property: "ListView.delayRemove"; value: true } + NumberAnimation { target: delegateItem; property: "height"; to: 0; duration: 250; easing.type: Easing.InOutQuad } + + // Make sure delayRemove is set back to false so that the item can be destroyed + PropertyAction { target: delegateItem; property: "ListView.delayRemove"; value: false } + } + + states: State { + name: "Details" + + PropertyChanges { target: background; color: "#c0c0c0" } + //PropertyChanges { target: recipeImage; width: 130; height: 130 } // Make picture bigger + PropertyChanges { target: delegateItem; detailsOpacity: 1; x: 0 } // Make details visible + PropertyChanges { target: delegateItem; height: lstRC.height } // Fill the entire list area with the detailed view + + // Move the list so that this item is at the top. + PropertyChanges { target: delegateItem.ListView.view; explicit: true; contentY: delegateItem.y } + + // Disallow flicking while we're in detailed view + PropertyChanges { target: delegateItem.ListView.view; interactive: false } + } + + transitions: Transition { + // Make the state changes smooth + ParallelAnimation { + ColorAnimation { property: "color"; duration: 500 } + NumberAnimation { duration: 300; properties: "detailsOpacity,x,contentY,height,width" } + } + } + + } +} diff --git a/qml/qwp/content/RssModel.qml b/qml/qwp/content/RssModel.qml new file mode 100644 index 0000000..b746786 --- /dev/null +++ b/qml/qwp/content/RssModel.qml @@ -0,0 +1,48 @@ +import QtQuick 1.0 + +XmlListModel { + + source: "http://en.wikipedia.org/w/api.php?action=query&list=recentchanges" + //+"&rcnamespace=0" + +"&rclimit=11" + +"&rctype="+gauche.cfgType + +"&rcprop=title|timestamp|ids|user|comment|sizes" + +"new&format=xml" + query: "/api/query/recentchanges/rc" + + XmlRole { name: "type"; query: "@type/string()" } + XmlRole { name: "ns"; query: "@ns/string()" } + XmlRole { name: "title"; query: "@title/string()" } + XmlRole { name: "rcid"; query: "@rcid/string()"; isKey: true} + XmlRole { name: "pageid"; query: "@pageid/string()" } + XmlRole { name: "revid"; query: "@revid/string()" } + XmlRole { name: "old_revide"; query: "@old_revid/string()" } + XmlRole { name: "timestamp"; query: "@timestamp/string()" } + XmlRole { name: "user"; query: "@user/string()" } + XmlRole { name: "comment"; query: "@comment/string()" } +/* + source: "http://fr.wikipedia.org/w/api.php?action=opensearch&search=Te&format=xml" + + namespaceDeclarations: "declare default element namespace 'http://opensearch.org/searchsuggest2'; "; + + query: "/SearchSuggestion/Section/Item" + + XmlRole { name: "title"; query: "Text/string()" } + XmlRole { name: "comment"; query: "Description/string()" } + XmlRole { name: "timestamp"; query: "Text/string()" } + XmlRole { name: "user"; query: "Url/string()" } + //XmlRole { name: "name"; query: "author/name/string()" } + XmlRole { name: "userImage"; query: "Image/@source/string()" } + + XmlRole { name: "type"; query: "@type/string()" } + XmlRole { name: "ns"; query: "@ns/string()" } + //XmlRole { name: "title"; query: "@title/string()" } + XmlRole { name: "rcid"; query: "@rcid/string()"; isKey: true} + XmlRole { name: "pageid"; query: "@pageid/string()" } + XmlRole { name: "revid"; query: "@revid/string()" } + XmlRole { name: "old_revide"; query: "@old_revid/string()" } + //XmlRole { name: "timestamp"; query: "@timestamp/string()" } + //XmlRole { name: "user"; query: "@user/string()" } + //XmlRole { name: "comment"; query: "@comment/string()" } + */ +} diff --git a/qml/qwp/content/SearchDelegate.qml b/qml/qwp/content/SearchDelegate.qml new file mode 100644 index 0000000..82f1d5e --- /dev/null +++ b/qml/qwp/content/SearchDelegate.qml @@ -0,0 +1,226 @@ +import QtQuick 1.0 +import QtWebKit 1.0 + +Component { + id: listDelegate + Item { + property real detailsOpacity : 0 + id: wrapper; width: wrapper.ListView.view.width; height: if(txt.height > 60){txt.height+10}else{60} //50+5+5 + function handleLink(link){ + if(link.slice(0,3) == 'app'){ + screen.setUser(link.slice(7)); + }else if(link.slice(0,4) == 'http'){ + Qt.openUrlExternally(link); + } + } + function addTags(str){ + var ret = str.replace(/@[a-zA-Z0-9_]+/g, '$&');//click to jump to user? + var ret2 = ret.replace(/http:\/\/[^ \n\t]+/g, '$&');//surrounds http links with html link tags + return ret2; + } + + // Strip away paranthesis + function userName(str) { + var user = str.replace(/\([\S|\s]*\)/gi, ""); + return user.trim(); + } + + MouseArea { + anchors.fill: parent + onClicked: { + wrapper.state = 'Details'; + loader.sourceComponent = webViewPage; + } + } + + Item { + id: moveMe; height: parent.height + /* Rectangle { + id: blackRect + color: "black"; opacity: wrapper.ListView.index % 2 ? 0.2 : 0.3; height: wrapper.height-2; width: wrapper.width; y: 1 + } */ + Rectangle { + id: blackRect + //x: 2; y: 2; width: parent.width - x*2; height: parent.height - y*2 + // opacity: wrapper.ListView.index % 2 ? 0.2 : 0.3; + height: wrapper.height-2; width: wrapper.width; y: 1 + radius: 3 + gradient: Gradient { + GradientStop { + position: 0 + color: "#7d7b97" + } + + GradientStop { + position: 1 + color: "#313f4d" + } + } + } + + Item { + id: image; x: 6; width: 48; height: 48; smooth: true + //anchors.verticalCenter: parent.verticalCenter + + Loading { x: 1; y: 1; width: 48; height: 48; visible: realImage.status != Image.Ready } + + Image { + id: realImage; + source: userImage == "" ? "qOp48.png" : userImage + x: 1; y: 5; + width:48; height:48; + opacity:0 ; + anchors.topMargin: 5 + + onStatusChanged: { + if(status==Image.Ready) + image.state="loaded" + if(status==Image.Error) + realImage.source="qOp48.png" + } + } + states: State { + name: "loaded"; + PropertyChanges { target: realImage ; opacity:1 } + } + transitions: Transition { NumberAnimation { target: realImage; property: "opacity"; duration: 200 } } + + } + Text { id:innerTxt ; text: name; opacity: 0 } + Text { id:txt; y:4; x: 56 + text: '' + + ''+userName(name) + '
' + statusText + ""; + textFormat: Qt.RichText + color: "#cccccc"; style: Text.Raised; styleColor: "black"; wrapMode: Text.WordWrap + anchors.left: image.right; anchors.right: blackRect.right; anchors.leftMargin: 6; anchors.rightMargin: 6 + onLinkActivated: wrapper.handleLink(link) + } + } + + Item { + id: details + x: 0; width: parent.width // - 20 + anchors { top: parent.top; topMargin: 0; bottom: parent.bottom; bottomMargin: 0 } + opacity: wrapper.detailsOpacity + + + Grid { + columns: 1 //3 + id: pages + height: parent.height; + width: parent.width + Component { + id: webViewPage + + Rectangle { + width: pages.width; height: pages.height; + gradient: Gradient { + GradientStop { + position: 0 + color: "#7d7b97" + } + + GradientStop { + position: 1 + color: "#313f4d" + } + } + + Loading { + //x: 1; y: 1; + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter + width: 32; height: 32; visible: webView.progress != 1 + } + + ParseModel { id: parseModel } + /* Grid { + x: 5; y: 5 + rows: 5; columns: 5; spacing: 10 */ + + Repeater { model: parseModel + Flickable { + id: flickable + width: pages.width + height: pages.height + contentWidth: Math.max(flickable.width,webView.width) + contentHeight: Math.max(flickable.height,webView.height) + pressDelay: 100 + + WebView { + id: webView + transformOrigin: Item.TopLeft + smooth: false + width: pages.width + preferredHeight: pages.height + contentsScale: 1 + //width: pages.width + //height: pages.height + newWindowComponent: webViewPage + newWindowParent: pages + html: "
"+article+"
" + onLoadFinished: { + // console.log('Loaded'); + details.state="loaded"; + } + } + } + } + } + } + + Loader { + id: loader + } + + } + + states: State { + name: "loaded"; + PropertyChanges { target: details ; opacity:wrapper.detailsOpacity } + } + transitions: Transition { NumberAnimation { target: details; property: "opacity"; duration: 200 } } + } + + // A button to close the detailed view, i.e. set the state back to default (''). + TextButton { + //y: 10 + anchors { right: wrapper.right; bottom: wrapper.bottom ;rightMargin: 10 } + opacity: wrapper.detailsOpacity + text: "Close" + + onClicked: { + wrapper.state = ''; + details.state = ''; + // timer.start(); + } + } + + /* } /* ********** */ + + + states: State { + name: "Details" + + // PropertyChanges { target: blackRect; color: "#c0c0c0" } + //PropertyChanges { target: recipeImage; width: 130; height: 130 } // Make picture bigger + PropertyChanges { target: wrapper; detailsOpacity: 1; x: 0 } // Make details visible + PropertyChanges { target: wrapper; height: wrapper.ListView.view.height } //lstRC.height } // Fill the entire list area with the detailed view + + // Move the list so that this item is at the top. + PropertyChanges { target: wrapper.ListView.view; explicit: true; contentY: wrapper.y } + + // Disallow flicking while we're in detailed view + PropertyChanges { target: wrapper.ListView.view; interactive: false } + } + + transitions: Transition { + // Make the state changes smooth + ParallelAnimation { + //ColorAnimation { property: "color"; duration: 500 } + NumberAnimation { duration: 300; properties: "detailsOpacity,x,contentY,height,width" } + } + } + + } +} diff --git a/qml/qwp/content/SearchModel.qml b/qml/qwp/content/SearchModel.qml new file mode 100644 index 0000000..6372572 --- /dev/null +++ b/qml/qwp/content/SearchModel.qml @@ -0,0 +1,26 @@ +import QtQuick 1.0 + +Item { + id: wrapper + property variant model: schModel + property string from : "en" + property string to : "" + property string phrase : "Qt" + + property string mode : "everyone" + property int status: schModel.status + function reload() { schModel.reload(); } + + XmlListModel { + id: schModel + + source: "http://"+from+".wikipedia.org/w/api.php?action=opensearch&search="+phrase+"&limit=100&format=xml" + namespaceDeclarations: "declare default element namespace 'http://opensearch.org/searchsuggest2'; "; + query: "/SearchSuggestion/Section/Item" + + XmlRole { name: "name"; query: "Text/string()" } + XmlRole { name: "statusText"; query: "Description/string()" } + XmlRole { name: "source"; query: "Url/string()" } + XmlRole { name: "userImage"; query: "Image/@source/string()" } + } +} diff --git a/qml/qwp/content/ShadowRectangle.qml b/qml/qwp/content/ShadowRectangle.qml new file mode 100644 index 0000000..426c029 --- /dev/null +++ b/qml/qwp/content/ShadowRectangle.qml @@ -0,0 +1,54 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the examples of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:BSD$ +** You may use this file under the terms of the BSD license as follows: +** +** "Redistribution and use in source and binary forms, with or without +** modification, are permitted provided that the following conditions are +** met: +** * Redistributions of source code must retain the above copyright +** notice, this list of conditions and the following disclaimer. +** * Redistributions in binary form must reproduce the above copyright +** notice, this list of conditions and the following disclaimer in +** the documentation and/or other materials provided with the +** distribution. +** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor +** the names of its contributors may be used to endorse or promote +** products derived from this software without specific prior written +** permission. +** +** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." +** $QT_END_LICENSE$ +** +****************************************************************************/ + +import QtQuick 1.0 + +Item { + property alias color : rectangle.color + + BorderImage { + anchors.fill: rectangle + anchors { leftMargin: -6; topMargin: -6; rightMargin: -8; bottomMargin: -8 } + border { left: 10; top: 10; right: 10; bottom: 10 } + source: "shadow.png"; smooth: true + } + + Rectangle { id: rectangle; radius: 2; anchors.fill: parent } +} diff --git a/qml/qwp/content/TextButton.qml b/qml/qwp/content/TextButton.qml new file mode 100644 index 0000000..32ca454 --- /dev/null +++ b/qml/qwp/content/TextButton.qml @@ -0,0 +1,79 @@ +/**************************************************************************** +** +** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the examples of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:BSD$ +** You may use this file under the terms of the BSD license as follows: +** +** "Redistribution and use in source and binary forms, with or without +** modification, are permitted provided that the following conditions are +** met: +** * Redistributions of source code must retain the above copyright +** notice, this list of conditions and the following disclaimer. +** * Redistributions in binary form must reproduce the above copyright +** notice, this list of conditions and the following disclaimer in +** the documentation and/or other materials provided with the +** distribution. +** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor +** the names of its contributors may be used to endorse or promote +** products derived from this software without specific prior written +** permission. +** +** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." +** $QT_END_LICENSE$ +** +****************************************************************************/ + +import QtQuick 1.0 + +Rectangle { + id: container + + property alias text: label.text + + signal clicked + + width: label.width + 20; height: label.height + 6 + smooth: true + radius: 5 + + gradient: Gradient { + GradientStop { id: gradientStop; position: 0.0; color: palette.light } + GradientStop { position: 1.0; color: palette.button } + } + + SystemPalette { id: palette } + + MouseArea { + id: mouseArea + anchors.fill: parent + onClicked: { container.clicked() } + } + + Text { + id: label + anchors.centerIn: parent + color: "white" + } + + states: State { + name: "pressed" + when: mouseArea.pressed + PropertyChanges { target: gradientStop; color: palette.dark } + } +} + diff --git a/qml/qwp/content/UserChoice.qml b/qml/qwp/content/UserChoice.qml new file mode 100644 index 0000000..c768ecd --- /dev/null +++ b/qml/qwp/content/UserChoice.qml @@ -0,0 +1,95 @@ +import QtQuick 1.0 + +Rectangle { + y: parent.height + anchors.horizontalCenter: parent.horizontalCenter + opacity: 1 + width: parent.width + height: parent.height + color: "black" + + ListModel { + id: userModel + ListElement { + name: "WatchList" + // bouton: "button-green.png" + // btmenu: "Configuration" + // action: "" + } + ListElement { + name: "RecentChanges" + // bouton: "button-blue.png" + // btmenu: "" + // action: "load" + } + /* + ListElement { + name: "Bill Smyth" + bouton: "button-purple.png" + btmenu: "UserChoice" + action: "" + } + ListElement { + name: "Sam Wise" + bouton: "button-red.png" + btmenu: "Parametrage" + action: "" + } + */ + } + + Component { + id: userDelegate + Item { + width: grid.cellWidth; height: grid.cellHeight + Column { + anchors.fill: parent + Rectangle { + x: 2 + width: parent.width-4 + height: parent.height-4 + radius: 5 + // anchors.fill: parent + // color: "blue" + gradient: Gradient { + GradientStop { + position: 0 + color: "#7d7b97" + } + + GradientStop { + position: 1 + color: "#313f4d" + } + } + Text { text: name + color: "white" + font.bold: true + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenter: parent.verticalCenter + MouseArea { + anchors.fill: parent + onClicked: { + fond.state = btmenu + } + } + } + } + } + } + } + + GridView { + id: grid + width: parent.width + height: parent.height + anchors.verticalCenter: parent.verticalCenter + anchors.verticalCenterOffset: 8 + contentWidth: parent.width + cellWidth: parent.width + cellHeight: 60 + model: userModel + delegate: userDelegate + focus: true + } +} diff --git a/qml/qwp/content/background.png b/qml/qwp/content/background.png new file mode 100644 index 0000000..72dffaa Binary files /dev/null and b/qml/qwp/content/background.png differ diff --git a/qml/qwp/content/button-blue.png b/qml/qwp/content/button-blue.png new file mode 100644 index 0000000..5f92de3 Binary files /dev/null and b/qml/qwp/content/button-blue.png differ diff --git a/qml/qwp/content/button-green.png b/qml/qwp/content/button-green.png new file mode 100644 index 0000000..36c9391 Binary files /dev/null and b/qml/qwp/content/button-green.png differ diff --git a/qml/qwp/content/button-purple.png b/qml/qwp/content/button-purple.png new file mode 100644 index 0000000..347cbbe Binary files /dev/null and b/qml/qwp/content/button-purple.png differ diff --git a/qml/qwp/content/button-red.png b/qml/qwp/content/button-red.png new file mode 100644 index 0000000..3b33589 Binary files /dev/null and b/qml/qwp/content/button-red.png differ diff --git a/qml/qwp/content/cancel.png b/qml/qwp/content/cancel.png new file mode 100644 index 0000000..9ae8682 Binary files /dev/null and b/qml/qwp/content/cancel.png differ diff --git a/qml/qwp/content/images/gloss.png b/qml/qwp/content/images/gloss.png new file mode 100644 index 0000000..5d370cd Binary files /dev/null and b/qml/qwp/content/images/gloss.png differ diff --git a/qml/qwp/content/images/lineedit.png b/qml/qwp/content/images/lineedit.png new file mode 100644 index 0000000..2cc38dc Binary files /dev/null and b/qml/qwp/content/images/lineedit.png differ diff --git a/qml/qwp/content/images/lineedit.sci b/qml/qwp/content/images/lineedit.sci new file mode 100644 index 0000000..054bff7 --- /dev/null +++ b/qml/qwp/content/images/lineedit.sci @@ -0,0 +1,5 @@ +border.left: 10 +border.top: 10 +border.bottom: 10 +border.right: 10 +source: lineedit.png diff --git a/qml/qwp/content/images/loading.png b/qml/qwp/content/images/loading.png new file mode 100644 index 0000000..47a1589 Binary files /dev/null and b/qml/qwp/content/images/loading.png differ diff --git a/qml/qwp/content/images/quit.png b/qml/qwp/content/images/quit.png new file mode 100644 index 0000000..5bda1b6 Binary files /dev/null and b/qml/qwp/content/images/quit.png differ diff --git a/qml/qwp/content/images/stripes.png b/qml/qwp/content/images/stripes.png new file mode 100644 index 0000000..9f36727 Binary files /dev/null and b/qml/qwp/content/images/stripes.png differ diff --git a/qml/qwp/content/images/titlebar.png b/qml/qwp/content/images/titlebar.png new file mode 100644 index 0000000..51c9008 Binary files /dev/null and b/qml/qwp/content/images/titlebar.png differ diff --git a/qml/qwp/content/images/titlebar.sci b/qml/qwp/content/images/titlebar.sci new file mode 100644 index 0000000..0418d94 --- /dev/null +++ b/qml/qwp/content/images/titlebar.sci @@ -0,0 +1,5 @@ +border.left: 10 +border.top: 12 +border.bottom: 12 +border.right: 10 +source: titlebar.png diff --git a/qml/qwp/content/images/toolbutton.png b/qml/qwp/content/images/toolbutton.png new file mode 100644 index 0000000..1131001 Binary files /dev/null and b/qml/qwp/content/images/toolbutton.png differ diff --git a/qml/qwp/content/images/toolbutton.sci b/qml/qwp/content/images/toolbutton.sci new file mode 100644 index 0000000..9e4f965 --- /dev/null +++ b/qml/qwp/content/images/toolbutton.sci @@ -0,0 +1,5 @@ +border.left: 15 +border.top: 4 +border.bottom: 4 +border.right: 15 +source: toolbutton.png diff --git a/qml/qwp/content/loading.png b/qml/qwp/content/loading.png new file mode 100644 index 0000000..47a1589 Binary files /dev/null and b/qml/qwp/content/loading.png differ diff --git a/qml/qwp/content/meet.png b/qml/qwp/content/meet.png new file mode 100644 index 0000000..00b2c09 Binary files /dev/null and b/qml/qwp/content/meet.png differ diff --git a/qml/qwp/content/progress.png b/qml/qwp/content/progress.png new file mode 100644 index 0000000..129a6cb Binary files /dev/null and b/qml/qwp/content/progress.png differ diff --git a/qml/qwp/content/qOp.png b/qml/qwp/content/qOp.png new file mode 100644 index 0000000..e00cf47 Binary files /dev/null and b/qml/qwp/content/qOp.png differ diff --git a/qml/qwp/content/qOp48.png b/qml/qwp/content/qOp48.png new file mode 100644 index 0000000..9f50f2f Binary files /dev/null and b/qml/qwp/content/qOp48.png differ diff --git a/qml/qwp/content/quit.png b/qml/qwp/content/quit.png new file mode 100644 index 0000000..5bda1b6 Binary files /dev/null and b/qml/qwp/content/quit.png differ diff --git a/qml/qwp/content/shadow.png b/qml/qwp/content/shadow.png new file mode 100644 index 0000000..431af85 Binary files /dev/null and b/qml/qwp/content/shadow.png differ diff --git a/qml/qwp/content/test.qml b/qml/qwp/content/test.qml new file mode 100644 index 0000000..32aba20 --- /dev/null +++ b/qml/qwp/content/test.qml @@ -0,0 +1,39 @@ +import QtQuick 1.0 +import QtWebKit 1.0 + +Rectangle { + height: 200 + width: 200 + color: "#141d49" + Rectangle { + id: rectangle1 + border.color: "#0037ff" + gradient: Gradient { + GradientStop { + position: 0 + color: "#7d7b97" + } + + GradientStop { + position: 1 + color: "#313f4d" + } + } + anchors.rightMargin: 20 + anchors.leftMargin: 20 + anchors.bottomMargin: 20 + anchors.topMargin: 20 + anchors.fill: parent + anchors.margins: 2 + + Text { + id: text1 + x: 11 + y: 12 + width: 80 + height: 20 + text: "text" + font.pixelSize: 12 + } + } +} diff --git a/qml/qwp/content/vue.png b/qml/qwp/content/vue.png new file mode 100644 index 0000000..ed675c1 Binary files /dev/null and b/qml/qwp/content/vue.png differ diff --git a/qml/qwp/dataloader.js b/qml/qwp/dataloader.js new file mode 100644 index 0000000..c26e286 --- /dev/null +++ b/qml/qwp/dataloader.js @@ -0,0 +1,9 @@ +// ![0] +WorkerScript.onMessage = function(msg) { + if (msg.action == 'appendCurrentTime') { + var data = {'time': new Date().toTimeString()}; + msg.model.reload(); //append(data); + //msg.model.sync(); // updates the changes to the list + } +} +// ![0] diff --git a/qml/qwp/main.qml b/qml/qwp/main.qml new file mode 100644 index 0000000..f11336c --- /dev/null +++ b/qml/qwp/main.qml @@ -0,0 +1,154 @@ +import QtQuick 1.0 +import QtWebKit 1.0 +import "content" as Content + +Rectangle { + id: fond + // SystemPalette { id: palette; colorGroup: SystemPalette.Active } + width: 420; height: 800 + // width: 800; height: 420 + color: "black" // "#4C4C4B" //#B5BAB4" + + /* Image { + id: image1 + rotation: 0 + anchors.fill: parent + source: "content/background.png" + } +*/ + /* + Timer { + id: timer + interval: 1000; repeat: true + running: true + triggeredOnStart: true + onTriggered: { + xmlModel.reload() + } + } +*/ + // Content.RssModel { id: xmlModel } + + Rectangle { id: firstView + width: parent.width + height: parent.height-menu.height + color: "black" + + Content.SearchModel { id: schModel } + Content.Loading { anchors.centerIn: parent; visible: schModel.status==XmlListModel.Loading} + + Text { + width: 180 + text: "Problem."; + color: "#cccccc"; style: Text.Raised; styleColor: "black"; wrapMode: Text.WordWrap + visible: schModel.status==XmlListModel.Error; anchors.centerIn: parent + } + + Content.SearchDelegate { id: schDelegate } + + ListView { + id: mainView; model: schModel.model; delegate: schDelegate; + width: parent.width; height: parent.height; x: 0; cacheBuffer: 100; + } + } + + /* + Content.RcDelegate { id: rcDelegate } + + ListView { id: lstRC + anchors.fill: parent + model: xmlModel + delegate: rcDelegate + } + } /* */ + + Rectangle { id: droite + x: parent.width + anchors.verticalCenter: parent.verticalCenter + opacity: 1 + width: parent.width + height: parent.height + // color: "#f93838" + color: "#DBC293" + + MouseArea { + anchors.fill: parent + onClicked: { fond.state = '' } + } + + Text { + id: text1 + width: 80 + height: 20 + text: "Panneau droit" + anchors.leftMargin: 5 + anchors.topMargin: 5 + anchors.left: parent.left + anchors.top: parent.top + font.pixelSize: 12 + } + } + + Content.Config { id: gauche } + Content.UserChoice { id: userchoice } + + Content.ShadowRectangle { id: menu + width: fond.width + height: 70 + color: "#B39A6A" //123662" + anchors.bottom: parent.bottom + anchors.bottomMargin: 0 + anchors.horizontalCenter: parent.horizontalCenter + opacity: 0.8 + + Flow { + id: gridMenu + width: parent.width-10 + height: parent.height + anchors.right: parent.right + //anchors.rightMargin: 10 + anchors.margins: 5 + //anchors.fill: parent + anchors.horizontalCenter: parent.horizontalCenter + anchors.verticalCenterOffset: 8 + // contentWidth: parent.width + // cellWidth: parent.width/4 + // cellHeight: parent.height + + Image { source: "content/vue.png"; anchors.right: parent.right; + anchors.verticalCenter: parent.verticalCenter + MouseArea { anchors.fill: parent + onClicked: { fond.state = "Configuration" } + } + } + } + } + + states: [ + State { + name: "Parametrage" + PropertyChanges { + target: droite + x: 0 + } + }, + State { + name: "Configuration" + PropertyChanges { + target: gauche + y: fond.height-gauche.height-menu.height + } + }, + State { + name: "UserChoice" + PropertyChanges { + target: userchoice + y: fond.height-userchoice.height + } + } + ] + + transitions: Transition { + NumberAnimation { properties: "x,y"; easing.type: Easing.OutBounce; easing.amplitude: 3.0; easing.period: 1.0; duration: 1000 } + } +} diff --git a/qmlapplicationviewer.o b/qmlapplicationviewer.o new file mode 100644 index 0000000..28001d8 Binary files /dev/null and b/qmlapplicationviewer.o differ diff --git a/qmlapplicationviewer/qmlapplicationviewer.cpp b/qmlapplicationviewer/qmlapplicationviewer.cpp new file mode 100644 index 0000000..11bedd1 --- /dev/null +++ b/qmlapplicationviewer/qmlapplicationviewer.cpp @@ -0,0 +1,157 @@ +// checksum 0x28c7 version 0x2000a +/* + This file was generated by the Qt Quick Application wizard of Qt Creator. + QmlApplicationViewer is a convenience class containing mobile device specific + code such as screen orientation handling. Also QML paths and debugging are + handled here. + It is recommended not to modify this file, since newer versions of Qt Creator + may offer an updated version of it. +*/ + +#include "qmlapplicationviewer.h" + +#include +#include +#include +#include +#include +#include + +#if defined(QMLJSDEBUGGER) +#include +#endif + +#if defined(QMLJSDEBUGGER) && !defined(NO_JSDEBUGGER) +#include +#endif +#if defined(QMLJSDEBUGGER) && !defined(NO_QMLOBSERVER) +#include +#endif + +#if defined(Q_OS_SYMBIAN) && defined(ORIENTATIONLOCK) +#include +#include +#include +#include +#endif // Q_OS_SYMBIAN && ORIENTATIONLOCK + +#if defined(QMLJSDEBUGGER) + +// Enable debugging before any QDeclarativeEngine is created +struct QmlJsDebuggingEnabler +{ + QmlJsDebuggingEnabler() + { + QDeclarativeDebugHelper::enableDebugging(); + } +}; + +// Execute code in constructor before first QDeclarativeEngine is instantiated +static QmlJsDebuggingEnabler enableDebuggingHelper; + +#endif // QMLJSDEBUGGER + +class QmlApplicationViewerPrivate +{ + QString mainQmlFile; + friend class QmlApplicationViewer; + static QString adjustPath(const QString &path); +}; + +QString QmlApplicationViewerPrivate::adjustPath(const QString &path) +{ +#ifdef Q_OS_UNIX +#ifdef Q_OS_MAC + if (!QDir::isAbsolutePath(path)) + return QCoreApplication::applicationDirPath() + + QLatin1String("/../Resources/") + path; +#else + const QString pathInShareDir = QCoreApplication::applicationDirPath() + + QLatin1String("/../share/") + + QFileInfo(QCoreApplication::applicationFilePath()).fileName() + + QLatin1Char('/') + path; + if (QFileInfo(pathInShareDir).exists()) + return pathInShareDir; +#endif +#endif + return path; +} + +QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) : + QDeclarativeView(parent), + m_d(new QmlApplicationViewerPrivate) +{ + connect(engine(), SIGNAL(quit()), SLOT(close())); + setResizeMode(QDeclarativeView::SizeRootObjectToView); +#if defined(QMLJSDEBUGGER) && !defined(NO_JSDEBUGGER) + new QmlJSDebugger::JSDebuggerAgent(engine()); +#endif +#if defined(QMLJSDEBUGGER) && !defined(NO_QMLOBSERVER) + new QmlJSDebugger::QDeclarativeViewObserver(this, parent); +#endif +} + +QmlApplicationViewer::~QmlApplicationViewer() +{ + delete m_d; +} + +void QmlApplicationViewer::setMainQmlFile(const QString &file) +{ + m_d->mainQmlFile = QmlApplicationViewerPrivate::adjustPath(file); + setSource(QUrl::fromLocalFile(m_d->mainQmlFile)); +} + +void QmlApplicationViewer::addImportPath(const QString &path) +{ + engine()->addImportPath(QmlApplicationViewerPrivate::adjustPath(path)); +} + +void QmlApplicationViewer::setOrientation(ScreenOrientation orientation) +{ +#ifdef Q_OS_SYMBIAN + if (orientation != ScreenOrientationAuto) { +#if defined(ORIENTATIONLOCK) + const CAknAppUiBase::TAppUiOrientation uiOrientation = + (orientation == ScreenOrientationLockPortrait) ? CAknAppUi::EAppUiOrientationPortrait + : CAknAppUi::EAppUiOrientationLandscape; + CAknAppUi* appUi = dynamic_cast (CEikonEnv::Static()->AppUi()); + TRAPD(error, + if (appUi) + appUi->SetOrientationL(uiOrientation); + ); + Q_UNUSED(error) +#else // ORIENTATIONLOCK + qWarning("'ORIENTATIONLOCK' needs to be defined on Symbian when locking the orientation."); +#endif // ORIENTATIONLOCK + } +#elif defined(Q_WS_MAEMO_5) + Qt::WidgetAttribute attribute; + switch (orientation) { + case ScreenOrientationLockPortrait: + attribute = Qt::WA_Maemo5PortraitOrientation; + break; + case ScreenOrientationLockLandscape: + attribute = Qt::WA_Maemo5LandscapeOrientation; + break; + case ScreenOrientationAuto: + default: + attribute = Qt::WA_Maemo5AutoOrientation; + break; + } + setAttribute(attribute, true); +#else // Q_OS_SYMBIAN + Q_UNUSED(orientation); +#endif // Q_OS_SYMBIAN +} + +void QmlApplicationViewer::showExpanded() +{ +#ifdef Q_OS_SYMBIAN + showFullScreen(); +#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6) + showMaximized(); +#else + show(); +#endif +} diff --git a/qmlapplicationviewer/qmlapplicationviewer.h b/qmlapplicationviewer/qmlapplicationviewer.h new file mode 100644 index 0000000..143c17b --- /dev/null +++ b/qmlapplicationviewer/qmlapplicationviewer.h @@ -0,0 +1,39 @@ +// checksum 0x5a59 version 0x2000a +/* + This file was generated by the Qt Quick Application wizard of Qt Creator. + QmlApplicationViewer is a convenience class containing mobile device specific + code such as screen orientation handling. Also QML paths and debugging are + handled here. + It is recommended not to modify this file, since newer versions of Qt Creator + may offer an updated version of it. +*/ + +#ifndef QMLAPPLICATIONVIEWER_H +#define QMLAPPLICATIONVIEWER_H + +#include + +class QmlApplicationViewer : public QDeclarativeView +{ + Q_OBJECT + +public: + enum ScreenOrientation { + ScreenOrientationLockPortrait, + ScreenOrientationLockLandscape, + ScreenOrientationAuto + }; + + explicit QmlApplicationViewer(QWidget *parent = 0); + virtual ~QmlApplicationViewer(); + + void setMainQmlFile(const QString &file); + void addImportPath(const QString &path); + void setOrientation(ScreenOrientation orientation); + void showExpanded(); + +private: + class QmlApplicationViewerPrivate *m_d; +}; + +#endif // QMLAPPLICATIONVIEWER_H diff --git a/qmlapplicationviewer/qmlapplicationviewer.pri b/qmlapplicationviewer/qmlapplicationviewer.pri new file mode 100644 index 0000000..580d15e --- /dev/null +++ b/qmlapplicationviewer/qmlapplicationviewer.pri @@ -0,0 +1,169 @@ +# checksum 0x89 version 0x2000a +# This file was generated by the Qt Quick Application wizard of Qt Creator. +# The code below adds the QmlApplicationViewer to the project and handles the +# activation of QML debugging. +# It is recommended not to modify this file, since newer versions of Qt Creator +# may offer an updated version of it. + +QT += declarative + +SOURCES += $$PWD/qmlapplicationviewer.cpp +HEADERS += $$PWD/qmlapplicationviewer.h +INCLUDEPATH += $$PWD + +defineTest(minQtVersion) { + maj = $$1 + min = $$2 + patch = $$3 + isEqual(QT_MAJOR_VERSION, $$maj) { + isEqual(QT_MINOR_VERSION, $$min) { + isEqual(QT_PATCH_VERSION, $$patch) { + return(true) + } + greaterThan(QT_PATCH_VERSION, $$patch) { + return(true) + } + } + greaterThan(QT_MINOR_VERSION, $$min) { + return(true) + } + } + return(false) +} + +contains(DEFINES, QMLJSDEBUGGER) { + CONFIG(debug, debug|release) { + !minQtVersion(4, 7, 1) { + warning() + warning("Disabling QML debugging:") + warning() + warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.") + warning("This library requires Qt 4.7.1 or newer.") + warning() + DEFINES -= QMLJSDEBUGGER + } else:isEmpty(QMLJSDEBUGGER_PATH) { + warning() + warning("Disabling QML debugging:") + warning() + warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.") + warning("Please specify its location on the qmake command line, eg") + warning(" qmake -r QMLJSDEBUGGER_PATH=$CREATORDIR/share/qtcreator/qmljsdebugger") + warning() + DEFINES -= QMLJSDEBUGGER + } else { + include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri) + } + } else { + DEFINES -= QMLJSDEBUGGER + } +} +# This file was generated by an application wizard of Qt Creator. +# The code below handles deployment to Symbian and Maemo, aswell as copying +# of the application data to shadow build directories on desktop. +# It is recommended not to modify this file, since newer versions of Qt Creator +# may offer an updated version of it. + +defineTest(qtcAddDeployment) { +for(deploymentfolder, DEPLOYMENTFOLDERS) { + item = item$${deploymentfolder} + itemsources = $${item}.sources + $$itemsources = $$eval($${deploymentfolder}.source) + itempath = $${item}.path + $$itempath= $$eval($${deploymentfolder}.target) + export($$itemsources) + export($$itempath) + DEPLOYMENT += $$item +} + +MAINPROFILEPWD = $$PWD + +symbian { + ICON = $${TARGET}.svg + TARGET.EPOCHEAPSIZE = 0x20000 0x2000000 + contains(DEFINES, ORIENTATIONLOCK):LIBS += -lavkon -leikcore -lcone + contains(DEFINES, NETWORKACCESS):TARGET.CAPABILITY += NetworkServices +} else:win32 { + copyCommand = + for(deploymentfolder, DEPLOYMENTFOLDERS) { + source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) + source = $$replace(source, /, \\) + sourcePathSegments = $$split(source, \\) + target = $$OUT_PWD/$$eval($${deploymentfolder}.target)/$$last(sourcePathSegments) + target = $$replace(target, /, \\) + !isEqual(source,$$target) { + !isEmpty(copyCommand):copyCommand += && + copyCommand += $(COPY_DIR) \"$$source\" \"$$target\" + } + } + !isEmpty(copyCommand) { + copyCommand = @echo Copying application data... && $$copyCommand + copydeploymentfolders.commands = $$copyCommand + first.depends = $(first) copydeploymentfolders + export(first.depends) + export(copydeploymentfolders.commands) + QMAKE_EXTRA_TARGETS += first copydeploymentfolders + } +} else:unix { + maemo5 { + installPrefix = /opt/usr + desktopfile.path = /usr/share/applications/hildon + } else { + installPrefix = /usr/local + desktopfile.path = /usr/share/applications + copyCommand = + for(deploymentfolder, DEPLOYMENTFOLDERS) { + source = $$MAINPROFILEPWD/$$eval($${deploymentfolder}.source) + source = $$replace(source, \\, /) + macx { + target = $$OUT_PWD/$${TARGET}.app/Contents/Resources/$$eval($${deploymentfolder}.target) + } else { + target = $$OUT_PWD/$$eval($${deploymentfolder}.target) + } + target = $$replace(target, \\, /) + sourcePathSegments = $$split(source, /) + targetFullPath = $$target/$$last(sourcePathSegments) + !isEqual(source,$$targetFullPath) { + !isEmpty(copyCommand):copyCommand += && + copyCommand += $(MKDIR) \"$$target\" + copyCommand += && $(COPY_DIR) \"$$source\" \"$$target\" + } + } + !isEmpty(copyCommand) { + copyCommand = @echo Copying application data... && $$copyCommand + copydeploymentfolders.commands = $$copyCommand + first.depends = $(first) copydeploymentfolders + export(first.depends) + export(copydeploymentfolders.commands) + QMAKE_EXTRA_TARGETS += first copydeploymentfolders + } + } + for(deploymentfolder, DEPLOYMENTFOLDERS) { + item = item$${deploymentfolder} + itemfiles = $${item}.files + $$itemfiles = $$eval($${deploymentfolder}.source) + itempath = $${item}.path + $$itempath = $${installPrefix}/share/$${TARGET}/$$eval($${deploymentfolder}.target) + export($$itemfiles) + export($$itempath) + INSTALLS += $$item + } + icon.files = $${TARGET}.png + icon.path = /usr/share/icons/hicolor/64x64/apps + desktopfile.files = $${TARGET}.desktop + target.path = $${installPrefix}/bin + export(icon.files) + export(icon.path) + export(desktopfile.files) + export(desktopfile.path) + export(target.path) + INSTALLS += desktopfile icon target +} + +export (ICON) +export (INSTALLS) +export (DEPLOYMENT) +export (TARGET.EPOCHEAPSIZE) +export (TARGET.CAPABILITY) +export (LIBS) +export (QMAKE_EXTRA_TARGETS) +} diff --git a/qtc_packaging/debian_fremantle/README b/qtc_packaging/debian_fremantle/README new file mode 100644 index 0000000..e874387 --- /dev/null +++ b/qtc_packaging/debian_fremantle/README @@ -0,0 +1,6 @@ +The Debian Package qwp +---------------------------- + +Comments regarding the Package + + -- unknown <> Fri, 28 Jan 2011 08:55:57 +0000 diff --git a/qtc_packaging/debian_fremantle/changelog b/qtc_packaging/debian_fremantle/changelog new file mode 100644 index 0000000..12e4fcc --- /dev/null +++ b/qtc_packaging/debian_fremantle/changelog @@ -0,0 +1,5 @@ +qwp (0.0.1) unstable; urgency=low + + * Initial Release. + + -- EDUCA33E <> Fri, 28 Jan 2011 08:55:57 +0000 diff --git a/qtc_packaging/debian_fremantle/compat b/qtc_packaging/debian_fremantle/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/qtc_packaging/debian_fremantle/compat @@ -0,0 +1 @@ +7 diff --git a/qtc_packaging/debian_fremantle/control b/qtc_packaging/debian_fremantle/control new file mode 100644 index 0000000..5033c2b --- /dev/null +++ b/qtc_packaging/debian_fremantle/control @@ -0,0 +1,13 @@ +Source: qwp +Section: user/education +Priority: optional +Maintainer: EDUCA33E +Build-Depends: debhelper (>= 5), libqt4-dev +Standards-Version: 3.7.3 +Homepage: + +Package: qwp +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, mcsp +Description: QML Search tool for Wikipedia on N900 + QML Search tool for Wikipedia on N900 diff --git a/qtc_packaging/debian_fremantle/copyright b/qtc_packaging/debian_fremantle/copyright new file mode 100644 index 0000000..38bf6ef --- /dev/null +++ b/qtc_packaging/debian_fremantle/copyright @@ -0,0 +1,40 @@ +This package was debianized by unknown <> on +Fri, 28 Jan 2011 08:55:57 +0000. + +It was downloaded from + +Upstream Author(s): + + + + +Copyright: + + + + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is (C) 2011, unknown <> and +is licensed under the GPL, see above. + + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. diff --git a/qtc_packaging/debian_fremantle/rules b/qtc_packaging/debian_fremantle/rules new file mode 100644 index 0000000..5904970 --- /dev/null +++ b/qtc_packaging/debian_fremantle/rules @@ -0,0 +1,91 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + + + + + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + + touch configure-stamp + + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/qwp.sgml > qwp.1 + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + $(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/qwp. + $(MAKE) INSTALL_ROOT="$(CURDIR)"/debian/qwp install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_python +# dh_installinit +# dh_installcron +# dh_installinfo + dh_installman + dh_link + # dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_makeshlibs + dh_installdeb + # dh_shlibdeps # Uncomment this line for publishing! + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/qwp b/qwp new file mode 100644 index 0000000..636b3a5 Binary files /dev/null and b/qwp differ diff --git a/qwp.desktop b/qwp.desktop new file mode 100644 index 0000000..f433215 --- /dev/null +++ b/qwp.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Encoding=UTF-8 +Version=1.0 +Type=Application +Terminal=false +Name=qwp +Exec=/opt/usr/bin/qwp +Icon=qwp +X-Window-Icon= +X-HildonDesk-ShowInToolbar=true +X-Osso-Type=application/x-executable diff --git a/qwp.png b/qwp.png new file mode 100644 index 0000000..e00cf47 Binary files /dev/null and b/qwp.png differ diff --git a/qwp.pro b/qwp.pro new file mode 100644 index 0000000..f493e40 --- /dev/null +++ b/qwp.pro @@ -0,0 +1,32 @@ +# Add more folders to ship with the application, here +folder_01.source = qml/qwp +folder_01.target = qml +DEPLOYMENTFOLDERS = folder_01 + +# Additional import path used to resolve QML modules in Creator's code model +QML_IMPORT_PATH = + +# Avoid auto screen rotation +#DEFINES += ORIENTATIONLOCK + +# Needs to be defined for Symbian +#DEFINES += NETWORKACCESS + +symbian:TARGET.UID3 = 0xE14F1FC1 + +# Define QMLJSDEBUGGER to allow debugging of QML in debug builds +# (This might significantly increase build time) +# DEFINES += QMLJSDEBUGGER + +# If your application uses the Qt Mobility libraries, uncomment +# the following lines and add the respective components to the +# MOBILITY variable. +# CONFIG += mobility +# MOBILITY += + +# The .cpp file which was generated for your project. Feel free to hack it. +SOURCES += main.cpp + +# Please do not modify the following two lines. Required for deployment. +include(qmlapplicationviewer/qmlapplicationviewer.pri) +qtcAddDeployment() diff --git a/qwp.pro.user b/qwp.pro.user new file mode 100644 index 0000000..ac274f5 --- /dev/null +++ b/qwp.pro.user @@ -0,0 +1,341 @@ + + + + ProjectExplorer.Project.ActiveTarget + 0 + + + ProjectExplorer.Project.EditorSettings + + Default + + + + ProjectExplorer.Project.Target.0 + + Bureau + Bureau + Qt4ProjectManager.Target.DesktopTarget + 0 + 0 + 0 + + + + qmake + + QtProjectManager.QMakeBuildStep + + false + + + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Compiler + + ProjectExplorer.BuildSteps.Build + + + + Make + + Qt4ProjectManager.MakeStep + true + + clean + + + + 1 + Nettoyer + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + C:/qt_eric/qwp-build-desktop + 3 + 2 + true + + + + + qmake + + QtProjectManager.QMakeBuildStep + + false + + + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Compiler + + ProjectExplorer.BuildSteps.Build + + + + Make + + Qt4ProjectManager.MakeStep + true + + clean + + + + 1 + Nettoyer + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + C:/qt_eric/qwp-build-desktop + 3 + 2 + true + + 2 + + + 0 + Déploiement + + ProjectExplorer.BuildSteps.Deploy + + 1 + Pas de déploiement + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + qwp + + Qt4ProjectManager.Qt4RunConfiguration + 2 + + qwp.pro + false + false + + false + + 3768 + true + false + + 1 + + + + ProjectExplorer.Project.Target.1 + + Maemo + Maemo + Qt4ProjectManager.Target.MaemoDeviceTarget + 1 + 0 + 0 + + + + qmake + + QtProjectManager.QMakeBuildStep + + false + + + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Compiler + + ProjectExplorer.BuildSteps.Build + + + + Make + + Qt4ProjectManager.MakeStep + true + + clean + + + + 1 + Nettoyer + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Release + + Qt4ProjectManager.Qt4BuildConfiguration + 0 + C:/qt_eric/qwp + 2 + 9 + false + + + + + qmake + + QtProjectManager.QMakeBuildStep + + false + + + Make + + Qt4ProjectManager.MakeStep + false + + + + 2 + Compiler + + ProjectExplorer.BuildSteps.Build + + + + Make + + Qt4ProjectManager.MakeStep + true + + clean + + + + 1 + Nettoyer + + ProjectExplorer.BuildSteps.Clean + + 2 + false + + Debug + + Qt4ProjectManager.Qt4BuildConfiguration + 2 + C:/qt_eric/qwp + 2 + 9 + false + + 2 + + + + true + Création du paquet pour Maemo + + Qt4ProjectManager.MaemoPackageCreationStep + + + Deploiement vers le périphérique Maemo + + Qt4ProjectManager.MaemoDeployStep + false + 1 + + C:/qt_eric/qwp/qwp_0.0.1_armel.deb + C:/qt_eric/qwp/qwp_0.0.1_armel.deb + C:/qt_eric/qwp/qwp_0.0.1_armel.deb + + + 192.168.0.2 + 192.168.0.1 + 192.168.0.4 + + + + + + + + 2011-01-29T14:15:53 + 2011-01-30T22:27:52 + 2011-01-29T00:34:39 + + + 2 + Déploiement + + ProjectExplorer.BuildSteps.Deploy + + 1 + Déployer sur périphérique Maemo + + ProjectExplorer.DefaultDeployConfiguration + + 1 + + qwp + + Qt4ProjectManager.MaemoRunConfiguration + + 1 + + qwp.pro + + false + + 3768 + true + false + + 1 + + + + ProjectExplorer.Project.TargetCount + 2 + + + ProjectExplorer.Project.Updater.EnvironmentId + {677fb09c-829e-4eff-84d3-9ff4514c5997} + + + ProjectExplorer.Project.Updater.FileVersion + 8 + + diff --git a/qwp.svg b/qwp.svg new file mode 100644 index 0000000..f451e01 --- /dev/null +++ b/qwp.svg @@ -0,0 +1,251 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + Wikipedia's W + + + Down10 + + + Jonathan Hoefler + + + Wikipedia + W + favicon + + + 2007-11-09 + + + GFDL + + + Wikipedia's W favicon. The "W" is part of the Hoefler Text typeface by Jonathan Hoefler. + + + Inkscape + + + + + + + + + + + + + + + + + + + + + diff --git a/qwp_0.0.1_armel.changes b/qwp_0.0.1_armel.changes new file mode 100644 index 0000000..69d2a6d --- /dev/null +++ b/qwp_0.0.1_armel.changes @@ -0,0 +1,22 @@ +Format: 1.8 +Date: Fri, 28 Jan 2011 08:55:57 +0000 +Source: qwp +Binary: qwp +Architecture: armel +Version: 0.0.1 +Distribution: unstable +Urgency: low +Maintainer: EDUCA33E +Changed-By: EDUCA33E <> +Description: + qwp - QML Search tool for Wikipedia on N900 +Changes: + qwp (0.0.1) unstable; urgency=low + . + * Initial Release. +Checksums-Sha1: + 7d5514f2305174f198b23721d0b535b9a7139daf 215394 qwp_0.0.1_armel.deb +Checksums-Sha256: + 662b1d19efe5faaa08f74bacc27f2ac400c8aac5cb084073ef28fad926994bc3 215394 qwp_0.0.1_armel.deb +Files: + 53b2e316c5c0c9af2c8602a1913410d0 215394 user/education optional qwp_0.0.1_armel.deb diff --git a/qwp_0.0.1_armel.deb b/qwp_0.0.1_armel.deb new file mode 100644 index 0000000..ec4f168 Binary files /dev/null and b/qwp_0.0.1_armel.deb differ