diff options
Diffstat (limited to 'src-qt5/desktop-utils/lumina-mediaplayer')
7 files changed, 26 insertions, 25 deletions
diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_el.ts b/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_el.ts index 02de6b9d..d460b6c5 100644 --- a/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_el.ts +++ b/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_el.ts @@ -154,17 +154,17 @@ <message> <location filename="../mainUI.ui" line="681"/> <source>File</source> - <translation type="unfinished"></translation> + <translation>Αρχείο</translation> </message> <message> <location filename="../mainUI.ui" line="688"/> <source>View</source> - <translation type="unfinished"></translation> + <translation>Προβολή</translation> </message> <message> <location filename="../mainUI.ui" line="699"/> <source>toolBar</source> - <translation type="unfinished"></translation> + <translation>Μπάρα Εργαλείων</translation> </message> <message> <location filename="../mainUI.ui" line="726"/> diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_es.ts b/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_es.ts index eaa89e7a..f45dd9d0 100644 --- a/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_es.ts +++ b/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_es.ts @@ -159,12 +159,12 @@ <message> <location filename="../mainUI.ui" line="688"/> <source>View</source> - <translation type="unfinished"></translation> + <translation>Ver</translation> </message> <message> <location filename="../mainUI.ui" line="699"/> <source>toolBar</source> - <translation type="unfinished"></translation> + <translation>Barra de Herramientas</translation> </message> <message> <location filename="../mainUI.ui" line="726"/> @@ -219,7 +219,7 @@ <message> <location filename="../mainUI.ui" line="770"/> <source>Ctrl+Q</source> - <translation type="unfinished"></translation> + <translation>Ctrl+Q</translation> </message> <message> <location filename="../mainUI.ui" line="784"/> diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_fr.ts b/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_fr.ts index 753476cc..202bde66 100644 --- a/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_fr.ts +++ b/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_fr.ts @@ -7,24 +7,24 @@ <location filename="../mainUI.ui" line="14"/> <location filename="../mainUI.cpp" line="285"/> <source>Media Player</source> - <translation type="unfinished"></translation> + <translation>Lecteur Multimédia</translation> </message> <message> <location filename="../mainUI.ui" line="50"/> <location filename="../mainUI.ui" line="261"/> <location filename="../mainUI.cpp" line="631"/> <source>Now Playing</source> - <translation type="unfinished"></translation> + <translation>Lecture en Cours</translation> </message> <message> <location filename="../mainUI.ui" line="74"/> <source>(No Running Video)</source> - <translation type="unfinished"></translation> + <translation>Pas de Vidéo en Cours d'Exécution</translation> </message> <message> <location filename="../mainUI.ui" line="105"/> <source>Playlist</source> - <translation type="unfinished"></translation> + <translation>Playlist</translation> </message> <message> <location filename="../mainUI.ui" line="167"/> @@ -154,7 +154,7 @@ <message> <location filename="../mainUI.ui" line="681"/> <source>File</source> - <translation type="unfinished"></translation> + <translation>Fichier</translation> </message> <message> <location filename="../mainUI.ui" line="688"/> @@ -164,7 +164,7 @@ <message> <location filename="../mainUI.ui" line="699"/> <source>toolBar</source> - <translation type="unfinished"></translation> + <translation>Barre d'outils</translation> </message> <message> <location filename="../mainUI.ui" line="726"/> diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_ru.ts b/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_ru.ts index 8c0859f3..4cbc8899 100644 --- a/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_ru.ts +++ b/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_ru.ts @@ -104,7 +104,7 @@ <message> <location filename="../mainUI.ui" line="512"/> <source>Settings</source> - <translation type="unfinished"></translation> + <translation>Настройки</translation> </message> <message> <location filename="../mainUI.ui" line="521"/> @@ -159,12 +159,12 @@ <message> <location filename="../mainUI.ui" line="688"/> <source>View</source> - <translation type="unfinished"></translation> + <translation>Вид</translation> </message> <message> <location filename="../mainUI.ui" line="699"/> <source>toolBar</source> - <translation type="unfinished"></translation> + <translation>Панель инструментов</translation> </message> <message> <location filename="../mainUI.ui" line="726"/> @@ -214,7 +214,7 @@ <message> <location filename="../mainUI.ui" line="767"/> <source>Close Application</source> - <translation type="unfinished"></translation> + <translation>Закрыть приложение</translation> </message> <message> <location filename="../mainUI.ui" line="770"/> diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_zh_CN.ts b/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_zh_CN.ts index 68c93782..5730b72f 100644 --- a/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_zh_CN.ts +++ b/src-qt5/desktop-utils/lumina-mediaplayer/i18n/l-mediap_zh_CN.ts @@ -104,7 +104,7 @@ <message> <location filename="../mainUI.ui" line="512"/> <source>Settings</source> - <translation type="unfinished"></translation> + <translation>设置</translation> </message> <message> <location filename="../mainUI.ui" line="521"/> @@ -159,7 +159,7 @@ <message> <location filename="../mainUI.ui" line="688"/> <source>View</source> - <translation type="unfinished"></translation> + <translation>查看</translation> </message> <message> <location filename="../mainUI.ui" line="699"/> @@ -214,7 +214,7 @@ <message> <location filename="../mainUI.ui" line="767"/> <source>Close Application</source> - <translation type="unfinished"></translation> + <translation>关闭应用程序</translation> </message> <message> <location filename="../mainUI.ui" line="770"/> diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/main.cpp b/src-qt5/desktop-utils/lumina-mediaplayer/main.cpp index 9eebff9f..18b6d73e 100644 --- a/src-qt5/desktop-utils/lumina-mediaplayer/main.cpp +++ b/src-qt5/desktop-utils/lumina-mediaplayer/main.cpp @@ -16,6 +16,7 @@ int main(int argc, char *argv[]) { LTHEME::LoadCustomEnvSettings(); LSingleApplication a(argc, argv, "l-mediap"); + if(!a.isPrimaryProcess()){ return 0; } //Now go ahead and setup the app QStringList args; for(int i=1; i<argc; i++){ diff --git a/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.cpp b/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.cpp index dfd859d7..cfb6823c 100644 --- a/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.cpp +++ b/src-qt5/desktop-utils/lumina-mediaplayer/mainUI.cpp @@ -22,7 +22,7 @@ MainUI::MainUI() : QMainWindow(), ui(new Ui::MainUI()){ ui->setupUi(this); SETTINGS = LUtils::openSettings("lumina-desktop","lumina-mediaplayer",this); closing = false; - DISABLE_VIDEO = true; //add a toggle in the UI for this later + DISABLE_VIDEO = false; //add a toggle in the UI for this later //Any special UI changes QWidget *spacer = new QWidget(this); spacer->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred); @@ -69,7 +69,7 @@ void MainUI::loadArguments(QStringList args){ void MainUI::setupPlayer(){ PLAYER = new QMediaPlayer(this); //base multimedia object VIDEO = new QVideoWidget(this); //output to this widget for video - PLAYLIST = new QMediaPlaylist(PLAYER); //pull from this playlist + PLAYLIST = new QMediaPlaylist(PLAYER); //pull from this playlist ui->videoLayout->addWidget(VIDEO); //Now setup the interfaces between all these objects @@ -262,13 +262,13 @@ void MainUI::closeApplication(){ QTimer::singleShot(500, this, SLOT(close()) ); }else{ this->close(); - } + } } void MainUI::PlayerTypeChanged(bool active){ if(!active){ return; } //this gets rid of the "extra" signals from the radio button functionality (1 signal from each button on change) - if(ui->radio_pandora->isChecked()){ - ui->stackedWidget->setCurrentWidget(ui->page_pandora); + if(ui->radio_pandora->isChecked()){ + ui->stackedWidget->setCurrentWidget(ui->page_pandora); PandoraStateChanged(PANDORA->currentState()); QIcon ico = LXDG::findIcon("pandora",":pandora"); SYSTRAY->setIcon( ico ); @@ -276,7 +276,7 @@ void MainUI::PlayerTypeChanged(bool active){ this->setWindowTitle( tr("Pandora Radio") ); //Now hide/deactivate any toolbar buttons which are not used ui->actionBack->setVisible(!ui->radio_pandora->isChecked()); - }else{ + }else{ ui->stackedWidget->setCurrentWidget(ui->page_local); LocalStateChanged(QMediaPlayer::StoppedState); QIcon ico = LXDG::findIcon("media-playlist-audio","audio-x-generic"); |