31
31
title: i18n.tr("Report")
32
text: i18n.tr("The following report has be generated for submission to the Launchpad hardware database.")
32
text: settings.value("submission/message", i18n.tr("The following test report has been generated. You may view it now or save it for later."))
37
regExp: new RegExp(settings.value("submission/regex", ".*"));
39
function initialize() {
40
var input_type = settings.value("submission/input_type", "")
41
if (input_type == "regex") {
42
validator = regex_validator;
45
else if (input_type == "none") {
49
inputMethodHints = Qt.ImhEmailCharactersOnly;
52
var secure_id = settings.value("submission/secure_id","");
59
placeholderText: settings.value("submission/input_placeholder", i18n.tr("Launchpad E-Mail Address"))
60
Component.onCompleted: initialize()
64
function initialize() {
65
if (settings.value("submission/submit_to_hexr","false").toLowerCase() == "true") {
73
id: submit_to_hexr_label
74
text: i18n.tr("Submit to HEXR:")
79
text: i18n.tr("Submit to HEXR:")
81
Component.onCompleted: initialize()
37
text: i18n.tr("Save Results")
87
text: settings.value("submission/ok_btn_text", "Submit Results")
88
enabled: upload_input.acceptableInput
38
89
color: UbuntuColors.orange
40
var mysavepath = guiEngine.GetSaveFileName();
41
runmanagerview.reportIsSaved = guiEngine.GuiExportSessionToFileAsXML(mysavepath);
91
var submit_to = settings.value("transport/submit_to", "")
92
var export_path = settings.value("exporter/xml_export_path", "/tmp/submission.xml")
95
export_path = guiEngine.GetSaveFileName();
97
var success = guiEngine.GuiExportSessionToFileAsXML(export_path);
98
if (submit_to == "certification") {
100
dialog.text = guiEngine.SendSubmissionViaCertificationTransport(export_path,
102
submit_to_hexr.checked);
105
dialog.text = i18n.tr("Could not export the tests results for uploading.");
108
else if (submit_to == "local") {
110
runmanagerview.reportIsSaved = success;
114
dialog.text = guiEngine.SendSubmissionViaLaunchpadTransport(export_path,
50
125
var mysavepath = '/tmp/report.html';
51
126
runmanagerview.reportIsSaved = guiEngine.GuiExportSessionToFileAsHTML(mysavepath);
52
cmdTool.exec("xdg-open", mysavepath)
127
Qt.openUrlExternally(mysavepath);
69
144
id: submission_warning_dialog
71
text: i18n.tr("You are about to exit this test run without saving your results report. Do you want to save the report?");
146
text: settings.value("submission/cancel_warning", i18n.tr("You are about to exit this test run without saving your results report. Do you want to save the report?"))
73
148
showContinue: false
74
149
showCheckbox: false