itom 2.2.1
|
00001 /* ******************************************************************** 00002 itom software 00003 URL: http://www.uni-stuttgart.de/ito 00004 Copyright (C) 2016, Institut fuer Technische Optik (ITO), 00005 Universitaet Stuttgart, Germany 00006 00007 This file is part of itom. 00008 00009 itom is free software; you can redistribute it and/or modify it 00010 under the terms of the GNU Library General Public Licence as published by 00011 the Free Software Foundation; either version 2 of the Licence, or (at 00012 your option) any later version. 00013 00014 itom is distributed in the hope that it will be useful, but 00015 WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library 00017 General Public Licence for more details. 00018 00019 You should have received a copy of the GNU Library General Public License 00020 along with itom. If not, see <http://www.gnu.org/licenses/>. 00021 *********************************************************************** */ 00022 00023 #ifndef DIALOGABOUTQITOM 00024 #define DIALOGABOUTQITOM 00025 00026 #include <QtGui> 00027 #include <qdialog.h> 00028 #include <qcolor.h> 00029 00030 #include "ui_dialogAbout.h" 00031 00032 namespace ito 00033 { 00034 00035 class DialogAboutQItom : public QDialog 00036 { 00037 Q_OBJECT 00038 00039 Q_PROPERTY(QColor textColor READ textColor WRITE setTextColor DESIGNABLE true); 00040 Q_PROPERTY(QColor linkColor READ linkColor WRITE setLinkColor DESIGNABLE true); 00041 00042 public: 00043 DialogAboutQItom(const QMap<QString, QString> &versionMap); 00044 00045 ~DialogAboutQItom() {m_VersionString.clear();}; 00046 00047 QColor linkColor() { return m_linkColor; } 00048 void setLinkColor(const QColor &color); 00049 00050 QColor textColor() { return m_textColor; } 00051 void setTextColor(const QColor &color); 00052 00053 private: 00054 void styleTexts(); 00055 00056 Ui::DialogAboutQItom ui; 00057 QString m_VersionString; 00058 00059 QColor m_textColor; 00060 QColor m_linkColor; 00061 00062 QString m_aboutText; 00063 QString m_contributorsText; 00064 QString m_adddressText; 00065 QString m_addressText; 00066 00067 public slots: 00068 00069 00070 private slots: 00071 void on_pushButtonCopy_clicked(); 00072 void on_pushButton_close_clicked(); 00073 00074 }; 00075 00076 } //end namespace ito 00077 00078 #endif // DIALOGABOUTQITOM