mirror of https://github.com/PurpleI2P/i2pd.git
orignal
4 years ago
committed by
GitHub
9 changed files with 356 additions and 30 deletions
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
#include "AboutDialog.h" |
||||
#include "ui_AboutDialog.h" |
||||
#include <QDebug> |
||||
#include "version.h" |
||||
#include "BuildDateTimeQt.h" |
||||
|
||||
AboutDialog::AboutDialog(QWidget *parent) : |
||||
QDialog(parent), |
||||
ui(new Ui::AboutDialog) |
||||
{ |
||||
qDebug() << "AboutDialog::AboutDialog()" << endl; |
||||
ui->setupUi(this); |
||||
ui->i2pdVersionLabel->setText(I2PD_VERSION); |
||||
ui->i2pVersionLabel->setText(I2P_VERSION); |
||||
ui->buildDateTimeLabel->setText(BUILD_DATE_TIME_QT); |
||||
ui->vcsCommitInfoLabel->setText(VCS_COMMIT_INFO); |
||||
} |
||||
|
||||
AboutDialog::~AboutDialog() |
||||
{ |
||||
qDebug() << "AboutDialog::~AboutDialog()" << endl; |
||||
delete ui; |
||||
} |
@ -0,0 +1,22 @@
@@ -0,0 +1,22 @@
|
||||
#ifndef ABOUTDIALOG_H |
||||
#define ABOUTDIALOG_H |
||||
|
||||
#include <QDialog> |
||||
|
||||
namespace Ui { |
||||
class AboutDialog; |
||||
} |
||||
|
||||
class AboutDialog : public QDialog |
||||
{ |
||||
Q_OBJECT |
||||
|
||||
public: |
||||
explicit AboutDialog(QWidget *parent = 0); |
||||
~AboutDialog(); |
||||
|
||||
private: |
||||
Ui::AboutDialog *ui; |
||||
}; |
||||
|
||||
#endif // ABOUTDIALOG_H
|
@ -0,0 +1,194 @@
@@ -0,0 +1,194 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<ui version="4.0"> |
||||
<class>AboutDialog</class> |
||||
<widget class="QDialog" name="AboutDialog"> |
||||
<property name="windowModality"> |
||||
<enum>Qt::WindowModal</enum> |
||||
</property> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>0</x> |
||||
<y>0</y> |
||||
<width>400</width> |
||||
<height>199</height> |
||||
</rect> |
||||
</property> |
||||
<property name="windowTitle"> |
||||
<string>About i2pd_qt</string> |
||||
</property> |
||||
<property name="windowIcon"> |
||||
<iconset resource="i2pd.qrc"> |
||||
<normaloff>:/icons/mask</normaloff>:/icons/mask</iconset> |
||||
</property> |
||||
<widget class="QDialogButtonBox" name="buttonBox"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>10</x> |
||||
<y>160</y> |
||||
<width>381</width> |
||||
<height>32</height> |
||||
</rect> |
||||
</property> |
||||
<property name="orientation"> |
||||
<enum>Qt::Horizontal</enum> |
||||
</property> |
||||
<property name="standardButtons"> |
||||
<set>QDialogButtonBox::Ok</set> |
||||
</property> |
||||
</widget> |
||||
<widget class="QLabel" name="label"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>10</x> |
||||
<y>10</y> |
||||
<width>381</width> |
||||
<height>17</height> |
||||
</rect> |
||||
</property> |
||||
<property name="text"> |
||||
<string><html><head/><body><p><span style=" font-weight:600;">About i2pd_qt</span></p></body></html></string> |
||||
</property> |
||||
</widget> |
||||
<widget class="QLabel" name="label_2"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>10</x> |
||||
<y>40</y> |
||||
<width>131</width> |
||||
<height>17</height> |
||||
</rect> |
||||
</property> |
||||
<property name="text"> |
||||
<string>i2pd Version:</string> |
||||
</property> |
||||
</widget> |
||||
<widget class="QLabel" name="label_3"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>10</x> |
||||
<y>70</y> |
||||
<width>131</width> |
||||
<height>17</height> |
||||
</rect> |
||||
</property> |
||||
<property name="text"> |
||||
<string>Build Date/Time:</string> |
||||
</property> |
||||
</widget> |
||||
<widget class="QLabel" name="i2pdVersionLabel"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>150</x> |
||||
<y>40</y> |
||||
<width>241</width> |
||||
<height>20</height> |
||||
</rect> |
||||
</property> |
||||
<property name="text"> |
||||
<string>I2PD_VERSION_LABEL</string> |
||||
</property> |
||||
</widget> |
||||
<widget class="QLabel" name="label_4"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>10</x> |
||||
<y>130</y> |
||||
<width>131</width> |
||||
<height>17</height> |
||||
</rect> |
||||
</property> |
||||
<property name="text"> |
||||
<string>I2P Version:</string> |
||||
</property> |
||||
</widget> |
||||
<widget class="QLabel" name="i2pVersionLabel"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>150</x> |
||||
<y>130</y> |
||||
<width>241</width> |
||||
<height>17</height> |
||||
</rect> |
||||
</property> |
||||
<property name="text"> |
||||
<string>I2P_VERSION_LABEL</string> |
||||
</property> |
||||
</widget> |
||||
<widget class="QLabel" name="buildDateTimeLabel"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>150</x> |
||||
<y>70</y> |
||||
<width>241</width> |
||||
<height>20</height> |
||||
</rect> |
||||
</property> |
||||
<property name="text"> |
||||
<string>BUILD_DATE_TIME_LABEL</string> |
||||
</property> |
||||
</widget> |
||||
<widget class="QLabel" name="label_5"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>10</x> |
||||
<y>100</y> |
||||
<width>131</width> |
||||
<height>17</height> |
||||
</rect> |
||||
</property> |
||||
<property name="text"> |
||||
<string>Version Control:</string> |
||||
</property> |
||||
</widget> |
||||
<widget class="QLabel" name="vcsCommitInfoLabel"> |
||||
<property name="geometry"> |
||||
<rect> |
||||
<x>150</x> |
||||
<y>100</y> |
||||
<width>241</width> |
||||
<height>17</height> |
||||
</rect> |
||||
</property> |
||||
<property name="text"> |
||||
<string>VCS_COMMIT_INFO_LABEL</string> |
||||
</property> |
||||
</widget> |
||||
</widget> |
||||
<resources> |
||||
<include location="i2pd.qrc"/> |
||||
</resources> |
||||
<connections> |
||||
<connection> |
||||
<sender>buttonBox</sender> |
||||
<signal>accepted()</signal> |
||||
<receiver>AboutDialog</receiver> |
||||
<slot>accept()</slot> |
||||
<hints> |
||||
<hint type="sourcelabel"> |
||||
<x>248</x> |
||||
<y>254</y> |
||||
</hint> |
||||
<hint type="destinationlabel"> |
||||
<x>157</x> |
||||
<y>274</y> |
||||
</hint> |
||||
</hints> |
||||
</connection> |
||||
<connection> |
||||
<sender>buttonBox</sender> |
||||
<signal>rejected()</signal> |
||||
<receiver>AboutDialog</receiver> |
||||
<slot>reject()</slot> |
||||
<hints> |
||||
<hint type="sourcelabel"> |
||||
<x>316</x> |
||||
<y>260</y> |
||||
</hint> |
||||
<hint type="destinationlabel"> |
||||
<x>286</x> |
||||
<y>274</y> |
||||
</hint> |
||||
</hints> |
||||
</connection> |
||||
</connections> |
||||
</ui> |
@ -0,0 +1,7 @@
@@ -0,0 +1,7 @@
|
||||
#ifndef BUILDDATETIMEQT_H |
||||
#define BUILDDATETIMEQT_H |
||||
|
||||
#include <QString> |
||||
const QString BUILD_DATE_TIME_QT = QStringLiteral(__DATE__ " " __TIME__); |
||||
|
||||
#endif // BUILDDATETIMEQT_H
|
Loading…
Reference in new issue