</message>
<message>
<location filename="../src/ui/aboutform.ui" line="103"/>
- <source><b>SomePlayer 1.4.3</b> </source>
- <translation><b>SomePlayer 1.4.3</b> </translation>
+ <source><b>SomePlayer 1.5.0</b> </source>
+ <translation><b>SomePlayer 1.5.0</b></translation>
</message>
<message>
<location filename="../src/ui/aboutform.ui" line="128"/>
</message>
<message>
<location filename="../src/ui/aboutform.ui" line="175"/>
- <source><p align="center"><b>Thanks to:</b></p>
-<p align="center">MrClon (maemoworld.ru)<br>hxka (maemoworld.ru)<br>jerich0 (maemoworld.ru)<br>lknfox (maemoworld.ru)<br>fab (maemoworld.ru)<br>and other people who tested this player</p></source>
- <translation><p align="center"><b>Автор благодарен:</b></p>
-<p align="center">MrClon (maemoworld.ru)<br>hxka (maemoworld.ru)<br>jerich0 (maemoworld.ru)<br>lknfox (maemoworld.ru)<br>fab (maemoworld.ru)<br>и всем другим, кто помогал в разработке и тестировании плеера</p></translation>
+ <source><p align="center">
+<b>Thanks to:</b><br>
+MrClon (maemoworld.ru)<br />hxka (maemoworld.ru)<br />jerich0 (maemoworld.ru)<br />lknfox (maemoworld.ru)<br />fab (maemoworld.ru)<br />Pantera1989m (github.com)<br />and other people who tested this player and helped in development</p></source>
+ <translation><p align="center">
+<b>Автор благодарен:</b><br>
+MrClon (maemoworld.ru)<br />hxka (maemoworld.ru)<br />jerich0 (maemoworld.ru)<br />lknfox (maemoworld.ru)<br />fab (maemoworld.ru)<br />Pantera1989m (github.com)<br />и всем кто помогал в разработке и тестировании плеера</p></translation>
+ </message>
+ <message>
+ <location filename="../src/ui/aboutform.ui" line="189"/>
+ <source>Online help</source>
+ <translation>Онлайн справка</translation>
+ </message>
+ <message>
+ <location filename="../src/ui/aboutform.ui" line="196"/>
+ <source>Donate</source>
+ <translation>Donate</translation>
</message>
</context>
<context>
</message>
<message>
<location filename="../src/libraryform.cpp" line="226"/>
- <location filename="../src/libraryform.cpp" line="414"/>
+ <location filename="../src/libraryform.cpp" line="415"/>
<source>Albums by "%1"</source>
<translation>Альбомы "%1"</translation>
</message>
<translation>Треки в плейлисте "%1"</translation>
</message>
<message>
- <location filename="../src/libraryform.cpp" line="438"/>
+ <location filename="../src/libraryform.cpp" line="439"/>
<source>Playlists</source>
<translation>Плейлисты</translation>
</message>
<message>
- <location filename="../src/libraryform.cpp" line="816"/>
+ <location filename="../src/libraryform.cpp" line="817"/>
<source>Search in library</source>
<translation>Поиск в библиотеке</translation>
</message>
<translation><h3>Название</h3></translation>
</message>
<message>
- <location filename="../src/ui/playerform.ui" line="535"/>
- <location filename="../src/ui/playerform.ui" line="555"/>
+ <location filename="../src/ui/playerform.ui" line="538"/>
+ <location filename="../src/ui/playerform.ui" line="558"/>
<source>00:00</source>
<translation>00:00</translation>
</message>
<message>
- <location filename="../src/ui/playerform.ui" line="631"/>
+ <location filename="../src/ui/playerform.ui" line="634"/>
<source><b>Artist</b><br/>album</source>
<translation><b>Исполнитель</b><br/>альбом</translation>
</message>
<message>
<location filename="../src/playerform.cpp" line="91"/>
- <location filename="../src/playerform.cpp" line="762"/>
+ <location filename="../src/playerform.cpp" line="771"/>
<source>Clear playlist</source>
<translation>Очистить плейлист</translation>
</message>
<message>
<location filename="../src/playerform.cpp" line="92"/>
- <location filename="../src/playerform.cpp" line="763"/>
+ <location filename="../src/playerform.cpp" line="772"/>
<source>Delete</source>
<translation>Удалить</translation>
</message>
<message>
<location filename="../src/playerform.cpp" line="93"/>
<location filename="../src/playerform.cpp" line="239"/>
- <location filename="../src/playerform.cpp" line="314"/>
- <location filename="../src/playerform.cpp" line="764"/>
+ <location filename="../src/playerform.cpp" line="279"/>
+ <location filename="../src/playerform.cpp" line="773"/>
<source>Add to favorites</source>
<translation>В избранное</translation>
</message>
<message>
<location filename="../src/playerform.cpp" line="94"/>
- <location filename="../src/playerform.cpp" line="765"/>
+ <location filename="../src/playerform.cpp" line="774"/>
<source>Enqueue</source>
<translation>В очередь</translation>
</message>
<message>
<location filename="../src/playerform.cpp" line="95"/>
- <location filename="../src/playerform.cpp" line="766"/>
+ <location filename="../src/playerform.cpp" line="775"/>
<source>Add to playlists</source>
<translation>Добавить в плейлисты</translation>
</message>
<message>
<location filename="../src/playerform.cpp" line="96"/>
- <location filename="../src/playerform.cpp" line="767"/>
+ <location filename="../src/playerform.cpp" line="776"/>
<source>Edit tags</source>
<translation>Редактировать теги</translation>
</message>
<message>
<location filename="../src/playerform.cpp" line="239"/>
- <location filename="../src/playerform.cpp" line="314"/>
+ <location filename="../src/playerform.cpp" line="279"/>
<source>Remove from favorites</source>
<translation>Удалить из избранного</translation>
</message>
- <message>
- <location filename="../src/playerform.cpp" line="275"/>
- <source>Delete track?</source>
- <translation>Удалить трек?</translation>
- </message>
</context>
<context>
<name>PlaylistDialog</name>
#include "aboutform.h"
#include "ui_aboutform.h"
#include "config.h"
+#include <QWebView>
+#include <QDebug>
using namespace SomePlayer::Storage;
updateTranslations();
setAttribute(Qt::WA_Maemo5StackedWindow);
setWindowFlags(Qt::Window | windowFlags());
+ connect(ui->onlineHelpButton, SIGNAL(clicked()), this, SLOT(onlineHelp()));
+ ui->donateButton->hide();
}
AboutForm::~AboutForm()
void AboutForm::updateTranslations() {
ui->retranslateUi(this);
}
+
+void AboutForm::onlineHelp() {
+ Config config;
+ QWebView *view = new QWebView(this);
+ view->setAttribute(Qt::WA_Maemo5StackedWindow);
+ view->setWindowFlags(Qt::Window | view->windowFlags());
+ QString lang = config.getValue("ui/language").toString();
+ QString icons_theme = config.getValue("ui/iconstheme").toString();
+ QColor background = palette().color(QPalette::Active, QPalette::Background);
+ QColor text = palette().color(QPalette::Active, QPalette::Text);
+ QString paramBg = QString("%1:%2:%3").arg(background.red()).arg(background.blue()).arg(background.green());
+ QString paramText = QString("%1:%2:%3").arg(text.red()).arg(text.blue()).arg(text.green());
+ QString url = QString("http://someplayer.some-body.ru/help.php?bg=%1&text=%2&lang=%3&iconstheme=%4")
+ .arg(paramBg).arg(paramText).arg(lang).arg(icons_theme);
+ view->load(QUrl(url));
+ view->show();
+}
+
+void AboutForm::donate() {
+}
<property name="geometry">
<rect>
<x>0</x>
- <y>0</y>
+ <y>-208</y>
<width>550</width>
- <height>511</height>
+ <height>547</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item row="1" column="0" colspan="3">
<widget class="QLabel" name="nameLabel">
<property name="text">
- <string><b>SomePlayer 1.4.3</b> </string>
+ <string><b>SomePlayer 1.5.0</b> </string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
<item>
<widget class="QLabel" name="thanksToLabel">
<property name="text">
- <string><p align="center"><b>Thanks to:</b></p>
-<p align="center">MrClon (maemoworld.ru)<br>hxka (maemoworld.ru)<br>jerich0 (maemoworld.ru)<br>lknfox (maemoworld.ru)<br>fab (maemoworld.ru)<br>and other people who tested this player</p></string>
+ <string><p align="center">
+<b>Thanks to:</b><br>
+MrClon (maemoworld.ru)<br />hxka (maemoworld.ru)<br />jerich0 (maemoworld.ru)<br />lknfox (maemoworld.ru)<br />fab (maemoworld.ru)<br />Pantera1989m (github.com)<br />and other people who tested this player and helped in development</p></string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
+ <item>
+ <layout class="QHBoxLayout" name="horizontalLayout">
+ <item>
+ <widget class="QPushButton" name="onlineHelpButton">
+ <property name="text">
+ <string>Online help</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QPushButton" name="donateButton">
+ <property name="text">
+ <string>Donate</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </item>
</layout>
</widget>
</widget>