-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a basic about dialog to allow developers to easily check the current
browser and AXR core versions. This completes part of issue #2 but can't consider it closed yet since we still need more information displayed as well as a nicer design.
- Loading branch information
1 parent
e1a054b
commit 7913663
Showing
8 changed files
with
242 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/******************************************************************** | ||
* a A | ||
* AM\/MA | ||
* (MA:MMD | ||
* :: VD | ||
* :: º | ||
* :: | ||
* :: ** .A$MMMMND AMMMD AMMM6 MMMM MMMM6 | ||
+ 6::Z. TMMM MMMMMMMMMDA VMMMD AMMM6 MMMMMMMMM6 | ||
* 6M:AMMJMMOD V MMMA VMMMD AMMM6 MMMMMMM6 | ||
* :: TMMTMC ___MMMM VMMMMMMM6 MMMM | ||
* MMM TMMMTTM, AMMMMMMMM VMMMMM6 MMMM | ||
* :: MM TMMTMMMD MMMMMMMMMM MMMMMM MMMM | ||
* :: MMMTTMMM6 MMMMMMMMMMM AMMMMMMD MMMM | ||
* :. MMMMMM6 MMMM MMMM AMMMMMMMMD MMMM | ||
* TTMMT MMMM MMMM AMMM6 MMMMD MMMM | ||
* TMMMM8 MMMMMMMMMMM AMMM6 MMMMD MMMM | ||
* TMMMMMM$ MMMM6 MMMM AMMM6 MMMMD MMMM | ||
* TMMM MMMM | ||
* TMMM .MMM | ||
* TMM .MMD ARBITRARY·······XML········RENDERING | ||
* TMM MMA ==================================== | ||
* TMN MM | ||
* MN ZM | ||
* MM, | ||
* | ||
* | ||
* AUTHORS: see AUTHORS file | ||
* | ||
* COPYRIGHT: ©2012 - All Rights Reserved | ||
* | ||
* LICENSE: see LICENSE file | ||
* | ||
* WEB: http://axr.vg | ||
* | ||
* THIS CODE AND INFORMATION ARE PROVIDED "AS IS" | ||
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | ||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR | ||
* FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
********************************************************************/ | ||
|
||
#include "aboutdialog.h" | ||
#include "ui_aboutdialog.h" | ||
#include "config.h" | ||
#include "AXRGlobal.h" | ||
|
||
AboutDialog::AboutDialog(QWidget *parent) : | ||
QDialog(parent), | ||
ui(new Ui::AboutDialog) | ||
{ | ||
ui->setupUi(this); | ||
|
||
ui->mainLabel->setText(ui->mainLabel->text() | ||
.arg(BROWSER_VERSION_STRING) | ||
.arg(__TIMESTAMP__) | ||
.arg(AXR_VERSION_STRING) | ||
.arg(axrVersionString())); | ||
} | ||
|
||
AboutDialog::~AboutDialog() | ||
{ | ||
delete ui; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/******************************************************************** | ||
* a A | ||
* AM\/MA | ||
* (MA:MMD | ||
* :: VD | ||
* :: º | ||
* :: | ||
* :: ** .A$MMMMND AMMMD AMMM6 MMMM MMMM6 | ||
+ 6::Z. TMMM MMMMMMMMMDA VMMMD AMMM6 MMMMMMMMM6 | ||
* 6M:AMMJMMOD V MMMA VMMMD AMMM6 MMMMMMM6 | ||
* :: TMMTMC ___MMMM VMMMMMMM6 MMMM | ||
* MMM TMMMTTM, AMMMMMMMM VMMMMM6 MMMM | ||
* :: MM TMMTMMMD MMMMMMMMMM MMMMMM MMMM | ||
* :: MMMTTMMM6 MMMMMMMMMMM AMMMMMMD MMMM | ||
* :. MMMMMM6 MMMM MMMM AMMMMMMMMD MMMM | ||
* TTMMT MMMM MMMM AMMM6 MMMMD MMMM | ||
* TMMMM8 MMMMMMMMMMM AMMM6 MMMMD MMMM | ||
* TMMMMMM$ MMMM6 MMMM AMMM6 MMMMD MMMM | ||
* TMMM MMMM | ||
* TMMM .MMM | ||
* TMM .MMD ARBITRARY·······XML········RENDERING | ||
* TMM MMA ==================================== | ||
* TMN MM | ||
* MN ZM | ||
* MM, | ||
* | ||
* | ||
* AUTHORS: see AUTHORS file | ||
* | ||
* COPYRIGHT: ©2012 - All Rights Reserved | ||
* | ||
* LICENSE: see LICENSE file | ||
* | ||
* WEB: http://axr.vg | ||
* | ||
* THIS CODE AND INFORMATION ARE PROVIDED "AS IS" | ||
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | ||
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR | ||
* FITNESS FOR A PARTICULAR PURPOSE. | ||
* | ||
********************************************************************/ | ||
|
||
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>AboutDialog</class> | ||
<widget class="QDialog" name="AboutDialog"> | ||
<property name="windowModality"> | ||
<enum>Qt::ApplicationModal</enum> | ||
</property> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>400</width> | ||
<height>250</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>About AXR Browser</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QLabel" name="mainLabel"> | ||
<property name="text"> | ||
<string><html><head/><body><p align="center"><span style=" font-size:18pt; font-weight:600;">AXR Browser</span></p><p><span style=" font-weight:600;">Version:</span> %1 (built %2)</p><p><span style=" font-weight:600;">AXR core version:</span> %3 (runtime version %4)</p></body></html></string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="verticalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Vertical</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>20</width> | ||
<height>40</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="copyrightLabel"> | ||
<property name="text"> | ||
<string>Copyright (c) 2010-2012 AXR Project Contributors. All Rights Reserved.</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="standardButtons"> | ||
<set>QDialogButtonBox::Ok</set> | ||
</property> | ||
<property name="centerButtons"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule core
updated
3 files
+1 −0 | src/CMakeLists.txt | |
+60 −0 | src/core/AXRGlobal.cpp | |
+12 −0 | src/core/AXRGlobal.h |