2012-02-15 12:24:54 +01:00
|
|
|
/****************************************************************************
|
|
|
|
**
|
2014-07-01 15:56:46 +02:00
|
|
|
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
|
2012-12-21 10:31:17 +01:00
|
|
|
** Contact: http://www.qt-project.org/legal
|
2012-02-15 12:24:54 +01:00
|
|
|
**
|
2012-12-21 10:31:17 +01:00
|
|
|
** This file is part of the Qt Installer Framework.
|
2012-02-15 12:24:54 +01:00
|
|
|
**
|
2012-12-21 10:31:17 +01:00
|
|
|
** $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.
|
2012-02-15 12:24:54 +01:00
|
|
|
**
|
2012-12-21 10:31:17 +01:00
|
|
|
** GNU Free Documentation License Usage
|
2012-02-15 12:24:54 +01:00
|
|
|
** Alternatively, this file may be used under the terms of the GNU Free
|
|
|
|
** Documentation License version 1.3 as published by the Free Software
|
2012-12-21 10:31:17 +01:00
|
|
|
** 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$
|
2012-02-15 12:24:54 +01:00
|
|
|
**
|
|
|
|
****************************************************************************/
|
|
|
|
|
2011-02-21 16:30:31 +01:00
|
|
|
/*!
|
2012-02-15 12:24:54 +01:00
|
|
|
\contentspage{index.html}{Qt Installer Framework}
|
|
|
|
\previouspage ifw-component-description.html
|
2011-02-21 16:30:31 +01:00
|
|
|
\page noninteractive.html
|
2012-02-15 12:24:54 +01:00
|
|
|
\nextpage scripting.html
|
|
|
|
|
|
|
|
\title Installer Pages
|
2011-02-21 16:30:31 +01:00
|
|
|
|
2012-02-15 12:24:54 +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
|
|
|
|
2012-02-15 12:24:54 +01:00
|
|
|
\section1 Introduction Page
|
2011-02-21 16:30:31 +01:00
|
|
|
|
2014-07-02 11:02:04 +02:00
|
|
|
Call the \c IntroductionPageCallback function to construct the introduction
|
2012-02-15 12:24:54 +01:00
|
|
|
page.
|
2011-02-21 16:30:31 +01:00
|
|
|
|
|
|
|
Wizard buttons:
|
|
|
|
\list
|
2014-06-16 14:26:12 +02:00
|
|
|
\li \gui Next
|
|
|
|
\li \gui Cancel
|
2011-02-21 16:30:31 +01:00
|
|
|
\endlist
|
|
|
|
|
2012-02-15 12:24:54 +01:00
|
|
|
\section1 License Check Page
|
|
|
|
|
2014-07-02 11:02:04 +02:00
|
|
|
Call the \c LicenseAgreementPageCallback function to construct the license
|
2012-02-15 12:24:54 +01:00
|
|
|
check page.
|
|
|
|
|
2011-02-21 16:30:31 +01:00
|
|
|
Wizard buttons:
|
|
|
|
\list
|
2014-06-16 14:26:12 +02:00
|
|
|
\li \gui Next
|
|
|
|
\li \gui Cancel
|
|
|
|
\li \gui Back
|
2011-02-21 16:30:31 +01:00
|
|
|
\endlist
|
|
|
|
|
|
|
|
Radio buttons:
|
|
|
|
\list
|
2014-07-02 11:02:04 +02:00
|
|
|
\li \c acceptLicenseRB
|
2012-02-15 12:24:54 +01:00
|
|
|
|
|
|
|
Accepts the license agreement. Not selected by default.
|
2014-07-02 11:02:04 +02:00
|
|
|
\li \c rejectLicenseRB
|
2012-02-15 12:24:54 +01:00
|
|
|
|
|
|
|
Rejects the license agreement. Selected by default.
|
2011-02-21 16:30:31 +01:00
|
|
|
\endlist
|
|
|
|
|
2012-02-15 12:24:54 +01:00
|
|
|
\section1 Target Directory Selection Page
|
|
|
|
|
2014-07-02 11:02:04 +02:00
|
|
|
Call the \c TargetDirectoryPageCallback function to implement the target
|
2012-02-15 12:24:54 +01:00
|
|
|
directory selection page.
|
|
|
|
|
2011-02-21 16:30:31 +01:00
|
|
|
Wizard buttons:
|
|
|
|
\list
|
2014-06-16 14:26:12 +02:00
|
|
|
\li \gui Next
|
|
|
|
\li \gui Cancel
|
|
|
|
\li \gui Back
|
2011-02-21 16:30:31 +01:00
|
|
|
\endlist
|
|
|
|
|
2012-02-15 12:24:54 +01:00
|
|
|
To specify a default value for the target directory for installation, use
|
2014-07-02 11:02:04 +02:00
|
|
|
the \c targetDirectoryLE line edit widget.
|
2012-02-15 12:24:54 +01:00
|
|
|
|
|
|
|
\section1 Component Selection Page
|
|
|
|
|
2014-07-02 11:02:04 +02:00
|
|
|
Call the \c ComponentSelectionPageCallback function to implement the
|
2012-02-15 12:24:54 +01:00
|
|
|
component selection page.
|
2011-02-21 16:30:31 +01:00
|
|
|
|
|
|
|
Wizard buttons:
|
|
|
|
\list
|
2014-06-16 14:26:12 +02:00
|
|
|
\li \gui Next
|
|
|
|
\li \gui Cancel
|
|
|
|
\li \gui Back
|
2011-02-21 16:30:31 +01:00
|
|
|
\endlist
|
|
|
|
|
|
|
|
Methods:
|
|
|
|
\list
|
2014-07-02 11:02:04 +02:00
|
|
|
\li \c {selectComponent( id )}
|
2012-02-15 12:24:54 +01:00
|
|
|
|
|
|
|
Selects the component with \c id (string).
|
2014-07-02 11:02:04 +02:00
|
|
|
\li \c {deselectComponent( id )}
|
2012-02-15 12:24:54 +01:00
|
|
|
|
|
|
|
Deselects the component with \c id (string).
|
2011-02-21 16:30:31 +01:00
|
|
|
\endlist
|
|
|
|
|
2012-02-15 12:24:54 +01:00
|
|
|
In uninstallation mode, additional radio buttons are available:
|
2011-02-21 16:30:31 +01:00
|
|
|
\list
|
2014-07-02 11:02:04 +02:00
|
|
|
\li \c uninstallAllComponentsRB
|
2012-02-15 12:24:54 +01:00
|
|
|
|
|
|
|
Uninstalls all components. Default.
|
2014-07-02 11:02:04 +02:00
|
|
|
\li \c keepSelectedComponentsRB
|
2012-02-15 12:24:54 +01:00
|
|
|
|
|
|
|
Uninstalls only unselected components. Mark components selected
|
2014-07-02 11:02:04 +02:00
|
|
|
(\c selectComponent) or not selected (\c deselectComponent) to add
|
2012-02-15 12:24:54 +01:00
|
|
|
and remove components.
|
2011-02-21 16:30:31 +01:00
|
|
|
\endlist
|
|
|
|
|
2012-02-15 12:24:54 +01:00
|
|
|
\section1 Ready for Installation Page
|
|
|
|
|
2014-07-02 11:02:04 +02:00
|
|
|
Call the \c ReadyForInstallationPageCallback function to implement the ready
|
2012-02-15 12:24:54 +01:00
|
|
|
for installation page.
|
|
|
|
|
2011-02-21 16:30:31 +01:00
|
|
|
Wizard buttons:
|
|
|
|
\list
|
2014-06-16 14:26:12 +02:00
|
|
|
\li \gui Install
|
|
|
|
\li \gui Cancel
|
|
|
|
\li \gui Back
|
2011-02-21 16:30:31 +01:00
|
|
|
\endlist
|
|
|
|
|
2012-02-15 12:24:54 +01:00
|
|
|
\section1 Perform Installation Page
|
2011-02-21 16:30:31 +01:00
|
|
|
|
2014-07-02 11:02:04 +02:00
|
|
|
Call the \c IntroductionPageCallback function to implement the perform
|
2012-02-15 12:24:54 +01:00
|
|
|
installation page.
|
|
|
|
|
2014-07-02 11:02:04 +02:00
|
|
|
To show or hide installation details, implement the \c details.button push
|
2012-02-15 12:24:54 +01:00
|
|
|
button widget.
|
2011-02-21 16:30:31 +01:00
|
|
|
|
|
|
|
Wizard buttons:
|
|
|
|
\list
|
2014-06-16 14:26:12 +02:00
|
|
|
\li \gui Cancel
|
2011-02-21 16:30:31 +01:00
|
|
|
\endlist
|
|
|
|
|
2012-02-15 12:24:54 +01:00
|
|
|
\section1 Installation Finished Page
|
|
|
|
|
2014-07-02 11:02:04 +02:00
|
|
|
Call the \c FinishedPageCallback function to implement the installation
|
2012-02-15 12:24:54 +01:00
|
|
|
finished page.
|
2011-02-21 16:30:31 +01:00
|
|
|
|
|
|
|
Wizard buttons:
|
|
|
|
\list
|
2014-06-16 14:26:12 +02:00
|
|
|
\li \gui Finish
|
2011-02-21 16:30:31 +01:00
|
|
|
\endlist
|
|
|
|
|
2012-02-15 12:24:54 +01:00
|
|
|
\section1 Custom Pages
|
2011-02-21 16:30:31 +01:00
|
|
|
|
2014-07-02 11:02:04 +02: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.
|
2014-07-02 11:02:04 +02:00
|
|
|
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
|
2013-06-18 09:42:06 +02:00
|
|
|
var page = gui.pageWidgetByObjectName( "DynamicSomePage" )
|
2012-02-15 12:24:54 +01:00
|
|
|
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
|
2014-06-16 14:26:12 +02:00
|
|
|
\li Identifier
|
|
|
|
\li Possible Answers
|
|
|
|
\li Description
|
2011-02-21 16:30:31 +01:00
|
|
|
\row
|
2014-07-02 11:02:04 +02:00
|
|
|
\li \c cancelInstallation
|
2014-06-16 14:26:12 +02:00
|
|
|
\li Yes, No
|
|
|
|
\li Confirmation for canceling the installation when end
|
2012-02-15 12:24:54 +01:00
|
|
|
users select \gui Cancel on the installer pages.
|
2011-02-21 16:30:31 +01:00
|
|
|
\row
|
2014-07-02 11:02:04 +02:00
|
|
|
\li \c overwriteTargetDirectory
|
2014-06-16 14:26:12 +02:00
|
|
|
\li Yes, No
|
|
|
|
\li Confirmation for using an already existing directory as
|
2012-02-15 12:24:54 +01:00
|
|
|
the target directory for installation.
|
2011-02-21 16:30:31 +01:00
|
|
|
\row
|
2014-07-02 11:02:04 +02:00
|
|
|
\li \c installationError
|
2014-06-16 14:26:12 +02:00
|
|
|
\li OK
|
|
|
|
\li A fatal error occurred while performing the
|
2012-02-15 12:24:54 +01:00
|
|
|
installation.
|
2011-02-21 16:30:31 +01:00
|
|
|
\row
|
2014-07-02 11:02:04 +02:00
|
|
|
\li \c installationErrorWithRetry
|
2014-06-16 14:26:12 +02:00
|
|
|
\li Retry, Ignore, Cancel
|
|
|
|
\li An error occurred while performing the installation.
|
2012-02-15 12:24:54 +01:00
|
|
|
End users can select \gui Retry to try again.
|
2011-02-21 16:30:31 +01:00
|
|
|
\row
|
2014-07-02 11:02:04 +02:00
|
|
|
\li \c metaInfoJobError
|
2014-06-16 14:26:12 +02:00
|
|
|
\li OK
|
|
|
|
\li An error occurred while retrieving meta information
|
2012-02-15 12:24:54 +01:00
|
|
|
when using an online installer.
|
2011-02-21 16:30:31 +01:00
|
|
|
\endtable
|
|
|
|
|
|
|
|
*/
|