From 5672fa8fd3bd6b09125d9e143a7bb277cea2e87f Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 15 Feb 2012 15:56:22 +0100 Subject: Long live qbs! Change-Id: I412793e868919a9ac99611616f292e7047f1ebcf --- .gitignore | 22 + LGPL_EXCEPTION.txt | 22 + LICENSE.LGPL | 503 ++++ README | 20 + bin/ibmsvc.xml | 12 + bin/ibqbs.bat | 1 + doc/classic.css | 295 ++ doc/config/compat.qdocconf | 31 + doc/config/macros.qdocconf | 40 + doc/config/qbs-project.qdocconf | 37 + doc/config/qt-cpp-ignore.qdocconf | 99 + doc/config/qt-defines.qdocconf | 19 + doc/config/qt-html-default-styles.qdocconf | 33 + doc/config/qt-html-online-styles.qdocconf | 73 + doc/config/qt-html-templates-online.qdocconf | 185 ++ doc/config/qt-html-templates.qdocconf | 56 + doc/doc.pri | 60 + doc/fixnavi.pl | 144 + doc/qbs-online.qdocconf | 4 + doc/qbs.qdoc | 770 +++++ doc/qbs.qdocconf | 3 + doc/templates/images/arrow_down.png | Bin 0 -> 177 bytes doc/templates/images/bg_l.png | Bin 0 -> 100 bytes doc/templates/images/bg_l_blank.png | Bin 0 -> 84 bytes doc/templates/images/bg_ll_blank.png | Bin 0 -> 320 bytes doc/templates/images/bg_r.png | Bin 0 -> 96 bytes doc/templates/images/bg_ul_blank.png | Bin 0 -> 304 bytes doc/templates/images/box_bg.png | Bin 0 -> 89 bytes doc/templates/images/breadcrumb.png | Bin 0 -> 134 bytes doc/templates/images/bullet_dn.png | Bin 0 -> 230 bytes doc/templates/images/bullet_gt.png | Bin 0 -> 124 bytes doc/templates/images/bullet_sq.png | Bin 0 -> 74 bytes doc/templates/images/bullet_up.png | Bin 0 -> 210 bytes doc/templates/images/feedbackground.png | Bin 0 -> 263 bytes doc/templates/images/header.png | Bin 0 -> 3768 bytes doc/templates/images/header_bg.png | Bin 0 -> 114 bytes doc/templates/images/horBar.png | Bin 0 -> 2807 bytes doc/templates/images/page.png | Bin 0 -> 3102 bytes doc/templates/images/page_bg.png | Bin 0 -> 84 bytes doc/templates/images/qt_icon.png | Bin 0 -> 4775 bytes doc/templates/images/spinner.gif | Bin 0 -> 2037 bytes doc/templates/images/sprites-combined.png | Bin 0 -> 62534 bytes doc/templates/scripts/functions.js | 194 ++ doc/templates/scripts/jquery.js | 152 + doc/templates/scripts/narrow.js | 89 + doc/templates/scripts/superfish.js | 121 + doc/templates/style/narrow.css | 270 ++ doc/templates/style/offline.css | 675 +++++ doc/templates/style/style.css | 1592 ++++++++++ doc/templates/style/style_ie6.css | 54 + doc/templates/style/style_ie7.css | 19 + doc/templates/style/style_ie8.css | 0 doc/templates/style/superfish.css | 51 + doc/templates/style/superfish_skin.css | 83 + qbs.pro | 25 + share/qbs/imports/qbs/base/Application.qbs | 3 + share/qbs/imports/qbs/base/DynamicLibrary.qbs | 3 + share/qbs/imports/qbs/base/QmlApp.qbs | 22 + share/qbs/imports/qbs/base/StaticLibrary.qbs | 3 + .../qmlapplicationviewer/qmlapplicationviewer.cpp | 174 ++ .../qmlapplicationviewer/qmlapplicationviewer.h | 46 + share/qbs/imports/qbs/fileinfo/fileinfo.js | 62 + share/qbs/modules/cpp/CppModule.qbs | 75 + share/qbs/modules/cpp/GenericGCC.qbs | 300 ++ share/qbs/modules/cpp/gcc.js | 113 + share/qbs/modules/cpp/linux-gcc.qbs | 6 + share/qbs/modules/cpp/mac-gcc.qbs | 69 + share/qbs/modules/cpp/msvc.js | 173 ++ share/qbs/modules/cpp/ponyphone.qbs | 28 + share/qbs/modules/cpp/windows-msvc.qbs | 199 ++ share/qbs/modules/qbs/common.qbs | 50 + share/qbs/modules/qt/QtModule.qbs | 19 + share/qbs/modules/qt/core/moc.js | 15 + share/qbs/modules/qt/core/qtcore.qbs | 130 + share/qbs/modules/qt/declarative/module.qbs | 9 + share/qbs/modules/qt/designer/module.qbs | 8 + share/qbs/modules/qt/designercomponents/module.qbs | 8 + share/qbs/modules/qt/gui/qtgui.qbs | 33 + share/qbs/modules/qt/help/module.qbs | 8 + share/qbs/modules/qt/network/module.qbs | 8 + share/qbs/modules/qt/opengl/module.qbs | 8 + share/qbs/modules/qt/qtfunctions.js | 12 + share/qbs/modules/qt/script/module.qbs | 8 + share/qbs/modules/qt/sql/module.qbs | 8 + share/qbs/modules/qt/svg/module.qbs | 8 + share/qbs/modules/qt/webkit/module.qbs | 8 + share/qbs/modules/qt/xml/module.qbs | 8 + share/qbs/modules/utils.js | 133 + src/app/app.pro | 6 + src/app/graph/graph.cpp | 465 +++ src/app/graph/graph.pro | 12 + src/app/platforms/main.cpp | 299 ++ src/app/platforms/platforms.pro | 12 + src/app/platforms/probe.cpp | 393 +++ src/app/qbs/application.cpp | 61 + src/app/qbs/application.h | 63 + src/app/qbs/ctrlchandler.cpp | 74 + src/app/qbs/ctrlchandler.h | 43 + src/app/qbs/main.cpp | 304 ++ src/app/qbs/qbs.pro | 16 + src/lib/Qbs/Qbs.pri | 37 + src/lib/Qbs/buildexecutor.cpp | 156 + src/lib/Qbs/buildexecutor.h | 94 + src/lib/Qbs/buildproduct.cpp | 121 + src/lib/Qbs/buildproduct.h | 86 + src/lib/Qbs/buildproject.cpp | 139 + src/lib/Qbs/buildproject.h | 88 + src/lib/Qbs/error.h | 74 + src/lib/Qbs/globals.h | 63 + src/lib/Qbs/ilogsink.cpp | 52 + src/lib/Qbs/ilogsink.h | 90 + src/lib/Qbs/logmessageevent.cpp | 72 + src/lib/Qbs/logmessageevent.h | 67 + src/lib/Qbs/mainthreadcommunication.cpp | 123 + src/lib/Qbs/mainthreadcommunication.h | 78 + src/lib/Qbs/oldsourceproject.cpp | 193 ++ src/lib/Qbs/oldsourceproject.h | 74 + src/lib/Qbs/processoutput.cpp | 124 + src/lib/Qbs/processoutput.h | 80 + src/lib/Qbs/processoutputevent.cpp | 65 + src/lib/Qbs/processoutputevent.h | 62 + src/lib/Qbs/qbserror.cpp | 76 + src/lib/Qbs/sourceproject.cpp | 255 ++ src/lib/Qbs/sourceproject.h | 95 + src/lib/buildgraph/artifact.cpp | 97 + src/lib/buildgraph/artifact.h | 112 + src/lib/buildgraph/artifactlist.cpp | 57 + src/lib/buildgraph/artifactlist.h | 109 + src/lib/buildgraph/automoc.cpp | 273 ++ src/lib/buildgraph/automoc.h | 86 + src/lib/buildgraph/buildgraph.cpp | 1384 +++++++++ src/lib/buildgraph/buildgraph.h | 216 ++ src/lib/buildgraph/buildgraph.pri | 26 + src/lib/buildgraph/command.cpp | 231 ++ src/lib/buildgraph/command.h | 154 + src/lib/buildgraph/commandexecutor.cpp | 376 +++ src/lib/buildgraph/commandexecutor.h | 106 + src/lib/buildgraph/executor.cpp | 885 ++++++ src/lib/buildgraph/executor.h | 147 + src/lib/buildgraph/executorjob.cpp | 128 + src/lib/buildgraph/executorjob.h | 86 + src/lib/buildgraph/rulegraph.cpp | 201 ++ src/lib/buildgraph/rulegraph.h | 77 + src/lib/buildgraph/scanresultcache.cpp | 56 + src/lib/buildgraph/scanresultcache.h | 71 + src/lib/buildgraph/transformer.cpp | 119 + src/lib/buildgraph/transformer.h | 85 + src/lib/language/language.cpp | 453 +++ src/lib/language/language.h | 264 ++ src/lib/language/language.pri | 9 + src/lib/language/loader.cpp | 2647 +++++++++++++++++ src/lib/language/loader.h | 408 +++ src/lib/lib.pro | 16 + src/lib/parser/cmd.sed | 13 + src/lib/parser/gen-parser.sh | 14 + src/lib/parser/parser.pri | 23 + src/lib/parser/qmlerror.cpp | 285 ++ src/lib/parser/qmlerror.h | 82 + src/lib/parser/qmljs.g | 3138 ++++++++++++++++++++ src/lib/parser/qmljsast.cpp | 947 ++++++ src/lib/parser/qmljsast_p.h | 2537 ++++++++++++++++ src/lib/parser/qmljsastfwd_p.h | 180 ++ src/lib/parser/qmljsastvisitor.cpp | 49 + src/lib/parser/qmljsastvisitor_p.h | 326 ++ src/lib/parser/qmljsengine_p.cpp | 203 ++ src/lib/parser/qmljsengine_p.h | 158 + src/lib/parser/qmljsglobal_p.h | 56 + src/lib/parser/qmljsgrammar.cpp | 1007 +++++++ src/lib/parser/qmljsgrammar_p.h | 201 ++ src/lib/parser/qmljslexer.cpp | 1249 ++++++++ src/lib/parser/qmljslexer_p.h | 240 ++ src/lib/parser/qmljsmemorypool_p.h | 124 + src/lib/parser/qmljsnodepool_p.h | 130 + src/lib/parser/qmljsparser.cpp | 1893 ++++++++++++ src/lib/parser/qmljsparser_p.h | 237 ++ src/lib/qtconcurrent/QtConcurrentTools | 39 + src/lib/qtconcurrent/multitask.h | 202 ++ src/lib/qtconcurrent/qtconcurrent.pri | 6 + src/lib/qtconcurrent/qtconcurrent_global.h | 49 + src/lib/qtconcurrent/runextensions.h | 431 +++ src/lib/tools/codelocation.h | 91 + src/lib/tools/coloredoutput.cpp | 103 + src/lib/tools/coloredoutput.h | 73 + src/lib/tools/error.cpp | 70 + src/lib/tools/error.h | 90 + src/lib/tools/fakeconcurrent.h | 103 + src/lib/tools/fileinfo.cpp | 247 ++ src/lib/tools/fileinfo.h | 90 + src/lib/tools/filetime.h | 128 + src/lib/tools/filetime_unix.cpp | 78 + src/lib/tools/filetime_win.cpp | 104 + src/lib/tools/logger.cpp | 325 ++ src/lib/tools/logger.h | 138 + src/lib/tools/logsink.cpp | 81 + src/lib/tools/logsink.h | 60 + src/lib/tools/options.cpp | 450 +++ src/lib/tools/options.h | 113 + src/lib/tools/persistence.cpp | 227 ++ src/lib/tools/persistence.h | 237 ++ src/lib/tools/platform.cpp | 82 + src/lib/tools/platform.h | 59 + src/lib/tools/runenvironment.cpp | 134 + src/lib/tools/runenvironment.h | 60 + src/lib/tools/scannerpluginmanager.cpp | 113 + src/lib/tools/scannerpluginmanager.h | 67 + src/lib/tools/scripttools.cpp | 139 + src/lib/tools/scripttools.h | 83 + src/lib/tools/settings.cpp | 117 + src/lib/tools/settings.h | 83 + src/lib/tools/tools.pri | 40 + src/lib/use.pri | 43 + src/plugins/plugins.pro | 2 + .../scanner/cpp/CPlusPlusForwardDeclarations.h | 151 + src/plugins/scanner/cpp/Lexer.cpp | 669 +++++ src/plugins/scanner/cpp/Lexer.h | 162 + src/plugins/scanner/cpp/Token.cpp | 154 + src/plugins/scanner/cpp/Token.h | 371 +++ src/plugins/scanner/cpp/cpp.cpp | 281 ++ src/plugins/scanner/cpp/cpp.pro | 15 + src/plugins/scanner/cpp/cpp_global.h | 47 + src/plugins/scanner/qt/qt.cpp | 227 ++ src/plugins/scanner/qt/qt.pro | 12 + src/plugins/scanner/scanner.h | 93 + src/plugins/scanner/scanner.pro | 3 + src/plugins/script/file/file.cpp | 91 + src/plugins/script/file/file.h | 58 + src/plugins/script/file/file.pro | 20 + src/plugins/script/file/plugin.cpp | 75 + src/plugins/script/file/textfile.cpp | 186 ++ src/plugins/script/file/textfile.h | 76 + src/plugins/script/script.pro | 2 + static.pro | 70 + tests/auto/auto.pro | 8 + tests/auto/blackbox/blackbox.pro | 14 + .../testdata/buildproperties_source/bp_source.qbp | 16 + .../testdata/buildproperties_source/main.cpp | 47 + tests/auto/blackbox/testdata/moc_h/bla.cpp | 44 + tests/auto/blackbox/testdata/moc_h/bla_noqobject.h | 43 + tests/auto/blackbox/testdata/moc_h/bla_qobject.h | 44 + tests/auto/blackbox/testdata/moc_h/i.qbp | 18 + tests/auto/blackbox/testdata/qrc/bla.cpp | 42 + tests/auto/blackbox/testdata/qrc/bla.qrc | 5 + tests/auto/blackbox/testdata/qrc/i.qbp | 19 + tests/auto/blackbox/testdata/qrc/stuff.txt | 1 + .../blackbox/testdata/trackAddFile/after/main.cpp | 50 + .../testdata/trackAddFile/after/project.qbp | 15 + .../blackbox/testdata/trackAddFile/after/zort.cpp | 44 + .../blackbox/testdata/trackAddFile/after/zort.h | 47 + .../blackbox/testdata/trackAddFile/before/main.cpp | 47 + .../blackbox/testdata/trackAddFile/before/narf.cpp | 44 + .../blackbox/testdata/trackAddFile/before/narf.h | 47 + .../testdata/trackAddFile/before/project.qbp | 11 + .../blackbox/testdata/trackFileTags/after/main.cpp | 46 + .../testdata/trackFileTags/after/project.qbp | 51 + .../testdata/trackFileTags/before/main.cpp | 44 + .../testdata/trackFileTags/before/project.qbp | 51 + tests/auto/blackbox/tst_blackbox.cpp | 395 +++ tests/auto/dependencyFinder/dependencyFinder.pro | 10 + tests/auto/dependencyFinder/order_basic1.qbs | 4 + tests/auto/dependencyFinder/order_basic2.qbs | 5 + tests/auto/dependencyFinder/order_complex1.qbs | 8 + tests/auto/dependencyFinder/order_nodeps.qbs | 4 + tests/auto/dependencyFinder/test1.qbs | 16 + .../auto/dependencyFinder/tst_dependencyFinder.cpp | 569 ++++ tests/auto/options/app.xml | 5 + tests/auto/options/options.pro | 12 + tests/auto/options/tst_options.cpp | 61 + tests/auto/tools/tools.pro | 12 + tests/auto/tools/tst_tools.cpp | 64 + tests/manual/application/foo.c | 9 + tests/manual/application/main.cpp | 61 + tests/manual/application/main_dbg.cpp | 61 + tests/manual/application/object1.cpp | 43 + tests/manual/application/object1.h | 50 + tests/manual/application/object2.cpp | 46 + tests/manual/application/object2.h | 50 + tests/manual/application/somecustomfeature.cpp | 44 + tests/manual/application/test.qbp | 43 + tests/manual/baseProperties/Bar.qbs | 6 + tests/manual/baseProperties/Foo.qbs | 7 + tests/manual/baseProperties/main.cpp | 51 + tests/manual/baseProperties/prj.qbp | 9 + tests/manual/codegen/codegen.qbp | 42 + tests/manual/codegen/foo.txt | 1 + tests/manual/collidingmice/collidingmice.qbp | 18 + tests/manual/collidingmice/images/cheese.jpg | Bin 0 -> 3029 bytes tests/manual/collidingmice/main.cpp | 88 + tests/manual/collidingmice/mice.qrc | 5 + tests/manual/collidingmice/mouse.cpp | 197 ++ tests/manual/collidingmice/mouse.h | 65 + tests/manual/hello/hello.qbp | 24 + tests/manual/hello/src/foo.cpp | 5 + tests/manual/hello/src/foo.h | 7 + tests/manual/hello/src/main.cpp | 17 + tests/manual/inheritModuleSearchPath/Foo.qbs | 7 + tests/manual/inheritModuleSearchPath/main.cpp | 9 + tests/manual/inheritModuleSearchPath/prj.qbp | 10 + .../inheritModuleSearchPath/subdir/bli/m.qbs | 7 + tests/manual/lib_samesource/lib.qbp | 22 + tests/manual/lib_samesource/main.cpp | 43 + tests/manual/lib_subdir/app/app.qbs | 10 + tests/manual/lib_subdir/app/main.cpp | 44 + tests/manual/lib_subdir/lib/lib.cpp | 48 + tests/manual/lib_subdir/lib/lib.qbs | 10 + tests/manual/lib_subdir/lib_subdir.qbp | 8 + tests/manual/link_dynamiclib/lib1.cpp | 55 + tests/manual/link_dynamiclib/lib2.cpp | 55 + tests/manual/link_dynamiclib/lib3.cpp | 58 + tests/manual/link_dynamiclib/link_dynamiclib.qbp | 43 + tests/manual/link_dynamiclib/main.cpp | 55 + tests/manual/link_staticlib/helper/helper.cpp | 43 + tests/manual/link_staticlib/helper/helper.h | 43 + tests/manual/link_staticlib/link_staticlib.qbp | 30 + tests/manual/link_staticlib/main.cpp | 46 + tests/manual/link_staticlib/mystaticlib.cpp | 46 + tests/manual/link_staticlib/mystaticlibhelper.cpp | 5 + tests/manual/localDeployment/localDeployment.qbp | 20 + tests/manual/localDeployment/main.cpp | 49 + tests/manual/moc_cpp/bla.cpp | 15 + tests/manual/moc_cpp/moc_cpp.qbp | 14 + tests/manual/moc_hpp/moc_hpp.qbp | 16 + tests/manual/moc_hpp/object.cpp | 13 + tests/manual/moc_hpp/object.h | 13 + tests/manual/moc_hpp_included/moc_hpp_included.qbp | 18 + tests/manual/moc_hpp_included/object.cpp | 15 + tests/manual/moc_hpp_included/object.h | 13 + tests/manual/pch/main.cpp | 27 + tests/manual/pch/myobject.cpp | 13 + tests/manual/pch/myobject.h | 12 + tests/manual/pch/pch.qbp | 13 + tests/manual/pch/stable.h | 9 + tests/manual/productmoduledeps/lib1.cpp | 52 + tests/manual/productmoduledeps/main.cpp | 55 + .../manual/productmoduledeps/productmoduledeps.qbp | 47 + tests/manual/proper quoting/main.cpp | 55 + .../manual/proper quoting/my static lib helper.cpp | 5 + tests/manual/proper quoting/my static lib.cpp | 46 + tests/manual/proper quoting/proper quoting.qbp | 42 + .../proper quoting/some helper/some helper.cpp | 44 + .../proper quoting/some helper/some helper.h | 44 + tests/manual/propertiesblocks/hello.qbp | 28 + tests/manual/propertiesblocks/main.cpp | 52 + tests/manual/qrc2/bla.cpp | 40 + tests/manual/qrc2/bla.qrc | 5 + tests/manual/qrc2/foo.qrc | 5 + tests/manual/qrc2/i.qbp | 19 + tests/manual/qrc2/stuff.txt | 1 + tests/manual/symhello/hello.qbp | 10 + tests/manual/symhello/main.cpp | 46 + tests/manual/transformers/main.cpp | 77 + tests/manual/transformers/transformers.qbp | 53 + tests/manual/uic/bla.cpp | 44 + tests/manual/uic/bla.h | 38 + tests/manual/uic/ui.h | 38 + tests/manual/uic/ui.ui | 31 + tests/manual/uic/uic.qbp | 17 + tests/tests.pro | 3 + 357 files changed, 45680 insertions(+) create mode 100644 .gitignore create mode 100644 LGPL_EXCEPTION.txt create mode 100644 LICENSE.LGPL create mode 100644 README create mode 100644 bin/ibmsvc.xml create mode 100644 bin/ibqbs.bat create mode 100644 doc/classic.css create mode 100644 doc/config/compat.qdocconf create mode 100644 doc/config/macros.qdocconf create mode 100644 doc/config/qbs-project.qdocconf create mode 100644 doc/config/qt-cpp-ignore.qdocconf create mode 100644 doc/config/qt-defines.qdocconf create mode 100644 doc/config/qt-html-default-styles.qdocconf create mode 100644 doc/config/qt-html-online-styles.qdocconf create mode 100644 doc/config/qt-html-templates-online.qdocconf create mode 100644 doc/config/qt-html-templates.qdocconf create mode 100644 doc/doc.pri create mode 100644 doc/fixnavi.pl create mode 100644 doc/qbs-online.qdocconf create mode 100644 doc/qbs.qdoc create mode 100644 doc/qbs.qdocconf create mode 100644 doc/templates/images/arrow_down.png create mode 100644 doc/templates/images/bg_l.png create mode 100644 doc/templates/images/bg_l_blank.png create mode 100644 doc/templates/images/bg_ll_blank.png create mode 100644 doc/templates/images/bg_r.png create mode 100644 doc/templates/images/bg_ul_blank.png create mode 100644 doc/templates/images/box_bg.png create mode 100644 doc/templates/images/breadcrumb.png create mode 100644 doc/templates/images/bullet_dn.png create mode 100644 doc/templates/images/bullet_gt.png create mode 100644 doc/templates/images/bullet_sq.png create mode 100644 doc/templates/images/bullet_up.png create mode 100644 doc/templates/images/feedbackground.png create mode 100644 doc/templates/images/header.png create mode 100644 doc/templates/images/header_bg.png create mode 100644 doc/templates/images/horBar.png create mode 100644 doc/templates/images/page.png create mode 100644 doc/templates/images/page_bg.png create mode 100644 doc/templates/images/qt_icon.png create mode 100644 doc/templates/images/spinner.gif create mode 100644 doc/templates/images/sprites-combined.png create mode 100644 doc/templates/scripts/functions.js create mode 100644 doc/templates/scripts/jquery.js create mode 100644 doc/templates/scripts/narrow.js create mode 100644 doc/templates/scripts/superfish.js create mode 100644 doc/templates/style/narrow.css create mode 100644 doc/templates/style/offline.css create mode 100644 doc/templates/style/style.css create mode 100644 doc/templates/style/style_ie6.css create mode 100644 doc/templates/style/style_ie7.css create mode 100644 doc/templates/style/style_ie8.css create mode 100644 doc/templates/style/superfish.css create mode 100644 doc/templates/style/superfish_skin.css create mode 100644 qbs.pro create mode 100644 share/qbs/imports/qbs/base/Application.qbs create mode 100644 share/qbs/imports/qbs/base/DynamicLibrary.qbs create mode 100644 share/qbs/imports/qbs/base/QmlApp.qbs create mode 100644 share/qbs/imports/qbs/base/StaticLibrary.qbs create mode 100644 share/qbs/imports/qbs/base/qmlapplicationviewer/qmlapplicationviewer.cpp create mode 100644 share/qbs/imports/qbs/base/qmlapplicationviewer/qmlapplicationviewer.h create mode 100644 share/qbs/imports/qbs/fileinfo/fileinfo.js create mode 100644 share/qbs/modules/cpp/CppModule.qbs create mode 100644 share/qbs/modules/cpp/GenericGCC.qbs create mode 100644 share/qbs/modules/cpp/gcc.js create mode 100644 share/qbs/modules/cpp/linux-gcc.qbs create mode 100644 share/qbs/modules/cpp/mac-gcc.qbs create mode 100644 share/qbs/modules/cpp/msvc.js create mode 100644 share/qbs/modules/cpp/ponyphone.qbs create mode 100644 share/qbs/modules/cpp/windows-msvc.qbs create mode 100644 share/qbs/modules/qbs/common.qbs create mode 100644 share/qbs/modules/qt/QtModule.qbs create mode 100644 share/qbs/modules/qt/core/moc.js create mode 100644 share/qbs/modules/qt/core/qtcore.qbs create mode 100644 share/qbs/modules/qt/declarative/module.qbs create mode 100644 share/qbs/modules/qt/designer/module.qbs create mode 100644 share/qbs/modules/qt/designercomponents/module.qbs create mode 100644 share/qbs/modules/qt/gui/qtgui.qbs create mode 100644 share/qbs/modules/qt/help/module.qbs create mode 100644 share/qbs/modules/qt/network/module.qbs create mode 100644 share/qbs/modules/qt/opengl/module.qbs create mode 100644 share/qbs/modules/qt/qtfunctions.js create mode 100644 share/qbs/modules/qt/script/module.qbs create mode 100644 share/qbs/modules/qt/sql/module.qbs create mode 100644 share/qbs/modules/qt/svg/module.qbs create mode 100644 share/qbs/modules/qt/webkit/module.qbs create mode 100644 share/qbs/modules/qt/xml/module.qbs create mode 100644 share/qbs/modules/utils.js create mode 100644 src/app/app.pro create mode 100644 src/app/graph/graph.cpp create mode 100644 src/app/graph/graph.pro create mode 100644 src/app/platforms/main.cpp create mode 100644 src/app/platforms/platforms.pro create mode 100644 src/app/platforms/probe.cpp create mode 100644 src/app/qbs/application.cpp create mode 100644 src/app/qbs/application.h create mode 100644 src/app/qbs/ctrlchandler.cpp create mode 100644 src/app/qbs/ctrlchandler.h create mode 100644 src/app/qbs/main.cpp create mode 100644 src/app/qbs/qbs.pro create mode 100644 src/lib/Qbs/Qbs.pri create mode 100644 src/lib/Qbs/buildexecutor.cpp create mode 100644 src/lib/Qbs/buildexecutor.h create mode 100644 src/lib/Qbs/buildproduct.cpp create mode 100644 src/lib/Qbs/buildproduct.h create mode 100644 src/lib/Qbs/buildproject.cpp create mode 100644 src/lib/Qbs/buildproject.h create mode 100644 src/lib/Qbs/error.h create mode 100644 src/lib/Qbs/globals.h create mode 100644 src/lib/Qbs/ilogsink.cpp create mode 100644 src/lib/Qbs/ilogsink.h create mode 100644 src/lib/Qbs/logmessageevent.cpp create mode 100644 src/lib/Qbs/logmessageevent.h create mode 100644 src/lib/Qbs/mainthreadcommunication.cpp create mode 100644 src/lib/Qbs/mainthreadcommunication.h create mode 100644 src/lib/Qbs/oldsourceproject.cpp create mode 100644 src/lib/Qbs/oldsourceproject.h create mode 100644 src/lib/Qbs/processoutput.cpp create mode 100644 src/lib/Qbs/processoutput.h create mode 100644 src/lib/Qbs/processoutputevent.cpp create mode 100644 src/lib/Qbs/processoutputevent.h create mode 100644 src/lib/Qbs/qbserror.cpp create mode 100644 src/lib/Qbs/sourceproject.cpp create mode 100644 src/lib/Qbs/sourceproject.h create mode 100644 src/lib/buildgraph/artifact.cpp create mode 100644 src/lib/buildgraph/artifact.h create mode 100644 src/lib/buildgraph/artifactlist.cpp create mode 100644 src/lib/buildgraph/artifactlist.h create mode 100644 src/lib/buildgraph/automoc.cpp create mode 100644 src/lib/buildgraph/automoc.h create mode 100644 src/lib/buildgraph/buildgraph.cpp create mode 100644 src/lib/buildgraph/buildgraph.h create mode 100644 src/lib/buildgraph/buildgraph.pri create mode 100644 src/lib/buildgraph/command.cpp create mode 100644 src/lib/buildgraph/command.h create mode 100644 src/lib/buildgraph/commandexecutor.cpp create mode 100644 src/lib/buildgraph/commandexecutor.h create mode 100644 src/lib/buildgraph/executor.cpp create mode 100644 src/lib/buildgraph/executor.h create mode 100644 src/lib/buildgraph/executorjob.cpp create mode 100644 src/lib/buildgraph/executorjob.h create mode 100644 src/lib/buildgraph/rulegraph.cpp create mode 100644 src/lib/buildgraph/rulegraph.h create mode 100644 src/lib/buildgraph/scanresultcache.cpp create mode 100644 src/lib/buildgraph/scanresultcache.h create mode 100644 src/lib/buildgraph/transformer.cpp create mode 100644 src/lib/buildgraph/transformer.h create mode 100644 src/lib/language/language.cpp create mode 100644 src/lib/language/language.h create mode 100644 src/lib/language/language.pri create mode 100644 src/lib/language/loader.cpp create mode 100644 src/lib/language/loader.h create mode 100644 src/lib/lib.pro create mode 100644 src/lib/parser/cmd.sed create mode 100644 src/lib/parser/gen-parser.sh create mode 100644 src/lib/parser/parser.pri create mode 100644 src/lib/parser/qmlerror.cpp create mode 100644 src/lib/parser/qmlerror.h create mode 100644 src/lib/parser/qmljs.g create mode 100644 src/lib/parser/qmljsast.cpp create mode 100644 src/lib/parser/qmljsast_p.h create mode 100644 src/lib/parser/qmljsastfwd_p.h create mode 100644 src/lib/parser/qmljsastvisitor.cpp create mode 100644 src/lib/parser/qmljsastvisitor_p.h create mode 100644 src/lib/parser/qmljsengine_p.cpp create mode 100644 src/lib/parser/qmljsengine_p.h create mode 100644 src/lib/parser/qmljsglobal_p.h create mode 100644 src/lib/parser/qmljsgrammar.cpp create mode 100644 src/lib/parser/qmljsgrammar_p.h create mode 100644 src/lib/parser/qmljslexer.cpp create mode 100644 src/lib/parser/qmljslexer_p.h create mode 100644 src/lib/parser/qmljsmemorypool_p.h create mode 100644 src/lib/parser/qmljsnodepool_p.h create mode 100644 src/lib/parser/qmljsparser.cpp create mode 100644 src/lib/parser/qmljsparser_p.h create mode 100644 src/lib/qtconcurrent/QtConcurrentTools create mode 100644 src/lib/qtconcurrent/multitask.h create mode 100644 src/lib/qtconcurrent/qtconcurrent.pri create mode 100644 src/lib/qtconcurrent/qtconcurrent_global.h create mode 100644 src/lib/qtconcurrent/runextensions.h create mode 100644 src/lib/tools/codelocation.h create mode 100644 src/lib/tools/coloredoutput.cpp create mode 100644 src/lib/tools/coloredoutput.h create mode 100644 src/lib/tools/error.cpp create mode 100644 src/lib/tools/error.h create mode 100644 src/lib/tools/fakeconcurrent.h create mode 100644 src/lib/tools/fileinfo.cpp create mode 100644 src/lib/tools/fileinfo.h create mode 100644 src/lib/tools/filetime.h create mode 100644 src/lib/tools/filetime_unix.cpp create mode 100644 src/lib/tools/filetime_win.cpp create mode 100644 src/lib/tools/logger.cpp create mode 100644 src/lib/tools/logger.h create mode 100644 src/lib/tools/logsink.cpp create mode 100644 src/lib/tools/logsink.h create mode 100644 src/lib/tools/options.cpp create mode 100644 src/lib/tools/options.h create mode 100644 src/lib/tools/persistence.cpp create mode 100644 src/lib/tools/persistence.h create mode 100644 src/lib/tools/platform.cpp create mode 100644 src/lib/tools/platform.h create mode 100644 src/lib/tools/runenvironment.cpp create mode 100644 src/lib/tools/runenvironment.h create mode 100644 src/lib/tools/scannerpluginmanager.cpp create mode 100644 src/lib/tools/scannerpluginmanager.h create mode 100644 src/lib/tools/scripttools.cpp create mode 100644 src/lib/tools/scripttools.h create mode 100644 src/lib/tools/settings.cpp create mode 100644 src/lib/tools/settings.h create mode 100644 src/lib/tools/tools.pri create mode 100644 src/lib/use.pri create mode 100644 src/plugins/plugins.pro create mode 100644 src/plugins/scanner/cpp/CPlusPlusForwardDeclarations.h create mode 100644 src/plugins/scanner/cpp/Lexer.cpp create mode 100644 src/plugins/scanner/cpp/Lexer.h create mode 100644 src/plugins/scanner/cpp/Token.cpp create mode 100644 src/plugins/scanner/cpp/Token.h create mode 100644 src/plugins/scanner/cpp/cpp.cpp create mode 100644 src/plugins/scanner/cpp/cpp.pro create mode 100644 src/plugins/scanner/cpp/cpp_global.h create mode 100644 src/plugins/scanner/qt/qt.cpp create mode 100644 src/plugins/scanner/qt/qt.pro create mode 100644 src/plugins/scanner/scanner.h create mode 100644 src/plugins/scanner/scanner.pro create mode 100644 src/plugins/script/file/file.cpp create mode 100644 src/plugins/script/file/file.h create mode 100644 src/plugins/script/file/file.pro create mode 100644 src/plugins/script/file/plugin.cpp create mode 100644 src/plugins/script/file/textfile.cpp create mode 100644 src/plugins/script/file/textfile.h create mode 100644 src/plugins/script/script.pro create mode 100644 static.pro create mode 100644 tests/auto/auto.pro create mode 100644 tests/auto/blackbox/blackbox.pro create mode 100644 tests/auto/blackbox/testdata/buildproperties_source/bp_source.qbp create mode 100644 tests/auto/blackbox/testdata/buildproperties_source/main.cpp create mode 100644 tests/auto/blackbox/testdata/moc_h/bla.cpp create mode 100644 tests/auto/blackbox/testdata/moc_h/bla_noqobject.h create mode 100644 tests/auto/blackbox/testdata/moc_h/bla_qobject.h create mode 100644 tests/auto/blackbox/testdata/moc_h/i.qbp create mode 100644 tests/auto/blackbox/testdata/qrc/bla.cpp create mode 100644 tests/auto/blackbox/testdata/qrc/bla.qrc create mode 100644 tests/auto/blackbox/testdata/qrc/i.qbp create mode 100644 tests/auto/blackbox/testdata/qrc/stuff.txt create mode 100644 tests/auto/blackbox/testdata/trackAddFile/after/main.cpp create mode 100644 tests/auto/blackbox/testdata/trackAddFile/after/project.qbp create mode 100644 tests/auto/blackbox/testdata/trackAddFile/after/zort.cpp create mode 100644 tests/auto/blackbox/testdata/trackAddFile/after/zort.h create mode 100644 tests/auto/blackbox/testdata/trackAddFile/before/main.cpp create mode 100644 tests/auto/blackbox/testdata/trackAddFile/before/narf.cpp create mode 100644 tests/auto/blackbox/testdata/trackAddFile/before/narf.h create mode 100644 tests/auto/blackbox/testdata/trackAddFile/before/project.qbp create mode 100644 tests/auto/blackbox/testdata/trackFileTags/after/main.cpp create mode 100644 tests/auto/blackbox/testdata/trackFileTags/after/project.qbp create mode 100644 tests/auto/blackbox/testdata/trackFileTags/before/main.cpp create mode 100644 tests/auto/blackbox/testdata/trackFileTags/before/project.qbp create mode 100644 tests/auto/blackbox/tst_blackbox.cpp create mode 100644 tests/auto/dependencyFinder/dependencyFinder.pro create mode 100644 tests/auto/dependencyFinder/order_basic1.qbs create mode 100644 tests/auto/dependencyFinder/order_basic2.qbs create mode 100644 tests/auto/dependencyFinder/order_complex1.qbs create mode 100644 tests/auto/dependencyFinder/order_nodeps.qbs create mode 100644 tests/auto/dependencyFinder/test1.qbs create mode 100644 tests/auto/dependencyFinder/tst_dependencyFinder.cpp create mode 100644 tests/auto/options/app.xml create mode 100644 tests/auto/options/options.pro create mode 100644 tests/auto/options/tst_options.cpp create mode 100644 tests/auto/tools/tools.pro create mode 100644 tests/auto/tools/tst_tools.cpp create mode 100644 tests/manual/application/foo.c create mode 100644 tests/manual/application/main.cpp create mode 100644 tests/manual/application/main_dbg.cpp create mode 100644 tests/manual/application/object1.cpp create mode 100644 tests/manual/application/object1.h create mode 100644 tests/manual/application/object2.cpp create mode 100644 tests/manual/application/object2.h create mode 100644 tests/manual/application/somecustomfeature.cpp create mode 100644 tests/manual/application/test.qbp create mode 100644 tests/manual/baseProperties/Bar.qbs create mode 100644 tests/manual/baseProperties/Foo.qbs create mode 100644 tests/manual/baseProperties/main.cpp create mode 100644 tests/manual/baseProperties/prj.qbp create mode 100644 tests/manual/codegen/codegen.qbp create mode 100644 tests/manual/codegen/foo.txt create mode 100644 tests/manual/collidingmice/collidingmice.qbp create mode 100644 tests/manual/collidingmice/images/cheese.jpg create mode 100644 tests/manual/collidingmice/main.cpp create mode 100644 tests/manual/collidingmice/mice.qrc create mode 100644 tests/manual/collidingmice/mouse.cpp create mode 100644 tests/manual/collidingmice/mouse.h create mode 100644 tests/manual/hello/hello.qbp create mode 100644 tests/manual/hello/src/foo.cpp create mode 100644 tests/manual/hello/src/foo.h create mode 100644 tests/manual/hello/src/main.cpp create mode 100644 tests/manual/inheritModuleSearchPath/Foo.qbs create mode 100644 tests/manual/inheritModuleSearchPath/main.cpp create mode 100644 tests/manual/inheritModuleSearchPath/prj.qbp create mode 100644 tests/manual/inheritModuleSearchPath/subdir/bli/m.qbs create mode 100644 tests/manual/lib_samesource/lib.qbp create mode 100644 tests/manual/lib_samesource/main.cpp create mode 100644 tests/manual/lib_subdir/app/app.qbs create mode 100644 tests/manual/lib_subdir/app/main.cpp create mode 100644 tests/manual/lib_subdir/lib/lib.cpp create mode 100644 tests/manual/lib_subdir/lib/lib.qbs create mode 100644 tests/manual/lib_subdir/lib_subdir.qbp create mode 100644 tests/manual/link_dynamiclib/lib1.cpp create mode 100644 tests/manual/link_dynamiclib/lib2.cpp create mode 100644 tests/manual/link_dynamiclib/lib3.cpp create mode 100644 tests/manual/link_dynamiclib/link_dynamiclib.qbp create mode 100644 tests/manual/link_dynamiclib/main.cpp create mode 100644 tests/manual/link_staticlib/helper/helper.cpp create mode 100644 tests/manual/link_staticlib/helper/helper.h create mode 100644 tests/manual/link_staticlib/link_staticlib.qbp create mode 100644 tests/manual/link_staticlib/main.cpp create mode 100644 tests/manual/link_staticlib/mystaticlib.cpp create mode 100644 tests/manual/link_staticlib/mystaticlibhelper.cpp create mode 100644 tests/manual/localDeployment/localDeployment.qbp create mode 100644 tests/manual/localDeployment/main.cpp create mode 100644 tests/manual/moc_cpp/bla.cpp create mode 100644 tests/manual/moc_cpp/moc_cpp.qbp create mode 100644 tests/manual/moc_hpp/moc_hpp.qbp create mode 100644 tests/manual/moc_hpp/object.cpp create mode 100644 tests/manual/moc_hpp/object.h create mode 100644 tests/manual/moc_hpp_included/moc_hpp_included.qbp create mode 100644 tests/manual/moc_hpp_included/object.cpp create mode 100644 tests/manual/moc_hpp_included/object.h create mode 100644 tests/manual/pch/main.cpp create mode 100644 tests/manual/pch/myobject.cpp create mode 100644 tests/manual/pch/myobject.h create mode 100644 tests/manual/pch/pch.qbp create mode 100644 tests/manual/pch/stable.h create mode 100644 tests/manual/productmoduledeps/lib1.cpp create mode 100644 tests/manual/productmoduledeps/main.cpp create mode 100644 tests/manual/productmoduledeps/productmoduledeps.qbp create mode 100644 tests/manual/proper quoting/main.cpp create mode 100644 tests/manual/proper quoting/my static lib helper.cpp create mode 100644 tests/manual/proper quoting/my static lib.cpp create mode 100644 tests/manual/proper quoting/proper quoting.qbp create mode 100644 tests/manual/proper quoting/some helper/some helper.cpp create mode 100644 tests/manual/proper quoting/some helper/some helper.h create mode 100644 tests/manual/propertiesblocks/hello.qbp create mode 100644 tests/manual/propertiesblocks/main.cpp create mode 100644 tests/manual/qrc2/bla.cpp create mode 100644 tests/manual/qrc2/bla.qrc create mode 100644 tests/manual/qrc2/foo.qrc create mode 100644 tests/manual/qrc2/i.qbp create mode 100644 tests/manual/qrc2/stuff.txt create mode 100644 tests/manual/symhello/hello.qbp create mode 100644 tests/manual/symhello/main.cpp create mode 100644 tests/manual/transformers/main.cpp create mode 100644 tests/manual/transformers/transformers.qbp create mode 100644 tests/manual/uic/bla.cpp create mode 100644 tests/manual/uic/bla.h create mode 100644 tests/manual/uic/ui.h create mode 100644 tests/manual/uic/ui.ui create mode 100644 tests/manual/uic/uic.qbp create mode 100644 tests/tests.pro diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..22a51099e --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +.qbs +build +*.pdb +*.pro.user +*~ +*.o +*.lib +*.so +moc_*.cpp +*.moc +*.qch +*.a +*.cpp.orig + +Makefile +testOptions +testTools + +bin/* +doc/html/* + + diff --git a/LGPL_EXCEPTION.txt b/LGPL_EXCEPTION.txt new file mode 100644 index 000000000..a54c00e44 --- /dev/null +++ b/LGPL_EXCEPTION.txt @@ -0,0 +1,22 @@ +Nokia Qt LGPL Exception version 1.1 + +As an additional permission to the GNU Lesser General Public License version +2.1, the object code form of a "work that uses the Library" may incorporate +material from a header file that is part of the Library. You may distribute +such object code under terms of your choice, provided that: + (i) the header files of the Library have not been modified; and + (ii) the incorporated material is limited to numerical parameters, data + structure layouts, accessors, macros, inline functions and + templates; and + (iii) you comply with the terms of Section 6 of the GNU Lesser General + Public License version 2.1. + +Moreover, you may apply this exception to a modified version of the Library, +provided that such modification does not involve copying material from the +Library into the modified Library's header files unless such material is +limited to (i) numerical parameters; (ii) data structure layouts; +(iii) accessors; and (iv) small macros, templates and inline functions of +five lines or less in length. + +Furthermore, you are not required to apply this additional permission to a +modified version of the Library. diff --git a/LICENSE.LGPL b/LICENSE.LGPL new file mode 100644 index 000000000..e11c2af3e --- /dev/null +++ b/LICENSE.LGPL @@ -0,0 +1,503 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library 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 + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + , 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! diff --git a/README b/README new file mode 100644 index 000000000..b1cf84347 --- /dev/null +++ b/README @@ -0,0 +1,20 @@ +This is qbs; the "Qt Build Salvation". +The main documentation is available as qdoc files in the doc subdirectory. + + +1. Build Prerequisites +====================== + +For building qbs you need: + + - a C++ compiler + - Qt >= 4.7 + + +2. Building qbs +=============== + + - qmake -r + - make + - make docs + diff --git a/bin/ibmsvc.xml b/bin/ibmsvc.xml new file mode 100644 index 000000000..cea5990c1 --- /dev/null +++ b/bin/ibmsvc.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/bin/ibqbs.bat b/bin/ibqbs.bat new file mode 100644 index 000000000..0e1cb2bdb --- /dev/null +++ b/bin/ibqbs.bat @@ -0,0 +1 @@ +@xgConsole /profile=%~dp0\ibmsvc.xml /command="qbs -j 20 %*" diff --git a/doc/classic.css b/doc/classic.css new file mode 100644 index 000000000..f97bdbeab --- /dev/null +++ b/doc/classic.css @@ -0,0 +1,295 @@ +BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV { + font-family: Arial, Geneva, Helvetica, sans-serif; +} +H1 { + text-align: center; + font-size: 160%; +} +H2 { + font-size: 120%; +} +H3 { + font-size: 100%; +} + +h3.fn,span.fn +{ + background-color: #eee; + border-width: 1px; + border-style: solid; + border-color: #ddd; + font-weight: bold; + padding: 6px 0px 6px 10px; + margin: 42px 0px 0px 0px; +} + +hr { + border: 0; + color: #a0a0a0; + background-color: #ccc; + height: 1px; + width: 100%; + text-align: left; + margin: 34px 0px 34px 0px; +} + +table.valuelist { + border-width: 1px 1px 1px 1px; + border-style: solid; + border-color: #dddddd; + border-collapse: collapse; + background-color: #f0f0f0; +} + +table.indextable { + border-width: 1px 1px 1px 1px; + border-collapse: collapse; + background-color: #f0f0f0; + border-color:#555; + font-size: 110%; +} + +table td.largeindex { + border-width: 1px 1px 1px 1px; + border-collapse: collapse; + background-color: #f0f0f0; + border-color:#555; + font-size: 120%; +} + +table.valuelist th { + border-width: 1px 1px 1px 2px; + padding: 4px; + border-style: solid; + border-color: #666; + color:white; + background-color:#666; +} + +th.titleheader { + border-width: 1px 0px 1px 0px; + padding: 4px; + border-style: solid; + border-color: #444; + color:white; + background-color:#555555; + font-size: 110%; +} + +th.largeheader { + border-width: 1px 0px 1px 0px; + padding: 4px; + border-style: solid; + border-color: #444; + color:white; + background-color:#555555; + font-size: 120%; +} + +p { + + margin-left: 4px; + margin-top: 8px; + margin-bottom: 8px; +} + +a:link +{ + color: #0046ad; + text-decoration: none +} + +a:visited +{ + color: #672967; + text-decoration: none +} + +a.obsolete +{ + color: #661100; + text-decoration: none +} + +a.compat +{ + color: #661100; + text-decoration: none +} + +a.obsolete:visited +{ + color: #995500; + text-decoration: none +} + +a.compat:visited +{ + color: #995500; + text-decoration: none +} + +body +{ + background: #ffffff; + color: black +} + +table.generic, table.annotated +{ + border-width: 1px; + border-color:#bbb; + border-style:solid; + border-collapse:collapse; +} + +table td.memItemLeft { + width: 180px; + padding: 2px 0px 0px 8px; + margin: 4px; + border-width: 1px; + border-color: #E0E0E0; + border-style: none; + font-size: 100%; + white-space: nowrap +} + +table td.memItemRight { + padding: 2px 8px 0px 8px; + margin: 4px; + border-width: 1px; + border-color: #E0E0E0; + border-style: none; + font-size: 100%; +} + +table tr.odd { + background: #f0f0f0; + color: black; +} + +table tr.even { + background: #e4e4e4; + color: black; +} + +table.annotated th { + padding: 3px; + text-align: left +} + +table.annotated td { + padding: 3px; +} + +table tr pre +{ + padding-top: 0px; + padding-bottom: 0px; + padding-left: 0px; + padding-right: 0px; + border: none; + background: none +} + +tr.qt-style +{ + background: #96E066; + color: black +} + +body pre +{ + padding: 0.2em; + border: #e7e7e7 1px solid; + background: #f1f1f1; + color: black +} + +table tr.qt-code pre +{ + padding: 0.2em; + border: #e7e7e7 1px solid; + background: #f1f1f1; + color: black +} + +span.preprocessor, span.preprocessor a +{ + color: darkblue; +} + +span.comment +{ + color: darkred; + font-style: italic +} + +span.string,span.char +{ + color: darkgreen; +} + +.title +{ + text-align: center +} + +.subtitle +{ + font-size: 0.8em +} + +.small-subtitle +{ + font-size: 0.65em +} + +.qmlitem { + padding: 0; +} + +.qmlname { + white-space: nowrap; + font-weight: bold; + font-size: 125%; +} + +.qmltype { + font-weight: bold; + font-size: 125%; +} + +.qmlproto, .qmldoc { + // border-top: 1px solid #84b0c7; +} + +.qmlproto { + padding: 0; + //background-color: #e4e4e4;//#d5e1e8; + //font-weight: bold; + //-webkit-border-top-left-radius: 8px; + //-webkit-border-top-right-radius: 8px; + //-moz-border-radius-topleft: 8px; + //-moz-border-radius-topright: 8px; +} + +.qmldoc { + border-top: 1px solid #e4e4e4; + //padding: 2px 5px; + //background-color: #eef3f5; + //border-top-width: 0; + //-webkit-border-bottom-left-radius: 8px; + //-webkit-border-bottom-right-radius: 8px; + //-moz-border-radius-bottomleft: 8px; + //-moz-border-radius-bottomright: 8px; +} + +.qmldoc p, .qmldoc dl, .qmldoc ul { + //margin: 6px 0; +} + +*.qmlitem p { + //margin-top: 0px; + //margin-bottom: 0px; +} diff --git a/doc/config/compat.qdocconf b/doc/config/compat.qdocconf new file mode 100644 index 000000000..5745ed93b --- /dev/null +++ b/doc/config/compat.qdocconf @@ -0,0 +1,31 @@ +alias.i = e +alias.include = input + +macro.0 = "\\\\0" +macro.b = "\\\\b" +macro.n = "\\\\n" +macro.r = "\\\\r" +macro.i = "\\o" +macro.i11 = "\\o{1,1}" +macro.i12 = "\\o{1,2}" +macro.i13 = "\\o{1,3}" +macro.i14 = "\\o{1,4}" +macro.i15 = "\\o{1,5}" +macro.i16 = "\\o{1,6}" +macro.i17 = "\\o{1,7}" +macro.i18 = "\\o{1,8}" +macro.i19 = "\\o{1,9}" +macro.i21 = "\\o{2,1}" +macro.i31 = "\\o{3,1}" +macro.i41 = "\\o{4,1}" +macro.i51 = "\\o{5,1}" +macro.i61 = "\\o{6,1}" +macro.i71 = "\\o{7,1}" +macro.i81 = "\\o{8,1}" +macro.i91 = "\\o{9,1}" +macro.img = "\\image" +macro.endquote = "\\endquotation" +macro.relatesto = "\\relates" + +spurious = "Missing comma in .*" \ + "Missing pattern .*" diff --git a/doc/config/macros.qdocconf b/doc/config/macros.qdocconf new file mode 100644 index 000000000..1997fd9c3 --- /dev/null +++ b/doc/config/macros.qdocconf @@ -0,0 +1,40 @@ +macro.aacute.HTML = "á" +macro.Aring.HTML = "Å" +macro.aring.HTML = "å" +macro.Auml.HTML = "Ä" +macro.author = "\\bold{Author:}" +macro.br.HTML = "
" +macro.BR.HTML = "
" +macro.copyright.HTML = "©" +macro.eacute.HTML = "é" +macro.gui = "\\bold" +macro.hr.HTML = "
" +macro.iacute.HTML = "í" +macro.key = "\\bold" +macro.menu = "\\bold" +macro.note = "\\bold{Note:}" +macro.oslash.HTML = "ø" +macro.ouml.HTML = "ö" +macro.QA = "\\e{Qt Assistant}" +macro.QD = "\\e{Qt Designer}" +macro.QL = "\\e{Qt Linguist}" +macro.QMLD = "\\e{Qt Quick Designer}" +macro.QQV = "\\e{Qt QML Viewer}" +macro.QSDK = "\\e{Qt SDK}" +macro.qtcversion = $QTC_VERSION +macro.param = "\\e" +macro.raisedaster.HTML = "*" +macro.rarrow.HTML = "→" +macro.reg.HTML = "®" +macro.return = "Returns" +macro.starslash = "\\c{*/}" +macro.begincomment = "\\c{/*}" +macro.endcomment = "\\c{*/}" +macro.uuml.HTML = "ü" +macro.mdash.HTML = "—" + +macro.beginfloatleft.HTML = "
" +macro.beginfloatright.HTML = "
" +macro.endfloat.HTML = "
" +macro.clearfloat.HTML = "
" +macro.emptyspan.HTML = "" diff --git a/doc/config/qbs-project.qdocconf b/doc/config/qbs-project.qdocconf new file mode 100644 index 000000000..a72a23dda --- /dev/null +++ b/doc/config/qbs-project.qdocconf @@ -0,0 +1,37 @@ +project = "Qt Build System" +description = "Qbs Manual" + +headerdirs = +sourcedirs = $SRCDIR +imagedirs = $SRCDIR/images $SRCDIR/templates/images +outputdir = $OUTDIR +exampledirs = $SRCDIR +indexes = qt.index + +include(compat.qdocconf) +include(macros.qdocconf) +include(qt-cpp-ignore.qdocconf) +include(qt-defines.qdocconf) + +sources.fileextensions = "qbs.qdoc" + + +qhp.projects = Qbs +qhp.Qbs.file = qbs.qhp +qhp.Qbs.namespace = com.nokia.qbs.$QTC_VERSION_TAG +qhp.Qbs.virtualFolder = doc +qhp.Qbs.indexTitle = Qt Build System +qhp.Qbs.filterAttributes = qbs $QTC_VERSION +qhp.Qbs.customFilters.Qbs.name = Qt Build System $QTC_VERSION +qhp.Qbs.customFilters.Qbs.filterAttributes = qbs $QTC_VERSION +qhp.Qbs.indexRoot = + +qhp.Qbs.subprojects = manual +qhp.Qbs.subprojects.manual.title = Qbs Manual +qhp.Qbs.subprojects.manual.indexTitle = Qbs Manual +qhp.Qbs.subprojects.manual.type = manual + +# Doxygen compatibility commands + +macro.see = "\\sa" +macro.function = "\\fn" diff --git a/doc/config/qt-cpp-ignore.qdocconf b/doc/config/qt-cpp-ignore.qdocconf new file mode 100644 index 000000000..ce8de2406 --- /dev/null +++ b/doc/config/qt-cpp-ignore.qdocconf @@ -0,0 +1,99 @@ +Cpp.ignoretokens = QAXFACTORY_EXPORT \ + QDESIGNER_COMPONENTS_LIBRARY \ + QDESIGNER_EXTENSION_LIBRARY \ + QDESIGNER_SDK_LIBRARY \ + QDESIGNER_SHARED_LIBRARY \ + QDESIGNER_UILIB_LIBRARY \ + QM_EXPORT_CANVAS \ + QM_EXPORT_DNS \ + QM_EXPORT_DOM \ + QM_EXPORT_FTP \ + QM_EXPORT_HTTP \ + QM_EXPORT_ICONVIEW \ + QM_EXPORT_NETWORK \ + QM_EXPORT_OPENGL \ + QM_EXPORT_OPENVG \ + QM_EXPORT_SQL \ + QM_EXPORT_TABLE \ + QM_EXPORT_WORKSPACE \ + QM_EXPORT_XML \ + QT_ASCII_CAST_WARN \ + QT_ASCII_CAST_WARN_CONSTRUCTOR \ + QT_BEGIN_HEADER \ + QT_DESIGNER_STATIC \ + QT_END_HEADER \ + QT_FASTCALL \ + QT_WIDGET_PLUGIN_EXPORT \ + Q_COMPAT_EXPORT \ + Q_CORE_EXPORT \ + Q_CORE_EXPORT_INLINE \ + Q_EXPLICIT \ + Q_EXPORT \ + Q_EXPORT_CODECS_CN \ + Q_EXPORT_CODECS_JP \ + Q_EXPORT_CODECS_KR \ + Q_EXPORT_PLUGIN \ + Q_GFX_INLINE \ + Q_AUTOTEST_EXPORT \ + Q_GUI_EXPORT \ + Q_GUI_EXPORT_INLINE \ + Q_GUI_EXPORT_STYLE_CDE \ + Q_GUI_EXPORT_STYLE_COMPACT \ + Q_GUI_EXPORT_STYLE_MAC \ + Q_GUI_EXPORT_STYLE_MOTIF \ + Q_GUI_EXPORT_STYLE_MOTIFPLUS \ + Q_GUI_EXPORT_STYLE_PLATINUM \ + Q_GUI_EXPORT_STYLE_POCKETPC \ + Q_GUI_EXPORT_STYLE_SGI \ + Q_GUI_EXPORT_STYLE_WINDOWS \ + Q_GUI_EXPORT_STYLE_WINDOWSXP \ + QHELP_EXPORT \ + Q_INLINE_TEMPLATE \ + Q_INTERNAL_WIN_NO_THROW \ + Q_NETWORK_EXPORT \ + Q_OPENGL_EXPORT \ + Q_OPENVG_EXPORT \ + Q_OUTOFLINE_TEMPLATE \ + Q_SQL_EXPORT \ + Q_SVG_EXPORT \ + Q_SCRIPT_EXPORT \ + Q_SCRIPTTOOLS_EXPORT \ + Q_TESTLIB_EXPORT \ + Q_TYPENAME \ + Q_XML_EXPORT \ + Q_XMLSTREAM_EXPORT \ + Q_XMLPATTERNS_EXPORT \ + QDBUS_EXPORT \ + Q_DBUS_EXPORT \ + QT_BEGIN_NAMESPACE \ + QT_BEGIN_INCLUDE_NAMESPACE \ + QT_END_NAMESPACE \ + QT_END_INCLUDE_NAMESPACE \ + PHONON_EXPORT \ + Q_DECLARATIVE_EXPORT \ + Q_GADGET \ + QWEBKIT_EXPORT \ + Q_INVOKABLE \ + EXTENSIONSYSTEM_EXPORT +Cpp.ignoredirectives = Q_DECLARE_HANDLE \ + Q_DECLARE_INTERFACE \ + Q_DECLARE_METATYPE \ + Q_DECLARE_OPERATORS_FOR_FLAGS \ + Q_DECLARE_PRIVATE \ + Q_DECLARE_PUBLIC \ + Q_DECLARE_SHARED \ + Q_DECLARE_TR_FUNCTIONS \ + Q_DECLARE_TYPEINFO \ + Q_DISABLE_COPY \ + QT_FORWARD_DECLARE_CLASS \ + Q_DUMMY_COMPARISON_OPERATOR \ + Q_ENUMS \ + Q_FLAGS \ + Q_INTERFACES \ + __attribute__ \ + K_DECLARE_PRIVATE \ + PHONON_OBJECT \ + PHONON_HEIR \ + Q_PRIVATE_PROPERTY \ + Q_DECLARE_PRIVATE_D \ + Q_CLASSINFO diff --git a/doc/config/qt-defines.qdocconf b/doc/config/qt-defines.qdocconf new file mode 100644 index 000000000..1ce9a8045 --- /dev/null +++ b/doc/config/qt-defines.qdocconf @@ -0,0 +1,19 @@ +defines = Q_QDOC \ + QT_.*_SUPPORT \ + QT_.*_LIB \ + QT_COMPAT \ + QT_KEYPAD_NAVIGATION \ + QT_NO_EGL \ + QT3_SUPPORT \ + Q_WS_.* \ + Q_OS_.* \ + Q_BYTE_ORDER \ + QT_DEPRECATED \ + Q_NO_USING_KEYWORD \ + __cplusplus \ + qtquick \ + qcmanual + +versionsym = QT_VERSION_STR + +codeindent = 1 diff --git a/doc/config/qt-html-default-styles.qdocconf b/doc/config/qt-html-default-styles.qdocconf new file mode 100644 index 000000000..2d4f25a57 --- /dev/null +++ b/doc/config/qt-html-default-styles.qdocconf @@ -0,0 +1,33 @@ +# Define the location of the templates to use. Style sheets and scripts are +# specified relative to the template directory and will be copied into +# subdirectories of the output directory. + +HTML.templatedir = $SRCDIR/templates + +HTML.stylesheets = style/offline.css + +HTML.scripts = + +# Files not referenced in any qdoc file (last four needed by qtdemo) +# See also qhp.Qt.extraFiles +extraimages.HTML = qt-logo.png \ + arrow_down.png \ + breadcrumb.png \ + bullet_gt.png \ + bullet_dn.png \ + bullet_sq.png \ + bullet_up.png \ + horBar.png \ + sprites-combined.png \ + qtcreator-screenshots.png + +# Include the style sheets and scripts used. + +HTML.headerstyles = \ + " \n" + +HTML.headerscripts = + +HTML.endheader = \ + "\n" \ + "\n" diff --git a/doc/config/qt-html-online-styles.qdocconf b/doc/config/qt-html-online-styles.qdocconf new file mode 100644 index 000000000..f6480dc25 --- /dev/null +++ b/doc/config/qt-html-online-styles.qdocconf @@ -0,0 +1,73 @@ +# Define the location of the templates to use. Style sheets and scripts are +# specified relative to the template directory and will be copied into +# subdirectories of the output directory. + +HTML.templatedir = $SRCDIR/templates + +HTML.stylesheets = style/narrow.css \ + style/style.css \ + style/style_ie6.css \ + style/style_ie7.css \ + style/style_ie8.css \ + style/superfish.css + +# Adding jquery and functions - providing online tools and search features +HTML.scripts = scripts/functions.js \ + scripts/narrow.js \ + scripts/superfish.js \ + scripts/jquery.js + + +# Files not referenced in any qdoc file. +# See also qhp.Qt.extraFiles +extraimages.HTML = qt-logo.png \ + bg_l.png \ + bg_l_blank.png \ + bg_ll_blank.png \ + bg_ul_blank.png \ + header_bg.png \ + bg_r.png \ + box_bg.png \ + breadcrumb.png \ + bullet_gt.png \ + bullet_dn.png \ + bullet_sq.png \ + bullet_up.png \ + arrow_down.png \ + feedbackground.png \ + horBar.png \ + page.png \ + page_bg.png \ + sprites-combined.png \ + spinner.gif \ + qtcreator-screenshots.png + +# Include the style sheets and scripts used. + +HTML.headerstyles = \ + " \n" \ + " \n" \ + " \n" \ + " \n" \ + " \n" \ + " \n" \ + "\n" \ + "\n" \ + "\n\n" + +HTML.headerscripts = \ + "\n" \ + "\n\n" + +HTML.endheader = \ + "\n" \ + "\n" diff --git a/doc/config/qt-html-templates-online.qdocconf b/doc/config/qt-html-templates-online.qdocconf new file mode 100644 index 000000000..198ef6c44 --- /dev/null +++ b/doc/config/qt-html-templates-online.qdocconf @@ -0,0 +1,185 @@ +include(qt-html-online-styles.qdocconf) + +HTML.postheader = \ + "
\n" \ + "
\n" \ + "
\n" \ + " Home
\n" \ + " Qbs Manual\n" \ + "
\n" \ + "
\n" \ + " \n" \ + "
\n" \ + "
\n" \ + " \n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "
\n" \ + " \n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "

\n" \ + " API Lookup

\n" \ + "
\n" \ + " \n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "

\n" \ + " Qt Topics

\n" \ + " \n" \ + "
\n" \ + "
\n" \ + "

\n" \ + " Examples

\n" \ + "
\n" \ + " \n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "
    \n" \ + "
  • Home
  • \n" \ + " \n" + +HTML.postpostheader = \ + "
\n" \ + "
\n" \ + "
\n" \ + " \n" \ + "
\n" \ + "
\n" \ + "
\n" + +HTML.footer = \ + "
\n" \ + " [+] Documentation Feedback
\n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "
\n" \ + " \n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "

\n" \ + " © 2008-2012 Nokia Corporation and/or its\n" \ + " subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation \n" \ + " in Finland and/or other countries worldwide.

\n" \ + "

\n" \ + " All other trademarks are property of their respective owners. Privacy Policy

\n" \ + "
\n" \ + "

\n" \ + " Licensees holding valid Qt Commercial licenses may use this document in accordance with the" \ + " Qt Commercial License Agreement provided with the Software or, alternatively, in accordance" \ + " with the terms contained in a written agreement between you and Nokia.

\n" \ + "

\n" \ + " Alternatively, this document may be used under the terms of the GNU\n" \ + " Free Documentation License version 1.3\n" \ + " as published by the Free Software Foundation.

\n" \ + "
\n" \ + "
\n" \ + "
X
\n" \ + "
\n" \ + "

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and \n" \ + " requests, please use the Qt Bug Tracker.

\n" \ + "

\n" \ + "

\n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "\n" \ + " \n" \ + " \n" + + +# Files not referenced in any qdoc file. +# See also extraimages.HTML +qhp.QtCreator.extraFiles = index.html \ + images/bg_l.png \ + images/bg_l_blank.png \ + images/bg_ll_blank.png \ + images/bg_ul_blank.png \ + images/header_bg.png \ + images/bg_r.png \ + images/box_bg.png \ + images/breadcrumb.png \ + images/bullet_gt.png \ + images/bullet_dn.png \ + images/bullet_sq.png \ + images/bullet_up.png \ + images/arrow_down.png \ + images/feedbackground.png \ + images/horBar.png \ + images/page.png \ + images/page_bg.png \ + images/sprites-combined.png \ + images/spinner.gif \ + images/qtcreator-screenshots.png \ + scripts/functions.js \ + scripts/jquery.js \ + scripts/narrow.js \ + scripts/superfish.js \ + style/narrow.css \ + style/superfish.css \ + style/style_ie6.css \ + style/style_ie7.css \ + style/style_ie8.css \ + style/style.css diff --git a/doc/config/qt-html-templates.qdocconf b/doc/config/qt-html-templates.qdocconf new file mode 100644 index 000000000..12f207a85 --- /dev/null +++ b/doc/config/qt-html-templates.qdocconf @@ -0,0 +1,56 @@ +include(qt-html-default-styles.qdocconf) + +HTML.postheader = \ + "
\n" \ + "
\n" \ + " Qbs Documentation\n" \ + "
\n" \ + "
\n" \ + "
    \n" \ + "
  • Home
  • \n" \ + " \n" + +HTML.postpostheader = \ + "\n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "
\n" + +HTML.footer = \ + "
\n" \ + " \n" \ + "
\n" \ + "
\n" \ + "
\n" \ + "

\n" \ + " © 2008-2012 Nokia Corporation and/or its\n" \ + " subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation \n" \ + " in Finland and/or other countries worldwide.

\n" \ + "

\n" \ + " All other trademarks are property of their respective owners. Privacy Policy

\n" \ + "
\n" \ + "

\n" \ + " Licensees holding valid Qt Commercial licenses may use this document in accordance with the" \ + " Qt Commercial License Agreement provided with the Software or, alternatively, in accordance" \ + " with the terms contained in a written agreement between you and Nokia.

\n" \ + "

\n" \ + " Alternatively, this document may be used under the terms of the GNU\n" \ + " Free Documentation License version 1.3\n" \ + " as published by the Free Software Foundation.

\n" \ + "
\n" \ + +# Files not referenced in any qdoc file. +# See also extraimages.HTML +qhp.QtCreator.extraFiles = index.html \ + images/arrow_down.png \ + images/breadcrumb.png \ + images/bullet_gt.png \ + images/bullet_dn.png \ + images/bullet_sq.png \ + images/bullet_up.png \ + images/horBar.png \ + images/sprites-combined.png \ + images/qtcreator-screenshots.png \ + style/offline.css diff --git a/doc/doc.pri b/doc/doc.pri new file mode 100644 index 000000000..bbb6bea69 --- /dev/null +++ b/doc/doc.pri @@ -0,0 +1,60 @@ +defineReplace(targetPath) { + return($$replace(1, /, $$QMAKE_DIR_SEP)) +} + +QDOC_BIN = $$targetPath($$[QT_INSTALL_BINS]/qdoc3) +HELPGENERATOR = $$targetPath($$[QT_INSTALL_BINS]/qhelpgenerator) + +VERSION_TAG = $$replace(QBS_VERSION, "[-.]", ) + +equals(QMAKE_DIR_SEP, /) { # unix, mingw+msys + QDOC = SRCDIR=$$PWD OUTDIR=$$OUT_PWD/doc/html QTC_VERSION=$$QBS_VERSION QTC_VERSION_TAG=$$VERSION_TAG $$QDOC_BIN +} else:win32-g++* { # just mingw + # The lack of spaces in front of the && is necessary! + QDOC = set SRCDIR=$$PWD&& set OUTDIR=$$OUT_PWD/doc/html&& set QTC_VERSION=$$QBS_VERSION&& set QTC_VERSION_TAG=$$VERSION_TAG&& $$QDOC_BIN +} else { # nmake + QDOC = set SRCDIR=$$PWD $$escape_expand(\\n\\t) \ + set OUTDIR=$$OUT_PWD/doc/html $$escape_expand(\\n\\t) \ + set QTC_VERSION=$$QBS_VERSION $$escape_expand(\\n\\t) \ + set QTC_VERSION_TAG=$$VERSION_TAG $$escape_expand(\\n\\t) \ + $$QDOC_BIN +} + +QHP_FILE = $$OUT_PWD/doc/html/qbs.qhp +QCH_FILE = $$OUT_PWD/doc/qbs.qch + +HELP_DEP_FILES = $$PWD/qbs.qdoc \ + $$PWD/config/compat.qdocconf \ + $$PWD/config/macros.qdocconf \ + $$PWD/config/qt-cpp-ignore.qdocconf \ + $$PWD/config/qt-defines.qdocconf \ + $$PWD/config/qt-html-templates.qdocconf \ + $$PWD/config/qt-html-default-styles.qdocconf \ + $$PWD/qbs.qdocconf + +html_docs.commands = $$QDOC $$PWD/qbs.qdocconf +html_docs.depends += $$HELP_DEP_FILES +html_docs.files = $$QHP_FILE + +html_docs_online.commands = $$QDOC $$PWD/qbs-online.qdocconf +html_docs_online.depends += $$HELP_DEP_FILES + +qch_docs.commands = $$HELPGENERATOR -o \"$$QCH_FILE\" $$QHP_FILE +qch_docs.depends += html_docs +qch_docs.files = $$QCH_FILE + +unix:!macx { + qch_docs.path = /share/doc/qbs + qch_docs.CONFIG += no_check_exist + INSTALLS += qch_docs +} + +docs_online.depends = html_docs_online +docs.depends = qch_docs +QMAKE_EXTRA_TARGETS += html_docs html_docs_online qch_docs docs docs_online + +fixnavi.commands = \ + cd $$targetPath($$PWD) && \ + perl fixnavi.pl -Dqcmanual -Dqtquick \ + qbs.qdoc +QMAKE_EXTRA_TARGETS += fixnavi diff --git a/doc/fixnavi.pl b/doc/fixnavi.pl new file mode 100644 index 000000000..1d9d76d5a --- /dev/null +++ b/doc/fixnavi.pl @@ -0,0 +1,144 @@ +#! /usr/bin/perl -w + +use strict; + +my @files = (); +my %defines = (); +for (@ARGV) { + if (/^-D(.*)$/) { + $defines{$1} = 1; + } elsif (/^-/) { + printf STDERR "Unknown option '".$_."'\n"; + exit 1; + } else { + push @files, $_; + } +} + +int(@files) or die "usage: $0 [-D]... \n"; + +my @toc = (); +my %title2page = (); +my $doctitle = ""; +my $curpage = ""; +my $intoc = 0; +my %prev_skips = (); +my %next_skips = (); +my %define_skips = (); +my %polarity_skips = (); +my $prev_skip = ""; +my $next_skip = ""; +my $define_skip = ""; +my $polarity_skip = 0; +for my $file (@files) { + my $skipping = 0; # no nested ifs! + open FILE, $file or die "File $file cannot be opened.\n"; + while () { + if (/^\h*\\if\h+defined\h*\(\h*(\H+)\h*\)/) { + $skipping = !defined($defines{$1}); + if (!$intoc) { + $define_skip = $1; + $polarity_skip = $skipping; + } + } elsif (/^\h*\\else/) { + $skipping = 1 - $skipping; + } elsif (/^\h*\\endif/) { + $skipping = 0; + } elsif (keys(%title2page) == 1 && /^\h*\\list/) { + $intoc++; + } elsif (!$intoc) { + if ($skipping && /^\h*\\previouspage\h+(\H+)/) { + $prev_skip = $1; + } elsif ($skipping && /^\h*\\nextpage\h+(\H+)/) { + $next_skip = $1; + } elsif (/^\h*\\page\h+(\H+)/) { + $curpage = $1; + } elsif (/^\h*\\title\h+(.+)$/) { + if ($curpage eq "") { + die "Title '$1' appears in no \\page.\n"; + } + if (length($define_skip)) { + $define_skips{$1} = $define_skip; + $polarity_skips{$1} = $polarity_skip; + $prev_skips{$1} = $prev_skip; + $next_skips{$1} = $next_skip; + $define_skip = $prev_skip = $next_skip = ""; + } + $title2page{$1} = $curpage; + $doctitle = $1 if (!$doctitle); + $curpage = ""; + } + } else { + if (/^\h*\\endlist/) { + $intoc--; + } elsif (!$skipping && /^\h*\\o\h+\\l\h*{(.*)}$/) { + push @toc, $1; + } + } + } + close FILE; +} + +my %prev = (); +my %next = (); +my $last = $doctitle; +for my $title (@toc) { + $next{$last} = $title2page{$title}; + $prev{$title} = $title2page{$last}; + $last = $title; +} + +for my $file (@files) { + open IN, $file or die "File $file cannot be opened a second time?!\n"; + open OUT, '>'.$file.".out" or die "File $file.out cannot be created.\n"; + my $cutting = 0; + while () { + if (!$cutting) { + if (/^\h*\\contentspage/) { + $cutting = 1; + } + } else { + if (/^\h*\\title\h+(.+)$/) { + if (defined($define_skips{$1})) { + print OUT " \\if defined(".$define_skips{$1}.")\n"; + if ($polarity_skips{$1}) { + print OUT " \\previouspage ".$prev_skips{$1} if ($prev_skips{$1}); + print OUT " \\else\n"; + } + } + print OUT " \\previouspage ".$prev{$1} if ($prev{$1}); + if (defined($define_skips{$1})) { + if (!$polarity_skips{$1}) { + print OUT " \\else\n"; + print OUT " \\previouspage ".$prev_skips{$1} if ($prev_skips{$1}); + } + print OUT " \\endif\n"; + } + print OUT " \\page ".$title2page{$1}; + if (defined($define_skips{$1})) { + print OUT " \\if defined(".$define_skips{$1}.")\n"; + if ($polarity_skips{$1}) { + print OUT " \\nextpage ".$next_skips{$1} if ($next_skips{$1}); + print OUT " \\else\n"; + } + } + print OUT " \\nextpage ".$next{$1} if ($next{$1}); + if (defined($define_skips{$1})) { + if (!$polarity_skips{$1}) { + print OUT " \\else\n"; + print OUT " \\nextpage ".$next_skips{$1} if ($next_skips{$1}); + } + print OUT " \\endif\n"; + } + print OUT "\n"; + $cutting = 0; + } else { + next; + } + } + print OUT $_; + } + close OUT; + close IN; + rename($file.".out", $file) or die "Cannot replace $file with new version.\n"; +} diff --git a/doc/qbs-online.qdocconf b/doc/qbs-online.qdocconf new file mode 100644 index 000000000..3cf115a18 --- /dev/null +++ b/doc/qbs-online.qdocconf @@ -0,0 +1,4 @@ +# Run qdoc from the directory that contains this file. +include(config/qbs-project.qdocconf) +include(config/qt-html-templates-online.qdocconf) + diff --git a/doc/qbs.qdoc b/doc/qbs.qdoc new file mode 100644 index 000000000..90b8834cc --- /dev/null +++ b/doc/qbs.qdoc @@ -0,0 +1,770 @@ +/************************************************************************** +** +** This file is part of the Qt Build Suite +** +** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies). +** +** Contact: Nokia Corporation (info@qt.nokia.com) +** +** +** GNU Lesser General Public License Usage +** +** 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. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU General +** Public License version 3.0 as published by the Free Software Foundation +** and appearing in the file LICENSE.GPL included in the packaging of this +** file. +** Please review the following information to ensure the GNU General +** Public License version 3.0 requirements will be met: +** http://www.gnu.org/copyleft/gpl.html. +** +** Other Usage +** Alternatively, this file may be used in accordance with the terms and +** conditions contained in a signed written agreement between you and Nokia. +** +**************************************************************************/ + +// ********************************************************************** +// NOTE: the sections are not ordered by their logical order to avoid +// reshuffling the file each time the index order changes (i.e., often). +// Run the fixnavi.pl script to adjust the links to the index order. +// ********************************************************************** + + +/*! + \contentspage{index.html}{Qt Build Suite} + \page index.html + \nextpage qbs-overview.html + + \title Qbs Manual + + \section1 Version \qtcversion + + Qt Build Suite (qbs) is a tool that helps simplify the build process for + developing projects across multiple platforms. Qbs can be used for any + software project, whether it is written in Qt or not. + + Qbs is an all-in-one tool that generates a build graph from a high-level + project description (like qmake or cmake) and additionally undertakes the + task of executing the commands in the low-level build graph (like make). + + \note Please report bugs and suggestions to the + \l{http://bugreports.qt-project.com/}{Qt Bug Tracker}. + + \list + \o \l{Introducing Qbs} + \o \l{Setting Up Qbs} + \list + \o \l{System Requirements} + \o \l{Building Qbs} + \o \l{Configuring Qbs} + \endlist + \o \l{Using Qbs} + \list + \o \l{Language Introduction} + \o \l{Building Applications with Qbs} + \o \l{Running Applications} + \o \l{Using Qbs Graph} + \o \l{Using Qbs Shell} + \endlist + \o \l{Reference} + \list + \o \l{Qbs Functions} + \o \l{Rules} + \endlist + \endlist +*/ + + +/*! + \contentspage index.html + \previouspage index.html + \page qbs-overview.html + \nextpage qbs-setup.html + + \title Introducing Qbs + + Qbs builds applications based on the information in a project file that you + specify in a QML dialect. Each project file specifies one project that can + contain several products. You specify the type of the product: application, + library, and so on. +*/ + + +/*! + \contentspage index.html + \previouspage qbs-overview.html + \page qbs-setup.html + \nextpage qbs-system-requirements.html + + \title Setting Up Qbs + + \list + \o \l{System Requirements} + \o \l{Building Qbs} + \o \l{Configuring Qbs} + \endlist +*/ + + +/*! + \contentspage index.html + \previouspage qbs-setup.html + \page qbs-system-requirements.html + \nextpage qbs-building.html + + \title System Requirements + + To build Qbs from the source, you need the following: + + \list + + \o Qt 4.7 + + \endlist + +*/ + + +/*! + \contentspage index.html + \previouspage qbs-system-requirements.html + \page qbs-building.html + \nextpage qbs-configuring.html + + \title Building Qbs + + To build Qbs: + + \list 1 + + \o Enter the following command: + \c {qmake -r qbs.pro && make} + + \endlist + +*/ + + +/*! + \contentspage index.html + \previouspage qbs-building.html + \page qbs-configuring.html + \nextpage qbs-usage.html + + \title Configuring Qbs + + When you run Qbs from an in-source build most paths are set up + automatically. If you do not build in-source, configure the following + paths: + + \code + QBS_SOURCE_DIR=/path/to/qbs-source + QBS_BUILD_DIR=/path/to/qbs-build + qbs config --global paths/cubes $QBS_SOURCE_DIR/share/qbs + qbs config --global paths/plugins $QBS_BUILD_DIR/plugins + \endcode + + Currently, you also must tell qbs where it can find Qt. + Qt installations are grouped by a free form name, like in Qt Creator. + The default Qt installation name is "default". + + \code + qbs config --global qt/default/path /home/icke/dev/qt/4.7-build + \endcode + + This is the case where the bin, include, lib and mkspecs directories + of your Qt build are below the qtPath. This is usually the case on Windows + or if you build Qt yourself without installing it. + For installed Qt versions we need to set up some more paths. + Here's an example for registering an Qt, installed on Ubuntu GNU/Linux: + + \code + qbs config --global qt/default/binPath /usr/bin + qbs config --global qt/default/incPath /usr/include/qt4 + qbs config --global qt/default/libPath /usr/lib/x86_64-linux-gnu + qbs config --global qt/default/mkspecsPath /usr/share/qt4/mkspecs + \endcode + + If you have built your Qt with the option -qtnamespace MyNamespace + then you must set the following config value. + + \code + qbs config --global qt/default/namespace MyNamespace + \endcode + + Now open a build shell (on Windows open a MSVC command prompt, + on other platforms the default shell is usually ok): + \code + qbs platforms probe + \endcode + + You will be prompted to enter a name for a new platform. + For your desktop build environment choose "desktop". + This will be used as default build platform. + + Now you should be ready to build your first project with qbs. + Go into qbs/tests/manual/hello and type + + \code + qbs + \endcode +*/ + + +/*! + \contentspage index.html + \previouspage qbs-configuring.html + \page qbs-usage.html + \nextpage qbs-language-introduction.html + + \title Using Qbs + + \list + \o \l{Language Introduction} + \o \l{Building Applications with Qbs} + \o \l{Running Applications} + \o \l{Using Qbs Graph} + \o \l{Using Qbs Shell} + \endlist + +*/ + + +/*! + \contentspage index.html + \previouspage qbs-usage.html + \page qbs-language-introduction.html + \nextpage qbs-building-applications.html + + \title Language Introduction + + Qbs uses project files (*.qbp) to describe the contents of a project. + A project contains one or more products. A product is the target of a build + process, typically an application, library or maybe a tar ball. + + \section1 The obligatory Hello World example + + These project files are written using a QML dialect. + A very simple C++ hello world project looks like this: + \code ---helloworld.qbp--- + import qbs.base 1.0 + + Application { + name: "helloworld" + files: "main.cpp" + Depends { name: "cpp" } + } + \endcode + + The import statement gives us access to some inbuilt types and specifies the + used language version. + + \a Application describes a product we want to build. In this case an + application. This is just a short cut for writing + \code + Product { + type: "application" + // ... + } + \endcode + + The \a name obviously is the name of the product and in this case is also the + name of the produced executable. + In the property \a files we specify the source files for our product. + Unlike QML the right hand side can be either a string or a string list. + A single string is converted to a stringlist containing just one element. + + \a Depends adds the dependency to the module \a{cpp} (see below for an + explanation of qbs modules). + This is necessary to let qbs know that we're having a C++ project and want + to compile main.cpp with a C++ compiler. + + + \section1 Reusing qbs project file code + QML-like inheritance is also working in qbs. + + \code + ---CrazyProduct.qbs--- + import qbs.base 1.0 + + Product { + property string craziness: "low" + } + + ---hellocrazyworld.qbp--- + CrazyProduct { + craziness: "enormous" + name: "hellocrazyworld" + // ... + } + \endcode + + You can put JS code into separate \c{.js} files and then import then. + \code + ---helpers.js--- + function planetsCorrectlyAligned() + { + // implementation + } + + ---myproject.qbs--- + import qbs.base 1.0 + import "helpers.js" as Helpers + + Product { + name: "myproject" + Group { + condition: Helpers.planetsCorrectlyAligned() + file: "magic_hack.cpp" + } + // ... + } + \endcode + + + \section1 Modules + + So what are these "modules"? + A module is a collection of properties and language items that are used for + building a product, if the product depends on (or loads) the module. + + For example the \a cpp module looks like this (simplified): + \code + Module { + name: "cpp" + property string warningLevel + property string optimization + property bool debugInformation + property string precompiledHeader + // ... + FileTagger { + pattern: "*.cpp" + fileTags: ["cpp"] + } + Rule {...} // compiler + Rule {...} // application linker + Rule {...} // static lib linker + Rule {...} // dynamic lib linker + } + \endcode + + What we see here is a bunch of properties that can be set for the \a cpp + module. These are used to control the behaviour of your C++ toolchain. + Also we have things like FileTaggers and Rules. These are covered later. + + As soon as your product depends on a module it can set properties of this + module. This is how you specify the optimization level for your product (and + all build variants): + + \code ---helloworld.qbp--- + import qbs.base 1.0 + + Application { + name: "helloworld" + files: ["main.cpp"] + cpp.optimization: "ludicrousSpeed" + Depends { name: "cpp" } + } + \endcode + + A module can implicitly depend on other modules. E.g. the \c Qt.core module depends + on \c{cpp}. But to set properties of a module you must explicitly import + it. + + \code + // DOES NOT WORK + Application { + name: "helloworld" + files: ["main.cpp"] + Depends { name: "Qt.core" } + cpp.optimization: "ludicrousSpeed" + // ERROR! We don't know about "cpp" here, + // though "Qt.core" depends on "cpp". + } + + // THIS IS WORKING + Application { + name: "helloworld" + files: ["main.cpp"] + Depends { name: "Qt.core" } + Depends { name: "cpp" } + cpp.optimization: "ludicrousSpeed" + } + \endcode + + \section2 Different properties for a single file + + Not only the product but all source files of the product can have their own + set of module properties. For example you have a file that's known to crash + your compiler if you turn on optimizations. You want to turn off + optimizations for just this file and this is how you do it: + + \code + Application { + name: "helloworld" + files: "main.cpp" + Group { + files: "bad_file.cpp" + cpp.optimization: "none" + } + Depends { name: "cpp" } + } + \endcode + + With a group you can set the properties of a whole set of files, not just + single ones. + + \section2 Selecting files by properties + + The classical (pre-lighthouse) Qt case: you have a file that's only going to + be compiled on a certain platform. This is how you do it: + \code + Group { + condition: qbs.target == "windows" + files: [ + "harddiskdeleter_win.cpp", + "blowupmonitor_win.cpp", + "setkeyboardonfire_win.cpp" + ] + } + Group { + condition: qbs.target == "linux" + files: [ + "harddiskdeleter_linux.cpp", + "blowupmonitor_linux.cpp", + "setkeyboardonfire_linux.cpp" + ] + } + \endcode + + That odd \a qbs.target thingy is the property \a target of the module \a + qbs. The module \a qbs is always implicitly loaded. Its main properties + are: + + \table + \header + \o Property + \o Type + \o Default + \o Description + \row + \o buildVariant + \o string + \o "debug" + \o Name of the current build variant. By default "debug" and "release" + are valid values but the user can add more in a project file. + \row + \o host + \o string + \o platform-dependent + \o The host platform. Currently "windows", "linux" or "mac". + \row + \o target + \o string + \o platform-dependent + \o The target platform. Currently "windows", "linux", "mac" or + "ponyphone". + \endtable + + You can set these properties on the command line. Property \a + qbs.buildVariant is handled in a special way. + + \code + $ qbs # qbs.buildVariant:debug, qbs.target:qbs.host + $ qbs release # qbs.buildVariant:release, qbs.target:qbs.host + $ qbs target:ponyphone # qbs.buildVariant:debug, qbs.target:ponyphone + $ qbs debug release # builds two variants of the project + \endcode + + So if you want to select files by build variant, this is how you do it: + \code + Group { + condition: qbs.buildVariant == "debug" + files: "debughelper.cpp" + } + \endcode + + Setting properties for a build variant goes like this: + \code + Properties { + condition: qbs.buildVariant == "debug" + cpp.debugInformation: "on" + cpp.optimization: "none" + } + \endcode + or more QML style: + \code + cpp.debugInformation: qbs.buildVariant == "debug" ? "on" : "off" + cpp.optimization: qbs.buildVariant == "debug" ? "none" : "fast" + \endcode + + + \section1 File tags and taggers + + Qbs knows nothing about C++ files or its file extensions. All source file + in a product are handled equally. There's the concept of a \a{file tag}, + which is basically a marker or a type that can be assigned to an artifact. + + An artifact can have multiple file tags. + Use the \a Group item to group files with the same file tags (and/or set of + properties). + + Example: + \code + Product { + Group { + files: ["file1.cpp", "file2.cpp"] + fileTags: ["cpp"] + } + Group { + files: "mydsl_scanner.l" + fileTags: ["flex", "foobar"] + } + // ... + } + \endcode + + When you load the \a cpp module then you also load the following item: + \code + FileTagger { + pattern: "*.cpp" + fileTags: ["cpp"] + } + \endcode + This thing means that every source file that matches the glob *.cpp (and + hasn't explicitly set a file tag) gets the file tag \c{cpp}. + + The above example can be simplified to + \code + Product { + Depends: "cpp" + files: ["file1.cpp", "file2.cpp"] + Group { + files: "mydsl_scanner.l" + fileTags: ["flex", "foobar"] + } + // ... + } + \endcode + + The \a FileTagger from the \a cpp module automatically assigns the \c cpp + file tag to the source files. Groups that just contain the \a files + property can be simply expressed by using the \a files property of the product. + + File tags are used by \a rules to transform one type of artifact into + another. E.g. the C++ compiler rule transforms artifacts with the file tag + \c cpp to artifacts with the file tag \c{obj}. + + \section1 Rules + + A rule looks at the pool of artifacts (in the beginning it's just the set of + source files of the project) and chooses the ones that match its input file + tags. Then it creates output artifacts in the build graph that have other + filenames and file tags. It also creates a transformer which is basically a + script that, well, transforms the input artifact into the output artifact. + + For examples of rules see the share/qbs/modules directory in the qbs + repository. + + You can define rules in your own module, which can be provided along with + your project. Or you can put a rule directly into your project file. + + Rules reference: \l{Rules}. +*/ + + +/*! + \contentspage index.html + \previouspage qbs-language-introduction.html + \page qbs-building-applications.html + \nextpage qbs-running-applications.html + + \title Building Applications with Qbs + + To build applications from the command line, enter the following commands: + + \code + cd tests/manual/collidingmice + qbs + \endcode + + The application is built for the default target, which is the system on the + development PC. To build for other targets, specify options for the build + command. For example, to build debug and release configurations for the + default target and the Symbian target in parallel, enter the following + command: + + \code + qbs build debug release target:symbian + \endcode + +*/ + + +/*! + \contentspage index.html + \previouspage qbs-building-applications.html + \page qbs-running-applications.html + \nextpage qbs-graph.html + + \title Running Applications + + Running ./targets/debug/CollidingMice fails if Qt 4.8 is not in your PATH + (in Windows) or LD_LIBRARY_PATH (in Linux). + + Therefore, enter the following command: + + \code + qbs run CollidingMice + \endcode + +*/ + + +/*! + \contentspage index.html + \previouspage qbs-running-applications.html + \page qbs-graph.html + \nextpage qbs-shell.html + + \title Using Qbs Graph + + Qbs uses a very simple graph drawing algorithm to visualize the + build graph. + + This is currently mostly used to debug Qbs. + + Download and install dot and add it to the system PATH. + + To visualize the project structure, enter the following command: + + \code + qbs graph + \endcode + +*/ + + +/*! + \contentspage index.html + \previouspage qbs-graph.html + \page qbs-shell.html + \nextpage qbs-reference.html + + \title Using Qbs Shell + + \code + qbs shell + \endcode + +*/ + + +/*! + \contentspage index.html + \previouspage qbs-shell.html + \page qbs-reference.html + \nextpage qbs-functions.html + + \title Reference + + \list + \o \l{Qbs Functions} + \o \l{Rules} + \endlist + +*/ + + +/*! + \contentspage index.html + \previouspage qbs-functions.html + \page qbs-rules.html + + \title Rules + + A "multiplex rule" creates one transformer that takes all + input artifacts with the matching input file tag and creates + one or more artifacts (e.g. C++ linker). + A "non-multiplex rule" creates one transformer per matching input file (e.g. C++ + compiler). + + \section1 Rule properties + + \table + \header + \o Property + \o Type + \o Default + \o Description + \row + \o multiplex + \o bool + \o false + \o Determines if this is a multiplex rule. + \row + \o inputs + \o string list + \o undefined + \o File tags the input artifacts must match. + All output artifacts will depend on all artifacts in the product with + the given input file tags. Also these artifacts are available in the + inputs variable of the prepare script. + \row + \o usings + \o string list + \o undefined + \o File tags the artifacts of product dependencies must match. + Let there be a product \a foo which appears as + \code + Depends { + name: "foo" + } + \endcode + in the current product. All artifacts of \a foo that match the given + file tags will appear in the \a inputs variable of the prepare + script. Also, every output artifact of this rule will be dependent on + those artifacts. + \row + \o explicitlyDependsOn + \o string list + \o undefined + \o Every artifact that matches the file tags in \a explicitlyDependsOn + is added to the dependencies of every output node. + \row + \o scanners + \o string list + \o undefined + \o List of dependency scanner ids for this rule. The scanners are + running just before the prepare script is executed. + \row + \o prepare + \o script + \o undefined + \o Script that prepares the commands to transform the inputs to outputs. + \endtable + +*/ + +/*! + \contentspage index.html + \previouspage qbs-reference.html + \page qbs-functions.html + \nextpage qbs-rules.html + + \title Qbs Functions + +*/ + diff --git a/doc/qbs.qdocconf b/doc/qbs.qdocconf new file mode 100644 index 000000000..516d4e796 --- /dev/null +++ b/doc/qbs.qdocconf @@ -0,0 +1,3 @@ +# Run qdoc from the directory that contains this file. +include(config/qbs-project.qdocconf) +include(config/qt-html-templates.qdocconf) diff --git a/doc/templates/images/arrow_down.png b/doc/templates/images/arrow_down.png new file mode 100644 index 000000000..9d01e97f6 Binary files /dev/null and b/doc/templates/images/arrow_down.png differ diff --git a/doc/templates/images/bg_l.png b/doc/templates/images/bg_l.png new file mode 100644 index 000000000..90b1da10b Binary files /dev/null and b/doc/templates/images/bg_l.png differ diff --git a/doc/templates/images/bg_l_blank.png b/doc/templates/images/bg_l_blank.png new file mode 100644 index 000000000..5a9673d81 Binary files /dev/null and b/doc/templates/images/bg_l_blank.png differ diff --git a/doc/templates/images/bg_ll_blank.png b/doc/templates/images/bg_ll_blank.png new file mode 100644 index 000000000..95a1c45e0 Binary files /dev/null and b/doc/templates/images/bg_ll_blank.png differ diff --git a/doc/templates/images/bg_r.png b/doc/templates/images/bg_r.png new file mode 100644 index 000000000..f0fb121de Binary files /dev/null and b/doc/templates/images/bg_r.png differ diff --git a/doc/templates/images/bg_ul_blank.png b/doc/templates/images/bg_ul_blank.png new file mode 100644 index 000000000..70512614c Binary files /dev/null and b/doc/templates/images/bg_ul_blank.png differ diff --git a/doc/templates/images/box_bg.png b/doc/templates/images/box_bg.png new file mode 100644 index 000000000..3322f923f Binary files /dev/null and b/doc/templates/images/box_bg.png differ diff --git a/doc/templates/images/breadcrumb.png b/doc/templates/images/breadcrumb.png new file mode 100644 index 000000000..0ded5514d Binary files /dev/null and b/doc/templates/images/breadcrumb.png differ diff --git a/doc/templates/images/bullet_dn.png b/doc/templates/images/bullet_dn.png new file mode 100644 index 000000000..f7762472e Binary files /dev/null and b/doc/templates/images/bullet_dn.png differ diff --git a/doc/templates/images/bullet_gt.png b/doc/templates/images/bullet_gt.png new file mode 100644 index 000000000..7561b4edc Binary files /dev/null and b/doc/templates/images/bullet_gt.png differ diff --git a/doc/templates/images/bullet_sq.png b/doc/templates/images/bullet_sq.png new file mode 100644 index 000000000..a84845e3c Binary files /dev/null and b/doc/templates/images/bullet_sq.png differ diff --git a/doc/templates/images/bullet_up.png b/doc/templates/images/bullet_up.png new file mode 100644 index 000000000..7de2f0695 Binary files /dev/null and b/doc/templates/images/bullet_up.png differ diff --git a/doc/templates/images/feedbackground.png b/doc/templates/images/feedbackground.png new file mode 100644 index 000000000..3a38d995d Binary files /dev/null and b/doc/templates/images/feedbackground.png differ diff --git a/doc/templates/images/header.png b/doc/templates/images/header.png new file mode 100644 index 000000000..3c68d9c52 Binary files /dev/null and b/doc/templates/images/header.png differ diff --git a/doc/templates/images/header_bg.png b/doc/templates/images/header_bg.png new file mode 100644 index 000000000..a436aa61e Binary files /dev/null and b/doc/templates/images/header_bg.png differ diff --git a/doc/templates/images/horBar.png b/doc/templates/images/horBar.png new file mode 100644 index 000000000..100fe91c6 Binary files /dev/null and b/doc/templates/images/horBar.png differ diff --git a/doc/templates/images/page.png b/doc/templates/images/page.png new file mode 100644 index 000000000..1db151bd3 Binary files /dev/null and b/doc/templates/images/page.png differ diff --git a/doc/templates/images/page_bg.png b/doc/templates/images/page_bg.png new file mode 100644 index 000000000..9b3bd999d Binary files /dev/null and b/doc/templates/images/page_bg.png differ diff --git a/doc/templates/images/qt_icon.png b/doc/templates/images/qt_icon.png new file mode 100644 index 000000000..fbaee3584 Binary files /dev/null and b/doc/templates/images/qt_icon.png differ diff --git a/doc/templates/images/spinner.gif b/doc/templates/images/spinner.gif new file mode 100644 index 000000000..1ed786f2e Binary files /dev/null and b/doc/templates/images/spinner.gif differ diff --git a/doc/templates/images/sprites-combined.png b/doc/templates/images/sprites-combined.png new file mode 100644 index 000000000..3a48b21f6 Binary files /dev/null and b/doc/templates/images/sprites-combined.png differ diff --git a/doc/templates/scripts/functions.js b/doc/templates/scripts/functions.js new file mode 100644 index 000000000..faa4ca493 --- /dev/null +++ b/doc/templates/scripts/functions.js @@ -0,0 +1,194 @@ +/* START non link areas where cursor should change to pointing hand */ +$('.t_button').mouseover(function() { + $('.t_button').css('cursor','pointer'); + /*document.getElementById(this.id).style.cursor='pointer';*/ +}); +/* END non link areas */ +$('#smallA').click(function() { + $('.content .heading,.content h1, .content h2, .content h3, .content p, .content li, .content table').css('font-size','smaller'); + $('.t_button').removeClass('active') + $(this).addClass('active') +}); + +$('#medA').click(function() { + $('.content .heading').css('font','600 16px/1 Arial'); + $('.content h1').css('font','600 18px/1.2 Arial'); + $('.content h2').css('font','600 16px/1.2 Arial'); + $('.content h3').css('font','600 14px/1.2 Arial'); + $('.content p').css('font','13px/20px Verdana'); + $('.content li').css('font','400 13px/1 Verdana'); + $('.content li').css('line-height','14px'); + $('.content .toc li').css('font', 'normal 10px/1.2 Verdana'); + $('.content table').css('font','13px/1.2 Verdana'); + $('.content .heading').css('font','600 16px/1 Arial'); + $('.content .indexboxcont li').css('font','600 13px/1 Verdana'); + $('.t_button').removeClass('active') + $(this).addClass('active') +}); + +$('#bigA').click(function() { + $('.content .heading,.content h1, .content h2, .content h3, .content p, .content li, .content table').css('font-size','large'); + $('.content .heading,.content h1, .content h2, .content h3, .content p, .content li, .content table').css('line-height','25px'); + $('.t_button').removeClass('active') + $(this).addClass('active') +}); + +$('.feedclose').click(function() { + $('.bd').show(); + $('.hd').show(); + $('.footer').show(); + $('#feedbackBox').hide(); + $('#blurpage').hide(); +}); + +$('.feedback').click(function() { + $('.bd').hide(); + $('.hd').hide(); + $('.footer').hide(); + $('#feedbackBox').show(); + $('#blurpage').show(); +}); +var lookupCount = 0; +var articleCount = 0; +var exampleCount = 0; +var qturl = ""; // change from "http://doc.qt.nokia.com/4.6/" to 0 so we can have relative links + +function processNokiaData(response){ + var propertyTags = response.getElementsByTagName('page'); + + for (var i=0; i< propertyTags.length; i++) { + var linkStart = "
  • " + propertyTags[i].getElementsByTagName('pageTitle')[0].firstChild.nodeValue + linkEnd; + $('#ul001').append(full_li_element); + $('#ul001 .defaultLink').css('display','none'); + + } + } + + if(propertyTags[i].getElementsByTagName('pageType')[0].firstChild.nodeValue == 'Article'){ + articleCount++; + + for (var j=0; j< propertyTags[i].getElementsByTagName('pageWords').length; j++){ + full_li_element = linkStart + propertyTags[i].getElementsByTagName('pageUrl')[j].firstChild.nodeValue; + full_li_element =full_li_element + "'>" + propertyTags[i].getElementsByTagName('pageTitle')[0].firstChild.nodeValue + linkEnd ; + + $('#ul002').append(full_li_element); + $('#ul002 .defaultLink').css('display','none'); + + } + } + if(propertyTags[i].getElementsByTagName('pageType')[0].firstChild.nodeValue == 'Example'){ + exampleCount++; + + + for (var j=0; j< propertyTags[i].getElementsByTagName('pageWords').length; j++){ + full_li_element = linkStart + propertyTags[i].getElementsByTagName('pageUrl')[j].firstChild.nodeValue; + full_li_element =full_li_element + "'>" + propertyTags[i].getElementsByTagName('pageTitle')[0].firstChild.nodeValue + linkEnd ; + + $('#ul003').append(full_li_element); + $('#ul003 .defaultLink').css('display','none'); + + } + } + if(i==propertyTags.length){$('#pageType').removeClass('loading');} + + } + if(lookupCount > 0){$('#ul001 .menuAlert').remove();$('#ul001').prepend('
  • Found ' + lookupCount + ' hits
  • ');$('#ul001 li').css('display','block');$('.sidebar .search form input').removeClass('loading');} + if(articleCount > 0){$('#ul002 .menuAlert').remove();$('#ul002').prepend('
  • Found ' + articleCount + ' hits
  • ');$('#ul002 li').css('display','block');} + if(exampleCount > 0){$('#ul003 .menuAlert').remove();$('#ul003').prepend('
  • Found ' + articleCount + ' hits
  • ');$('#ul003 li').css('display','block');} + + if(lookupCount == 0){$('#ul001 .menuAlert').remove();$('#ul001').prepend('
  • Found no result
  • ');$('#ul001 li').css('display','block');$('.sidebar .search form input').removeClass('loading');} + if(articleCount == 0){$('#ul002 .menuAlert').remove();$('#ul002').prepend('
  • Found no result
  • ');$('#ul002 li').css('display','block');} + if(exampleCount == 0){$('#ul003 .menuAlert').remove();$('#ul003').prepend('
  • Found no result
  • ');$('#ul003 li').css('display','block');} + // reset count variables; + lookupCount=0; + articleCount = 0; + exampleCount = 0; + +} +//build regular expression object to find empty string or any number of blank +var blankRE=/^\s*$/; +function CheckEmptyAndLoadList() +{ + var pageUrl = window.location.href; + var pageVal = $('title').html(); + $('#feedUrl').remove(); + $('#pageVal').remove(); + $('.menuAlert').remove(); + $('#feedform').append(''); + $('#feedform').append(''); + $('.liveResult').remove(); + $('.defaultLink').css('display','block'); + var value = document.getElementById('pageType').value; + if((blankRE.test(value)) || (value.length < 3)) + { + //empty inputbox + // load default li elements into the ul if empty + // loadAllList(); // replaced + $('.defaultLink').css('display','block'); + // $('.liveResult').css('display','none'); + }else{ + $('.defaultLink').css('display','none'); + } +} +/* +$(window).resize(function(){ +if($(window).width()<400) + $('body').addClass('offline'); +else + $('body').removeClass('offline'); + }); + */ +// Loads on doc ready + $(document).ready(function () { + //alert(pageUrl); + //$('#pageUrl').attr('foo',pageUrl); + var pageTitle = $('title').html(); + var currentString = $('#pageType').val() ; + if(currentString.length < 1){ + $('.defaultLink').css('display','block'); + CheckEmptyAndLoadList(); + } + + $('#pageType').keyup(function () { + var searchString = $('#pageType').val() ; + if ((searchString == null) || (searchString.length < 3)) { + $('#pageType').removeClass('loading'); + $('.liveResult').remove(); + $('.searching').remove(); + CheckEmptyAndLoadList(); + $('.report').remove(); + // debug$('.content').prepend('
  • too short or blank
  • '); // debug + return; + } + if (this.timer) clearTimeout(this.timer); + this.timer = setTimeout(function () { + $('#pageType').addClass('loading'); + $('.searching').remove(); + $('.list ul').prepend(''); + $.ajax({ + contentType: "application/x-www-form-urlencoded", + url: 'http://' + location.host + '/nokiasearch/GetDataServlet', + data: 'searchString='+searchString, + dataType:'xml', + type: 'post', + success: function (response, textStatus) { + + $('.liveResult').remove(); + $('.searching').remove(); + $('#pageType').removeClass('loading'); + $('.list ul').prepend(''); + processNokiaData(response); + + } + }); + }, 500); + }); + }); diff --git a/doc/templates/scripts/jquery.js b/doc/templates/scripts/jquery.js new file mode 100644 index 000000000..0c7294c90 --- /dev/null +++ b/doc/templates/scripts/jquery.js @@ -0,0 +1,152 @@ +/*! + * jQuery JavaScript Library v1.4.1 + * http://jquery.com/ + * + * Copyright 2010, John Resig + * Dual licensed under the MIT or GPL Version 2 licenses. + * http://jquery.org/license + * + * Includes Sizzle.js + * http://sizzlejs.com/ + * Copyright 2010, The Dojo Foundation + * Released under the MIT, BSD, and GPL Licenses. + * + * Date: Mon Jan 25 19:43:33 2010 -0500 + */ +(function(z,v){function la(){if(!c.isReady){try{r.documentElement.doScroll("left")}catch(a){setTimeout(la,1);return}c.ready()}}function Ma(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,i){var j=a.length;if(typeof b==="object"){for(var n in b)X(a,n,b[n],f,e,d);return a}if(d!==v){f=!i&&f&&c.isFunction(d);for(n=0;n-1){i=j.data;i.beforeFilter&&i.beforeFilter[a.type]&&!i.beforeFilter[a.type](a)||f.push(j.selector)}else delete x[o]}i=c(a.target).closest(f, +a.currentTarget);m=0;for(s=i.length;m)[^>]*$|^#([\w-]+)$/,Qa=/^.[^:#\[\.,]*$/,Ra=/\S/,Sa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Ta=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,O=navigator.userAgent, +va=false,P=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,Q=Array.prototype.slice,wa=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(typeof a==="string")if((d=Pa.exec(a))&&(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:r;if(a=Ta.exec(a))if(c.isPlainObject(b)){a=[r.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=ra([d[1]], +[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}}else{if(b=r.getElementById(d[2])){if(b.id!==d[2])return S.find(a);this.length=1;this[0]=b}this.context=r;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=r;a=r.getElementsByTagName(a)}else return!b||b.jquery?(b||S).find(a):c(b).find(a);else if(c.isFunction(a))return S.ready(a);if(a.selector!==v){this.selector=a.selector;this.context=a.context}return c.isArray(a)?this.setArray(a):c.makeArray(a, +this)},selector:"",jquery:"1.4.1",length:0,size:function(){return this.length},toArray:function(){return Q.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){a=c(a||null);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+d;else if(b)a.selector=this.selector+"."+b+"("+d+")";return a},setArray:function(a){this.length=0;ba.apply(this,a);return this},each:function(a,b){return c.each(this, +a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(r,c);else P&&P.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Q.apply(this,arguments),"slice",Q.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice}; +c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,i,j,n;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
    a";var e=d.getElementsByTagName("*"),i=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!i)){c.support= +{leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(i.getAttribute("style")),hrefNormalized:i.getAttribute("href")==="/a",opacity:/^0.55$/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:r.createElement("select").appendChild(r.createElement("option")).selected,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null}; +b.type="text/javascript";try{b.appendChild(r.createTextNode("window."+f+"=1;"))}catch(j){}a.insertBefore(b,a.firstChild);if(z[f]){c.support.scriptEval=true;delete z[f]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function n(){c.support.noCloneEvent=false;d.detachEvent("onclick",n)});d.cloneNode(true).fireEvent("onclick")}d=r.createElement("div");d.innerHTML="";a=r.createDocumentFragment();a.appendChild(d.firstChild); +c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var n=r.createElement("div");n.style.width=n.style.paddingLeft="1px";r.body.appendChild(n);c.boxModel=c.support.boxModel=n.offsetWidth===2;r.body.removeChild(n).style.display="none"});a=function(n){var o=r.createElement("div");n="on"+n;var m=n in o;if(!m){o.setAttribute(n,"return;");m=typeof o[n]==="function"}return m};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=i=null}})();c.props= +{"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ua=0,xa={},Va={};c.extend({cache:{},expando:G,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==z?xa:a;var f=a[G],e=c.cache;if(!b&&!f)return null;f||(f=++Ua);if(typeof b==="object"){a[G]=f;e=e[f]=c.extend(true, +{},b)}else e=e[f]?e[f]:typeof d==="undefined"?Va:(e[f]={});if(d!==v){a[G]=f;e[b]=d}return typeof b==="string"?e[b]:e}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==z?xa:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{try{delete a[G]}catch(i){a.removeAttribute&&a.removeAttribute(G)}delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this, +a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===v){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===v&&this.length)f=c.data(this[0],a);return f===v&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d); +return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===v)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]|| +a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var ya=/[\n\t]/g,ca=/\s+/,Wa=/\r/g,Xa=/href|src|style/,Ya=/(button|input)/i,Za=/(button|input|object|select|textarea)/i,$a=/^(a|area)$/i,za=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(o){var m= +c(this);m.addClass(a.call(this,o,m.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===v){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value|| +{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var i=b?d:0;for(d=b?d+1:e.length;i=0;else if(c.nodeName(this,"select")){var x=c.makeArray(s);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),x)>=0});if(!x.length)this.selectedIndex=-1}else this.value=s}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return v;if(f&&b in c.attrFn)return c(a)[b](d); +f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==v;b=f&&c.props[b]||b;if(a.nodeType===1){var i=Xa.test(b);if(b in a&&f&&!i){if(e){b==="type"&&Ya.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:Za.test(a.nodeName)||$a.test(a.nodeName)&&a.href?0:v;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText= +""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&i?a.getAttribute(b,2):a.getAttribute(b);return a===null?v:a}return c.style(a,b,d)}});var ab=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==z&&!a.frameElement)a=z;if(!d.guid)d.guid=c.guid++;if(f!==v){d=c.proxy(d);d.data=f}var e=c.data(a,"events")||c.data(a,"events",{}),i=c.data(a,"handle"),j;if(!i){j= +function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(j.elem,arguments):v};i=c.data(a,"handle",j)}if(i){i.elem=a;b=b.split(/\s+/);for(var n,o=0;n=b[o++];){var m=n.split(".");n=m.shift();if(o>1){d=c.proxy(d);if(f!==v)d.data=f}d.type=m.slice(0).sort().join(".");var s=e[n],x=this.special[n]||{};if(!s){s=e[n]={};if(!x.setup||x.setup.call(a,f,m,d)===false)if(a.addEventListener)a.addEventListener(n,i,false);else a.attachEvent&&a.attachEvent("on"+n,i)}if(x.add)if((m=x.add.call(a, +d,f,m,s))&&c.isFunction(m)){m.guid=m.guid||d.guid;m.data=m.data||d.data;m.type=m.type||d.type;d=m}s[d.guid]=d;this.global[n]=true}a=null}}},global:{},remove:function(a,b,d){if(!(a.nodeType===3||a.nodeType===8)){var f=c.data(a,"events"),e,i,j;if(f){if(b===v||typeof b==="string"&&b.charAt(0)===".")for(i in f)this.remove(a,i+(b||""));else{if(b.type){d=b.handler;b=b.type}b=b.split(/\s+/);for(var n=0;i=b[n++];){var o=i.split(".");i=o.shift();var m=!o.length,s=c.map(o.slice(0).sort(),ab);s=new RegExp("(^|\\.)"+ +s.join("\\.(?:.*\\.)?")+"(\\.|$)");var x=this.special[i]||{};if(f[i]){if(d){j=f[i][d.guid];delete f[i][d.guid]}else for(var A in f[i])if(m||s.test(f[i][A].type))delete f[i][A];x.remove&&x.remove.call(a,o,j);for(e in f[i])break;if(!e){if(!x.teardown||x.teardown.call(a,o)===false)if(a.removeEventListener)a.removeEventListener(i,c.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+i,c.data(a,"handle"));e=null;delete f[i]}}}}for(e in f)break;if(!e){if(A=c.data(a,"handle"))A.elem=null;c.removeData(a, +"events");c.removeData(a,"handle")}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[G]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();this.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return v;a.result=v;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d, +b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(i){}if(!a.isPropagationStopped()&&f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){d=a.target;var j;if(!(c.nodeName(d,"a")&&e==="click")&&!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()])){try{if(d[e]){if(j=d["on"+e])d["on"+e]=null;this.triggered=true;d[e]()}}catch(n){}if(j)d["on"+e]=j;this.triggered=false}}},handle:function(a){var b, +d;a=arguments[0]=c.event.fix(a||z.event);a.currentTarget=this;d=a.type.split(".");a.type=d.shift();b=!d.length&&!a.exclusive;var f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)");d=(c.data(this,"events")||{})[a.type];for(var e in d){var i=d[e];if(b||f.test(i.type)){a.handler=i;a.data=i.data;i=i.apply(this,arguments);if(i!==v){a.result=i;if(i===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}return a.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), +fix:function(a){if(a[G])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||r;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=r.documentElement;d=r.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop|| +d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==v)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a,b){c.extend(a,b||{});a.guid+=b.selector+b.live;b.liveProxy=a;c.event.add(this,b.live,na,b)},remove:function(a){if(a.length){var b= +0,d=new RegExp("(^|\\.)"+a[0]+"(\\.|$)");c.each(c.data(this,"events").live||{},function(){d.test(this.type)&&b++});b<1&&c.event.remove(this,a[0],na)}},special:{}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=J();this[G]=true}; +c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=Z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=Z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Z;this.stopPropagation()},isDefaultPrevented:Y,isPropagationStopped:Y,isImmediatePropagationStopped:Y};var Aa=function(a){for(var b= +a.relatedTarget;b&&b!==this;)try{b=b.parentNode}catch(d){break}if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}},Ba=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ba:Aa,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ba:Aa)}}});if(!c.support.submitBubbles)c.event.special.submit={setup:function(a,b,d){if(this.nodeName.toLowerCase()!== +"form"){c.event.add(this,"click.specialSubmit."+d.guid,function(f){var e=f.target,i=e.type;if((i==="submit"||i==="image")&&c(e).closest("form").length)return ma("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit."+d.guid,function(f){var e=f.target,i=e.type;if((i==="text"||i==="password")&&c(e).closest("form").length&&f.keyCode===13)return ma("submit",this,arguments)})}else return false},remove:function(a,b){c.event.remove(this,"click.specialSubmit"+(b?"."+b.guid:""));c.event.remove(this, +"keypress.specialSubmit"+(b?"."+b.guid:""))}};if(!c.support.changeBubbles){var da=/textarea|input|select/i;function Ca(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d}function ea(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Ca(d);if(a.type!=="focusout"|| +d.type!=="radio")c.data(d,"_change_data",e);if(!(f===v||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}}c.event.special.change={filters:{focusout:ea,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return ea.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return ea.call(this,a)},beforeactivate:function(a){a= +a.target;a.nodeName.toLowerCase()==="input"&&a.type==="radio"&&c.data(a,"_change_data",Ca(a))}},setup:function(a,b,d){for(var f in T)c.event.add(this,f+".specialChange."+d.guid,T[f]);return da.test(this.nodeName)},remove:function(a,b){for(var d in T)c.event.remove(this,d+".specialChange"+(b?"."+b.guid:""),T[d]);return da.test(this.nodeName)}};var T=c.event.special.change.filters}r.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this, +f)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var i in d)this[b](i,f,d[i],e);return this}if(c.isFunction(f)){e=f;f=v}var j=b==="one"?c.proxy(e,function(n){c(this).unbind(n,j);return e.apply(this,arguments)}):e;return d==="unload"&&b!=="one"?this.one(d,f,e):this.each(function(){c.event.add(this,d,j,f)})}});c.fn.extend({unbind:function(a, +b){if(typeof a==="object"&&!a.preventDefault){for(var d in a)this.unbind(d,a[d]);return this}return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,d=1;d0){y=t;break}}t=t[g]}l[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,e=0,i=Object.prototype.toString,j=false,n=true;[0,0].sort(function(){n=false;return 0});var o=function(g,h,k,l){k=k||[];var q=h=h||r;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g|| +typeof g!=="string")return k;for(var p=[],u,t,y,R,H=true,M=w(h),I=g;(f.exec(""),u=f.exec(I))!==null;){I=u[3];p.push(u[1]);if(u[2]){R=u[3];break}}if(p.length>1&&s.exec(g))if(p.length===2&&m.relative[p[0]])t=fa(p[0]+p[1],h);else for(t=m.relative[p[0]]?[h]:o(p.shift(),h);p.length;){g=p.shift();if(m.relative[g])g+=p.shift();t=fa(g,t)}else{if(!l&&p.length>1&&h.nodeType===9&&!M&&m.match.ID.test(p[0])&&!m.match.ID.test(p[p.length-1])){u=o.find(p.shift(),h,M);h=u.expr?o.filter(u.expr,u.set)[0]:u.set[0]}if(h){u= +l?{expr:p.pop(),set:A(l)}:o.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=u.expr?o.filter(u.expr,u.set):u.set;if(p.length>0)y=A(t);else H=false;for(;p.length;){var D=p.pop();u=D;if(m.relative[D])u=p.pop();else D="";if(u==null)u=h;m.relative[D](y,u,M)}}else y=[]}y||(y=t);y||o.error(D||g);if(i.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))k.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&& +y[g].nodeType===1&&k.push(t[g]);else k.push.apply(k,y);else A(y,k);if(R){o(R,q,k,l);o.uniqueSort(k)}return k};o.uniqueSort=function(g){if(C){j=n;g.sort(C);if(j)for(var h=1;h":function(g,h){var k=typeof h==="string";if(k&&!/\W/.test(h)){h=h.toLowerCase();for(var l=0,q=g.length;l=0))k||l.push(u);else if(k)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()},CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&& +"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,k,l,q,p){h=g[1].replace(/\\/g,"");if(!p&&m.attrMap[h])g[1]=m.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,k,l,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=o(g[3],null,null,h);else{g=o.filter(g[3],h,k,true^q);k||l.push.apply(l,g);return false}else if(m.match.POS.test(g[0])||m.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true); +return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,k){return!!o(k[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)},text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"=== +g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}},setFilters:{first:function(g,h){return h===0},last:function(g,h,k,l){return h===l.length-1},even:function(g,h){return h%2=== +0},odd:function(g,h){return h%2===1},lt:function(g,h,k){return hk[3]-0},nth:function(g,h,k){return k[3]-0===h},eq:function(g,h,k){return k[3]-0===h}},filter:{PSEUDO:function(g,h,k,l){var q=h[1],p=m.filters[q];if(p)return p(g,k,h,l);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h=h[3];k=0;for(l=h.length;k= +0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var k=h[1];g=m.attrHandle[k]?m.attrHandle[k](g):g[k]!=null?g[k]:g.getAttribute(k);k=g+"";var l=h[2];h=h[4];return g==null?l==="!=":l==="="?k===h:l==="*="?k.indexOf(h)>=0:l==="~="?(" "+k+" ").indexOf(h)>=0:!h?k&&g!==false:l==="!="?k!==h:l==="^="? +k.indexOf(h)===0:l==="$="?k.substr(k.length-h.length)===h:l==="|="?k===h||k.substr(0,h.length+1)===h+"-":false},POS:function(g,h,k,l){var q=m.setFilters[h[2]];if(q)return q(g,k,h,l)}}},s=m.match.POS;for(var x in m.match){m.match[x]=new RegExp(m.match[x].source+/(?![^\[]*\])(?![^\(]*\))/.source);m.leftMatch[x]=new RegExp(/(^(?:.|\r|\n)*?)/.source+m.match[x].source.replace(/\\(\d+)/g,function(g,h){return"\\"+(h-0+1)}))}var A=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g}; +try{Array.prototype.slice.call(r.documentElement.childNodes,0)}catch(B){A=function(g,h){h=h||[];if(i.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var k=0,l=g.length;k";var k=r.documentElement;k.insertBefore(g,k.firstChild);if(r.getElementById(h)){m.find.ID=function(l,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(l[1]))?q.id===l[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===l[1]?[q]:v:[]};m.filter.ID=function(l,q){var p=typeof l.getAttributeNode!=="undefined"&&l.getAttributeNode("id"); +return l.nodeType===1&&p&&p.nodeValue===q}}k.removeChild(g);k=g=null})();(function(){var g=r.createElement("div");g.appendChild(r.createComment(""));if(g.getElementsByTagName("*").length>0)m.find.TAG=function(h,k){k=k.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var l=0;k[l];l++)k[l].nodeType===1&&h.push(k[l]);k=h}return k};g.innerHTML="";if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")m.attrHandle.href=function(h){return h.getAttribute("href", +2)};g=null})();r.querySelectorAll&&function(){var g=o,h=r.createElement("div");h.innerHTML="

    ";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){o=function(l,q,p,u){q=q||r;if(!u&&q.nodeType===9&&!w(q))try{return A(q.querySelectorAll(l),p)}catch(t){}return g(l,q,p,u)};for(var k in g)o[k]=g[k];h=null}}();(function(){var g=r.createElement("div");g.innerHTML="
    ";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length=== +0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){m.order.splice(1,0,"CLASS");m.find.CLASS=function(h,k,l){if(typeof k.getElementsByClassName!=="undefined"&&!l)return k.getElementsByClassName(h[1])};g=null}}})();var E=r.compareDocumentPosition?function(g,h){return g.compareDocumentPosition(h)&16}:function(g,h){return g!==h&&(g.contains?g.contains(h):true)},w=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},fa=function(g,h){var k=[], +l="",q;for(h=h.nodeType?[h]:h;q=m.match.PSEUDO.exec(g);){l+=q[0];g=g.replace(m.match.PSEUDO,"")}g=m.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var i=d;i0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,i={},j;if(f&&a.length){e=0;for(var n=a.length;e +-1:c(f).is(e)){d.push({selector:j,elem:f});delete i[j]}}f=f.parentNode}}return d}var o=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(m,s){for(;s&&s.ownerDocument&&s!==b;){if(o?o.index(s)>-1:c(s).is(a))return s;s=s.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(), +a);return this.pushStack(pa(a[0])||pa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")}, +nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);bb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e): +e;if((this.length>1||db.test(f))&&cb.test(a))e=e.reverse();return this.pushStack(e,a,Q.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===v||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!== +b&&d.push(a);return d}});var Fa=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ga=/(<([\w:]+)[^>]*?)\/>/g,eb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Ha=/<([\w:]+)/,fb=/"},F={option:[1,""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "], +col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
    ","
    "];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==v)return this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(a));return c.getText(this)}, +wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length? +d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments, +false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&& +!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Fa,"").replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){qa(this,b);qa(this.find("*"),b.find("*"))}return b},html:function(a){if(a===v)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Fa,""):null;else if(typeof a==="string"&&!/