itom
Loading...
Searching...
No Matches
dialogAbout.h
1/* ********************************************************************
2 itom software
3 URL: http://www.uni-stuttgart.de/ito
4 Copyright (C) 2020, Institut für Technische Optik (ITO),
5 Universität Stuttgart, Germany
6
7 This file is part of itom.
8
9 itom is free software; you can redistribute it and/or modify it
10 under the terms of the GNU Library General Public Licence as published by
11 the Free Software Foundation; either version 2 of the Licence, or (at
12 your option) any later version.
13
14 itom is distributed in the hope that it will be useful, but
15 WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library
17 General Public Licence for more details.
18
19 You should have received a copy of the GNU Library General Public License
20 along with itom. If not, see <http://www.gnu.org/licenses/>.
21*********************************************************************** */
22
23#ifndef DIALOGABOUTQITOM
24#define DIALOGABOUTQITOM
25
26#include <QtGui>
27#include <qdialog.h>
28#include <qcolor.h>
29
30#include "ui_dialogAbout.h"
31
32namespace ito
33{
34
35class DialogAboutQItom : public QDialog
36{
37 Q_OBJECT
38
39 Q_PROPERTY(QColor textColor READ textColor WRITE setTextColor DESIGNABLE true);
40 Q_PROPERTY(QColor linkColor READ linkColor WRITE setLinkColor DESIGNABLE true);
41
42 public:
43 DialogAboutQItom(const QMap<QString, QString> &versionMap, QWidget *parent = NULL);
44
45 ~DialogAboutQItom() {m_VersionString.clear();};
46
47 QColor linkColor() { return m_linkColor; }
48 void setLinkColor(const QColor &color);
49
50 QColor textColor() { return m_textColor; }
51 void setTextColor(const QColor &color);
52
53 private:
54 void styleTexts();
55
56 Ui::DialogAboutQItom ui;
57 QString m_VersionString;
58
59 QColor m_textColor;
60 QColor m_linkColor;
61
62 QString m_aboutText;
63 QString m_contributorsText;
64 QString m_adddressText;
65 QString m_addressText;
66
67 public slots:
68
69
70 private slots:
71 void on_pushButtonCopy_clicked();
72 void on_pushButton_close_clicked();
73
74};
75
76} //end namespace ito
77
78#endif // DIALOGABOUTQITOM
Definition dialogAbout.h:36
Definition apiFunctionsGraph.cpp:40