kwave  18.07.70
MP3EncoderDialog.cpp File Reference
#include "config.h"
#include <QAbstractButton>
#include <QApplication>
#include <QBuffer>
#include <QCursor>
#include <QDialogButtonBox>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QLatin1Char>
#include <QPointer>
#include <QProcess>
#include <QPushButton>
#include <QtGlobal>
#include <QLineEdit>
#include <KHelpClient>
#include <KProcess>
#include "libkwave/FileInfo.h"
#include "libkwave/MessageBox.h"
#include "libkwave/MetaDataList.h"
#include "libkwave/MultiTrackReader.h"
#include "libkwave/ReaderMode.h"
#include "libkwave/SignalManager.h"
#include "libkwave/String.h"
#include "libkwave/Utils.h"
#include "libgui/FileDialog.h"
#include "MP3Encoder.h"
#include "MP3EncoderDialog.h"
#include "MP3EncoderSettings.h"
Include dependency graph for MP3EncoderDialog.cpp:

Go to the source code of this file.

Macros

#define PRESET_NAME_USER_DEFINED   i18n("(user defined)")
 
#define EXE_SUFFIX   ""
 
#define LOAD(field, control)   control->setText(m_settings.field)
 
#define SAVE(field, control)   m_settings.field = QString(control->text()).simplified()
 
#define CONNECT(control)
 
#define CHECK(field, control)
 
#define ELEMENTS_OF(x)   (sizeof(x) / sizeof(x[0]))
 

Variables

const Kwave::MP3EncoderSettings g_predefined_settings []
 

Macro Definition Documentation

◆ CHECK

#define CHECK (   field,
  control 
)
Value:
match &= \
(settings.field == QString(control->text()).simplified())

check if the content of a QLineEdit matches the corresponding member of some "settings" record

Parameters
fieldmember within m_settings
controlthe QLineEdit to compare against
Returns
the bool variable "match" is updated (logical AND)

Definition at line 248 of file MP3EncoderDialog.cpp.

Referenced by Kwave::MP3EncoderDialog::switchToUserDefined().

◆ CONNECT

#define CONNECT (   control)
Value:
connect(control, SIGNAL(editingFinished()), \
this, SLOT(switchToUserDefined()))
bool connect(Kwave::StreamObject &source, const char *output, Kwave::StreamObject &sink, const char *input)
Definition: Connect.cpp:48

connect the editingFinished() signal of a QLineEdit to our slot switchToUserDefined()

Parameters
controlthe QLineEdit to handle

Definition at line 237 of file MP3EncoderDialog.cpp.

Referenced by Kwave::MP3EncoderDialog::MP3EncoderDialog().

◆ ELEMENTS_OF

◆ EXE_SUFFIX

#define EXE_SUFFIX   ""

Definition at line 59 of file MP3EncoderDialog.cpp.

◆ LOAD

#define LOAD (   field,
  control 
)    control->setText(m_settings.field)

load a text field with the content of the current settings

Parameters
fieldmember within m_settings
controlthe QLineEdit to fill with the value

Definition at line 222 of file MP3EncoderDialog.cpp.

Referenced by Kwave::MP3EncoderDialog::load().

◆ PRESET_NAME_USER_DEFINED

#define PRESET_NAME_USER_DEFINED   i18n("(user defined)")

text of the last entry in the combo box, for user defined settings

Definition at line 54 of file MP3EncoderDialog.cpp.

Referenced by Kwave::MP3EncoderDialog::MP3EncoderDialog(), and Kwave::MP3EncoderDialog::updateEncoderInfo().

◆ SAVE

#define SAVE (   field,
  control 
)    m_settings.field = QString(control->text()).simplified()

take the content of a QLineEdit and save it back into m_settings

Parameters
fieldmember within m_settings
controlthe QLineEdit to fill with the value

Definition at line 229 of file MP3EncoderDialog.cpp.

Referenced by Kwave::MP3EncoderDialog::save().

Variable Documentation

◆ g_predefined_settings

const Kwave::MP3EncoderSettings g_predefined_settings[]

set of predefined encoder settings

Definition at line 65 of file MP3EncoderDialog.cpp.