installer-framework/doc/noninteractive.qdoc

204 lines
6.1 KiB
Plaintext
Raw Normal View History

/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Installer Framework.
**
** $QT_BEGIN_LICENSE:FDL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia. For licensing terms and
** conditions see http://qt.digia.com/licensing. For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Free Documentation License Usage
** Alternatively, this file may be used under the terms of the GNU Free
** Documentation License version 1.3 as published by the Free Software
** Foundation and appearing in the file included in the packaging of
** this file. Please review the following information to ensure
** the GNU Free Documentation License version 1.3 requirements
** will be met: http://www.gnu.org/copyleft/fdl.html.
** $QT_END_LICENSE$
**
****************************************************************************/
2011-02-21 16:30:31 +01:00
/*!
\contentspage{index.html}{Qt Installer Framework}
\previouspage ifw-component-description.html
2011-02-21 16:30:31 +01:00
\page noninteractive.html
\nextpage scripting.html
\title Installer Pages
2011-02-21 16:30:31 +01:00
This section describes the functions that are called to implement the
installer pages and the widgets available on each page, such as push
buttons, radio buttons, and line edits.
2011-02-21 16:30:31 +01:00
\section1 Introduction Page
2011-02-21 16:30:31 +01:00
Call the \c IntroductionPageCallback function to construct the introduction
page.
2011-02-21 16:30:31 +01:00
Wizard buttons:
\list
\li \gui Next
\li \gui Cancel
2011-02-21 16:30:31 +01:00
\endlist
\section1 License Check Page
Call the \c LicenseAgreementPageCallback function to construct the license
check page.
2011-02-21 16:30:31 +01:00
Wizard buttons:
\list
\li \gui Next
\li \gui Cancel
\li \gui Back
2011-02-21 16:30:31 +01:00
\endlist
Radio buttons:
\list
\li \c acceptLicenseRB
Accepts the license agreement. Not selected by default.
\li \c rejectLicenseRB
Rejects the license agreement. Selected by default.
2011-02-21 16:30:31 +01:00
\endlist
\section1 Target Directory Selection Page
Call the \c TargetDirectoryPageCallback function to implement the target
directory selection page.
2011-02-21 16:30:31 +01:00
Wizard buttons:
\list
\li \gui Next
\li \gui Cancel
\li \gui Back
2011-02-21 16:30:31 +01:00
\endlist
To specify a default value for the target directory for installation, use
the \c targetDirectoryLE line edit widget.
\section1 Component Selection Page
Call the \c ComponentSelectionPageCallback function to implement the
component selection page.
2011-02-21 16:30:31 +01:00
Wizard buttons:
\list
\li \gui Next
\li \gui Cancel
\li \gui Back
2011-02-21 16:30:31 +01:00
\endlist
Methods:
\list
\li \c {selectComponent( id )}
Selects the component with \c id (string).
\li \c {deselectComponent( id )}
Deselects the component with \c id (string).
2011-02-21 16:30:31 +01:00
\endlist
In uninstallation mode, additional radio buttons are available:
2011-02-21 16:30:31 +01:00
\list
\li \c uninstallAllComponentsRB
Uninstalls all components. Default.
\li \c keepSelectedComponentsRB
Uninstalls only unselected components. Mark components selected
(\c selectComponent) or not selected (\c deselectComponent) to add
and remove components.
2011-02-21 16:30:31 +01:00
\endlist
\section1 Ready for Installation Page
Call the \c ReadyForInstallationPageCallback function to implement the ready
for installation page.
2011-02-21 16:30:31 +01:00
Wizard buttons:
\list
\li \gui Install
\li \gui Cancel
\li \gui Back
2011-02-21 16:30:31 +01:00
\endlist
\section1 Perform Installation Page
2011-02-21 16:30:31 +01:00
Call the \c IntroductionPageCallback function to implement the perform
installation page.
To show or hide installation details, implement the \c details.button push
button widget.
2011-02-21 16:30:31 +01:00
Wizard buttons:
\list
\li \gui Cancel
2011-02-21 16:30:31 +01:00
\endlist
\section1 Installation Finished Page
Call the \c FinishedPageCallback function to implement the installation
finished page.
2011-02-21 16:30:31 +01:00
Wizard buttons:
\list
\li \gui Finish
2011-02-21 16:30:31 +01:00
\endlist
\section1 Custom Pages
2011-02-21 16:30:31 +01:00
Custom pages are registered as \c{Dynamic${ObjectName}}, where \c{${ObjectName}}
2011-02-21 16:30:31 +01:00
is the object name set in the UI file.
Thus, the \c{Dynamic${ObjectName}Callback()} function is called. Widgets can
2011-02-21 16:30:31 +01:00
be addressed using their object names (from the UI file):
\code
var page = gui.pageWidgetByObjectName( "DynamicSomePage" )
page.myButton.click //direct child of the UI file's widget
2011-02-21 16:30:31 +01:00
page.someFancyWidget.subWidget.setText( "foobar" ) // nested widget
\endcode
\section1 Message Boxes
\table
\header
\li Identifier
\li Possible Answers
\li Description
2011-02-21 16:30:31 +01:00
\row
\li \c cancelInstallation
\li Yes, No
\li Confirmation for canceling the installation when end
users select \gui Cancel on the installer pages.
2011-02-21 16:30:31 +01:00
\row
\li \c overwriteTargetDirectory
\li Yes, No
\li Confirmation for using an already existing directory as
the target directory for installation.
2011-02-21 16:30:31 +01:00
\row
\li \c installationError
\li OK
\li A fatal error occurred while performing the
installation.
2011-02-21 16:30:31 +01:00
\row
\li \c installationErrorWithRetry
\li Retry, Ignore, Cancel
\li An error occurred while performing the installation.
End users can select \gui Retry to try again.
2011-02-21 16:30:31 +01:00
\row
\li \c metaInfoJobError
\li OK
\li An error occurred while retrieving meta information
when using an online installer.
2011-02-21 16:30:31 +01:00
\endtable
*/