"Fossies" - the Fresh Open Source Software Archive

Member "texstudio-3.0.1/src/aboutdialog.cpp" (31 Aug 2020, 4693 Bytes) of package /linux/misc/texstudio-3.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "aboutdialog.cpp" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2.12.22_vs_3.0.0.

    1 /***************************************************************************
    2  *   copyright       : (C) 2003-2007 by Pascal Brachet                     *
    3  *   http://www.xm1math.net/texmaker/                                      *
    4  *                                                                         *
    5  *   This program is free software; you can redistribute it and/or modify  *
    6  *   it under the terms of the GNU General Public License as published by  *
    7  *   the Free Software Foundation; either version 2 of the License, or     *
    8  *   (at your option) any later version.                                   *
    9  *                                                                         *
   10  ***************************************************************************/
   11 
   12 #include "aboutdialog.h"
   13 #include "utilsVersion.h"
   14 
   15 AboutDialog::AboutDialog(QWidget *parent)
   16     : QDialog(parent)
   17 {
   18     ui.setupUi(this);
   19     ui.textBrowser->setOpenExternalLinks(true);
   20     ui.textBrowser->setHtml(QString("<b>%1 %2</b> (git %3)").arg(TEXSTUDIO).arg(TXSVERSION).arg(TEXSTUDIO_GIT_REVISION ? TEXSTUDIO_GIT_REVISION : "n/a") + "<br>" +
   21                             (IS_DEVELOPMENT_VERSION ? tr("<b>This is a development version.</b><br>") : "") +
   22                             tr("Using Qt Version %1, compiled with Qt %2 %3").arg(qVersion()).arg(QT_VERSION_STR).arg(COMPILED_DEBUG_OR_RELEASE) + "<br><br>" +
   23                             "Copyright (c)<br>" +
   24                             TEXSTUDIO ": Benito van der Zander, Jan Sundermeyer, Daniel Braun, Tim Hoffmann<br>"
   25                             "Texmaker: Pascal Brachet<br>" +
   26                             "QCodeEdit: Luc Bruant<br>" +
   27                             tr("html conversion: ") + QString::fromUtf8("Joël Amblard</i><br>") +
   28                             tr("TeXstudio contains code from Hunspell (GPL), QtCreator (GPL, Copyright (C) Nokia), KILE (GPL) and SyncTeX (by Jerome Laurens).") + "<br>" +
   29                             tr("TeXstudio uses the PDF viewer of TeXworks.") + "<br>" +
   30                             tr("TeXstudio uses the DSingleApplication class (Author: Dima Fedorov Levit - Copyright (C) BioImage Informatics - Licence: GPL).") + "<br>" +
   31                             tr("TeXstudio uses TexTablet (MIT License, Copyright (c) 2012 Steven Lovegrove).") + "<br>" +
   32                             tr("TeXstudio uses QuaZip (LGPL, Copyright (C) 2005-2012 Sergey A. Tachenov and contributors).") + "<br>" +
   33                             tr("TeXstudio uses To Title Case (MIT License, Copyright (c) 2008-2013 David Gouch).") + "<br>" +
   34                             tr("TeXstudio contains an image by Alexander Klink.") + "<br>" +
   35                             tr("TeXstudio uses icons from the Crystal Project (LGPL) and the Oxygen icon theme (CC-BY-SA 3.0).") + "<br>" +
   36                             tr("TeXstudio uses flowlayout from Qt5.6 examples.") + "<br>" +
   37                             tr("TeXstudio uses adwaita-qt (GPL2) from ") + "https://github.com/FedoraQt/adwaita-qt <br>" +
   38                             "<br>" +
   39                             tr("Thanks to ") + QString::fromUtf8("Frédéric Devernay, Denis Bitouzé, Vesselin Atanasov, Yukai Chou, Jean-Côme Charpentier, Luis Silvestre, Enrico Vittorini, Aleksandr Zolotarev, David Sichau, Grigory Mozhaev, mattgk, A. Weder, Pavel Fric, András Somogyi, István Blahota, Edson Henriques, Grant McLean, Tom Jampen, Kostas Oikinimou, Lion Guillaume, ranks.nl, AI Corleone, Diego Andrés Jarrín, Matthias Pospiech, Zulkifli Hidayat, Christian Spieß, Robert Diaz, Kirill Müller, Atsushi Nakajima Yuriy Kolerov, Victor Kozyakin, Mattia Meneguzzo, Andriy Bandura, Carlos Eduardo Valencia Urbina, Koutheir Attouchi, Stefan Kraus, Bjoern Menke, Charles Brunet, François Gannaz, Marek Kurdej, Paulo Silva, Thiago de Melo, YoungFrog, Klaus Schneider-Zapp, Jakob Nixdorf, Thomas Leitz.<br><br>") +
   40                             tr("Project home site:") + " <a href=\"https://texstudio.org/\">https://texstudio.org/</a><br><br>" +
   41                             tr("This program is licensed to you under the terms of the GNU General Public License Version 2 as published by the Free Software Foundation."));
   42     QAction *act = new QAction("large", this);
   43     connect(act, SIGNAL(triggered()), SLOT(largeLogo()));
   44     ui.label->addAction(act);
   45     ui.label->setContextMenuPolicy(Qt::ActionsContextMenu);
   46 }
   47 
   48 AboutDialog::~AboutDialog()
   49 {
   50 }
   51 
   52 void AboutDialog::largeLogo()
   53 {
   54     QDialog *dlg = new QDialog(nullptr);
   55     dlg->setAttribute(Qt::WA_DeleteOnClose);
   56     dlg->setLayout(new QHBoxLayout(dlg));
   57     QLabel *label = new QLabel(dlg);
   58     label->setPixmap(QPixmap(":/images/splash_large.png"));
   59     dlg->layout()->addWidget(label);
   60     dlg->setWindowTitle("TeXstudio");
   61     dlg->exec();
   62 }