diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-04-12 23:37:24 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-04-12 23:37:24 +0800 |
commit | 43ae9bb08b7f3f18028fa8663a6077f4ae1ccbca (patch) | |
tree | b957cdb79e2af63fd7222c63b9a79e307de4834f /qmidiplayer-desktop | |
parent | cd09a7e8a42c8f3617cfe3c57eed3b96bcfd2ec5 (diff) | |
download | QMidiPlayer-43ae9bb08b7f3f18028fa8663a6077f4ae1ccbca.tar.xz |
Mysterious Mountain. (Partially fixed #2)
Diffstat (limited to 'qmidiplayer-desktop')
-rw-r--r-- | qmidiplayer-desktop/main.cpp | 9 | ||||
-rw-r--r-- | qmidiplayer-desktop/menu/qmidiplayer | 3 | ||||
-rw-r--r-- | qmidiplayer-desktop/qmidiplayer-desktop.pro | 21 | ||||
-rw-r--r-- | qmidiplayer-desktop/qmidiplayer.appdata.xml | 24 | ||||
-rw-r--r-- | qmidiplayer-desktop/qmidiplayer.desktop | 10 | ||||
-rw-r--r-- | qmidiplayer-desktop/qmpchanneleditor.cpp | 5 | ||||
-rw-r--r-- | qmidiplayer-desktop/qmphelpwindow.cpp | 4 | ||||
-rw-r--r-- | qmidiplayer-desktop/qmpmainwindow.cpp | 58 | ||||
-rw-r--r-- | qmidiplayer-desktop/qmpplistwindow.cpp | 24 | ||||
-rw-r--r-- | qmidiplayer-desktop/resources.qrc | 10 | ||||
-rw-r--r-- | qmidiplayer-desktop/translations/qmp_zh_CN.ts | 796 |
11 files changed, 926 insertions, 38 deletions
diff --git a/qmidiplayer-desktop/main.cpp b/qmidiplayer-desktop/main.cpp index c9f3b42..3a7e630 100644 --- a/qmidiplayer-desktop/main.cpp +++ b/qmidiplayer-desktop/main.cpp @@ -18,10 +18,19 @@ #include "qmpmainwindow.hpp" #include <QApplication> #include <QStyle> +#include <QTranslator> +#include <QLibraryInfo> int main(int argc,char **argv) { QApplication a(argc,argv); + QTranslator qtTranslator; + qtTranslator.load("qt_"+QLocale::system().name(), + QLibraryInfo::location(QLibraryInfo::TranslationsPath)); + a.installTranslator(&qtTranslator); + QTranslator qmpTranslator; + qmpTranslator.load("qmp_"+QLocale::system().name()); + a.installTranslator(&qmpTranslator); qmpMainWindow w; if(w.pharseArgs(argc,argv)==1)return 0; diff --git a/qmidiplayer-desktop/menu/qmidiplayer b/qmidiplayer-desktop/menu/qmidiplayer new file mode 100644 index 0000000..f48afae --- /dev/null +++ b/qmidiplayer-desktop/menu/qmidiplayer @@ -0,0 +1,3 @@ +?package(qmidiplayer):needs="X11" section="Applications/Sound"\ + title="qmidiplayer" command="/usr/bin/qmidiplayer" hints="MIDI Player"\ + icon="/usr/share/pixmaps/qmidiplayer.xpm" diff --git a/qmidiplayer-desktop/qmidiplayer-desktop.pro b/qmidiplayer-desktop/qmidiplayer-desktop.pro index 6ac0670..f4f29d4 100644 --- a/qmidiplayer-desktop/qmidiplayer-desktop.pro +++ b/qmidiplayer-desktop/qmidiplayer-desktop.pro @@ -51,13 +51,32 @@ FORMS += qmpmainwindow.ui \ qmpsettingswindow.ui \ qmphelpwindow.ui +TRANSLATIONS += translations/qmp_zh_CN.ts + unix{ isEmpty(PREFIX) { PREFIX = /usr/local } BINDIR = $$PREFIX/bin target.path = $$BINDIR - INSTALLS += target + DATADIR = $$PREFIX/share + INSTALLS += target desktop iconbmp iconsvg iconxpm doc docimg appdata menu + desktop.path = $$DATADIR/applications + desktop.files += $${TARGET}.desktop + iconbmp.path = $$DATADIR/icons/hicolor/64x64/apps + iconbmp.files += ../img/qmidiplyr.png + iconsvg.path = $$DATADIR/icons/hicolor/scalable/apps + iconsvg.files += ../img/qmidiplyr.svg + iconxpm.path = $$DATADIR/pixmaps + iconxpm.files += ../img/qmidiplyr.xpm + doc.path = $$DATADIR/qmidiplayer/doc + doc.files += ../doc/* + docimg.path = $$DATADIR/qmidiplayer/img + docimg.files += ../img/mainw.png ../img/chanw.png ../img/chparaw.png ../img/qmidiplyr.png + appdata.path = $${DATADIR}/appdata + appdata.files += $${TARGET}.appdata.xml + menu.path = $${DATADIR}/menu + menu.files += ./menu/$${TARGET} QMAKE_CXXFLAGS += -Wall LIBS += -lfluidsynth -lrtmidi } diff --git a/qmidiplayer-desktop/qmidiplayer.appdata.xml b/qmidiplayer-desktop/qmidiplayer.appdata.xml new file mode 100644 index 0000000..c4afa10 --- /dev/null +++ b/qmidiplayer-desktop/qmidiplayer.appdata.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<component type="desktop"> + <id>qmidiplayer.desktop</id> + <metadata_license>GPL-3+</metadata_license> + <project_license>GPL-3+</project_license> + <name>QMidiPlayer</name> + <summary>A cross-platform midi file player based on libfluidsynth and Qt.</summary> + <description> + <p>QMidiPlayer is a cross-platform midi file player based on libfluidsynth and Qt.</p> + </description> + <screenshots> + <screenshot type="default"> + <image>https://chrisoft.org/QMidiPlayer/qmidiplyr.png</image> + <caption>The screenshot showing the application in action</caption> + </screenshot> + </screenshots> + <url type="homepage">https://chrisoft.org/QMidiPlayer/</url> + <updatecontact>chirs241097@gmail.com</updatecontact> + <project_group>chrisoft.org</project_group> + <kudos> + <kudo>HiDpiIcon</kudo> + <kudo>ModernToolkit</kudo> + </kudos> +</component> diff --git a/qmidiplayer-desktop/qmidiplayer.desktop b/qmidiplayer-desktop/qmidiplayer.desktop new file mode 100644 index 0000000..38fae66 --- /dev/null +++ b/qmidiplayer-desktop/qmidiplayer.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=QMidiPlayer +Version=0.7.2 +GenericName=MIDI Player +Comment=QMidiPlayer is a midi file player based on Fluidsynth and Qt. +Exec=/usr/bin/qmidiplayer +Icon=qmidiplyr +Categories=Audio;AudioVideo;Midi;X-Alsa;X-Jack;Qt; +Terminal=false +Type=Application diff --git a/qmidiplayer-desktop/qmpchanneleditor.cpp b/qmidiplayer-desktop/qmpchanneleditor.cpp index f1d4e5e..9b61e64 100644 --- a/qmidiplayer-desktop/qmpchanneleditor.cpp +++ b/qmidiplayer-desktop/qmpchanneleditor.cpp @@ -7,7 +7,7 @@ qmpChannelEditor::qmpChannelEditor(QWidget *parent) : QDialog(parent), ui(new Ui::qmpChannelEditor) { - ui->setupUi(this); + ui->setupUi(this);ch=0; styl=new QDialSkulptureStyle(); QList<QDial*> dials=findChildren<QDial*>(); for(int i=0;i<dials.count();++i) @@ -23,8 +23,7 @@ qmpChannelEditor::~qmpChannelEditor() void qmpChannelEditor::setupWindow(int chid) { char str[256];if(~chid)ch=chid; - sprintf(str,"Channel Parameter Editor - Channel #%d",ch+1); - setWindowTitle(str); + setWindowTitle(tr("Channel Parameter Editor - Channel #%1").arg(ch+1)); CMidiPlayer* player=qmpMainWindow::getInstance()->getPlayer(); int b,p; player->getChannelPreset(ch,&b,&p,str); diff --git a/qmidiplayer-desktop/qmphelpwindow.cpp b/qmidiplayer-desktop/qmphelpwindow.cpp index 10cf083..69e29d0 100644 --- a/qmidiplayer-desktop/qmphelpwindow.cpp +++ b/qmidiplayer-desktop/qmphelpwindow.cpp @@ -8,7 +8,7 @@ qmpHelpWindow::qmpHelpWindow(QWidget *parent) : { ui->setupUi(this); ui->textBrowser->setSearchPaths(QStringList(QString(":/doc"))+QStringList(QString(":/img"))); - ui->textBrowser->setSource(QUrl("qrc:///doc/index.html")); + ui->textBrowser->setSource(QUrl("qrc:///doc/index_internal.html")); } qmpHelpWindow::~qmpHelpWindow() @@ -18,7 +18,7 @@ qmpHelpWindow::~qmpHelpWindow() void qmpHelpWindow::on_textBrowser_sourceChanged(const QUrl &src) { - if(src.fileName()==QString("version.html")) + if(src.fileName()==QString("version_internal.html")) { QString s=ui->textBrowser->toHtml(); s.replace("CT_QT_VERSION_STR",QT_VERSION_STR); diff --git a/qmidiplayer-desktop/qmpmainwindow.cpp b/qmidiplayer-desktop/qmpmainwindow.cpp index 37ca9f4..380b0c1 100644 --- a/qmidiplayer-desktop/qmpmainwindow.cpp +++ b/qmidiplayer-desktop/qmpmainwindow.cpp @@ -8,6 +8,30 @@ #include "../core/qmpmidiplay.hpp" #ifdef _WIN32 #include <Windows.h> +char* wcsto8bit(const wchar_t* s) +{ + int size=WideCharToMultiByte(CP_OEMCP,WC_NO_BEST_FIT_CHARS,s,-1,0,0,0,0); + char* c=(char*)calloc(size,sizeof(char)); + WideCharToMultiByte(CP_OEMCP,WC_NO_BEST_FIT_CHARS,s,-1,c,size,0,0); + return c; +} +#define LOAD_SOUNDFONT \ + {\ + char* c=wcsto8bit(settingsw->getSFWidget()->item(i)->text().toStdWString().c_str());\ + player->pushSoundFont(c);\ + free(c);\ + } +#define LOAD_FILE \ + {\ + char* c=wcsto8bit(fns.toStdWString().c_str());\ + if(!player->playerLoadFile(c)){free(c);return;}\ + free(c);\ + } +#else +#define LOAD_SOUNDFONT \ + player->pushSoundFont(settingsw->getSFWidget()->item(i)->text().toStdString().c_str()) +#define LOAD_FILE \ + if(!player->playerLoadFile(fns.toStdString().c_str()))return #endif #define UPDATE_INTERVAL 66 @@ -35,7 +59,7 @@ qmpMainWindow::qmpMainWindow(QWidget *parent) : ui->lbFileName->addAction(fnA2); if(singleFS){player->fluidPreInitialize();playerSetup();player->fluidInitialize(); for(int i=settingsw->getSFWidget()->count()-1;i>=0;--i) - player->pushSoundFont(settingsw->getSFWidget()->item(i)->text().toStdString().c_str());} + LOAD_SOUNDFONT;} if(qmpSettingsWindow::getSettingsIntf()->value("Behavior/DialogStatus",0).toInt()) { QRect g=geometry(); @@ -175,13 +199,13 @@ void qmpMainWindow::updateWidgets() chnlw->on_pbUnmute_clicked();chnlw->on_pbUnsolo_clicked(); QString fns=plistw->getNextItem(); ui->lbFileName->setText(QUrl(fns).fileName()); - if(!player->playerLoadFile(fns.toStdString().c_str()))return; + LOAD_FILE; char ts[100]; sprintf(ts,"%02d:%02d",(int)player->getFtime()/60,(int)player->getFtime()%60); ui->lbFinTime->setText(ts); player->playerInit();if(!singleFS){playerSetup();player->fluidInitialize(); for(int i=settingsw->getSFWidget()->count()-1;i>=0;--i) - player->pushSoundFont(settingsw->getSFWidget()->item(i)->text().toStdString().c_str());} + LOAD_SOUNDFONT;} player->setGain(ui->vsMasterVol->value()/250.);efxw->sendEfxChange(); player->setWaitVoice(qmpSettingsWindow::getSettingsIntf()->value("Midi/WaitVoice",1).toInt()); playerTh=new std::thread(&CMidiPlayer::playerThread,player); @@ -206,7 +230,7 @@ void qmpMainWindow::updateWidgets() playerSetup(); player->fluidInitialize(); for(int i=settingsw->getSFWidget()->count()-1;i>=0;--i) - player->pushSoundFont(settingsw->getSFWidget()->item(i)->text().toStdString().c_str()); + LOAD_SOUNDFONT; } } } @@ -275,13 +299,13 @@ void qmpMainWindow::on_pbPlayPause_clicked() if(!fns.length())return(void)(playing=false); } ui->lbFileName->setText(QUrl(fns).fileName()); - if(!player->playerLoadFile(fns.toStdString().c_str()))return; + LOAD_FILE; char ts[100]; sprintf(ts,"%02d:%02d",(int)player->getFtime()/60,(int)player->getFtime()%60); ui->lbFinTime->setText(ts); player->playerInit();if(!singleFS){playerSetup();player->fluidInitialize(); for(int i=settingsw->getSFWidget()->count()-1;i>=0;--i) - player->pushSoundFont(settingsw->getSFWidget()->item(i)->text().toStdString().c_str());} + LOAD_SOUNDFONT;} player->setGain(ui->vsMasterVol->value()/250.);efxw->sendEfxChange(); player->setWaitVoice(qmpSettingsWindow::getSettingsIntf()->value("Midi/WaitVoice",1).toInt()); playerTh=new std::thread(&CMidiPlayer::playerThread,player); @@ -399,13 +423,13 @@ void qmpMainWindow::on_pbPrev_clicked() ui->hsTimer->setValue(0);chnlw->on_pbUnmute_clicked();chnlw->on_pbUnsolo_clicked(); QString fns=plistw->getPrevItem();if(fns.length()==0)return on_pbStop_clicked(); ui->lbFileName->setText(QUrl(fns).fileName()); - if(!player->playerLoadFile(fns.toStdString().c_str()))return; + LOAD_FILE; char ts[100]; sprintf(ts,"%02d:%02d",(int)player->getFtime()/60,(int)player->getFtime()%60); ui->lbFinTime->setText(ts); player->playerInit();if(!singleFS){playerSetup();player->fluidInitialize(); for(int i=settingsw->getSFWidget()->count()-1;i>=0;--i) - player->pushSoundFont(settingsw->getSFWidget()->item(i)->text().toStdString().c_str());} + LOAD_SOUNDFONT;} player->setGain(ui->vsMasterVol->value()/250.);efxw->sendEfxChange(); player->setWaitVoice(qmpSettingsWindow::getSettingsIntf()->value("Midi/WaitVoice",1).toInt()); playerTh=new std::thread(&CMidiPlayer::playerThread,player); @@ -424,13 +448,13 @@ void qmpMainWindow::on_pbNext_clicked() ui->hsTimer->setValue(0);chnlw->on_pbUnmute_clicked();chnlw->on_pbUnsolo_clicked(); QString fns=plistw->getNextItem();if(fns.length()==0)return on_pbStop_clicked(); ui->lbFileName->setText(QUrl(fns).fileName()); - if(!player->playerLoadFile(fns.toStdString().c_str()))return; + LOAD_FILE; char ts[100]; sprintf(ts,"%02d:%02d",(int)player->getFtime()/60,(int)player->getFtime()%60); ui->lbFinTime->setText(ts); player->playerInit();if(!singleFS){playerSetup();player->fluidInitialize(); for(int i=settingsw->getSFWidget()->count()-1;i>=0;--i) - player->pushSoundFont(settingsw->getSFWidget()->item(i)->text().toStdString().c_str());} + LOAD_SOUNDFONT;} player->setGain(ui->vsMasterVol->value()/250.);efxw->sendEfxChange(); player->setWaitVoice(qmpSettingsWindow::getSettingsIntf()->value("Midi/WaitVoice",1).toInt()); playerTh=new std::thread(&CMidiPlayer::playerThread,player); @@ -452,13 +476,13 @@ void qmpMainWindow::selectionChanged() chnlw->on_pbUnmute_clicked();chnlw->on_pbUnsolo_clicked(); QString fns=plistw->getSelectedItem(); ui->lbFileName->setText(QUrl(fns).fileName()); - if(!player->playerLoadFile(fns.toStdString().c_str()))return; + LOAD_FILE; char ts[100]; sprintf(ts,"%02d:%02d",(int)player->getFtime()/60,(int)player->getFtime()%60); ui->lbFinTime->setText(ts); player->playerInit();if(!singleFS){playerSetup();player->fluidInitialize(); for(int i=settingsw->getSFWidget()->count()-1;i>=0;--i) - player->pushSoundFont(settingsw->getSFWidget()->item(i)->text().toStdString().c_str());} + LOAD_SOUNDFONT;} player->setGain(ui->vsMasterVol->value()/250.);efxw->sendEfxChange(); player->setWaitVoice(qmpSettingsWindow::getSettingsIntf()->value("Midi/WaitVoice",1).toInt()); playerTh=new std::thread(&CMidiPlayer::playerThread,player); @@ -498,11 +522,19 @@ void qmpMainWindow::onfnA1() void qmpMainWindow::onfnA2() { if(singleFS)player->fluidDeinitialize(); +#ifdef _WIN32 + char* ofstr=wcsto8bit((plistw->getSelectedItem()+QString(".wav")).toStdWString().c_str()); + char* ifstr=wcsto8bit(plistw->getSelectedItem().toStdWString().c_str()); + player->rendererLoadFile(ofstr); + playerSetup();player->rendererInit(ifstr); + free(ofstr);free(ifstr); +#else player->rendererLoadFile((plistw->getSelectedItem()+QString(".wav")).toStdString().c_str()); playerSetup();player->rendererInit(plistw->getSelectedItem().toStdString().c_str()); +#endif ui->centralWidget->setEnabled(false); for(int i=settingsw->getSFWidget()->count()-1;i>=0;--i) - player->pushSoundFont(settingsw->getSFWidget()->item(i)->text().toStdString().c_str()); + LOAD_SOUNDFONT; player->setGain(ui->vsMasterVol->value()/250.);efxw->sendEfxChange();timer->start(UPDATE_INTERVAL); renderTh=new std::thread(&CMidiPlayer::rendererThread,player); } diff --git a/qmidiplayer-desktop/qmpplistwindow.cpp b/qmidiplayer-desktop/qmpplistwindow.cpp index 8f04fc1..103027c 100644 --- a/qmidiplayer-desktop/qmpplistwindow.cpp +++ b/qmidiplayer-desktop/qmpplistwindow.cpp @@ -185,15 +185,15 @@ void qmpPlistWindow::on_pbRepeat_clicked() { case 0: ui->pbRepeat->setIcon(QIcon(":/img/repeat-non.png")); - ui->pbRepeat->setText("Repeat Off"); + ui->pbRepeat->setText(tr("Repeat Off")); break; case 1: ui->pbRepeat->setIcon(QIcon(":/img/repeat-one.png")); - ui->pbRepeat->setText("Repeat One"); + ui->pbRepeat->setText(tr("Repeat One")); break; case 2: ui->pbRepeat->setIcon(QIcon(":/img/repeat-all.png")); - ui->pbRepeat->setText("Repeat All"); + ui->pbRepeat->setText(tr("Repeat All")); break; } } @@ -205,12 +205,12 @@ void qmpPlistWindow::on_pbShuffle_clicked() { case 1: ui->pbShuffle->setIcon(QIcon(":/img/shuffle.png")); - ui->pbShuffle->setText("Shuffle On"); + ui->pbShuffle->setText(tr("Shuffle On")); break; case 0: default: ui->pbShuffle->setIcon(QIcon(":/img/shuffle-off.png")); - ui->pbShuffle->setText("Shuffle Off"); + ui->pbShuffle->setText(tr("Shuffle Off")); break; } } @@ -256,7 +256,7 @@ void qmpPlistWindow::on_lwFiles_itemDoubleClicked() void qmpPlistWindow::on_pbSave_clicked() { - QSettings* plist=new QSettings(QFileDialog::getSaveFileName(this,"Save playlist",""), + QSettings* plist=new QSettings(QFileDialog::getSaveFileName(this,tr("Save playlist"),""), QSettings::IniFormat); plist->setValue("Playlist/FileCount",ui->lwFiles->count()); for(int i=0;i<ui->lwFiles->count();++i) @@ -269,7 +269,7 @@ void qmpPlistWindow::on_pbSave_clicked() void qmpPlistWindow::on_pbLoad_clicked() { - QSettings* plist=new QSettings(QFileDialog::getOpenFileName(this,"Load playlist",""), + QSettings* plist=new QSettings(QFileDialog::getOpenFileName(this,tr("Load playlist"),""), QSettings::IniFormat); int fc=plist->value("Playlist/FileCount",0).toInt(); if(!fc)return; @@ -281,27 +281,27 @@ void qmpPlistWindow::on_pbLoad_clicked() { case 1: ui->pbShuffle->setIcon(QIcon(":/img/shuffle.png")); - ui->pbShuffle->setText("Shuffle On"); + ui->pbShuffle->setText(tr("Shuffle On")); break; case 0: default: ui->pbShuffle->setIcon(QIcon(":/img/shuffle-off.png")); - ui->pbShuffle->setText("Shuffle Off"); + ui->pbShuffle->setText(tr("Shuffle Off")); break; } switch(repeat) { case 0: ui->pbRepeat->setIcon(QIcon(":/img/repeat-non.png")); - ui->pbRepeat->setText("Repeat Off"); + ui->pbRepeat->setText(tr("Repeat Off")); break; case 1: ui->pbRepeat->setIcon(QIcon(":/img/repeat-one.png")); - ui->pbRepeat->setText("Repeat One"); + ui->pbRepeat->setText(tr("Repeat One")); break; case 2: ui->pbRepeat->setIcon(QIcon(":/img/repeat-all.png")); - ui->pbRepeat->setText("Repeat All"); + ui->pbRepeat->setText(tr("Repeat All")); break; } delete plist; diff --git a/qmidiplayer-desktop/resources.qrc b/qmidiplayer-desktop/resources.qrc index d34966d..b3348f4 100644 --- a/qmidiplayer-desktop/resources.qrc +++ b/qmidiplayer-desktop/resources.qrc @@ -27,12 +27,8 @@ <file>../img/visualization.png</file> <file>../img/ledon.png</file> <file>../img/ledoff.png</file> - <file>../img/mainw.png</file> - <file>../img/chanw.png</file> - <file>../doc/index.html</file> - <file>../doc/version.html</file> - <file>../doc/license.html</file> - <file>../doc/mainwindow.html</file> - <file>../doc/channeldialog.html</file> + <file>../doc/index_internal.html</file> + <file>../doc/version_internal.html</file> + <file>../doc/license_internal.html</file> </qresource> </RCC> diff --git a/qmidiplayer-desktop/translations/qmp_zh_CN.ts b/qmidiplayer-desktop/translations/qmp_zh_CN.ts new file mode 100644 index 0000000..4b95192 --- /dev/null +++ b/qmidiplayer-desktop/translations/qmp_zh_CN.ts @@ -0,0 +1,796 @@ +<?xml version="1.0" encoding="utf-8"?> +<!DOCTYPE TS> +<TS version="2.1" language="zh_CN"> +<context> + <name>qmpChannelEditor</name> + <message> + <location filename="../qmpchanneleditor.ui" line="26"/> + <source>Dialog</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="38"/> + <source><</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="51"/> + <source>1</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="67"/> + <source>></source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="85"/> + <source>Yamaha Grand Piano</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="98"/> + <source>BK: 0</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="111"/> + <source>PC: 0</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="124"/> + <source>Filters</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="136"/> + <source>Res. 64</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="190"/> + <source>Cut. 64</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="207"/> + <source>Effects</source> + <translation type="unfinished">效果</translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="219"/> + <source>Chr. 64</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="273"/> + <source>Rev. 64</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="290"/> + <source>Envelope</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="302"/> + <source>Dec. 64</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="356"/> + <source>Atk. 64</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="391"/> + <source>Rel. 64</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="408"/> + <source>Vibrato</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="420"/> + <source>Dep. 64</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="474"/> + <source>Rate 64</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="509"/> + <source>Del. 64</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="526"/> + <source>Mixer</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="538"/> + <source>Pan. C</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.ui" line="573"/> + <source>Vol. 127</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchanneleditor.cpp" line="26"/> + <source>Channel Parameter Editor - Channel #%1</source> + <translation type="unfinished">通道参数编辑器 通道#%1</translation> + </message> +</context> +<context> + <name>qmpChannelsWindow</name> + <message> + <location filename="../qmpchannelswindow.ui" line="26"/> + <source>Channels</source> + <translation type="unfinished">通道</translation> + </message> + <message> + <location filename="../qmpchannelswindow.ui" line="72"/> + <source>A</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchannelswindow.ui" line="77"/> + <source>M</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchannelswindow.ui" line="82"/> + <source>S</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchannelswindow.ui" line="87"/> + <source>Device</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchannelswindow.ui" line="92"/> + <source>Preset</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchannelswindow.ui" line="97"/> + <source>...</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchannelswindow.ui" line="114"/> + <source>Save</source> + <translation type="unfinished">保存播放列表</translation> + </message> + <message> + <location filename="../qmpchannelswindow.ui" line="127"/> + <source>Load</source> + <translation type="unfinished">打开播放列表</translation> + </message> + <message> + <location filename="../qmpchannelswindow.ui" line="134"/> + <source>Unmute All</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpchannelswindow.ui" line="141"/> + <source>Unsolo All</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>qmpEfxWindow</name> + <message> + <location filename="../qmpefxwindow.ui" line="26"/> + <source>Effects</source> + <translation type="unfinished">效果</translation> + </message> + <message> + <location filename="../qmpefxwindow.ui" line="32"/> + <source>Reverb</source> + <translation type="unfinished">混响</translation> + </message> + <message> + <location filename="../qmpefxwindow.ui" line="121"/> + <source>Room</source> + <translation type="unfinished">房间大小</translation> + </message> + <message> + <location filename="../qmpefxwindow.ui" line="147"/> + <source>Damp</source> + <translation type="unfinished">衰减</translation> + </message> + <message> + <location filename="../qmpefxwindow.ui" line="176"/> + <source>Width</source> + <translation type="unfinished">声场</translation> + </message> + <message> + <location filename="../qmpefxwindow.ui" line="202"/> + <location filename="../qmpefxwindow.ui" line="376"/> + <source>Level</source> + <translation type="unfinished">音量</translation> + </message> + <message> + <location filename="../qmpefxwindow.ui" line="226"/> + <source>Chorus</source> + <translation type="unfinished">和声</translation> + </message> + <message> + <location filename="../qmpefxwindow.ui" line="321"/> + <source>Feedback</source> + <translation type="unfinished">和声数量</translation> + </message> + <message> + <location filename="../qmpefxwindow.ui" line="347"/> + <source>Rate</source> + <translation type="unfinished">频率</translation> + </message> + <message> + <location filename="../qmpefxwindow.ui" line="363"/> + <source>Depth</source> + <translation type="unfinished">延迟</translation> + </message> + <message> + <location filename="../qmpefxwindow.ui" line="424"/> + <source>LFO</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpefxwindow.ui" line="437"/> + <source>Sine</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpefxwindow.ui" line="450"/> + <source>Trian&gle</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>qmpHelpWindow</name> + <message> + <location filename="../qmphelpwindow.ui" line="20"/> + <source>Help</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>qmpInfoWindow</name> + <message> + <location filename="../qmpinfowindow.ui" line="20"/> + <source>File Information</source> + <translation type="unfinished">文件信息</translation> + </message> + <message> + <location filename="../qmpinfowindow.ui" line="26"/> + <source>File name: </source> + <translation type="unfinished">文件名:</translation> + </message> + <message> + <location filename="../qmpinfowindow.ui" line="35"/> + <source>Tempo: </source> + <translation type="unfinished">速度:</translation> + </message> + <message> + <location filename="../qmpinfowindow.ui" line="42"/> + <source>Key Sig.: </source> + <translation type="unfinished">调式:</translation> + </message> + <message> + <location filename="../qmpinfowindow.ui" line="49"/> + <source>Time Sig.:</source> + <translation type="unfinished">节拍:</translation> + </message> + <message> + <location filename="../qmpinfowindow.ui" line="58"/> + <source>Title: </source> + <translation type="unfinished">标题:</translation> + </message> + <message> + <location filename="../qmpinfowindow.ui" line="65"/> + <source>Copyright: </source> + <translation type="unfinished">作者:</translation> + </message> + <message> + <location filename="../qmpinfowindow.ui" line="74"/> + <source>Note count: </source> + <translation type="unfinished">音符数:</translation> + </message> + <message> + <location filename="../qmpinfowindow.ui" line="81"/> + <source>File standard: </source> + <translation type="unfinished">文件标准:</translation> + </message> +</context> +<context> + <name>qmpMainWindow</name> + <message> + <location filename="../qmpmainwindow.ui" line="29"/> + <source>QMidiPlayer</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpmainwindow.ui" line="54"/> + <source>somefile.mid</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpmainwindow.ui" line="210"/> + <source>Channels</source> + <translation type="unfinished">通道</translation> + </message> + <message> + <location filename="../qmpmainwindow.ui" line="239"/> + <source>Playlist</source> + <translation type="unfinished">播放列表</translation> + </message> + <message> + <location filename="../qmpmainwindow.ui" line="274"/> + <source>Effects</source> + <translation type="unfinished">效果</translation> + </message> + <message> + <location filename="../qmpmainwindow.ui" line="303"/> + <source>Visualization</source> + <translation type="unfinished">可视化</translation> + </message> + <message> + <location filename="../qmpmainwindow.ui" line="326"/> + <source><html><head/><body><p>Poly: 0/0</p></body></html></source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpmainwindow.ui" line="361"/> + <source>Master</source> + <translation type="unfinished">主音量</translation> + </message> + <message> + <location filename="../qmpmainwindow.ui" line="374"/> + <location filename="../qmpmainwindow.ui" line="387"/> + <source>00:00</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpmainwindow.ui" line="403"/> + <source>?</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>qmpPlistWindow</name> + <message> + <location filename="../qmpplistwindow.ui" line="29"/> + <source>Playlist</source> + <translation type="unfinished">播放列表</translation> + </message> + <message> + <location filename="../qmpplistwindow.ui" line="44"/> + <source>Add</source> + <translation type="unfinished">添加</translation> + </message> + <message> + <location filename="../qmpplistwindow.ui" line="70"/> + <source>Add Folder</source> + <translation type="unfinished">添加文件夹</translation> + </message> + <message> + <location filename="../qmpplistwindow.ui" line="96"/> + <location filename="../qmpplistwindow.cpp" line="188"/> + <location filename="../qmpplistwindow.cpp" line="296"/> + <source>Repeat Off</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpplistwindow.ui" line="122"/> + <location filename="../qmpplistwindow.cpp" line="213"/> + <location filename="../qmpplistwindow.cpp" line="289"/> + <source>Shuffle Off</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpplistwindow.ui" line="148"/> + <source>Save</source> + <translation type="unfinished">保存播放列表</translation> + </message> + <message> + <location filename="../qmpplistwindow.ui" line="174"/> + <source>Load</source> + <translation type="unfinished">打开播放列表</translation> + </message> + <message> + <location filename="../qmpplistwindow.ui" line="200"/> + <source>Remove</source> + <translation type="unfinished">移除</translation> + </message> + <message> + <location filename="../qmpplistwindow.ui" line="226"/> + <source>Clear</source> + <translation type="unfinished">清空</translation> + </message> + <message> + <location filename="../qmpplistwindow.cpp" line="192"/> + <location filename="../qmpplistwindow.cpp" line="300"/> + <source>Repeat One</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpplistwindow.cpp" line="196"/> + <location filename="../qmpplistwindow.cpp" line="304"/> + <source>Repeat All</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpplistwindow.cpp" line="208"/> + <location filename="../qmpplistwindow.cpp" line="284"/> + <source>Shuffle On</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpplistwindow.cpp" line="259"/> + <source>Save playlist</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpplistwindow.cpp" line="272"/> + <source>Load playlist</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>qmpPresetSelector</name> + <message> + <location filename="../qmppresetselect.ui" line="26"/> + <source>Preset Selection</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmppresetselect.ui" line="61"/> + <source>Bank</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmppresetselect.ui" line="74"/> + <source>Preset</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmppresetselect.ui" line="87"/> + <source>OK</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmppresetselect.ui" line="100"/> + <source>Cancel</source> + <translation type="unfinished"></translation> + </message> +</context> +<context> + <name>qmpSettingsWindow</name> + <message> + <location filename="../qmpsettingswindow.ui" line="20"/> + <source>Settings</source> + <translation type="unfinished">选项</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="30"/> + <source>Midi</source> + <translation type="unfinished">MIDI选项</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="44"/> + <source>Default Output Device</source> + <translation type="unfinished">默认输出设备</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="58"/> + <source>Internal FluidSynth</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="74"/> + <source>Disable Midi Mapping</source> + <translation type="unfinished">禁用MIDI输出分配</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="87"/> + <source>Send SysEx</source> + <translation type="unfinished">发送SysEx指令</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="100"/> + <source>Wait for remaining voices before stopping</source> + <translation type="unfinished">停止前等待复音数降为0</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="115"/> + <source>Text Encoding</source> + <translation type="unfinished">MIDI文本编码</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="129"/> + <source>Unicode</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="134"/> + <source>Big5</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="139"/> + <source>Big5-HKSCS</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="144"/> + <source>CP949</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="149"/> + <source>EUC-JP</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="154"/> + <source>EUC-KR</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="159"/> + <source>GB18030</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="164"/> + <source>KOI8-R</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="169"/> + <source>KOI8-U</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="174"/> + <source>Macintosh</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="179"/> + <source>Shift-JIS</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="190"/> + <source>Synth</source> + <translation type="unfinished">合成器</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="196"/> + <source>Audio Buffer Count</source> + <translation type="unfinished">音频缓冲区数量</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="203"/> + <source>Audio Buffer Size</source> + <translation type="unfinished">音频缓冲区大小</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="217"/> + <location filename="../qmpsettingswindow.ui" line="296"/> + <source>64</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="222"/> + <source>128</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="227"/> + <source>256</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="232"/> + <source>512</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="237"/> + <source>1024</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="242"/> + <source>2048</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="247"/> + <source>4096</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="252"/> + <source>8192</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="260"/> + <source>Audio Frequency</source> + <translation type="unfinished">采样频率</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="271"/> + <source>2</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="276"/> + <source>4</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="281"/> + <source>8</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="286"/> + <source>16</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="291"/> + <source>32</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="304"/> + <source>Audio Driver</source> + <translation type="unfinished">音频驱动</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="312"/> + <source>16bits</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="317"/> + <source>float</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="332"/> + <source>22050</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="337"/> + <source>44100</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="342"/> + <source>48000</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="347"/> + <source>96000</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="355"/> + <source>Audio Format</source> + <translation type="unfinished">音频格式</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="375"/> + <source>Max Polyphony</source> + <translation type="unfinished">最大复音数</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="382"/> + <source>Auto bank select mode</source> + <translation type="unfinished">自动乐器库选择方式</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="389"/> + <source>Bank select mode</source> + <translation type="unfinished">乐器库选择方式</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="400"/> + <source>Ignored</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="405"/> + <source>CC#0</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="410"/> + <source>CC#32</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="415"/> + <source>CC#0*128+CC#32</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="423"/> + <source>CPU Cores</source> + <translation type="unfinished">合成器线程数</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="441"/> + <source>Soundfonts</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="527"/> + <source>Behavior</source> + <translation type="unfinished">行为设定</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="533"/> + <source>Restore last playlist on startup</source> + <translation type="unfinished">启动时,恢复上次的播放列表</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="540"/> + <source>Load files in the same folder</source> + <translation type="unfinished">添加同一文件夹下的所有文件</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="547"/> + <source>Save dialog status</source> + <translation type="unfinished">保存对话框状态</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="554"/> + <source>Save parameters in effects window</source> + <translation type="unfinished">保存效果窗口内的设定</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="561"/> + <source>Persistent fluidsynth instance</source> + <translation type="unfinished">单一fluidsynth实例</translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="570"/> + <source>Visualization Mode</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="584"/> + <source>View distance</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="627"/> + <source>Note stretch</source> + <translation type="unfinished"></translation> + </message> + <message> + <location filename="../qmpsettingswindow.ui" line="670"/> + <source>Fog Start</source> + <translation type="unfinished"></translation> + </message> +</context> +</TS> |