| 1 | /* ---------------------------------- about.cpp --------------------------------------------------------------------------- |
| 2 | Class to display the about dialog |
| 3 | |
| 4 | =============================================================================================================================== |
| 5 | =============================================================================================================================== |
| 6 | This file is part of "luckyBackup" project |
| 7 | Copyright, Loukas Avgeriou |
| 8 | luckyBackup is distributed under the terms of the GNU General Public License |
| 9 | luckyBackup is free software: you can redistribute it and/or modify |
| 10 | it under the terms of the GNU General Public License as published by |
| 11 | the Free Software Foundation, either version 3 of the License, or |
| 12 | (at your option) any later version. |
| 13 | |
| 14 | luckyBackup is distributed in the hope that it will be useful, |
| 15 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | GNU General Public License for more details. |
| 18 | |
| 19 | You should have received a copy of the GNU General Public License |
| 20 | along with luckyBackup. If not, see <http://www.gnu.org/licenses/>. |
| 21 | |
| 22 | project version : Please see "main.cpp" for project version |
| 23 | |
| 24 | developer : luckyb |
| 25 | last modified : 2 Nov 2018 |
| 26 | =============================================================================================================================== |
| 27 | =============================================================================================================================== |
| 28 | */ |
| 29 | #include "about.h" |
| 30 | #include "global.h" |
| 31 | |
| 32 | // class aboutDialog Constructor================================================================================================= |
| 33 | // Displays a simple about dialog |
| 34 | aboutDialog::aboutDialog (QUrl licenseUrl, QDialog *parent) : QDialog (parent) |
| 35 | { |
| 36 | uiA.setupUi(this); |
| 37 | //connect okay pushButton SLOTs ---------------- |
| 38 | connect ( uiA.pushButton_ok, SIGNAL( clicked() ), this, SLOT( okay() ) ); |
| 39 | |
| 40 | setTop(); |
| 41 | setAbout(); |
| 42 | setAuthor(); |
| 43 | setThanks(); |
| 44 | setLicense(licenseUrl); |
| 45 | setSupport(); |
| 46 | } |
| 47 | // SLOTS------------------------------------------------------------------------------------- |
| 48 | // --------------------------------okay pressed------------------------------------------------ |
| 49 | void aboutDialog::okay() |
| 50 | { |
| 51 | close(); |
| 52 | } |
| 53 | |
| 54 | // FUNCTIONS------------------------------------------------------------------------------------- |
| 55 | void aboutDialog::setTop() |
| 56 | { |
| 57 | Text = appName+" "+ appVersionString; |
| 58 | uiA.label_Top -> setText(Text); |
| 59 | } |
| 60 | void aboutDialog::setAbout() |
| 61 | { |
| 62 | uiA.textBrowser_About -> setOpenLinks(true); |
| 63 | uiA.textBrowser_About -> setOpenExternalLinks(true); |
| 64 | |
| 65 | Text = "<p align=\"center\"><b>"+appName + " " + appVersionString +"</b> ("+ |
| 66 | tr("using Qt")+")" + "<br>" + |
| 67 | tr("Backup & Sync Application")+"<br><br>" |
| 68 | |
| 69 | "(C) 2008-2018, "+ |
| 70 | tr("Loukas Avgeriou") +"<br><br>" |
| 71 | |
| 72 | "web:<br>" |
| 73 | "<a href=\"http://luckybackup.sourceforge.net/\" target=\"_blank\">http://luckybackup.sourceforge.net/</a> <br>" |
| 74 | "<a href=\"http://www.kde-apps.org/content/show.php/luckyBackup?content=94391\" target=\"_blank\">http://www.kde-apps.org/</a> <br><br>" |
| 75 | |
| 76 | "<a href=\"http://www.gnu.org/copyleft/gpl.html\" target=\"_blank\"><img name=\"gpl\"" |
| 77 | " src=\":/luckyPrefix/gplv3-127x51.png\" width=\"60\" height=\"20\" border=\"0\"></a> "+ |
| 78 | tr("luckyBackup is distributed under the terms of the <a href=\"http://www.gnu.org/copyleft/gpl.html\" target=\"_blank\">GNU General Public License</a>","Please leave the tags <a href=\"http://www.gnu.org/copyleft/gpl.html\" target=\"_blank\"> & </a> intact and surrounding the GNU General Public License !!") +".<br><br>" + |
| 79 | |
| 80 | tr("It is <b>free software</b>: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.","Please leave tags eg <b>, </b> intact and surrounding the words they are suppossed to !!") +"<br>" + |
| 81 | tr("It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.")+ "<br>" + |
| 82 | tr("See the 'License Agreement' tab for more details.")+"</p>"; |
| 83 | |
| 84 | uiA.textBrowser_About -> setText(Text); |
| 85 | } |
| 86 | void aboutDialog::setAuthor() |
| 87 | { |
| 88 | uiA.textBrowser_Author -> setOpenLinks(true); |
| 89 | uiA.textBrowser_Author -> setOpenExternalLinks(true); |
| 90 | |
| 91 | Text = "<p align=\"center\"><br><img name=\"luckyb\" src=\":/luckyPrefix/luckyb.png\" width=\"80\" height=\"80\" border=\"0\"><b><br><br>"+ |
| 92 | tr("Loukas Avgeriou") +"</b> (luckyb)<br>"+ |
| 93 | tr("Athens, Greece") + |
| 94 | "<br><br><a href=\"mailto:[email protected]\">[email protected]</a></p>"; |
| 95 | uiA.textBrowser_Author -> setText(Text); |
| 96 | } |
| 97 | void aboutDialog::setThanks() |
| 98 | { |
| 99 | uiA.textBrowser_Thanks -> setOpenLinks(true); |
| 100 | uiA.textBrowser_Thanks -> setOpenExternalLinks(true); |
| 101 | |
| 102 | Text = "<p align=\"center\"><b>" + tr("Tom Tryfonidis") + "</b><br>(thanos)<br>" + |
| 103 | tr("Arch linux package/pkgbuild official maintainer (AUR)") + "<br>" + |
| 104 | tr("Greek manual translator") + "<br>" + |
| 105 | tr("Valuable advisor") + "<br><br>" |
| 106 | |
| 107 | "<b>" + tr("Yiorgos Kapellakis") + "</b><br>(slackware)<br>" + |
| 108 | tr("rpm packager, valuable tester and remote connections advisor") + "<br><br>" |
| 109 | |
| 110 | "<b>" + tr("Patrick Matthaei") + "</b><br>(Debian Developer)<br>" + |
| 111 | tr("Debian package maintainer") + "<br><br>" |
| 112 | |
| 113 | "<b>" + tr("Nikolas Poniros") + "</b><br>(edhunter)<br>" + |
| 114 | tr("Greek gui translator and valuable tester") + "<br><br>" |
| 115 | |
| 116 | "<b>" + tr("Dimitris Kalamaras") + "</b><br>(dimitris)<br>" + |
| 117 | tr("If it wasn't him and his tutorials I would never have started this project") + "<br><br>" |
| 118 | |
| 119 | "<b><a href=\"http://www.indifex.com/#team\" TARGET=\"_blank\">" + tr("The indifex team") + "</b></a><br>" + |
| 120 | tr("for developing the wonderful transifex localization platform and providing it for free") + "<br><br>" |
| 121 | |
| 122 | "<b>" + tr("Stephan Kleine") + "</b><br>" + |
| 123 | tr("OpenSUSE package maintainer (KDE4 Community repo) and valuable packing advisor") + "<br><br>" |
| 124 | |
| 125 | "<b>" + tr("Marcos Del Puerto Garcia") + "</b><br>" + |
| 126 | tr("Mepis package maintainer (Community repo) & Spanish gui translator") + "<br><br>" |
| 127 | |
| 128 | "<b>" + tr("Savvas Radevic") + "</b><br>" + |
| 129 | tr("ubuntu package maintainer (launchpad PPA)") + "<br><br>" |
| 130 | |
| 131 | "<b>" + tr("Bruce Marriner") + "</b><br>" + |
| 132 | tr("port to MS Windows") + "<br><br>" |
| 133 | |
| 134 | "<b>" + tr("Juan Ramon Alfaro Martinez") + "</b><br>" + |
| 135 | tr("Code contributor for remote & vss support regarding the windows port") + "<br><br>" |
| 136 | |
| 137 | "<b>" + tr("loh.tar") + "</b><br>" + |
| 138 | tr("Code contributor for important fixes, structure improvement and port to Qt5") + "<br><br>" |
| 139 | |
| 140 | "<b>" + tr("Jack Fink") + "</b><br>" + |
| 141 | tr("port to Mac OS X") + "<br><br>" |
| 142 | |
| 143 | "<b>" + tr("Elbert Pol") + "</b><br>" + |
| 144 | tr("port to OS/2") + "<br><br>" |
| 145 | |
| 146 | "<b>" + tr("Theo Chatzimichos") + "</b><br>" + |
| 147 | tr("Gentoo ebuild maintainer") + "<br><br>" |
| 148 | |
| 149 | "<b>" + tr("Dimitris Stasinopoulos") + "</b><br>(alfisti)<br>" + |
| 150 | tr("Puppy pet & sfs maintainer") + "<br><br>" |
| 151 | |
| 152 | "<b>" + tr("Juan Luis Baptiste") + "</b><br>" + |
| 153 | tr("Mandriva package maintainer (official contrib repo)") + "<br><br>" |
| 154 | |
| 155 | "<b>" + tr("Michael J Gruber") + "</b><br>" + |
| 156 | tr("Fedora package maintainer (official repo)") + "<br><br>" |
| 157 | |
| 158 | "<b>" + tr("Jason E. Hale") + "</b><br>" + |
| 159 | tr("Free BSD package maintainer") + "<br><br>" |
| 160 | |
| 161 | "<b>" + tr("Dimitris Jemos") + "</b><br>" + |
| 162 | tr("Slackel package maintainer") + "<br><br>" |
| 163 | |
| 164 | "<b>" + tr("Thomas Janssen") + "</b><br>" + |
| 165 | tr("ex Fedora package maintainer") + "<br><br>" |
| 166 | |
| 167 | "<b>" + tr("Pavel Fric") + "</b><br>" + |
| 168 | tr("Czech gui translator") + "<br><br>" |
| 169 | |
| 170 | "<b>" + tr("Stergios Prosiniklis") + "</b><br>" + |
| 171 | tr("Greek manual translator") + "<br><br>" |
| 172 | |
| 173 | "<b>" + tr("Karsten Jaschultowski") + "</b><br>" + |
| 174 | tr("German gui translator") + "<br><br>" |
| 175 | |
| 176 | "<b>" + tr("Wilfried Schobel") + "</b><br>" + |
| 177 | tr("German gui translator") + "<br><br>" |
| 178 | |
| 179 | "<b>" + tr("Thomas Glatt") + "</b><br>" + |
| 180 | tr("German gui translator") + "<br><br>" |
| 181 | |
| 182 | "<b>" + tr("Sergio Gameiro") + "</b><br>" + |
| 183 | tr("Portuguese gui translator") + "<br><br>" |
| 184 | |
| 185 | "<b>" + tr("Marcio Moraes") + "</b><br>" + |
| 186 | tr("Portuguese gui translator") + "<br><br>" |
| 187 | |
| 188 | "<b>" + tr("António Correia") + "</b><br>" + |
| 189 | tr("Portuguese gui translator") + "<br><br>" |
| 190 | |
| 191 | "<b>" + tr("Julien Cynober") + "</b><br>" + |
| 192 | tr("French gui translator and valuable packing advisor (and not only)") + "<br><br>" |
| 193 | |
| 194 | "<b>" + tr("Aurelien Merckel") + "</b><br>" + |
| 195 | tr("French gui translator") + "<br><br>" |
| 196 | |
| 197 | "<b>" + tr("Sébastien Bourgain") + "</b><br>" + |
| 198 | tr("French gui translator") + "<br><br>" |
| 199 | |
| 200 | "<b>" + tr("Francesco Braile") + "</b><br>" + |
| 201 | tr("Italian gui translator") + "<br><br>" |
| 202 | |
| 203 | "<b>" + tr("Raffaele") + "</b><br>" + |
| 204 | tr("Italian gui translator") + "<br><br>" |
| 205 | |
| 206 | "<b>" + tr("pinguinofurioso") + "</b><br>" + |
| 207 | tr("Italian gui translator") + "<br><br>" |
| 208 | |
| 209 | "<b>" + tr("Alessio Ganci") + "</b><br>" + |
| 210 | tr("Italian gui translator") + "<br><br>" |
| 211 | |
| 212 | "<b>" + tr("Denis Skorski") + "</b><br>" + "<a href=\"http://fripohled.blogspot.com/\" TARGET=\"_blank\">fripohled.blogspot.com</a><br>" + |
| 213 | tr("Russian gui translator and valuable tester") + "<br><br>" |
| 214 | |
| 215 | "<b>" + tr("Kenny Verstraete") + "</b><br>" + |
| 216 | tr("Dutch gui translator") + "<br><br>" |
| 217 | |
| 218 | "<b>" + tr("Martin Grashoff (linuxrev)") + "</b><br>" + |
| 219 | tr("Dutch gui translator") + "<br><br>" |
| 220 | |
| 221 | "<b>" + tr("Subhi Honaco") + "</b><br>" + |
| 222 | tr("Bosnian gui translator & mandriva package maintainer") + "<br><br>" |
| 223 | |
| 224 | "<b>" + tr("Majed Sahli") + "</b><br>" + |
| 225 | tr("Arabic gui translator") + "<br><br>" |
| 226 | |
| 227 | "<b>" + tr("Adrian Murariu") + "</b><br>" + |
| 228 | tr("Romanian gui translator") + "<br><br>" |
| 229 | |
| 230 | "<b>" + tr("Angelescu Constantin") + "</b><br>" + |
| 231 | tr("Romanian gui reviewer & translator") + "<br><br>" |
| 232 | |
| 233 | "<b>" + tr("Andrej Znidarsic") + "</b><br>" + |
| 234 | tr("Slovenian gui translator") + "<br><br>" |
| 235 | |
| 236 | "<b>" + tr("Matej Urbančič") + "</b><br>" + |
| 237 | tr("Slovenian gui translator") + "<br><br>" |
| 238 | |
| 239 | "<b>" + tr("E. Hakan Duran") + "</b><br>" + |
| 240 | tr("Turkish gui translator") + "<br><br>" |
| 241 | |
| 242 | "<b>" + tr("Marvin Gomez") + "</b><br>" + |
| 243 | tr("Spanish gui translator") + "<br><br>" |
| 244 | |
| 245 | "<b>" + tr("Antonio Jose Molina") + "</b><br>" + |
| 246 | tr("Spanish gui translator") + "<br><br>" |
| 247 | |
| 248 | "<b>" + tr("Fredrik Holmgren") + "</b><br>" + |
| 249 | tr("Swedish gui translator") + "<br><br>" |
| 250 | |
| 251 | "<b>" + tr("Roger Calvo") + "</b><br>" + |
| 252 | tr("Catalan gui translator") + "<br><br>" |
| 253 | |
| 254 | "<b>" + tr("Tomas Vadina") + "</b><br>" + |
| 255 | tr("Slovak gui translator") + "<br><br>" |
| 256 | |
| 257 | "<b>" + tr("Rivo Zangov") + "</b><br>" + |
| 258 | tr("Estonian gui translator") + "<br><br>" |
| 259 | |
| 260 | "<b>" + tr("Nicolay Boychev") + "</b><br>" + |
| 261 | tr("Bulgarian gui translator") + "<br><br>" |
| 262 | |
| 263 | "<b>" + tr("Marcos Lans") + "</b><br>" + |
| 264 | tr("Galician gui translator") + "<br><br>" |
| 265 | |
| 266 | "<b>" + tr("Roger Foss") + "</b><br>" + |
| 267 | tr("Norwegian gui translator") + "<br><br>" |
| 268 | |
| 269 | "<b>" + tr("Pin-hsien Li") + "</b><br>" + |
| 270 | tr("Chinese (Taiwan) gui translator") + "<br><br>" |
| 271 | |
| 272 | "<b>" + tr("Axel Rousseau") + "</b><br>" + |
| 273 | tr("Esperanto gui translator") + "<br><br>" |
| 274 | |
| 275 | "<b>" + tr("Omar Anwar") + "</b><br>" + |
| 276 | tr("Arabic gui translator") + "<br><br>" |
| 277 | |
| 278 | "<b>" + tr("Javi Romero") + "</b><br>" + |
| 279 | tr("v0.3 gui designer") + "<br><br>" |
| 280 | |
| 281 | "<b>" + tr("fri13") + "</b><br>" + |
| 282 | tr("v.0.3 gui designer") + "<br><br>" + |
| 283 | |
| 284 | "<b>" + tr("Tito Poquito") + "</b><br>" + |
| 285 | tr("slackware package maintainer (SlackBuilds Repository)") + "<br><br>" + |
| 286 | |
| 287 | "<b>" + tr("Michele Dall'Arno") + "</b><br>" + |
| 288 | tr("special guest bug killer ;)") + "<br><br>" + |
| 289 | |
| 290 | "<b>" + tr("Aphofis Scott") + "</b><br>" + |
| 291 | tr("valuable tester & brainstorming specialist") + "<br><br>" + |
| 292 | |
| 293 | "<b>" + tr("Yuri Vidal") + "</b><br>" + |
| 294 | tr("backupwhenidle python script developer") + "<br><br>" + |
| 295 | |
| 296 | "<b>" + tr("Bjorn Rietdijk") + "</b><br>" + |
| 297 | tr("valuable OS/2 and windows tester") + "<br><br>" + |
| 298 | |
| 299 | "<b>" + tr("Max Rumpf") + "</b><br>" + |
| 300 | tr("PolKit patch provider") + "<br><br>" + |
| 301 | |
| 302 | tr("...to all users of the ")+ |
| 303 | "<br><a href=\"http://www.linuxinside.gr/\" target=\"_blank\">Linux Inside</a>, " |
| 304 | "<a href=\"http://www.aptosid.com/\" target=\"_blank\">aptosid.com</a>, " |
| 305 | "<a href=\"http://www.aptosid.gr/\" target=\"_blank\">aptosid.gr</a>, " |
| 306 | "<a href=\"http://forum.ubuntu-gr.org/\" target=\"_blank\">ubuntu.gr</a>, " |
| 307 | "<a href=\"http://forum.hellug.gr/\" target=\"_blank\">hellug</a>, " |
| 308 | "and <a href=\"http://www.kde-apps.org//\" target=\"_blank\">kde-apps.org</a><br>" + |
| 309 | tr("forums for their support.") + "<br><br>" + |
| 310 | tr("Especially") + "<br>constantinos, promeneur, grigris, dannys,marios, Regenwald, flo, Ilias Paraponiaris, Takis Vounatsos, Lieven Tytgat, mathetes, Johan Linde, Chris Sylvester, Manos Nikiforakis, Giorgos Katsikatsos, Ray Ambrosi, Barry Jackson, Damien Cassou, Carsten, Daniele Soldati Chris (slam), Paul Chapman, kingfame, Giorgos 'jeff' Finikianakis, Shelby Williams, Felix, skevo, Philipp F, Christian Harms, Paul Hewlett, Tristan Gross, Fabian Muscariello, James Mohr, Julie Pierson, Peter, Michael Daffin and Kate Draven<br>" + |
| 311 | tr("that contributed to this project one way or another") + "<br><br>" + |
| 312 | |
| 313 | tr("Last but no least") +":<br>"+ |
| 314 | tr("...my other half, <b>Dimitra</b> that bears with me all these times that this project is under development") + " :-)<br></p>"; |
| 315 | uiA.textBrowser_Thanks-> setText(Text);; |
| 316 | } |
| 317 | void aboutDialog::setLicense(QUrl licenseUrl) |
| 318 | { |
| 319 | uiA.textBrowser_License -> setOpenLinks(true); |
| 320 | uiA.textBrowser_License -> setOpenExternalLinks(true); |
| 321 | |
| 322 | licenseUrl.setScheme("file"); |
| 323 | |
| 324 | if (licenseUrl.toString(QUrl::RemoveScheme) == "Does_not_exist") |
| 325 | uiA.textBrowser_License -> setText(tr("Could not locate the license file") + "!!"); |
| 326 | else |
| 327 | uiA.textBrowser_License -> setSource(licenseUrl); |
| 328 | |
| 329 | } |
| 330 | |
| 331 | void aboutDialog::setSupport() |
| 332 | { |
| 333 | uiA.textBrowser_Support -> setOpenLinks(true); |
| 334 | uiA.textBrowser_Support -> setOpenExternalLinks(true); |
| 335 | |
| 336 | Text = "<p align=\"left\"><b>" + tr("no money") + "</b><br><br>" + |
| 337 | tr("If you like this app and would like to donate something to me personally, all you have to do is:") + "<ul><li>" + |
| 338 | tr("Give a thumbs up at:") + |
| 339 | " <a href=\"http://sourceforge.net/projects/luckybackup/\" target=\"_blank\">sourceforge.net</a></li><li>" + |
| 340 | tr("Vote good & become a fan at:") + |
| 341 | " <a href=\"http://www.kde-apps.org/content/show.php/luckyBackup?content=94391\" target=\"_blank\">kde-apps.org</a></li></ul>" + |
| 342 | tr("This is my reward :)") |
| 343 | |
| 344 | + "<br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br><b>" + tr("money") + "</b><br><br>" + |
| 345 | tr("I personally never had and never will accept money for this project.") + "<br>" + |
| 346 | tr("Nevertheless, I decided to use luckyBackup to support people that really need financial help.") + "<br>" + |
| 347 | tr("So, please consider it seriously to donate money that will eventually be used for a good cause.") + |
| 348 | "<br><br><a href=\"http://luckybackup.sourceforge.net/donate.html\" target=\"_blank\"><b>" + |
| 349 | tr("donation link") + "</b></a></p>"; |
| 350 | |
| 351 | uiA.textBrowser_Support -> setText(Text); |
| 352 | } |
| 353 | // end of about.cpp --------------------------------------------------------------------------- |
| 354 |