kwave
18.07.70
|
#include <MP3EncoderDialog.h>
Public Slots | |
void | load () |
void | save () |
Public Member Functions | |
MP3EncoderDialog (QWidget *parent) | |
virtual | ~MP3EncoderDialog () |
Private Slots | |
void | selectProgram (int index) |
void | switchToUserDefined () |
void | buttonClicked (QAbstractButton *button) |
void | autoDetect () |
void | locatePath () |
void | browseFile () |
void | testSettings () |
void | encoderHelp () |
void | invokeHelp () |
Private Member Functions | |
QString | callWithParam (const QString &path, const QString ¶m) |
QString | encoderVersion (const QString &path, const QString ¶m) |
QString | searchPath (const QString &program) |
void | updateEncoderInfo () |
Private Attributes | |
Kwave::MP3EncoderSettings | m_settings |
Definition at line 37 of file MP3EncoderDialog.h.
|
explicit |
Constructor
Definition at line 254 of file MP3EncoderDialog.cpp.
References _, autoDetect(), browseFile(), buttonClicked(), Kwave::connect(), CONNECT, ELEMENTS_OF, encoderHelp(), encoderVersion(), invokeHelp(), Kwave::MP3EncoderSettings::load(), load(), locatePath(), Kwave::MP3EncoderSettings::m_info, Kwave::MP3EncoderSettings::m_name, m_settings, Kwave::MP3EncoderSettings::m_version, name, PRESET_NAME_USER_DEFINED, searchPath(), selectProgram(), and testSettings().
|
virtual |
|
privateslot |
auto-detect settings
Definition at line 562 of file MP3EncoderDialog.cpp.
References ELEMENTS_OF, locatePath(), searchPath(), and selectProgram().
Referenced by MP3EncoderDialog().
|
privateslot |
search for the program, file browser
Definition at line 588 of file MP3EncoderDialog.cpp.
References _, Kwave::FileDialog::OpenFile, and Kwave::FileDialog::setDirectory().
Referenced by MP3EncoderDialog().
|
privateslot |
evaluates a click to one of the standard buttons
Definition at line 540 of file MP3EncoderDialog.cpp.
References load(), save(), and selectProgram().
Referenced by MP3EncoderDialog().
|
private |
Calls the program with one parameter and returns the output of stderr/stdout (combined) as a string
path | the path of the program to call |
param | a command line parameter |
Definition at line 674 of file MP3EncoderDialog.cpp.
References DBG.
Referenced by encoderHelp(), and encoderVersion().
|
privateslot |
show help about the encoder
Definition at line 662 of file MP3EncoderDialog.cpp.
References callWithParam().
Referenced by MP3EncoderDialog().
|
private |
Retrieves the title/name of an encoder by calling it once
path | the path of the encoder program |
param | the command line parameter to get the version |
Definition at line 698 of file MP3EncoderDialog.cpp.
References callWithParam().
Referenced by MP3EncoderDialog(), and updateEncoderInfo().
|
privateslot |
show the help page the manual
Definition at line 779 of file MP3EncoderDialog.cpp.
References _.
Referenced by MP3EncoderDialog().
|
slot |
load all settings from the config file
Definition at line 371 of file MP3EncoderDialog.cpp.
References ELEMENTS_OF, LOAD, Kwave::MP3EncoderSettings::m_name, Kwave::MP3EncoderSettings::m_path, m_settings, Kwave::toInt(), and updateEncoderInfo().
Referenced by buttonClicked(), MP3EncoderDialog(), and selectProgram().
|
privateslot |
locate the full path of the file
Definition at line 577 of file MP3EncoderDialog.cpp.
References searchPath(), and updateEncoderInfo().
Referenced by autoDetect(), and MP3EncoderDialog().
|
slot |
store all settings to a config file
Definition at line 427 of file MP3EncoderDialog.cpp.
References _, ELEMENTS_OF, Kwave::MP3EncoderSettings::m_name, m_settings, Kwave::MP3EncoderSettings::save(), SAVE, and Kwave::toInt().
Referenced by buttonClicked(), Kwave::MP3CodecPlugin::setup(), and testSettings().
|
private |
Search for an encoder in the system PATH
program | name of the program |
Definition at line 713 of file MP3EncoderDialog.cpp.
Referenced by autoDetect(), locatePath(), MP3EncoderDialog(), and updateEncoderInfo().
|
privateslot |
called when the selection of the program has changed
Definition at line 473 of file MP3EncoderDialog.cpp.
References ELEMENTS_OF, load(), m_settings, and Kwave::toInt().
Referenced by autoDetect(), buttonClicked(), and MP3EncoderDialog().
|
privateslot |
called whenever an edit field has changed its value
Definition at line 483 of file MP3EncoderDialog.cpp.
References CHECK, ELEMENTS_OF, Kwave::MP3EncoderSettings::m_path, Kwave::toInt(), and updateEncoderInfo().
|
privateslot |
test the settings
Definition at line 611 of file MP3EncoderDialog.cpp.
References Kwave::MP3Encoder::encode(), Kwave::INF_BITRATE_LOWER, Kwave::INF_BITRATE_NOMINAL, Kwave::INF_BITRATE_UPPER, Kwave::INF_COPYRIGHTED, Kwave::INF_MPEG_EMPHASIS, Kwave::INF_ORIGINAL, Kwave::SignalManager::metaData(), Kwave::SignalManager::newSignal(), Kwave::MetaDataList::replace(), save(), Kwave::FileInfo::set(), and Kwave::SinglePassForward.
Referenced by MP3EncoderDialog().
|
private |
updates the version info string of the current encoder
Definition at line 747 of file MP3EncoderDialog.cpp.
References ELEMENTS_OF, encoderVersion(), Kwave::MP3EncoderSettings::m_info, Kwave::MP3EncoderSettings::m_name, Kwave::MP3EncoderSettings::m_version, name, PRESET_NAME_USER_DEFINED, searchPath(), and Kwave::toInt().
Referenced by load(), locatePath(), and switchToUserDefined().
|
private |
current encoder settings, complete struct
Definition at line 119 of file MP3EncoderDialog.h.
Referenced by load(), MP3EncoderDialog(), save(), and selectProgram().