| 1 | /* |
| 2 | * File: HelpAbout.cpp |
| 3 | * |
| 4 | * Author: Jacob Dekel |
| 5 | * Created on: Aug 7, 2009 |
| 6 | * |
| 7 | * Copyright (c) 2009-2013 Jacob Dekel |
| 8 | * $Id$ |
| 9 | * |
| 10 | * This program is free software: you can redistribute it and/or modify |
| 11 | * it under the terms of the GNU General Public License as published by |
| 12 | * the Free Software Foundation, either version 3 of the License, or |
| 13 | * (at your option) any later version. |
| 14 | * |
| 15 | * This program is distributed in the hope that it will be useful, |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | * GNU General Public License for more details. |
| 19 | * |
| 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 22 | * |
| 23 | */ |
| 24 | |
| 25 | #include "HelpAbout.h"cxx . . $ `<file>/HercStudio/HelpAbout.h`/ |
| 26 | #include "HerculesStudio.h"cxx . . $ `<file>/HercStudio/HerculesStudio.h`/ |
| 27 | #include "Environment.h"cxx . . $ `<file>/HercStudio/Environment.h`/ |
| 28 | #include <QPixmap> |
| 29 | #include <QGraphicsView> |
| 30 | #include <QGraphicsItem> |
| 31 | |
| 32 | HelpAboutcxx . . $ HelpAbout#::HelpAboutcxx . . $ HelpAbout#HelpAbout(108f35f7aa7f3cf9).(QWidgetcxx . . $ QWidget# *parent) |
| 33 | : QDialogcxx . . $ QDialog#QDialog(872e7b0c281abd8d).(parent) |
| 34 | { |
| 35 | uicxx . . $ HelpAbout#ui..setupUicxx . . $ Ui_HelpAboutClass#setupUi(d194de0c0f68c28b).(this); |
| 36 | |
| 37 | if (strlen(HERCSTUDIO_REVISIONcxx . . $ `HercStudio/HerculesStudio.h:36:9`!) < 16) |
| 38 | uicxx . . $ HelpAbout#ui..versionLabelcxx . . $ Ui_HelpAboutClass#versionLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(HERCSTUDIO_VERSIONcxx . . $ `HercStudio/HerculesStudio.h:35:9`!); |
| 39 | else |
| 40 | { |
| 41 | QStringcxx . . $ QString# revcxx . . $ QString#QString(85c52e162fed56f9).(HERCSTUDIO_REVISIONcxx . . $ `HercStudio/HerculesStudio.h:36:9`!); |
| 42 | uicxx . . $ HelpAbout#ui..versionLabelcxx . . $ Ui_HelpAboutClass#versionLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).(HERCSTUDIO_VERSIONcxx . . $ `HercStudio/HerculesStudio.h:35:9`! " (build " +cxx . . $ operator+(c75c3ae4eb9af1a8). (rev.midcxx . . $ QString#mid(44b7563da18aea72).(11,4).replacecxx . . $ QString#replace(192e628656427d1c).(" "cxx . . $ QString#QString(85c52e162fed56f9).,""cxx . . $ QString#QString(85c52e162fed56f9).) +cxx . . $ operator+(3d22f08efddf8107). ")")); |
| 43 | } |
| 44 | uicxx . . $ HelpAbout#ui..stampLabelcxx . . $ Ui_HelpAboutClass#stampLabel.->setTextcxx . . $ QLabel#setText(3520e46b33348bf6).("Built on: "cxx . . $ QString#QString(85c52e162fed56f9). __DATE__ " " __TIME__); |
| 45 | |
| 46 | static QStringcxx . . $ QString# icon1cxx . . $ QString#QString(e1217c004a86c950). = Environmentcxx . . $ QString#QString(85c52e162fed56f9).::getIconsPathcxx . . $ Environment#getIconsPath(75da78375bc7a3dd).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(); |
| 47 | icon1 +=cxx . . $ QString#`operator+=`(d02845eef0c33901). "/opensource.png"; |
| 48 | static QPixmapcxx . . $ QPixmap# * pixmap1 = new QPixmapcxx . . $ QPixmap#QPixmap(dec4543235ec9b46).(icon1); |
| 49 | uicxx . . $ HelpAbout#ui..label1cxx . . $ Ui_HelpAboutClass#label1.->setPixmapcxx . . $ QLabel#setPixmap(8887f7d25b86c3f4).(*pixmap1); |
| 50 | |
| 51 | static QStringcxx . . $ QString# icon2cxx . . $ QString#QString(e1217c004a86c950). = Environmentcxx . . $ QString#QString(85c52e162fed56f9).::getIconsPathcxx . . $ Environment#getIconsPath(75da78375bc7a3dd).().c_strcxx . . $ std/__cxx11/basic_string#c_str(1016ee5406d91ab9).(); |
| 52 | icon2 +=cxx . . $ QString#`operator+=`(d02845eef0c33901). "/tray.xpm"; |
| 53 | static QPixmapcxx . . $ QPixmap# * pixmap2 = new QPixmapcxx . . $ QPixmap#QPixmap(dec4543235ec9b46).(icon2); |
| 54 | uicxx . . $ HelpAbout#ui..label2cxx . . $ Ui_HelpAboutClass#label2.->setPixmapcxx . . $ QLabel#setPixmap(8887f7d25b86c3f4).(*pixmap2); |
| 55 | connectcxx . . $ QObject#connect(158df1d9a01a3410).(uicxx . . $ HelpAbout#ui..okButtoncxx . . $ Ui_HelpAboutClass#okButton., SIGNALcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:271:10`!(clicked()), this, SLOTcxx . . $ `<external>/1208926524888476972/qobjectdefs.h:270:10`!(okPressed())); |
| 56 | |
| 57 | } |
| 58 | |
| 59 | HelpAboutcxx . . $ HelpAbout#::~cxx . . $ HelpAbout#`~HelpAbout`(49f6e7a06ebc5aa8).HelpAboutcxx . . $ HelpAbout#() |
| 60 | { |
| 61 | |
| 62 | } |
| 63 | |
| 64 | void HelpAboutcxx . . $ HelpAbout#::okPressedcxx . . $ HelpAbout#okPressed(49f6e7a06ebc5aa8).() |
| 65 | { |
| 66 | closecxx . . $ QWidget#close(c9857a73d68e59ba).(); |
| 67 | } |