|
kwave
18.07.70
|
#include <SaveBlocksDialog.h>


Public Slots | |
| void | setNewExample (const QString &example) |
| void | emitUpdate () |
Signals | |
| void | sigSelectionChanged (const QString &filename, const QString &pattern, Kwave::SaveBlocksPlugin::numbering_mode_t mode, bool selection_only) |
Signals inherited from Kwave::FileDialog | |
| void | filterChanged (const QString &filter) |
Public Member Functions | |
| SaveBlocksDialog (const QString &startDir, const QString &filter, QWidget *parent, const QUrl &last_url, const QString &last_ext, QString &filename_pattern, Kwave::SaveBlocksPlugin::numbering_mode_t numbering_mode, bool selection_only, bool have_selection) | |
| virtual | ~SaveBlocksDialog () |
| QString | pattern () |
| Kwave::SaveBlocksPlugin::numbering_mode_t | numberingMode () |
| bool | selectionOnly () |
Public Member Functions inherited from Kwave::FileDialog | |
| 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::SaveBlocksWidget * | m_widget |
Additional Inherited Members | |
Public Types inherited from Kwave::FileDialog | |
| enum | OperationMode { SaveFile = 0, OpenFile, SelectDir } |
Protected Slots inherited from Kwave::FileDialog | |
| virtual void | accept () Q_DECL_OVERRIDE |
| void | saveConfig () |
Protected Member Functions inherited from Kwave::FileDialog | |
| void | loadConfig (const QString §ion) |
Definition at line 37 of file SaveBlocksDialog.h.
| Kwave::SaveBlocksDialog::SaveBlocksDialog | ( | const QString & | startDir, |
| const QString & | filter, | ||
| QWidget * | parent, | ||
| const QUrl & | last_url, | ||
| const QString & | last_ext, | ||
| QString & | filename_pattern, | ||
| Kwave::SaveBlocksPlugin::numbering_mode_t | numbering_mode, | ||
| bool | selection_only, | ||
| bool | have_selection | ||
| ) |
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) |
| filename_pattern | the pattern used for generating the file names |
| numbering_mode | the way the numbers are given |
| selection_only | if true, save only the selection |
| have_selection | if true, there is a selection |
Definition at line 32 of file SaveBlocksDialog.cpp.
References Kwave::connect(), emitUpdate(), Kwave::FileDialog::filterChanged(), Kwave::FileDialog::locationEdit(), m_widget, and Kwave::FileDialog::setCustomWidget().

|
virtual |
Destructor
Definition at line 60 of file SaveBlocksDialog.cpp.
References m_widget.
|
slot |
collects all needed data and emits a sigSelectionChanged
Definition at line 96 of file SaveBlocksDialog.cpp.
References _, Kwave::FileDialog::baseUrl(), Kwave::FileDialog::locationEdit(), numberingMode(), pattern(), Kwave::FileDialog::selectedExtension(), selectionOnly(), and sigSelectionChanged().
Referenced by SaveBlocksDialog().


| Kwave::SaveBlocksPlugin::numbering_mode_t Kwave::SaveBlocksDialog::numberingMode | ( | ) |
returns the numbering mode
Definition at line 74 of file SaveBlocksDialog.cpp.
References Kwave::SaveBlocksPlugin::CONTINUE, m_widget, and Kwave::SaveBlocksWidget::numberingMode().
Referenced by emitUpdate().


| QString Kwave::SaveBlocksDialog::pattern | ( | ) |
returns the file name pattern (as is, not escaped)
Definition at line 67 of file SaveBlocksDialog.cpp.
References _, m_widget, and Kwave::SaveBlocksWidget::pattern().
Referenced by emitUpdate().


| bool Kwave::SaveBlocksDialog::selectionOnly | ( | ) |
returns true if only the selection should be saved
Definition at line 82 of file SaveBlocksDialog.cpp.
References m_widget, and Kwave::SaveBlocksWidget::selectionOnly().
Referenced by emitUpdate().


|
slot |
update the filename preview
| example | the example filename |
Definition at line 89 of file SaveBlocksDialog.cpp.
References m_widget, and Kwave::SaveBlocksWidget::setNewExample().

|
signal |
emitted whenever the selection has changed and a new example has to be shown.
| filename | the currently selected filename |
| pattern | the selected filename pattern |
| mode | the numbering mode |
| selection_only | if true: save only the selection |
Referenced by emitUpdate().

|
private |
the widget with extra settings for saving the blocks
Definition at line 108 of file SaveBlocksDialog.h.
Referenced by numberingMode(), pattern(), SaveBlocksDialog(), selectionOnly(), setNewExample(), and ~SaveBlocksDialog().