aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/Input/mad/detailsdialog.cpp79
-rw-r--r--src/plugins/Input/mad/detailsdialog.h4
-rw-r--r--src/plugins/Input/mad/detailsdialog.ui710
3 files changed, 350 insertions, 443 deletions
diff --git a/src/plugins/Input/mad/detailsdialog.cpp b/src/plugins/Input/mad/detailsdialog.cpp
index 5bab08efa..0b4f3a051 100644
--- a/src/plugins/Input/mad/detailsdialog.cpp
+++ b/src/plugins/Input/mad/detailsdialog.cpp
@@ -85,6 +85,13 @@ DetailsDialog::DetailsDialog(QWidget *parent, const QString &path)
connect(ui.id3v1RadioButton, SIGNAL(clicked()), SLOT(loadTag()));
connect(ui.id3v2RadioButton, SIGNAL(clicked()), SLOT(loadTag()));
connect(ui.apeRadioButton, SIGNAL(clicked()), SLOT(loadTag()));
+ m_inputs << ui.titleLineEdit;
+ m_inputs << ui.artistLineEdit;
+ m_inputs << ui.albumLineEdit;
+ //m_inputs << ui.commentBrowser;
+ m_inputs << ui.yearLineEdit;
+ m_inputs << ui.trackLineEdit;
+ m_inputs << ui.genreLineEdit;
}
@@ -107,41 +114,43 @@ void DetailsDialog::loadMPEGInfo()
case TagLib::MPEG::Header::Version2_5:
v = "2.5";
}
+ QMap <QString, QString> ap;
text = QString("MPEG-%1 layer %2").arg(v).arg(f.audioProperties()->layer());
- ui.levelLabel->setText(text);
+ ap.insert(tr("Format"), text);
text = QString("%1").arg(f.audioProperties()->bitrate());
- ui.bitRateLabel->setText(text+" "+tr("kbps"));
+ ap.insert(tr("Bitrate"), text+" "+tr("kbps"));
text = QString("%1").arg(f.audioProperties()->sampleRate());
- ui.sampleRateLabel->setText(text+" "+tr("Hz"));
+ ap.insert(tr("Samplerate"), text+" "+tr("Hz"));
switch (f.audioProperties()->channelMode())
{
case TagLib::MPEG::Header::Stereo:
- ui.modeLabel->setText("Stereo");
+ ap.insert(tr("Mode"), "Stereo");
break;
case TagLib::MPEG::Header::JointStereo:
- ui.modeLabel->setText("Joint stereo");
+ ap.insert(tr("Mode"), "Joint stereo");
break;
case TagLib::MPEG::Header::DualChannel:
- ui.modeLabel->setText("Dual channel");
+ ap.insert(tr("Mode"), "Dual channel");
break;
case TagLib::MPEG::Header::SingleChannel:
- ui.modeLabel->setText("Single channel");
+ ap.insert(tr("Mode"), "Single channel");
break;
}
text = QString("%1 "+tr("KB")).arg(f.length()/1024);
- ui.fileSizeLabel->setText(text);
- /*if (f.audioProperties()->protectionEnabled())
- ui.errProtectionLabel->setText(tr("Yes"));
+ ap.insert(tr("File size"), text);
+ if (f.audioProperties()->protectionEnabled())
+ ap.insert(tr("Protection"), tr("Yes"));
else
- ui.errProtectionLabel->setText(tr("No"));*/
+ ap.insert(tr("Protection"), tr("No"));
if (f.audioProperties()->isCopyrighted())
- ui.copyrightLabel->setText(tr("Yes"));
+ ap.insert(tr("Copyright"), tr("Yes"));
else
- ui.copyrightLabel->setText(tr("No"));
+ ap.insert(tr("Copyright"), tr("No"));
if (f.audioProperties()->isOriginal())
- ui.originalLabel->setText(tr("Yes"));
+ ap.insert(tr("Original"), tr("Yes"));
else
- ui.originalLabel->setText(tr("No"));
+ ap.insert(tr("Original"), tr("No"));
+ showAudioProperties(ap);
}
void DetailsDialog::loadTag()
@@ -170,15 +179,13 @@ void DetailsDialog::loadTag()
ui.saveButton->setEnabled(tag && m_rw);
ui.createButton->setEnabled(!tag && m_rw);
ui.deleteButton->setEnabled(tag && m_rw);
- ui.tagsWidget->setEnabled(tag);
- //clear old values
- ui.titleLineEdit->clear();
- ui.artistLineEdit->clear();
- ui.albumLineEdit->clear();
- ui.commentLineEdit->clear();
- ui.yearLineEdit->clear();
- ui.trackLineEdit->clear();
- ui.genreLineEdit->clear();
+ foreach(QLineEdit *le, m_inputs)
+ {
+ le->setEnabled(tag);
+ le->clear(); //clear old values
+ }
+ ui.commentBrowser->setEnabled(tag);
+ ui.commentBrowser->clear();
if (tag)
{
@@ -197,7 +204,7 @@ void DetailsDialog::loadTag()
string = codec->toUnicode(album.toCString(utf)).trimmed();
ui.albumLineEdit->setText(string);
string = codec->toUnicode(comment.toCString(utf)).trimmed();
- ui.commentLineEdit->setText(string);
+ ui.commentBrowser->setText(string);
string = QString("%1").arg(tag->year());
ui.yearLineEdit->setText(string);
string = QString("%1").arg(tag->track());
@@ -257,7 +264,8 @@ void DetailsDialog::save()
tag->setTitle(TagLib::String(codec->fromUnicode(ui.titleLineEdit->text()).constData(), type));
tag->setArtist(TagLib::String(codec->fromUnicode(ui.artistLineEdit->text()).constData(), type));
tag->setAlbum(TagLib::String(codec->fromUnicode(ui.albumLineEdit->text()).constData(), type));
- tag->setComment(TagLib::String(codec->fromUnicode(ui.commentLineEdit->text()).constData(), type));
+ tag->setComment(TagLib::String(codec->fromUnicode(ui.commentBrowser->toPlainText ())
+ .constData(), type));
tag->setGenre(TagLib::String(codec->fromUnicode(ui.genreLineEdit->text()).constData(), type));
tag->setYear(ui.yearLineEdit->text().toUInt());
tag->setTrack(ui.trackLineEdit->text().toUInt());
@@ -281,7 +289,9 @@ void DetailsDialog::create()
f->save(selectedTag(), FALSE);
delete f;
loadTag();
- ui.tagsWidget->setEnabled(TRUE);
+ foreach(QLineEdit *le, m_inputs)
+ le->setEnabled(TRUE);
+ ui.commentBrowser->setEnabled(TRUE);
ui.saveButton->setEnabled(m_rw);
}
@@ -316,3 +326,18 @@ void DetailsDialog::closeEvent (QCloseEvent *)
settings.setValue("current_tag","APE");
settings.endGroup();
}
+
+void DetailsDialog::showAudioProperties(QMap <QString, QString> p)
+{
+ QString formattedText;
+ formattedText.append("<TABLE>");
+ foreach(QString key, p.keys())
+ {
+ formattedText.append("<tr>");
+ formattedText.append("<td>" + key + ":</td> <td style=\"padding-left: 5px; \"><b>"
+ + p.value(key) + "</b></td>");
+ formattedText.append("</tr>");
+ }
+ formattedText.append("</TABLE>");
+ ui.propertiesLabel->setText(formattedText);
+}
diff --git a/src/plugins/Input/mad/detailsdialog.h b/src/plugins/Input/mad/detailsdialog.h
index 9b53cc77e..e98c4f469 100644
--- a/src/plugins/Input/mad/detailsdialog.h
+++ b/src/plugins/Input/mad/detailsdialog.h
@@ -21,6 +21,8 @@
#define DETAILSDIALOG_H
#include <QDialog>
+#include <QList>
+#include <QMap>
#include "ui_detailsdialog.h"
@@ -50,6 +52,8 @@ private slots:
private:
void loadMPEGInfo();
uint selectedTag();
+ void showAudioProperties(QMap <QString, QString> p);
+ QList <QLineEdit *> m_inputs;
Ui::DetailsDialog ui;
QString m_path;
QTextCodec *m_codec_v1;
diff --git a/src/plugins/Input/mad/detailsdialog.ui b/src/plugins/Input/mad/detailsdialog.ui
index fc1b472c2..d8893621f 100644
--- a/src/plugins/Input/mad/detailsdialog.ui
+++ b/src/plugins/Input/mad/detailsdialog.ui
@@ -6,458 +6,305 @@
<rect>
<x>0</x>
<y>0</y>
- <width>597</width>
- <height>374</height>
+ <width>588</width>
+ <height>371</height>
</rect>
</property>
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
<property name="windowTitle">
- <string>Details</string>
+ <string>Dialog</string>
</property>
- <layout class="QGridLayout">
- <item row="0" column="0" colspan="3">
- <layout class="QHBoxLayout">
- <item>
- <widget class="QLabel" name="label_28">
- <property name="text">
- <string>File path:</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QLineEdit" name="pathLineEdit">
- <property name="readOnly">
- <bool>true</bool>
- </property>
- </widget>
- </item>
- </layout>
+ <layout class="QGridLayout" name="gridLayout">
+ <property name="leftMargin">
+ <number>6</number>
+ </property>
+ <property name="rightMargin">
+ <number>6</number>
+ </property>
+ <property name="bottomMargin">
+ <number>6</number>
+ </property>
+ <item row="0" column="0" colspan="4">
+ <widget class="QLineEdit" name="pathLineEdit"/>
</item>
- <item row="1" column="0" rowspan="2">
- <layout class="QVBoxLayout">
- <item>
- <widget class="QGroupBox" name="groupBox_3">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="title">
- <string>Tag Choice</string>
- </property>
- <layout class="QHBoxLayout">
- <item>
- <widget class="QRadioButton" name="id3v1RadioButton">
- <property name="text">
- <string>ID3v1</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QRadioButton" name="id3v2RadioButton">
- <property name="text">
- <string>ID3v2</string>
- </property>
- </widget>
- </item>
- <item>
- <widget class="QRadioButton" name="apeRadioButton">
- <property name="text">
- <string>APE</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- <item>
- <widget class="QGroupBox" name="groupBox">
- <property name="minimumSize">
- <size>
- <width>200</width>
- <height>16</height>
- </size>
- </property>
- <property name="title">
- <string>MPEG Info</string>
- </property>
- <layout class="QGridLayout">
- <item row="0" column="0">
- <widget class="QLabel" name="label">
- <property name="text">
- <string>Format:</string>
- </property>
- <property name="textFormat">
- <enum>Qt::AutoText</enum>
- </property>
- <property name="alignment">
- <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- <item row="0" column="1">
- <widget class="QLabel" name="levelLabel">
- <property name="text">
- <string>-</string>
- </property>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QLabel" name="label_2">
- <property name="text">
- <string>Bit 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="bitRateLabel">
- <property name="text">
- <string>-</string>
- </property>
- </widget>
- </item>
- <item row="2" 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="2" column="1">
- <widget class="QLabel" name="sampleRateLabel">
- <property name="text">
- <string>-</string>
- </property>
- </widget>
- </item>
- <item row="3" 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="3" column="1">
- <widget class="QLabel" name="fileSizeLabel">
- <property name="text">
- <string>-</string>
- </property>
- </widget>
- </item>
- <item row="4" column="0">
- <widget class="QLabel" name="label_6">
- <property name="text">
- <string>Mode:</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="modeLabel">
- <property name="text">
- <string>-</string>
- </property>
- </widget>
- </item>
- <item row="5" column="0">
- <widget class="QLabel" name="label_8">
- <property name="text">
- <string>Copyright:</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="copyrightLabel">
- <property name="text">
- <string>-</string>
- </property>
- </widget>
- </item>
- <item row="6" column="0">
- <widget class="QLabel" name="label_9">
- <property name="text">
- <string>Original:</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="originalLabel">
- <property name="text">
- <string>-</string>
- </property>
- </widget>
- </item>
- </layout>
- </widget>
- </item>
- </layout>
+ <item row="1" column="0">
+ <widget class="QToolButton" name="toolButton">
+ <property name="enabled">
+ <bool>true</bool>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>110</width>
+ <height>110</height>
+ </size>
+ </property>
+ <property name="maximumSize">
+ <size>
+ <width>110</width>
+ <height>110</height>
+ </size>
+ </property>
+ <property name="text">
+ <string>...</string>
+ </property>
+ <property name="icon">
+ <iconset>
+ <normaloff>:/crematory.jpg</normaloff>:/crematory.jpg</iconset>
+ </property>
+ <property name="iconSize">
+ <size>
+ <width>100</width>
+ <height>100</height>
+ </size>
+ </property>
+ </widget>
</item>
- <item row="1" column="1" colspan="2">
+ <item row="1" column="1">
+ <widget class="QGroupBox" name="groupBox">
+ <property name="title">
+ <string>Tags</string>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout_3">
+ <item>
+ <widget class="QRadioButton" name="id3v1RadioButton">
+ <property name="text">
+ <string>ID3v1</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QRadioButton" name="id3v2RadioButton">
+ <property name="text">
+ <string>ID3v2</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QRadioButton" name="apeRadioButton">
+ <property name="text">
+ <string>APE</string>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="1" column="2" rowspan="2" colspan="2">
<widget class="QGroupBox" name="tagGroupBox">
<property name="title">
<string>ID3v1 Tag</string>
</property>
- <layout class="QGridLayout">
- <item row="0" column="0" colspan="3">
- <widget class="QWidget" name="tagsWidget" native="true">
- <property name="enabled">
- <bool>true</bool>
+ <layout class="QGridLayout" name="gridLayout_3">
+ <item row="7" column="4" colspan="3">
+ <widget class="QTextBrowser" name="commentBrowser"/>
+ </item>
+ <item row="5" column="6">
+ <widget class="QLineEdit" name="trackLineEdit">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
</property>
+ </widget>
+ </item>
+ <item row="5" column="5">
+ <widget class="QLabel" name="label_42">
<property name="sizePolicy">
- <sizepolicy hsizetype="Ignored" vsizetype="Preferred">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <layout class="QGridLayout">
- <item row="0" column="0">
- <widget class="QLabel" name="label_21">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <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">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QLabel" name="label_22">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="text">
- <string>Artist:</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- <item row="1" column="1" colspan="3">
- <widget class="QLineEdit" name="artistLineEdit">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- </widget>
- </item>
- <item row="2" column="0">
- <widget class="QLabel" name="label_23">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="text">
- <string>Album:</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- <item row="2" column="1" colspan="3">
- <widget class="QLineEdit" name="albumLineEdit">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- </widget>
- </item>
- <item row="3" column="0">
- <widget class="QLabel" name="label_24">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="text">
- <string>Comment:</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- <item row="3" column="1" colspan="3">
- <widget class="QLineEdit" name="commentLineEdit">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- </widget>
- </item>
- <item row="4" column="0">
- <widget class="QLabel" name="label_25">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="text">
- <string>Year:</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">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- </widget>
- </item>
- <item row="4" column="2">
- <widget class="QLabel" name="label_26">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="text">
- <string>Track number:</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- <item row="4" column="3">
- <widget class="QLineEdit" name="trackLineEdit">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- </widget>
- </item>
- <item row="5" column="0">
- <widget class="QLabel" name="label_27">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="text">
- <string>Genre:</string>
- </property>
- <property name="alignment">
- <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
- </property>
- </widget>
- </item>
- <item row="5" column="1" colspan="3">
- <widget class="QLineEdit" name="genreLineEdit">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- </widget>
- </item>
- </layout>
+ <property name="text">
+ <string>Track number:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
</widget>
</item>
- <item row="1" column="0">
- <widget class="QPushButton" name="createButton">
+ <item row="6" column="6">
+ <widget class="QLineEdit" name="discLineEdit"/>
+ </item>
+ <item row="2" column="2">
+ <widget class="QLabel" name="label_43">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>Artist:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="4" colspan="3">
+ <widget class="QLineEdit" name="composerLineEdit"/>
+ </item>
+ <item row="5" column="2">
+ <widget class="QLabel" name="label_44">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>Year:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="2">
+ <widget class="QLabel" name="label_45">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>Album:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="2" column="4" colspan="3">
+ <widget class="QLineEdit" name="artistLineEdit">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
+ </widget>
+ </item>
+ <item row="8" column="4">
+ <widget class="QPushButton" name="createButton">
<property name="text">
<string>Create</string>
</property>
</widget>
</item>
- <item row="1" column="1">
+ <item row="8" column="5">
<widget class="QPushButton" name="deleteButton">
+ <property name="text">
+ <string>Delete</string>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="4">
+ <widget class="QLineEdit" name="yearLineEdit">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ </widget>
+ </item>
+ <item row="1" column="4" colspan="3">
+ <widget class="QLineEdit" name="titleLineEdit">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
+ </widget>
+ </item>
+ <item row="6" column="2">
+ <widget class="QLabel" name="label_46">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
<property name="text">
- <string>Delete</string>
+ <string>Genre:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="6" column="4">
+ <widget class="QLineEdit" name="genreLineEdit">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ </widget>
+ </item>
+ <item row="6" column="5">
+ <widget class="QLabel" name="label_11">
+ <property name="text">
+ <string>Disc number:</string>
</property>
</widget>
</item>
<item row="1" column="2">
- <widget class="QPushButton" name="saveButton">
- <property name="enabled">
- <bool>false</bool>
+ <widget class="QLabel" name="label_47">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>Title:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property>
+ </widget>
+ </item>
+ <item row="4" column="2" colspan="2">
+ <widget class="QLabel" name="label_8">
+ <property name="text">
+ <string>Composer:</string>
+ </property>
+ </widget>
+ </item>
+ <item row="3" column="4" colspan="3">
+ <widget class="QLineEdit" name="albumLineEdit">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
+ </widget>
+ </item>
+ <item row="7" column="2" colspan="2">
+ <widget class="QLabel" name="label_48">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>Comment:</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
+ </property>
+ </widget>
+ </item>
+ <item row="8" column="6">
+ <widget class="QPushButton" name="saveButton">
<property name="text">
<string>Save</string>
</property>
@@ -466,23 +313,54 @@
</layout>
</widget>
</item>
- <item row="2" column="1">
- <spacer>
+ <item row="2" column="0" rowspan="2" colspan="2">
+ <widget class="QGroupBox" name="groupBox_2">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="minimumSize">
+ <size>
+ <width>0</width>
+ <height>0</height>
+ </size>
+ </property>
+ <property name="title">
+ <string>Audio Properties</string>
+ </property>
+ <layout class="QVBoxLayout" name="verticalLayout">
+ <item>
+ <widget class="QLabel" name="propertiesLabel">
+ <property name="text">
+ <string>-</string>
+ </property>
+ <property name="alignment">
+ <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
+ </property>
+ </widget>
+ </item>
+ </layout>
+ </widget>
+ </item>
+ <item row="3" column="2">
+ <spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
- <width>111</width>
+ <width>312</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
- <item row="2" column="2">
- <widget class="QPushButton" name="pushButton_3">
+ <item row="3" column="3">
+ <widget class="QPushButton" name="closeButton">
<property name="text">
- <string>Close</string>
+ <string>Закрыть</string>
</property>
</widget>
</item>
@@ -491,18 +369,18 @@
<resources/>
<connections>
<connection>
- <sender>pushButton_3</sender>
+ <sender>closeButton</sender>
<signal>clicked()</signal>
<receiver>DetailsDialog</receiver>
- <slot>close()</slot>
+ <slot>reject()</slot>
<hints>
<hint type="sourcelabel">
- <x>623</x>
- <y>353</y>
+ <x>546</x>
+ <y>356</y>
</hint>
<hint type="destinationlabel">
- <x>539</x>
- <y>352</y>
+ <x>422</x>
+ <y>357</y>
</hint>
</hints>
</connection>