38 :QWidget(parent), Ui::K3BExportWidgetBase()
42 cbLabelPattern->addItem(i18nc(
43 "default entry of the list of placeholder patterns in " 44 "the K3b export plugin (used for detecting title and artist " 45 "from a label description)",
49 cbLabelPattern->addItem(p);
51 Q_ASSERT(cbLabelPattern);
52 if (pattern.trimmed().length())
53 cbLabelPattern->setCurrentText(pattern.trimmed());
55 cbLabelPattern->setCurrentIndex(0);
58 Q_ASSERT(chkSelectionOnly);
61 chkSelectionOnly->setEnabled(
true);
62 chkSelectionOnly->setChecked(selection_only);
65 chkSelectionOnly->setEnabled(
false);
66 chkSelectionOnly->setChecked(
false);
69 Q_ASSERT(cbExportLocation);
70 cbExportLocation->setCurrentIndex(static_cast<int>(export_location));
72 Q_ASSERT(cbOverwritePolicy);
73 cbOverwritePolicy->setCurrentIndex(static_cast<int>(overwrite_policy));
84 Q_ASSERT(cbLabelPattern);
85 if (!cbLabelPattern)
return QString();
89 QString p = cbLabelPattern->currentText().trimmed();
90 if (p == cbLabelPattern->itemText(0))
return QString();
98 Q_ASSERT(chkSelectionOnly);
99 return (chkSelectionOnly) ? chkSelectionOnly->isChecked() :
false;
106 Q_ASSERT(cbExportLocation);
109 cbExportLocation->currentIndex() : 0
117 Q_ASSERT(cbOverwritePolicy);
119 (cbOverwritePolicy) ?
120 cbOverwritePolicy->currentIndex() : 0
static QStringList knownPatterns()