kwave
18.07.70
|
#include <K3BExportDialog.h>
Public Member Functions | |
K3BExportDialog (const QString &startDir, const QString &filter, QWidget *parent, const QUrl &last_url, const QString &last_ext, QString &pattern, bool selection_only, bool have_selection, Kwave::K3BExportPlugin::export_location_t export_location, Kwave::K3BExportPlugin::overwrite_policy_t overwrite_policy) | |
virtual | ~K3BExportDialog () |
QString | pattern () const |
bool | selectionOnly () const |
Kwave::K3BExportPlugin::export_location_t | exportLocation () const |
Kwave::K3BExportPlugin::overwrite_policy_t | overwritePolicy () const |
![]() | |
FileDialog (const QString &startDir, OperationMode mode, const QString &filter, QWidget *parent, const QUrl last_url=QUrl(), const QString last_ext=QString()) | |
virtual | ~FileDialog () Q_DECL_OVERRIDE |
QString | selectedExtension () |
QUrl | selectedUrl () const |
QUrl | baseUrl () const |
void | setDirectory (const QString &directory) |
void | selectUrl (const QUrl &url) |
void | setCustomWidget (QWidget *widget) |
KUrlComboBox * | locationEdit () const |
Private Attributes | |
Kwave::K3BExportWidget * | m_widget |
Additional Inherited Members | |
![]() | |
enum | OperationMode { SaveFile = 0, OpenFile, SelectDir } |
![]() | |
void | filterChanged (const QString &filter) |
![]() | |
virtual void | accept () Q_DECL_OVERRIDE |
void | saveConfig () |
![]() | |
void | loadConfig (const QString §ion) |
Definition at line 37 of file K3BExportDialog.h.
Kwave::K3BExportDialog::K3BExportDialog | ( | const QString & | startDir, |
const QString & | filter, | ||
QWidget * | parent, | ||
const QUrl & | last_url, | ||
const QString & | last_ext, | ||
QString & | pattern, | ||
bool | selection_only, | ||
bool | have_selection, | ||
Kwave::K3BExportPlugin::export_location_t | export_location, | ||
Kwave::K3BExportPlugin::overwrite_policy_t | overwrite_policy | ||
) |
Constructor.
startDir | the start directory |
filter | string with a file type filter |
parent | the parent widget |
last_url | the last used URL |
last_ext | the last used extension (preset only) |
pattern | the pattern used for detecting title and artist |
selection_only | if true, save only the selection |
have_selection | if true, there is a selection |
export_location | where to export files with tracks |
overwrite_policy | overwrite existing files or use a new name |
Definition at line 32 of file K3BExportDialog.cpp.
References m_widget, and Kwave::FileDialog::setCustomWidget().
|
virtual |
Kwave::K3BExportPlugin::export_location_t Kwave::K3BExportDialog::exportLocation | ( | ) | const |
returns export location of the files of the tracks
Definition at line 78 of file K3BExportDialog.cpp.
References Kwave::K3BExportPlugin::EXPORT_TO_SUB_DIR, Kwave::K3BExportWidget::exportLocation(), and m_widget.
Kwave::K3BExportPlugin::overwrite_policy_t Kwave::K3BExportDialog::overwritePolicy | ( | ) | const |
returns the file overwrite policy
Definition at line 87 of file K3BExportDialog.cpp.
References m_widget, Kwave::K3BExportWidget::overwritePolicy(), and Kwave::K3BExportPlugin::USE_NEW_FILE_NAMES.
QString Kwave::K3BExportDialog::pattern | ( | ) | const |
returns the title/artist detection pattern (as is, not escaped)
Definition at line 63 of file K3BExportDialog.cpp.
References _, m_widget, and Kwave::K3BExportWidget::pattern().
bool Kwave::K3BExportDialog::selectionOnly | ( | ) | const |
returns true if only the selection should be saved
Definition at line 70 of file K3BExportDialog.cpp.
References m_widget, and Kwave::K3BExportWidget::selectionOnly().
|
private |
the widget with extra settings for K3B export
Definition at line 87 of file K3BExportDialog.h.
Referenced by exportLocation(), K3BExportDialog(), overwritePolicy(), pattern(), selectionOnly(), and ~K3BExportDialog().