| 1 |
function func() { |
| 2 |
|
| 3 |
} |
| 4 |
function Controller() { |
| 5 |
var widget = gui.pageById(QInstaller.Introduction); |
| 6 |
if (widget != null){ |
| 7 |
widget.packageManagerCoreTypeChanged.connect(onPackageManagerCoreTypeChanged); |
| 8 |
} |
| 9 |
} |
| 10 |
|
| 11 |
Controller.prototype.IntroductionPageCallback = function(){ |
| 12 |
var widget = gui.currentPageWidget(); |
| 13 |
if (widget != null) { |
| 14 |
|
| 15 |
console.log(Object.getOwnPropertyNames(widget)); |
| 16 |
widget.findChild("PackageManagerRadioButton").visible = false; |
| 17 |
widget.findChild("PackageManagerRadioButton").enabled = false; |
| 18 |
widget.findChild("PackageManagerRadioButton").text = ""; |
| 19 |
widget.findChild("UninstallerRadioButton").text = "Uninstall Pep8" |
| 20 |
widget.findChild("UpdaterRadioButton").text = "Update Pep8" |
| 21 |
} |
| 22 |
|
| 23 |
} |
| 24 |
|
| 25 |
Controller.prototype.LicenseAgreementPageCallback = function(){ |
| 26 |
var widget = gui.currentPageWidget(); |
| 27 |
if (widget != null) { |
| 28 |
|
| 29 |
|
| 30 |
widget.AcceptLicenseRadioButton.checked = false; |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
Controller.prototype.FinishedPageCallback = function(){ |
| 35 |
} |
| 36 |
|
| 37 |
onPackageManagerCoreTypeChanged = function(){ |
| 38 |
|
| 39 |
|
| 40 |
var widget = gui.pageById(QInstaller.Introduction); |
| 41 |
if (widget != null) { |
| 42 |
|
| 43 |
|
| 44 |
widget.findChild("PackageManagerRadioButton").visible = false; |
| 45 |
if(widget.findChild("PackageManagerRadioButton").checked==true){ |
| 46 |
|
| 47 |
widget.findChild("UninstallerRadioButton").checked = true; |
| 48 |
} |
| 49 |
} |
| 50 |
} |