-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #10 finalize standalone version
- Loading branch information
Showing
16 changed files
with
313 additions
and
89 deletions.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#ifndef CHANGELOGDIALOG_H | ||
#define CHANGELOGDIALOG_H | ||
|
||
#include <QDialog> | ||
#include <QFile> | ||
#include <QTextStream> | ||
|
||
#include "ui_changelogdialog.h" | ||
|
||
namespace Ui { | ||
class ChangelogDialog; | ||
} | ||
|
||
|
||
/** | ||
* @brief Simple dialog with a rich text viewer | ||
*/ | ||
class ChangelogDialog : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
private: | ||
Ui::ChangelogDialog *ui; | ||
|
||
public: | ||
ChangelogDialog(QWidget* _parent = 0) : | ||
QDialog(_parent), | ||
ui(new Ui::ChangelogDialog) | ||
{ | ||
ui->setupUi(this); | ||
|
||
QFile file; | ||
QString lang = QLocale::system().name().section('_', 0, 0); | ||
if (lang.compare("fr")==0) | ||
{ | ||
file.setFileName(":/lang/fr_FR/changelog.htm"); | ||
} | ||
else | ||
{ | ||
file.setFileName(":/lang/en_GB/changelog.htm"); | ||
} | ||
|
||
QString text; | ||
text.append("<style>"); | ||
text.append("* { font-family: \"Arial\", sans-serif; font-size: 12px; }"); | ||
text.append("p { font-size:14px; }"); | ||
text.append("dt { font-weight:bold; color:#4078C0; font-size:16px; }"); | ||
text.append("dd { margin:0 0 2em 0; }"); | ||
text.append("</style>"); | ||
|
||
file.open(QIODevice::ReadOnly); | ||
QTextStream content(&file); | ||
content.setCodec("UTF-8"); | ||
text.append(content.readAll()); | ||
file.close(); | ||
|
||
ui->content->setText(text); | ||
|
||
setWindowTitle(tr("Changelog")); | ||
} | ||
|
||
~ChangelogDialog() | ||
{ | ||
delete ui; | ||
} | ||
}; | ||
|
||
#endif // CHANGELOGDIALOG_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,74 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>ChangelogDialog</class> | ||
<widget class="QDialog" name="ChangelogDialog"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>450</width> | ||
<height>400</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Changelog</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QTextEdit" name="content"> | ||
<property name="readOnly"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QDialogButtonBox" name="buttonBox"> | ||
<property name="orientation"> | ||
<enum>Qt::Horizontal</enum> | ||
</property> | ||
<property name="standardButtons"> | ||
<set>QDialogButtonBox::Close</set> | ||
</property> | ||
<property name="centerButtons"> | ||
<bool>true</bool> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections> | ||
<connection> | ||
<sender>buttonBox</sender> | ||
<signal>accepted()</signal> | ||
<receiver>ChangelogDialog</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>ChangelogDialog</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<dl> | ||
<dt>Version 2.0.0 <small>June 28th 2015</small></dt> | ||
<dd> | ||
<p><b>UMWP Autochanger has a new name !</b> Now it is <b style="color:red;">Ultimate Monitor Wallpaper Autochanger</b>. It was renamed because it does not depend on UltraMon anymore and is completely autonomous.</p> | ||
|
||
<ul> | ||
<li>Delete all dependencies to UltraMon.</li> | ||
<li>Allows to edit keyboard hotkeys of multiple sets in one time.</li> | ||
<li>Adds a "Open directory" button in the context menu.</li> | ||
<li>Allows to hide the closing warning.</li> | ||
</ul> | ||
</dd> | ||
</dl> |
Oops, something went wrong.