Mercurial > hg > sonic-visualiser
comparison main/NetworkPermissionTester.cpp @ 1613:3f6c18fcc075
Rework network permission tester to note that aggregate info may be used, and tweak for clarity
author | Chris Cannam |
---|---|
date | Sat, 25 Feb 2017 19:24:13 +0000 |
parents | 7f7fba33b7de |
children | 3dbfe3ba0d1f |
comparison
equal
deleted
inserted
replaced
1612:21befacf6cae | 1613:3f6c18fcc075 |
---|---|
44 d.setWindowTitle(QCoreApplication::translate("NetworkPermissionTester", "Welcome to Sonic Visualiser")); | 44 d.setWindowTitle(QCoreApplication::translate("NetworkPermissionTester", "Welcome to Sonic Visualiser")); |
45 | 45 |
46 QGridLayout *layout = new QGridLayout; | 46 QGridLayout *layout = new QGridLayout; |
47 d.setLayout(layout); | 47 d.setLayout(layout); |
48 | 48 |
49 QString preamble; | |
50 preamble = QCoreApplication::translate | |
51 ("NetworkPermissionTester", | |
52 "<h2>Welcome to Sonic Visualiser!</h2>" | |
53 "<p><img src=\":icons/qm-logo-smaller.png\" style=\"float:right\">Sonic Visualiser is a program for viewing and exploring audio data for semantic music analysis and annotation.</p>" | |
54 "<p>Developed in the Centre for Digital Music at Queen Mary University of London, Sonic Visualiser is open source software under the GNU General Public License.</p>" | |
55 "<p><hr></p>" | |
56 "<p><b>Before we go on...</b></p>" | |
57 "<p>Sonic Visualiser would like permission to use the network.</p>"); | |
58 | |
59 QString bullets; | |
60 if (m_withOSC) { | |
61 bullets = QCoreApplication::translate | |
62 ("NetworkPermissionTester", | |
63 "<p>This is to:</p>" | |
64 "<ul><li> Find information about available and installed plugins;</li>" | |
65 "<li> Support the use of Open Sound Control; and</li>" | |
66 "<li> Tell you when updates are available.</li>" | |
67 "</ul>"); | |
68 } else { | |
69 bullets = QCoreApplication::translate | |
70 ("NetworkPermissionTester", | |
71 "<p>This is to:</p>" | |
72 "<ul><li> Find information about available and installed plugins; and</li>" | |
73 "<li> Tell you when updates are available.</li>" | |
74 "</ul>"); | |
75 } | |
76 | |
77 QString postamble; | |
78 postamble = QCoreApplication::translate | |
79 ("NetworkPermissionTester", | |
80 "<p><b>No personal information will be sent, no tracking is carried out, and no individual information will be shared with anyone else.</b> We will however make aggregate counts of distinct requests for usage reporting.</p>" | |
81 "<p>We recommend that you allow this, because it makes Sonic Visualiser more useful to you and supports the public funding of this work. But if you do not wish to allow it, please un-check the box below.<br></p>"); | |
82 | |
49 QLabel *label = new QLabel; | 83 QLabel *label = new QLabel; |
50 label->setWordWrap(true); | 84 label->setWordWrap(true); |
51 label->setText | 85 label->setText(preamble + bullets + postamble); |
52 (QCoreApplication::translate | |
53 ("NetworkPermissionTester", | |
54 "<h2>Welcome to Sonic Visualiser!</h2>" | |
55 "<p><img src=\":icons/qm-logo-smaller.png\" style=\"float:right\">Sonic Visualiser is a program for viewing and exploring audio data for semantic music analysis and annotation.</p>" | |
56 "<p>Developed in the Centre for Digital Music at Queen Mary, University of London, Sonic Visualiser is provided free as open source software under the GNU General Public License.</p>" | |
57 "<p><hr></p>" | |
58 "<p><b>Before we go on...</b></p>" | |
59 "<p>Sonic Visualiser would like to make networking connections and open a network port.</p>" | |
60 "<p>This is to:</p>" | |
61 "<ul><li> Find information about available and installed plugins;</li>" | |
62 "<li> Support the use of Open Sound Control, where configured; and</li>" | |
63 "<li> Tell you when updates are available.</li>" | |
64 "</ul>" | |
65 "<p>No personal information will be sent, no tracking is carried out, and all requests happen in the background without interrupting your work.</p>" | |
66 "<p>We recommend that you allow this, because it makes Sonic Visualiser more useful. But if you do not wish to do so, please un-check the box below.<br></p>")); | |
67 layout->addWidget(label, 0, 0); | 86 layout->addWidget(label, 0, 0); |
68 | 87 |
69 QCheckBox *cb = new QCheckBox(QCoreApplication::translate("NetworkPermissionTester", "Allow this")); | 88 QCheckBox *cb = new QCheckBox(QCoreApplication::translate("NetworkPermissionTester", "Allow this")); |
70 cb->setChecked(true); | 89 cb->setChecked(true); |
71 layout->addWidget(cb, 1, 0); | 90 layout->addWidget(cb, 1, 0); |