You've already forked gnat_community_install_script
mirror of
https://github.com/AdaCore/gnat_community_install_script.git
synced 2026-02-12 13:02:27 -08:00
60 lines
1.7 KiB
Plaintext
60 lines
1.7 KiB
Plaintext
var install_dir = installer.value("InstallPrefix")
|
|
var components = installer.value("Components")
|
|
|
|
function Controller() {
|
|
installer.autoRejectMessageBoxes();
|
|
installer.installationFinished.connect(function() {
|
|
gui.clickButton(buttons.NextButton);
|
|
})
|
|
}
|
|
|
|
Controller.prototype.WelcomePageCallback = function() {
|
|
gui.clickButton(buttons.NextButton);
|
|
}
|
|
|
|
Controller.prototype.IntroductionPageCallback = function() {
|
|
gui.clickButton(buttons.NextButton);
|
|
}
|
|
|
|
Controller.prototype.TargetDirectoryPageCallback = function()
|
|
{
|
|
gui.currentPageWidget().TargetDirectoryLineEdit.setText(install_dir);
|
|
gui.clickButton(buttons.NextButton);
|
|
}
|
|
|
|
Controller.prototype.ComponentSelectionPageCallback = function() {
|
|
if ((components != null) && (components != "")) {
|
|
var page = gui.currentPageWidget();
|
|
|
|
page.deselectAll();
|
|
complist = components.split(",");
|
|
for (var i = 0; i < complist.length; i++) {
|
|
page.selectComponent(complist[i]);
|
|
}
|
|
}
|
|
gui.clickButton(buttons.NextButton);
|
|
}
|
|
|
|
Controller.prototype.LicenseAgreementPageCallback = function() {
|
|
gui.currentPageWidget().AcceptLicenseRadioButton.setChecked(true);
|
|
gui.clickButton(buttons.NextButton);
|
|
}
|
|
|
|
Controller.prototype.StartMenuDirectoryPageCallback = function() {
|
|
gui.clickButton(buttons.NextButton);
|
|
}
|
|
|
|
Controller.prototype.ReadyForInstallationPageCallback = function()
|
|
{
|
|
gui.clickButton(buttons.NextButton);
|
|
}
|
|
|
|
Controller.prototype.FinishedPageCallback = function() {
|
|
var checkBoxForm = gui.currentPageWidget().LaunchQtCreatorCheckBoxForm
|
|
if (checkBoxForm && checkBoxForm.launchQtCreatorCheckBox) {
|
|
checkBoxForm.launchQtCreatorCheckBox.checked = false;
|
|
}
|
|
gui.clickButton(buttons.FinishButton);
|
|
}
|
|
|