| kwave
    18.07.70
    | 
#include <FileInfoDialog.h>


| Public Slots | |
| virtual void | accept () Q_DECL_OVERRIDE | 
| Public Member Functions | |
| FileInfoDialog (QWidget *parent, Kwave::FileInfo &info) | |
| virtual | ~FileInfoDialog () Q_DECL_OVERRIDE | 
| Kwave::FileInfo & | info () | 
| Protected Member Functions | |
| void | describeWidget (QWidget *widget, const QString &name, const QString &description) | 
| void | initInfo (QLabel *label, QWidget *widget, Kwave::FileProperty property) | 
| void | initInfoText (QLabel *label, QLineEdit *edit, Kwave::FileProperty property) | 
| Private Slots | |
| void | selectDate () | 
| void | setDateNow () | 
| void | tracksChanged (int tracks) | 
| void | updateAvailableCompressions () | 
| void | compressionChanged () | 
| void | mpegLayerChanged () | 
| void | mpegCopyrightedChanged (bool checked) | 
| void | mpegOriginalChanged (bool checked) | 
| void | autoGenerateKeywords () | 
| void | invokeHelp () | 
| Private Member Functions | |
| void | acceptEdit (Kwave::FileProperty property, QString value) | 
| void | setupFileInfoTab () | 
| void | setupCompressionTab (KConfigGroup &cfg) | 
| bool | isMpeg () const | 
| void | setupMpegTab () | 
| void | setupContentTab () | 
| void | setupSourceTab () | 
| void | setupAuthorCopyrightTab () | 
| void | setupMiscellaneousTab () | 
| Private Attributes | |
| Kwave::FileInfo | m_info | 
Definition at line 33 of file FileInfoDialog.h.
| Kwave::FileInfoDialog::FileInfoDialog | ( | QWidget * | parent, | 
| Kwave::FileInfo & | info | ||
| ) | 
Constructor
Definition at line 67 of file FileInfoDialog.cpp.
References compressionChanged(), CONFIG_DEFAULT_SECTION, Kwave::connect(), invokeHelp(), mpegCopyrightedChanged(), mpegLayerChanged(), mpegOriginalChanged(), setupAuthorCopyrightTab(), setupCompressionTab(), setupContentTab(), setupFileInfoTab(), setupMiscellaneousTab(), setupMpegTab(), and setupSourceTab().

| 
 | virtual | 
| 
 | virtualslot | 
applies the settings and closes the dialog (OK button)
Definition at line 937 of file FileInfoDialog.cpp.
References _, Kwave::CompressionWidget::ABR_MODE, acceptEdit(), CONFIG_DEFAULT_SECTION, Kwave::FileInfo::contains(), Kwave::FileInfo::dump(), Kwave::Compression::fromInt(), Kwave::Compression::hasABR(), Kwave::Compression::hasVBR(), Kwave::INF_ALBUM, Kwave::INF_ARCHIVAL, Kwave::INF_AUTHOR, Kwave::INF_BITRATE_LOWER, Kwave::INF_BITRATE_NOMINAL, Kwave::INF_BITRATE_UPPER, Kwave::INF_CD, Kwave::INF_CDS, Kwave::INF_COMMISSIONED, Kwave::INF_COMPRESSION, Kwave::INF_CONTACT, Kwave::INF_COPYRIGHT, Kwave::INF_COPYRIGHTED, Kwave::INF_CREATION_DATE, Kwave::INF_ENGINEER, Kwave::INF_GENRE, Kwave::INF_KEYWORDS, Kwave::INF_LICENSE, Kwave::INF_MIMETYPE, Kwave::INF_MPEG_EMPHASIS, Kwave::INF_MPEG_LAYER, Kwave::INF_MPEG_MODEEXT, Kwave::INF_NAME, Kwave::INF_ORGANIZATION, Kwave::INF_ORIGINAL, Kwave::INF_PRODUCT, Kwave::INF_SAMPLE_FORMAT, Kwave::INF_SOFTWARE, Kwave::INF_SOURCE, Kwave::INF_SOURCE_FORM, Kwave::INF_SUBJECT, Kwave::INF_TECHNICAN, Kwave::INF_TRACK, Kwave::INF_TRACKS, Kwave::INF_VBR_QUALITY, Kwave::INF_VERSION, isMpeg(), m_info, Kwave::Compression::NONE, Kwave::FileInfo::set(), Kwave::FileInfo::setBits(), Kwave::FileInfo::setRate(), Kwave::toInt(), Kwave::FileInfo::tracks(), and Kwave::CompressionWidget::VBR_MODE.
Referenced by info().


| 
 | private | 
takes the content of an edit field or similar into the current info ore removes it if the text is zero-length
Definition at line 923 of file FileInfoDialog.cpp.
References Kwave::FileInfo::contains(), m_info, and Kwave::FileInfo::set().
Referenced by accept(), and info().


| 
 | privateslot | 
auto-generate the list of keywords
Definition at line 822 of file FileInfoDialog.cpp.
References _.
Referenced by info(), and setupMiscellaneousTab().

| 
 | privateslot | 
called when the compression mode has changed
Definition at line 651 of file FileInfoDialog.cpp.
References Kwave::CompressionWidget::ABR_MODE, Kwave::CodecBase::compressionTypes(), Kwave::FileInfo::contains(), Kwave::CodecManager::encoder(), Kwave::CodecManager::encodingMimeTypes(), Kwave::Compression::fromInt(), Kwave::FileInfo::get(), Kwave::INF_BITRATE_LOWER, Kwave::INF_BITRATE_UPPER, Kwave::INF_MIMETYPE, isMpeg(), m_info, Kwave::Compression::MPEG_LAYER_I, Kwave::Compression::MPEG_LAYER_II, Kwave::Compression::MPEG_LAYER_III, Kwave::toInt(), and Kwave::CompressionWidget::VBR_MODE.
Referenced by FileInfoDialog(), info(), and setupCompressionTab().


| 
 | protected | 
Sets the tooltip and "what's this" of a widget.
| widget | any QWidget derived widget | 
| name | of the setting, normally equal to it's label | 
| description | verbose descriptive text that says what can be set | 
Definition at line 104 of file FileInfoDialog.cpp.
References _.
Referenced by info(), initInfo(), and setupFileInfoTab().

| 
 | inline | 
Returns the current file info
Definition at line 45 of file FileInfoDialog.h.
References accept(), acceptEdit(), autoGenerateKeywords(), compressionChanged(), describeWidget(), initInfo(), initInfoText(), invokeHelp(), isMpeg(), m_info, mpegCopyrightedChanged(), mpegLayerChanged(), mpegOriginalChanged(), name, selectDate(), setDateNow(), setupAuthorCopyrightTab(), setupCompressionTab(), setupContentTab(), setupFileInfoTab(), setupMiscellaneousTab(), setupMpegTab(), setupSourceTab(), tracksChanged(), and updateAvailableCompressions().
Referenced by Kwave::FileInfoPlugin::setup().


| 
 | protected | 
Sets the text of the label to the name of a file property and initializes the tool tip of the corresponding edit/display control.
| label | the label to be set | 
| widget | the control to get the tool tip | 
| property | the file property which it belongs to | 
Definition at line 114 of file FileInfoDialog.cpp.
References _, describeWidget(), Kwave::FileInfo::description(), m_info, Kwave::FileInfo::name(), and UTF8.
Referenced by info(), initInfoText(), setupCompressionTab(), setupContentTab(), setupFileInfoTab(), setupMpegTab(), and setupSourceTab().


| 
 | protected | 
Same as initInfo, but works only for text edit controls and sets the current text
Definition at line 124 of file FileInfoDialog.cpp.
References Kwave::FileInfo::get(), initInfo(), and m_info.
Referenced by info(), setupAuthorCopyrightTab(), setupContentTab(), setupFileInfoTab(), setupMiscellaneousTab(), and setupSourceTab().


| 
 | privateslot | 
invoke the online help
Definition at line 1121 of file FileInfoDialog.cpp.
References _.
Referenced by FileInfoDialog(), and info().

| 
 | private | 
returns true if the current compression is MPEG I/II/III
Definition at line 723 of file FileInfoDialog.cpp.
References Kwave::Compression::MPEG_LAYER_I, Kwave::Compression::MPEG_LAYER_II, Kwave::Compression::MPEG_LAYER_III, and Kwave::toInt().
Referenced by accept(), compressionChanged(), info(), mpegLayerChanged(), and setupMpegTab().


| 
 | privateslot | 
called when the MPEG "copyrighted" check box has changed
Definition at line 810 of file FileInfoDialog.cpp.
Referenced by FileInfoDialog(), info(), and setupMpegTab().

| 
 | privateslot | 
called when the MPEG layer combo box has changed
Definition at line 739 of file FileInfoDialog.cpp.
References Kwave::FileInfo::contains(), Kwave::FileInfo::get(), Kwave::INF_MPEG_MODEEXT, isMpeg(), m_info, Kwave::Compression::MPEG_LAYER_I, Kwave::Compression::MPEG_LAYER_II, Kwave::Compression::MPEG_LAYER_III, Kwave::Compression::NONE, Kwave::toInt(), and Kwave::FileInfo::tracks().
Referenced by FileInfoDialog(), info(), and setupMpegTab().


| 
 | privateslot | 
called when the MPEG "original" check box has changed
Definition at line 816 of file FileInfoDialog.cpp.
Referenced by FileInfoDialog(), info(), and setupMpegTab().

| 
 | privateslot | 
select a date for the "creation date" setting
Definition at line 562 of file FileInfoDialog.cpp.
Referenced by info(), and setupContentTab().

| 
 | privateslot | 
sets the "creation date" to today
Definition at line 573 of file FileInfoDialog.cpp.
Referenced by info(), and setupContentTab().

| 
 | private | 
initialize the "Author/Copyright" tab
Definition at line 526 of file FileInfoDialog.cpp.
References Kwave::INF_ARCHIVAL, Kwave::INF_AUTHOR, Kwave::INF_CONTACT, Kwave::INF_COPYRIGHT, Kwave::INF_ISRC, Kwave::INF_LICENSE, Kwave::INF_ORGANIZATION, Kwave::INF_PRODUCT, and initInfoText().
Referenced by FileInfoDialog(), and info().


| 
 | private | 
initialize the "Compression" tab
Definition at line 297 of file FileInfoDialog.cpp.
References Kwave::CompressionWidget::ABR_MODE, compressionChanged(), Kwave::FileInfo::contains(), Kwave::FileInfo::get(), Kwave::INF_BITRATE_LOWER, Kwave::INF_BITRATE_NOMINAL, Kwave::INF_BITRATE_UPPER, Kwave::INF_COMPRESSION, Kwave::INF_VBR_QUALITY, initInfo(), m_info, Kwave::toInt(), updateAvailableCompressions(), and Kwave::CompressionWidget::VBR_MODE.
Referenced by FileInfoDialog(), and info().


| 
 | private | 
initializes the "Content" tab
Definition at line 443 of file FileInfoDialog.cpp.
References Kwave::GenreType::allTypes(), Kwave::connect(), Kwave::FileInfo::contains(), Kwave::FileInfo::get(), Kwave::GenreType::id(), Kwave::INF_CREATION_DATE, Kwave::INF_GENRE, Kwave::INF_NAME, Kwave::INF_SUBJECT, Kwave::INF_VERSION, initInfo(), initInfoText(), m_info, Kwave::GenreType::name(), selectDate(), and setDateNow().
Referenced by FileInfoDialog(), and info().


| 
 | private | 
initializes the "File" tab
Definition at line 132 of file FileInfoDialog.cpp.
References _, Kwave::FileInfo::bits(), cmp(), Kwave::CodecBase::compressionTypes(), Kwave::connect(), Kwave::FileInfo::contains(), Kwave::TypesMap< IDX, DATA >::data(), DBG, describeWidget(), Kwave::TypesMap< IDX, DATA >::description(), Kwave::CodecManager::encoder(), Kwave::Compression::fromInt(), Kwave::FileInfo::get(), Kwave::INF_COMPRESSION, Kwave::INF_FILENAME, Kwave::INF_FILESIZE, Kwave::INF_MIMETYPE, Kwave::INF_SAMPLE_FORMAT, initInfo(), initInfoText(), Kwave::TypesMap< IDX, DATA >::keys(), Kwave::FileInfo::length(), m_info, Kwave::CodecManager::mimeTypeOf(), Kwave::ms2string(), Kwave::Compression::name(), Kwave::Compression::NONE, Kwave::Compression::preferredMimeType(), Kwave::FileInfo::rate(), Kwave::samples2string(), Kwave::FileInfo::set(), Kwave::SampleFormat::Signed, Kwave::CodecBase::supports(), Kwave::Compression::toInt(), Kwave::toInt(), Kwave::FileInfo::tracks(), and tracksChanged().
Referenced by FileInfoDialog(), and info().


| 
 | private | 
initialize the "Miscellaneous" tab
Definition at line 542 of file FileInfoDialog.cpp.
References _, autoGenerateKeywords(), Kwave::connect(), Kwave::FileInfo::contains(), Kwave::FileInfo::description(), Kwave::FileInfo::get(), Kwave::INF_COMMISSIONED, Kwave::INF_KEYWORDS, initInfoText(), m_info, and Kwave::FileInfo::name().
Referenced by FileInfoDialog(), and info().


| 
 | private | 
initialize the "MPEG" tab
Definition at line 346 of file FileInfoDialog.cpp.
References Kwave::FileInfo::contains(), Kwave::FileInfo::get(), Kwave::INF_COPYRIGHTED, Kwave::INF_MPEG_EMPHASIS, Kwave::INF_MPEG_LAYER, Kwave::INF_MPEG_MODEEXT, Kwave::INF_MPEG_VERSION, Kwave::INF_ORIGINAL, initInfo(), isMpeg(), m_info, mpegCopyrightedChanged(), mpegLayerChanged(), mpegOriginalChanged(), Kwave::toInt(), and Kwave::FileInfo::tracks().
Referenced by FileInfoDialog(), and info().


| 
 | private | 
initialize the "Source" tab
Definition at line 490 of file FileInfoDialog.cpp.
References Kwave::FileInfo::contains(), Kwave::FileInfo::get(), Kwave::INF_ALBUM, Kwave::INF_CD, Kwave::INF_CDS, Kwave::INF_ENGINEER, Kwave::INF_SOFTWARE, Kwave::INF_SOURCE, Kwave::INF_SOURCE_FORM, Kwave::INF_TECHNICAN, Kwave::INF_TRACK, Kwave::INF_TRACKS, initInfo(), initInfoText(), m_info, and Kwave::toInt().
Referenced by FileInfoDialog(), and info().


| 
 | privateslot | 
updates the verbose description of the number of tracks
Definition at line 579 of file FileInfoDialog.cpp.
References _.
Referenced by info(), and setupFileInfoTab().

| 
 | privateslot | 
update the combo box with the list of available compressions, according to the current mime type
Definition at line 598 of file FileInfoDialog.cpp.
References Kwave::CodecBase::compressionTypes(), Kwave::CodecManager::encoder(), Kwave::CodecManager::encodingMimeTypes(), Kwave::FileInfo::get(), Kwave::INF_COMPRESSION, Kwave::INF_MIMETYPE, m_info, Kwave::Compression::name(), Kwave::Compression::NONE, Kwave::Compression::toInt(), and Kwave::toInt().
Referenced by info(), and setupCompressionTab().


| 
 | private | 
FileInfo to be edited
Definition at line 152 of file FileInfoDialog.h.
Referenced by accept(), acceptEdit(), compressionChanged(), info(), initInfo(), initInfoText(), mpegLayerChanged(), setupCompressionTab(), setupContentTab(), setupFileInfoTab(), setupMiscellaneousTab(), setupMpegTab(), setupSourceTab(), and updateAvailableCompressions().