Commit b0faaf4a authored by Michael Pyne's avatar Michael Pyne

Make the file renamer dialog actually work for the first time in the KDE 4 release series...

There's still a couple of errors but this is still much better than before.

svn path=/trunk/KDE/kdemultimedia/juk/; revision=933916
parent e34e93b4
This diff is collapsed.
......@@ -25,8 +25,7 @@
#include "categoryreaderinterface.h"
#include "tagrenameroptions.h"
class KVBox;
class QScrollArea;
class QCheckBox;
class QPushButton;
class QSignalMapper;
......@@ -140,7 +139,7 @@ private:
*
* @author Michael Pyne <michael.pyne@kdemail.net>
*/
class FileRenamerWidget : public QWidget, public Ui::FileRenamerBase, public CategoryReaderInterface
class FileRenamerWidget : public QWidget, public CategoryReaderInterface
{
Q_OBJECT
......@@ -454,7 +453,9 @@ private slots:
private:
/// This is the frame that holds all of the category widgets and checkboxes.
KVBox *m_mainFrame;
QFrame *m_mainFrame;
Ui::FileRenamerBase *m_ui;
/**
* This is the meat of the widget, it holds the rows for the user configuration. It is
......
This diff is collapsed.
......@@ -28,34 +28,18 @@ FileRenamerTagOptions::FileRenamerTagOptions(QWidget *parent,
{
setupUi(this);
layout()->setSpacing(KDialog::spacingHint());
layout()->setMargin(0);
m_emptyTagGroup->layout()->setSpacing(KDialog::spacingHint());
m_trackGroup->layout()->setSpacing(KDialog::spacingHint());
#ifdef __GNUC__
#warning Just commenting these out for now.
#endif
/*
m_emptyValueLayout->setSpacing(KDialog::spacingHint());
m_exampleLayout->setSpacing(KDialog::spacingHint());
m_spinLayout->setSpacing(KDialog::spacingHint());
m_widthLayout->setSpacing(KDialog::spacingHint());
m_tagLayout->setSpacing(KDialog::spacingHint());
*/
m_tagFormatGroup->layout()->setSpacing(KDialog::spacingHint());
if(m_options.category() != Track)
m_trackGroup->hide();
QString tagText = m_options.tagTypeText();
setWindowTitle(i18n("%1 Options",tagText));
setWindowTitle(i18nc("%1 will be a music tag category like Artist or Album", "%1 Options",tagText));
m_tagFormatGroup->setTitle(i18n("%1 Format",tagText));
m_emptyTagGroup->setTitle(i18n("When the Track's %1 is Empty",tagText));
m_description->setText(i18n("When using the file renamer your files will be renamed to the values that you have in your track's %1 tag, plus any additional text that you specify below.",tagText));
m_tagLabel->setText(QString("%1").arg(tagText));
m_tagLabel->setText(tagText);
m_prefixText->setText(options.prefix());
m_suffixText->setText(options.suffix());
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment