diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-12-08 19:17:32 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2008-12-08 19:17:32 +0000 |
| commit | f599c04cb6e5b6394c44aa9e6f0b9b04a3f4afdb (patch) | |
| tree | aeff2b77bd6756a4ff65d483c157bbfac3e1328b | |
| parent | c56f4a00a5a86a2f923103fdcb921c208e1e1a84 (diff) | |
| download | qmmp-f599c04cb6e5b6394c44aa9e6f0b9b04a3f4afdb.tar.gz qmmp-f599c04cb6e5b6394c44aa9e6f0b9b04a3f4afdb.tar.bz2 qmmp-f599c04cb6e5b6394c44aa9e6f0b9b04a3f4afdb.zip | |
moved midi plugin to plugin pack
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@674 90c681e8-e032-0410-971d-27865f9a5e38
| -rw-r--r-- | src/plugins/Input/wildmidi/decoder_wildmidi.cpp | 254 | ||||
| -rw-r--r-- | src/plugins/Input/wildmidi/decoder_wildmidi.h | 68 | ||||
| -rw-r--r-- | src/plugins/Input/wildmidi/decoderwildmidifactory.cpp | 102 | ||||
| -rw-r--r-- | src/plugins/Input/wildmidi/decoderwildmidifactory.h | 52 | ||||
| -rw-r--r-- | src/plugins/Input/wildmidi/detailsdialog.cpp | 142 | ||||
| -rw-r--r-- | src/plugins/Input/wildmidi/detailsdialog.h | 49 | ||||
| -rw-r--r-- | src/plugins/Input/wildmidi/detailsdialog.ui | 364 | ||||
| -rw-r--r-- | src/plugins/Input/wildmidi/wildmidi.pro | 37 |
8 files changed, 0 insertions, 1068 deletions
diff --git a/src/plugins/Input/wildmidi/decoder_wildmidi.cpp b/src/plugins/Input/wildmidi/decoder_wildmidi.cpp deleted file mode 100644 index d24ec2cd4..000000000 --- a/src/plugins/Input/wildmidi/decoder_wildmidi.cpp +++ /dev/null @@ -1,254 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * - * forkotov02@hotmail.ru * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ - - -#include <QObject> -#include <QIODevice> -#include <QFile> -#include <math.h> -#include <stdint.h> - -#include <qmmp/constants.h> -#include <qmmp/buffer.h> -#include <qmmp/output.h> -#include <qmmp/recycler.h> - -#include "decoder_wildmidi.h" - -// Decoder class - -DecoderWildMidi::DecoderWildMidi(QObject *parent, DecoderFactory *d, Output *o, const QString &path) - : Decoder(parent, d, o) -{ - m_path = path; - m_inited = FALSE; - m_user_stop = FALSE; - m_output_buf = 0; - m_output_bytes = 0; - m_output_at = 0; - m_bks = 0; - m_done = FALSE; - m_finish = FALSE; - m_freq = 0; - m_bitrate = 0; - m_seekTime = -1.0; - m_totalTime = 0.0; - m_chan = 0; - m_output_size = 0; - //m_context = 0; - midi_ptr = 0; -} - -DecoderWildMidi::~DecoderWildMidi() -{ - deinit(); - if (m_output_buf) - delete [] m_output_buf; - m_output_buf = 0; -} - -void DecoderWildMidi::stop() -{ - m_user_stop = TRUE; -} - -void DecoderWildMidi::flush(bool final) -{ - ulong min = final ? 0 : m_bks; - - while ((! m_done && ! m_finish) && m_output_bytes > min) - { - output()->recycler()->mutex()->lock (); - - while ((! m_done && ! m_finish) && output()->recycler()->full()) - { - mutex()->unlock(); - - output()->recycler()->cond()->wait(output()->recycler()->mutex()); - - mutex()->lock (); - m_done = m_user_stop; - } - - if (m_user_stop || m_finish) - m_done = TRUE; - else - { - m_output_bytes -= produceSound(m_output_buf, m_output_bytes, m_bitrate, m_chan); - m_output_size += m_bks; - m_output_at = m_output_bytes; - } - - if (output()->recycler()->full()) - { - output()->recycler()->cond()->wakeOne(); - } - - output()->recycler()->mutex()->unlock(); - } -} - -bool DecoderWildMidi::initialize() -{ - m_bks = Buffer::size(); - m_inited = m_user_stop = m_done = m_finish = FALSE; - m_freq = m_bitrate = 0; - m_chan = 0; - m_output_size = 0; - m_seekTime = -1.0; - m_totalTime = 0.0; - _WM_Info *wm_info = 0; - - if (! m_output_buf) - m_output_buf = new char[globalBufferSize]; - m_output_at = 0; - m_output_bytes = 0; - - //wm_info = new _WM_Info; - - unsigned long int mixer_options = 0; - - if (WildMidi_Init ("/etc/timidity/timidity.cfg", 44100, mixer_options) == -1) - return FALSE; - - midi_ptr = WildMidi_Open (m_path.toLocal8Bit()); - - wm_info = WildMidi_GetInfo(midi_ptr); - - m_totalTime = wm_info->approx_total_samples / 44100; - - configure(44100, 2, 16); - - m_inited = TRUE; - qDebug("DecoderWildMidi: initialize succes"); - return TRUE; -} - -qint64 DecoderWildMidi::lengthInSeconds() -{ - if (!m_inited) - return 0; - - return m_totalTime; -} - - -void DecoderWildMidi::seek(qint64 pos) -{ - m_seekTime = pos; -} - -void DecoderWildMidi::deinit() -{ - if (m_inited) - WildMidi_Shutdown(); - m_inited = m_user_stop = m_done = m_finish = FALSE; - m_freq = m_bitrate = 0; - m_chan = 0; - m_output_size = 0; -} - -void DecoderWildMidi::run() -{ - mutex()->lock (); - - ulong len = 0; - - _WM_Info *wm_info = new _WM_Info; - - if (!m_inited) - { - mutex()->unlock(); - return; - } - mutex()->unlock(); - - while (! m_done && ! m_finish) - { - mutex()->lock (); - - //seeking - - if (m_seekTime >= 0.0) - { - qint64 i = m_seekTime *44100; - long unsigned int *sample_pos = (long unsigned int *) &i; - WildMidi_FastSeek(midi_ptr, sample_pos); - m_seekTime = -1.0; - } - - wm_info = WildMidi_GetInfo(midi_ptr); - - if (wm_info->approx_total_samples > wm_info->current_sample) - len = WildMidi_GetOutput (midi_ptr, m_output_buf, globalBufferSize - m_output_at); - else - len = 0; - - if (len > 0) - { - m_bitrate = 0; //TODO calculate bitrate using file size and length - m_output_at += len; - m_output_bytes += len; - - if (output()) - flush(); - - } - else if (len == 0) - { - flush(TRUE); - - if (output()) - { - output()->recycler()->mutex()->lock (); - // end of stream - while (! output()->recycler()->empty() && ! m_user_stop) - { - output()->recycler()->cond()->wakeOne(); - mutex()->unlock(); - output()->recycler()->cond()->wait(output()->recycler()->mutex()); - mutex()->lock (); - } - output()->recycler()->mutex()->unlock(); - } - - m_done = TRUE; - if (! m_user_stop) - { - m_finish = TRUE; - } - } - else - { - // error while reading - qWarning("DecoderWildMidi: Error while decoding stream, file appears to be corrupted"); - m_finish = TRUE; - } - mutex()->unlock(); - } - - mutex()->lock (); - - if (m_finish) - finish(); - - mutex()->unlock(); - deinit(); -} diff --git a/src/plugins/Input/wildmidi/decoder_wildmidi.h b/src/plugins/Input/wildmidi/decoder_wildmidi.h deleted file mode 100644 index 139a9d88d..000000000 --- a/src/plugins/Input/wildmidi/decoder_wildmidi.h +++ /dev/null @@ -1,68 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * - * forkotov02@hotmail.ru * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ - -#ifndef DECODER_WILDMIDI_H -#define DECODER_WILDMIDI_H - -extern "C"{ -#include <wildmidi_lib.h> -} - -#include <qmmp/decoder.h> - - -class DecoderWildMidi : public Decoder -{ -public: - DecoderWildMidi(QObject *, DecoderFactory *, Output *, const QString &); - virtual ~DecoderWildMidi(); - - // Standard Decoder API - bool initialize(); - qint64 lengthInSeconds(); - void seek(qint64); - void stop(); - -private: - // thread run function - void run(); - void *midi_ptr; - // helper functions - void flush(bool = FALSE); - void deinit(); - - bool m_inited, m_user_stop; - int m_bps; //bits per sample - - // output buffer - char *m_output_buf; - qint64 m_output_bytes, m_output_at; - - unsigned int m_bks; //block size - bool m_done, m_finish; - long m_freq, m_bitrate; - int m_chan; - unsigned long m_output_size; - qint64 m_totalTime, m_seekTime; - QString m_path; -}; - - -#endif // DECODER_WILDMIDI_H diff --git a/src/plugins/Input/wildmidi/decoderwildmidifactory.cpp b/src/plugins/Input/wildmidi/decoderwildmidifactory.cpp deleted file mode 100644 index 6d78fd5f3..000000000 --- a/src/plugins/Input/wildmidi/decoderwildmidifactory.cpp +++ /dev/null @@ -1,102 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * - * forkotov02@hotmail.ru * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ - -#include <QtGui> - -#include "detailsdialog.h" -#include "decoder_wildmidi.h" -#include "decoderwildmidifactory.h" - - -// DecoderWildMidiFactory - -bool DecoderWildMidiFactory::supports(const QString &source) const -{ - - return (source.right(4).toLower() == ".mid"); -} - -bool DecoderWildMidiFactory::canDecode(QIODevice *) const -{ - return FALSE; -} - -const DecoderProperties DecoderWildMidiFactory::properties() const -{ - DecoderProperties properties; - properties.name = tr("WildMidi Plugin"); - properties.filter = "*.mid"; - properties.description = tr("Midi Files"); - //properties.contentType = ; - properties.hasAbout = FALSE; - properties.hasSettings = FALSE; - properties.noInput = TRUE; - properties.protocols = "file"; - return properties; -} - -Decoder *DecoderWildMidiFactory::create(QObject *parent, QIODevice *input, - Output *output, const QString &path) -{ - Q_UNUSED(input); - return new DecoderWildMidi(parent, this, output, path); -} - -QList<FileInfo *> DecoderWildMidiFactory::createPlayList(const QString &fileName, bool useMetaData) -{ - QList <FileInfo*> list; - FileInfo *info = new FileInfo(fileName); - - void *midi_ptr = WildMidi_Open (fileName.toLocal8Bit()); - if(midi_ptr) - { - //wm_info = new _WM_Info; - _WM_Info *wm_info = WildMidi_GetInfo(midi_ptr); - info->setLength(wm_info->approx_total_samples / 44100); - qDebug("===== %d", wm_info->approx_total_samples / 44100); - WildMidi_Close(midi_ptr); - } - - list << info; - return list; -} - -QObject* DecoderWildMidiFactory::showDetails(QWidget *parent, const QString &path) -{ - /*DetailsDialog *d = new DetailsDialog(parent, path); - d -> show();*/ - return 0; -} - -void DecoderWildMidiFactory::showSettings(QWidget *) -{} - -void DecoderWildMidiFactory::showAbout(QWidget *parent) -{} - -QTranslator *DecoderWildMidiFactory::createTranslator(QObject *parent) -{ - QTranslator *translator = new QTranslator(parent); - QString locale = QLocale::system().name(); - translator->load(QString(":/wildmidi_plugin_") + locale); - return translator; -} - -Q_EXPORT_PLUGIN(DecoderWildMidiFactory) diff --git a/src/plugins/Input/wildmidi/decoderwildmidifactory.h b/src/plugins/Input/wildmidi/decoderwildmidifactory.h deleted file mode 100644 index 003738160..000000000 --- a/src/plugins/Input/wildmidi/decoderwildmidifactory.h +++ /dev/null @@ -1,52 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * - * forkotov02@hotmail.ru * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ -#ifndef DECODERWILDMIDIFACTORY_H -#define DECODERWILDMIDIFACTORY_H - -#include <QObject> -#include <QString> -#include <QIODevice> -#include <QWidget> - -#include <qmmp/decoder.h> -#include <qmmp/output.h> -#include <qmmp/decoderfactory.h> -#include <qmmp/fileinfo.h> - - -class DecoderWildMidiFactory : public QObject, - DecoderFactory -{ -Q_OBJECT -Q_INTERFACES(DecoderFactory); - -public: - bool supports(const QString &source) const; - bool canDecode(QIODevice *input) const; - const DecoderProperties properties() const; - Decoder *create(QObject *, QIODevice *, Output *, const QString &); - QList<FileInfo *> createPlayList(const QString &fileName, bool useMetaData); - QObject* showDetails(QWidget *parent, const QString &path); - void showSettings(QWidget *parent); - void showAbout(QWidget *parent); - QTranslator *createTranslator(QObject *parent); -}; - -#endif diff --git a/src/plugins/Input/wildmidi/detailsdialog.cpp b/src/plugins/Input/wildmidi/detailsdialog.cpp deleted file mode 100644 index 9952e60d8..000000000 --- a/src/plugins/Input/wildmidi/detailsdialog.cpp +++ /dev/null @@ -1,142 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * - * forkotov02@hotmail.ru * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ - -#include <QFile> -#include <QFileInfo> - -extern "C" -{ -#include <wavpack/wavpack.h> -} - -#include "detailsdialog.h" - -DetailsDialog::DetailsDialog(QWidget *parent, const QString &path) - : QDialog(parent) -{ - ui.setupUi(this); - setAttribute(Qt::WA_DeleteOnClose); - m_path = path; - setWindowTitle (path.section('/',-1)); - path.section('/',-1); - ui.pathLineEdit->setText(m_path); - if (QFile::exists(m_path)) - { - loadWavPackInfo(); - loadTag(); - } -} - - -DetailsDialog::~DetailsDialog() -{} - -void DetailsDialog::loadWavPackInfo() -{ - char err[80]; - WavpackContext *ctx = WavpackOpenFileInput (m_path.toLocal8Bit(), err, - OPEN_WVC | OPEN_TAGS, 0); - if (!ctx) - { - qWarning("DetailsDialog: error: %s", err); - return; - } - - QString text; - int length = (int) WavpackGetNumSamples(ctx)/WavpackGetSampleRate(ctx); - text = QString("%1").arg(length/60); - text +=":"+QString("%1").arg(length % 60, 2, 10, QChar('0')); - ui.lengthLabel->setText(text); - text = QString("%1").arg((int) WavpackGetSampleRate(ctx)); - ui.sampleRateLabel->setText(text+" "+tr("Hz")); - text = QString("%1").arg((int) WavpackGetNumChannels(ctx)); - ui.channelsLabel->setText(text); - text = QString("%1") - .arg((int) WavpackGetAverageBitrate(ctx, WavpackGetNumChannels(ctx))/1000); - ui.bitrateLabel->setText(text+" "+tr("kbps")); - QFileInfo info(m_path); - text = QString("%1 "+tr("KB")).arg((int) info.size()/1024); - ui.fileSizeLabel->setText(text); - ui.ratioLabel->setText(QString("%1").arg(WavpackGetRatio(ctx))); - ui.versionLabel->setText(QString("%1").arg(WavpackGetVersion(ctx))); - WavpackCloseFile (ctx); -} - -void DetailsDialog::loadTag() -{ - char err[80]; - WavpackContext *ctx = WavpackOpenFileInput (m_path.toLocal8Bit(), err, - OPEN_WVC | OPEN_TAGS, 0); - if (!ctx) - { - qWarning("DetailsDialog: error: %s", err); - return; - } - - char value[200]; - WavpackGetTagItem (ctx, "Title", value, sizeof(value)); - ui.titleLineEdit->setText(QString::fromUtf8(value)); - WavpackGetTagItem (ctx, "Artist", value, sizeof(value)); - ui.artistLineEdit->setText(QString::fromUtf8(value)); - WavpackGetTagItem (ctx, "Album", value, sizeof(value)); - ui.albumLineEdit->setText(QString::fromUtf8(value)); - WavpackGetTagItem (ctx, "Comment", value, sizeof(value)); - ui.commentLineEdit->setText(QString::fromUtf8(value)); - WavpackGetTagItem (ctx, "Year", value, sizeof(value)); - ui.yearLineEdit->setText(QString::fromUtf8(value)); - WavpackGetTagItem (ctx, "Track", value, sizeof(value)); - ui.trackLineEdit->setText(QString::fromUtf8(value)); - WavpackGetTagItem (ctx, "Genre", value, sizeof(value)); - ui.genreLineEdit->setText(QString::fromUtf8(value)); - - QFileInfo info(m_path); - ui.saveButton->setEnabled(info.isWritable()); - connect(ui.saveButton, SIGNAL(clicked()), SLOT(saveTag())); - WavpackCloseFile (ctx); -} - -void DetailsDialog::saveTag() -{ - char err[80]; - WavpackContext *ctx = WavpackOpenFileInput (m_path.toLocal8Bit(), err, - OPEN_WVC | OPEN_EDIT_TAGS, 0); - if (!ctx) - { - qWarning("DetailsDialog: error: %s", err); - return; - } - QByteArray value = ui.titleLineEdit->text().toUtf8(); - WavpackAppendTagItem(ctx, "Title", value, value.size()); - value = ui.artistLineEdit->text().toUtf8(); - WavpackAppendTagItem(ctx, "Artist", value, value.size()); - value = ui.albumLineEdit->text().toUtf8(); - WavpackAppendTagItem(ctx, "Album", value, value.size()); - value = ui.commentLineEdit->text().toUtf8(); - WavpackAppendTagItem(ctx, "Comment", value, value.size()); - value = ui.genreLineEdit->text().toUtf8(); - WavpackAppendTagItem(ctx, "Genre", value, value.size()); - value = ui.yearLineEdit->text().toUtf8(); - WavpackAppendTagItem(ctx, "Year", value, value.size()); - value = ui.trackLineEdit->text().toUtf8(); - WavpackAppendTagItem(ctx, "Track", value, value.size()); - - WavpackWriteTag (ctx); - WavpackCloseFile (ctx); -} diff --git a/src/plugins/Input/wildmidi/detailsdialog.h b/src/plugins/Input/wildmidi/detailsdialog.h deleted file mode 100644 index a36f9695f..000000000 --- a/src/plugins/Input/wildmidi/detailsdialog.h +++ /dev/null @@ -1,49 +0,0 @@ -/*************************************************************************** - * Copyright (C) 2008 by Ilya Kotov * - * forkotov02@hotmail.ru * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program is distributed in the hope that it will be useful, * - * but WITHOUT ANY WARRANTY; without even the implied warranty of * - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * - * GNU General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - ***************************************************************************/ -#ifndef DETAILSDIALOG_H -#define DETAILSDIALOG_H - -#include <QDialog> - -#include "ui_detailsdialog.h" - -/** - @author Ilya Kotov <forkotov02@hotmail.ru> -*/ -class DetailsDialog : public QDialog -{ -Q_OBJECT -public: - DetailsDialog(QWidget *parent = 0, const QString &path = 0); - - ~DetailsDialog(); - -private slots: - void saveTag(); - -private: - void loadWavPackInfo(); - void loadTag(); - Ui::DetailsDialog ui; - QString m_path; - -}; - -#endif diff --git a/src/plugins/Input/wildmidi/detailsdialog.ui b/src/plugins/Input/wildmidi/detailsdialog.ui deleted file mode 100644 index d1e0f9c80..000000000 --- a/src/plugins/Input/wildmidi/detailsdialog.ui +++ /dev/null @@ -1,364 +0,0 @@ -<ui version="4.0" > - <class>DetailsDialog</class> - <widget class="QDialog" name="DetailsDialog" > - <property name="geometry" > - <rect> - <x>0</x> - <y>0</y> - <width>545</width> - <height>374</height> - </rect> - </property> - <property name="windowTitle" > - <string>Details</string> - </property> - <layout class="QGridLayout" > - <item row="0" column="0" > - <widget class="QLabel" name="label_28" > - <property name="text" > - <string>File path:</string> - </property> - <property name="alignment" > - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="0" column="1" colspan="3" > - <widget class="QLineEdit" name="pathLineEdit" > - <property name="readOnly" > - <bool>true</bool> - </property> - </widget> - </item> - <item rowspan="2" row="1" column="0" colspan="2" > - <widget class="QGroupBox" name="groupBox" > - <property name="minimumSize" > - <size> - <width>0</width> - <height>16</height> - </size> - </property> - <property name="title" > - <string>WavPack Info</string> - </property> - <layout class="QGridLayout" > - <item row="0" column="0" > - <widget class="QLabel" name="label" > - <property name="text" > - <string>Length:</string> - </property> - <property name="alignment" > - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="0" column="1" > - <widget class="QLabel" name="lengthLabel" > - <property name="text" > - <string>-</string> - </property> - </widget> - </item> - <item row="1" column="0" > - <widget class="QLabel" name="label_3" > - <property name="text" > - <string>Sample rate:</string> - </property> - <property name="alignment" > - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="1" column="1" > - <widget class="QLabel" name="sampleRateLabel" > - <property name="text" > - <string>-</string> - </property> - </widget> - </item> - <item row="2" column="0" > - <widget class="QLabel" name="label_5" > - <property name="text" > - <string>File size:</string> - </property> - <property name="alignment" > - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="2" column="1" > - <widget class="QLabel" name="fileSizeLabel" > - <property name="text" > - <string>-</string> - </property> - </widget> - </item> - <item row="3" column="0" > - <widget class="QLabel" name="label_10" > - <property name="layoutDirection" > - <enum>Qt::LeftToRight</enum> - </property> - <property name="text" > - <string>Channels:</string> - </property> - <property name="textFormat" > - <enum>Qt::PlainText</enum> - </property> - <property name="alignment" > - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="3" column="1" > - <widget class="QLabel" name="channelsLabel" > - <property name="layoutDirection" > - <enum>Qt::LeftToRight</enum> - </property> - <property name="text" > - <string>-</string> - </property> - </widget> - </item> - <item row="4" column="0" > - <widget class="QLabel" name="label_2" > - <property name="text" > - <string>Bitrate:</string> - </property> - <property name="alignment" > - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="4" column="1" > - <widget class="QLabel" name="bitrateLabel" > - <property name="text" > - <string>-</string> - </property> - </widget> - </item> - <item row="5" column="0" > - <widget class="QLabel" name="label_4" > - <property name="text" > - <string>Ratio:</string> - </property> - <property name="alignment" > - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="5" column="1" > - <widget class="QLabel" name="ratioLabel" > - <property name="text" > - <string>-</string> - </property> - </widget> - </item> - <item row="6" column="0" > - <widget class="QLabel" name="label_6" > - <property name="text" > - <string>Version:</string> - </property> - <property name="alignment" > - <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="6" column="1" > - <widget class="QLabel" name="versionLabel" > - <property name="text" > - <string>-</string> - </property> - </widget> - </item> - <item row="7" column="0" > - <spacer> - <property name="orientation" > - <enum>Qt::Vertical</enum> - </property> - <property name="sizeHint" > - <size> - <width>74</width> - <height>101</height> - </size> - </property> - </spacer> - </item> - </layout> - </widget> - </item> - <item row="1" column="2" colspan="2" > - <widget class="QGroupBox" name="groupBox_2" > - <property name="sizePolicy" > - <sizepolicy vsizetype="Preferred" hsizetype="Expanding" > - <horstretch>0</horstretch> - <verstretch>0</verstretch> - </sizepolicy> - </property> - <property name="title" > - <string>APE Tag</string> - </property> - <layout class="QGridLayout" > - <property name="leftMargin" > - <number>8</number> - </property> - <property name="topMargin" > - <number>8</number> - </property> - <property name="rightMargin" > - <number>8</number> - </property> - <property name="bottomMargin" > - <number>8</number> - </property> - <property name="horizontalSpacing" > - <number>6</number> - </property> - <property name="verticalSpacing" > - <number>6</number> - </property> - <item row="6" column="1" > - <widget class="QPushButton" name="saveButton" > - <property name="enabled" > - <bool>false</bool> - </property> - <property name="text" > - <string>Save</string> - </property> - </widget> - </item> - <item row="4" column="3" > - <widget class="QLineEdit" name="trackLineEdit" /> - </item> - <item row="4" column="2" > - <widget class="QLabel" name="label_26" > - <property name="text" > - <string>Track number:</string> - </property> - <property name="alignment" > - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="4" column="1" > - <widget class="QLineEdit" name="yearLineEdit" /> - </item> - <item row="4" column="0" > - <widget class="QLabel" name="label_25" > - <property name="text" > - <string>Year:</string> - </property> - <property name="alignment" > - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="5" column="0" > - <widget class="QLabel" name="label_27" > - <property name="text" > - <string>Genre:</string> - </property> - <property name="alignment" > - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="3" column="0" > - <widget class="QLabel" name="label_24" > - <property name="text" > - <string>Comment:</string> - </property> - <property name="alignment" > - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="2" column="0" > - <widget class="QLabel" name="label_23" > - <property name="text" > - <string>Album:</string> - </property> - <property name="alignment" > - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="1" column="0" > - <widget class="QLabel" name="label_22" > - <property name="text" > - <string>Artist:</string> - </property> - <property name="alignment" > - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="0" column="0" > - <widget class="QLabel" name="label_21" > - <property name="text" > - <string>Title:</string> - </property> - <property name="alignment" > - <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set> - </property> - </widget> - </item> - <item row="0" column="1" colspan="3" > - <widget class="QLineEdit" name="titleLineEdit" /> - </item> - <item row="1" column="1" colspan="3" > - <widget class="QLineEdit" name="artistLineEdit" /> - </item> - <item row="2" column="1" colspan="3" > - <widget class="QLineEdit" name="albumLineEdit" /> - </item> - <item row="3" column="1" colspan="3" > - <widget class="QLineEdit" name="commentLineEdit" /> - </item> - <item row="5" column="1" colspan="2" > - <widget class="QLineEdit" name="genreLineEdit" /> - </item> - </layout> - </widget> - </item> - <item row="2" column="2" > - <spacer> - <property name="orientation" > - <enum>Qt::Horizontal</enum> - </property> - <property name="sizeHint" > - <size> - <width>111</width> - <height>20</height> - </size> - </property> - </spacer> - </item> - <item row="2" column="3" > - <widget class="QPushButton" name="pushButton_3" > - <property name="text" > - <string>Close</string> - </property> - </widget> - </item> - </layout> - </widget> - <resources/> - <connections> - <connection> - <sender>pushButton_3</sender> - <signal>clicked()</signal> - <receiver>DetailsDialog</receiver> - <slot>close()</slot> - <hints> - <hint type="sourcelabel" > - <x>623</x> - <y>353</y> - </hint> - <hint type="destinationlabel" > - <x>539</x> - <y>352</y> - </hint> - </hints> - </connection> - </connections> -</ui> diff --git a/src/plugins/Input/wildmidi/wildmidi.pro b/src/plugins/Input/wildmidi/wildmidi.pro deleted file mode 100644 index 86d7188b5..000000000 --- a/src/plugins/Input/wildmidi/wildmidi.pro +++ /dev/null @@ -1,37 +0,0 @@ -include(../../plugins.pri) - -FORMS += detailsdialog.ui -HEADERS += decoderwildmidifactory.h \ - decoder_wildmidi.h \ - detailsdialog.h -SOURCES += decoder_wildmidi.cpp \ - decoderwildmidifactory.cpp \ - detailsdialog.cpp - -TARGET=$$PLUGINS_PREFIX/Input/wildmidi -QMAKE_CLEAN =$$PLUGINS_PREFIX/Input/libwildmidi.so - - -INCLUDEPATH += ../../../ -CONFIG += release \ -warn_on \ -plugin - -TEMPLATE = lib -QMAKE_LIBDIR += ../../../../lib -LIBS += -lqmmp -L/usr/lib -I/usr/include -lWildMidi - -TRANSLATIONS = translations/wildmidi_plugin_cs.ts \ - translations/wildmidi_plugin_de.ts \ - translations/wildmidi_plugin_zh_CN.ts \ - translations/wildmidi_plugin_zh_TW.ts \ - translations/wildmidi_plugin_ru.ts \ - translations/wildmidi_plugin_uk_UA.ts -#RESOURCES = translations/translations.qrc - -isEmpty (LIB_DIR){ -LIB_DIR = /lib -} - -target.path = $$LIB_DIR/qmmp/Input -INSTALLS += target |
