From bf83f72c0f1fbecd8007cad39df9b6cfdc3bd85e Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Thu, 10 Jul 2014 16:00:51 +0200 Subject: Doc: add docs for Change UI Example Describe the example files. Add example file extensions to the qdocconf file to have all files listed on the doc page. Fix capitalization in the configuration file. Use more descriptive values for the component in the package information file. Rearrange sections to be able to use an include file for documenting all package information files. Add more detailed information about creating the installer. Add image. Change-Id: I64ffff29d08f1dff4cd92c3b796f1a0e6c2fb280 Reviewed-by: Kai Koehne --- .../installerfw-examples-configuring.qdocinc | 8 +++--- .../installerfw-examples-generating.qdocinc | 18 ++++++++++--- .../installerfw-examples-packaging.qdocinc | 4 +-- doc/installerfw.qdocconf | 2 ++ examples/changeuserinterface/config/config.xml | 8 +++--- .../meta/package.xml | 7 ++--- examples/doc/changeuserinterface.qdoc | 30 +++++++++++++++++---- .../images/qtifw-examples-changeuserinterface.png | Bin 0 -> 41473 bytes 8 files changed, 56 insertions(+), 21 deletions(-) create mode 100644 examples/doc/images/qtifw-examples-changeuserinterface.png diff --git a/doc/includes/installerfw-examples-configuring.qdocinc b/doc/includes/installerfw-examples-configuring.qdocinc index 681e3b9d7..b75abab8d 100644 --- a/doc/includes/installerfw-examples-configuring.qdocinc +++ b/doc/includes/installerfw-examples-configuring.qdocinc @@ -15,8 +15,8 @@ \li The \c section specifies the name of the default program group for the product in the Windows \gui Start menu. \li The \c section specifies that the default target - directory displayed to users is \c InstallationDirectory in the home - directory of the current user (because the predefined variable - \c @HomeDir@ is used as a part of the value). For more information, - see \l{Predefined Variables}. + directory displayed to users is \c IfwExample in the home directory + of the current user (because the predefined variable\c @HomeDir@ is + used as a part of the value). For more information, see + \l{Predefined Variables}. \endlist diff --git a/doc/includes/installerfw-examples-generating.qdocinc b/doc/includes/installerfw-examples-generating.qdocinc index e019bd788..45ea2fc22 100644 --- a/doc/includes/installerfw-examples-generating.qdocinc +++ b/doc/includes/installerfw-examples-generating.qdocinc @@ -1,5 +1,17 @@ \section1 Generating the Example Installer - \code - binarycreator --offline-only -c config/config.xml -p packages installer - \endcode + To create the example installer, switch to the example source directory on + the command line and enter the following command: + + \list + \li On Windows: + \code + ..\..\bin\binarycreator.exe -c config\config.xml -p packages installer.exe + \endcode + \li On Linux or OS X: + \code + ../../bin/binarycreator -c config/config.xml -p packages installer + \endcode + \endlist + + The installer is created in the current directory. diff --git a/doc/includes/installerfw-examples-packaging.qdocinc b/doc/includes/installerfw-examples-packaging.qdocinc index ec7e82b29..d3a873f2c 100644 --- a/doc/includes/installerfw-examples-packaging.qdocinc +++ b/doc/includes/installerfw-examples-packaging.qdocinc @@ -8,8 +8,8 @@ the component. \li The \c section specifies the human-readable description of the component. + \li The \c section specifies the version number of the + component. \li The \c section specifies the date when this component version was released. - \li The \c diff --git a/examples/doc/changeuserinterface.qdoc b/examples/doc/changeuserinterface.qdoc index 872177b18..bc4fb9075 100644 --- a/examples/doc/changeuserinterface.qdoc +++ b/examples/doc/changeuserinterface.qdoc @@ -32,10 +32,13 @@ \brief Changing the installer UI by using a component script. - \e {Change Installer UI} demonstrates how to add a license page to the - installer by using a component script. + \image qtifw-examples-changeuserinterface.png - \note Do not use component scripts for translations. + \e {Change Installer UI} demonstrates how to use the \c Component() function + to modify the default text for the radio button labels on the + \l{License Check Page}{license check page}. This example does not install + any components, but we specify a dummy component in the package information + file, because installers without components are not allowed. \include installerfw-examples-configuring.qdocinc @@ -44,8 +47,8 @@ \include installerfw-examples-packaging.qdocinc \list - \li The \c section specifies the version number of the - component. + \li The \c