[329081]: plugins / codec_mp3 / MP3EncoderDialog.cpp  Maximize  Restore  History

Download this file

733 lines (627 with data), 23.4 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
/***************************************************************************
MP3EncoderDialog.cpp - dialog for configuring the MP3 encoer
-------------------
begin : Sun Jun 03 2012
copyright : (C) 2012 by Thomas Eschenbacher
email : Thomas.Eschenbacher@gmx.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "config.h"
#include <QAbstractButton>
#include <QBuffer>
#include <QCursor>
#include <QDialogButtonBox>
#include <QDir>
#include <QFile>
#include <QFileInfo>
#include <QLineEdit>
#include <QApplication>
#include <QProcess>
#include <QtGlobal>
#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 "libgui/KwaveFileDialog.h"
#include "MP3Encoder.h"
#include "MP3EncoderDialog.h"
#include "MP3EncoderSettings.h"
/** text of the last entry in the combo box, for user defined settings */
#define PRESET_NAME_USER_DEFINED i18n("(user defined)")
#ifdef EXECUTABLE_SUFFIX
#define EXE_SUFFIX EXECUTABLE_SUFFIX
#else
#define EXE_SUFFIX ""
#endif
/**
* set of predefined encoder settings
*/
const Kwave::MP3EncoderSettings g_predefined_settings[] =
{
{
"LAME", // name
"lame" EXE_SUFFIX, // path
{
"-r", // raw format
#if Q_BYTE_ORDER == Q_BIG_ENDIAN
"--big-endian", // byte order
#else
"--little-endian", // byte order
#endif
"--signed" // signed
},
{
"-s %1", // sample rate
"-bitwidth=%1", // bits per sample
{
"-mm", // mono
"-mj" // stereo
}
},
{
{
"--abr %1", // average bitrate
"-b %1", // minimum bitrate
"-B %1" // maximum bitrate
}
},
{
{
"-en", // no emphasis
"-e5", // 50/15ms
"-ec" // CCIT J17
},
"-q 2", // noise shaping
"--strictly-enforce-ISO" // compatibility
},
{
"-c", // copyrighted
"-o", // original
"-p", // protect
"", // prepended
"--silent" // appended
},
{
"--longhelp", // encoder help
"--version" // encoder version
}
},
/***********************************************************************/
{
"TwoLAME", // name
"twolame" EXE_SUFFIX, // path
{
"--raw-input", // raw format
#if Q_BYTE_ORDER == Q_BIG_ENDIAN
"--byte-swap", // byte order
#else
"", // byte order
#endif
"" // signed
},
{
"--samplerate=%1", // sample rate
"--samplesize=%1", // bits per sample
{
"--channels=1 --mode=mono", // mono
"--channels=2 --mode=joint" // stereo
}
},
{
{
"--bitrate=%1", // average bitrate
"", // minimum bitrate
"--max-bitrate=%1" // maximum bitrate
}
},
{
{
"--deemphasis=n", // no emphasis
"--deemphasis=5", // 50/15ms
"--deemphasis=c" // CCIT J17
},
"", // noise shaping
"" // compatibility
},
{
"--copyright", // copyrighted
"--original", // original
"--protect", // protect
"", // prepended
"--quiet" // appended
},
{
"--help", // encoder help
"--help" // encoder version
}
},
/***********************************************************************/
{
"tooLAME", // name
"toolame" EXE_SUFFIX, // path
{
"", // raw format
#if Q_BYTE_ORDER == Q_BIG_ENDIAN
"-x", // byte order
#else
"", // byte order
#endif
"" // signed
},
{
"-s [%khz]", // sample rate
"-bitwidth=%1", // bits per sample
{
"-mm", // mono
"-mj" // stereo
}
},
{
{
"-b %1", // average bitrate
"", // minimum bitrate
"" // maximum bitrate
}
},
{
{
"-dn", // no emphasis
"-d5", // 50/15ms
"-dc" // CCIT J17
},
"", // noise shaping
"" // compatibility
},
{
"-c", // copyrighted
"-o", // original
"-e", // protect
"", // prepended
"-t 0" // appended
},
{
"-help", // encoder help
"-version" // encoder version
}
}
};
/***************************************************************************/
/**
* load a text field with the content of the current settings
* @param __field__ member within m_settings
* @param __control__ the QLineEdit to fill with the value
*/
#define LOAD(__field__, __control__) __control__->setText(m_settings.__field__)
/**
* take the content of a QLineEdit and save it back into m_settings
* @param __field__ member within m_settings
* @param __control__ the QLineEdit to fill with the value
*/
#define SAVE(__field__, __control__) \
m_settings.__field__ = QString(__control__->text()).simplified()
/**
* connect the editingFinished() signal of a QLineEdit to our slot
* switchToUserDefined()
* @param __control__ the QLineEdit to handle
*/
#define CONNECT(__control__) \
connect(__control__, SIGNAL(editingFinished()), \
this, SLOT(switchToUserDefined()))
/**
* check if the content of a QLineEdit matches the corresponding member
* of some "settings" record
* @param __field__ member within m_settings
* @param __control__ the QLineEdit to compare against
* @return the bool variable "match" is updated (logical AND)
*/
#define CHECK(__field__, __control__) match &= \
(settings.__field__ == QString(__control__->text()).simplified())
#define ELEMENTS_OF(x) (sizeof(x) / sizeof(x[0]))
/***************************************************************************/
Kwave::MP3EncoderDialog::MP3EncoderDialog(QWidget *parent)
:QDialog(parent), Ui::MP3EncoderDialogBase(),
m_settings(g_predefined_settings[0])
{
setupUi(this);
setModal(true);
// set up the combo box with all presets
cbProgram->clear();
for (unsigned int i = 0; i < ELEMENTS_OF(g_predefined_settings); i++) {
QString name = g_predefined_settings[i].m_name;
QString path = searchPath(g_predefined_settings[i].m_path);
QString param = g_predefined_settings[i].m_info.m_version;
QString version = encoderVersion(path, param);
if (version.length() >= name.length())
cbProgram->addItem(version);
else
cbProgram->addItem(name);
}
cbProgram->addItem(PRESET_NAME_USER_DEFINED);
// load the saved settings from the config file
m_settings.load();
load();
// connect the combo box of the program selection
connect(cbProgram, SIGNAL(activated(int)),
this, SLOT(selectProgram(int)));
// standard actions, reset / reset to defaults etc...
connect(buttonBox, SIGNAL(clicked(QAbstractButton *)),
this, SLOT(buttonClicked(QAbstractButton *)));
// auto-detec button
connect(btDetect, SIGNAL(clicked()), this, SLOT(autoDetect()));
// locate file path button
connect(btLocate, SIGNAL(clicked()), this, SLOT(locatePath()));
// search for program (file browser)
connect(btSearch, SIGNAL(clicked()), this, SLOT(browseFile()));
// test setup
connect(btTest, SIGNAL(clicked()), this, SLOT(testSettings()));
// builtin help of the encoder
connect(btEncoderHelp, SIGNAL(clicked()), this, SLOT(encoderHelp()));
// whenever a setting has been manally edited, check if that is a
// user defined setting or a predefined set of parameters
CONNECT(edPath);
CONNECT(edRawFormat);
CONNECT(edByteOrder);
CONNECT(edSign);
CONNECT(edSampleRate);
CONNECT(edBitsPerSample);
CONNECT(edMono);
CONNECT(edStereo);
CONNECT(edBitrateAvg);
CONNECT(edBitrateMin);
CONNECT(edBitrateMax);
CONNECT(edEmphasisNone);
CONNECT(edEmphasis5015ms);
CONNECT(edEmphasisCCIT_J17);
CONNECT(edNoiseShaping);
CONNECT(edCompatibility);
CONNECT(edCopyright);
CONNECT(edOriginal);
CONNECT(edProtect);
CONNECT(edPrepend);
CONNECT(edAppend);
CONNECT(edEncoderHelp);
CONNECT(edVersionInfo);
}
/***************************************************************************/
Kwave::MP3EncoderDialog::~MP3EncoderDialog()
{
}
/***************************************************************************/
void Kwave::MP3EncoderDialog::load()
{
// cbProgram
unsigned int i = 0;
bool use_preset = false;
for (i = 0; i < ELEMENTS_OF(g_predefined_settings); i++) {
if (g_predefined_settings[i].m_name == m_settings.m_name) {
QString path = m_settings.m_path;
m_settings = g_predefined_settings[i];
m_settings.m_path = path;
cbProgram->setCurrentIndex(i);
use_preset = true;
break;
}
}
if ((!use_preset) && (cbProgram->currentIndex() != static_cast<int>(i))) {
// set the combo box to "user defined" and load the rest from the config
cbProgram->setCurrentIndex(i);
}
// set all other dialog content according to the loaded settings
LOAD(m_path, edPath);
LOAD(m_input.m_raw_format, edRawFormat);
LOAD(m_input.m_byte_order, edByteOrder);
LOAD(m_input.m_signed, edSign);
LOAD(m_format.m_sample_rate, edSampleRate);
LOAD(m_format.m_bits_per_sample, edBitsPerSample);
LOAD(m_format.m_channels.m_mono, edMono);
LOAD(m_format.m_channels.m_stereo, edStereo);
LOAD(m_quality.m_bitrate.m_avg, edBitrateAvg);
LOAD(m_quality.m_bitrate.m_min, edBitrateMin);
LOAD(m_quality.m_bitrate.m_max, edBitrateMax);
LOAD(m_encoding.m_emphasis.m_none, edEmphasisNone);
LOAD(m_encoding.m_emphasis.m_50_15ms, edEmphasis5015ms);
LOAD(m_encoding.m_emphasis.m_ccit_j17, edEmphasisCCIT_J17);
LOAD(m_encoding.m_noise_shaping, edNoiseShaping);
LOAD(m_encoding.m_compatibility, edCompatibility);
LOAD(m_flags.m_copyright, edCopyright);
LOAD(m_flags.m_original, edOriginal);
LOAD(m_flags.m_protect, edProtect);
LOAD(m_flags.m_prepend, edPrepend);
LOAD(m_flags.m_append, edAppend);
LOAD(m_info.m_help, edEncoderHelp);
LOAD(m_info.m_version, edVersionInfo);
updateEncoderInfo();
}
/***************************************************************************/
void Kwave::MP3EncoderDialog::save()
{
// get the content of the combo box
int index = cbProgram->currentIndex();
if (index < static_cast<int>(ELEMENTS_OF(g_predefined_settings))) {
m_settings.m_name = g_predefined_settings[index].m_name;
} else {
m_settings.m_name = "*";
}
// fetch all settings from the dialog content
SAVE(m_path, edPath);
SAVE(m_input.m_raw_format, edRawFormat);
SAVE(m_input.m_byte_order, edByteOrder);
SAVE(m_input.m_signed, edSign);
SAVE(m_format.m_sample_rate, edSampleRate);
SAVE(m_format.m_bits_per_sample, edBitsPerSample);
SAVE(m_format.m_channels.m_mono, edMono);
SAVE(m_format.m_channels.m_stereo, edStereo);
SAVE(m_quality.m_bitrate.m_avg, edBitrateAvg);
SAVE(m_quality.m_bitrate.m_min, edBitrateMin);
SAVE(m_quality.m_bitrate.m_max, edBitrateMax);
SAVE(m_encoding.m_emphasis.m_none, edEmphasisNone);
SAVE(m_encoding.m_emphasis.m_50_15ms, edEmphasis5015ms);
SAVE(m_encoding.m_emphasis.m_ccit_j17, edEmphasisCCIT_J17);
SAVE(m_encoding.m_noise_shaping, edNoiseShaping);
SAVE(m_encoding.m_compatibility, edCompatibility);
SAVE(m_flags.m_copyright, edCopyright);
SAVE(m_flags.m_original, edOriginal);
SAVE(m_flags.m_protect, edProtect);
SAVE(m_flags.m_prepend, edPrepend);
SAVE(m_flags.m_append, edAppend);
SAVE(m_info.m_help, edEncoderHelp);
SAVE(m_info.m_version, edVersionInfo);
m_settings.save();
}
/***************************************************************************/
void Kwave::MP3EncoderDialog::selectProgram(int index)
{
if (index < 0) return;
if (index >= static_cast<int>(ELEMENTS_OF(g_predefined_settings))) return;
m_settings = g_predefined_settings[index];
load();
}
/***************************************************************************/
void Kwave::MP3EncoderDialog::switchToUserDefined()
{
int index = cbProgram->currentIndex();
for (unsigned i = 0; i < ELEMENTS_OF(g_predefined_settings); i++) {
const Kwave::MP3EncoderSettings &settings =
g_predefined_settings[i];
bool match = true;
match &= bool(edPath->text().simplified().contains(settings.m_path,
Qt::CaseInsensitive));
CHECK(m_input.m_raw_format, edRawFormat);
CHECK(m_input.m_byte_order, edByteOrder);
CHECK(m_input.m_signed, edSign);
CHECK(m_format.m_sample_rate, edSampleRate);
CHECK(m_format.m_bits_per_sample, edBitsPerSample);
CHECK(m_format.m_channels.m_mono, edMono);
CHECK(m_format.m_channels.m_stereo, edStereo);
CHECK(m_quality.m_bitrate.m_avg, edBitrateAvg);
CHECK(m_quality.m_bitrate.m_min, edBitrateMin);
CHECK(m_quality.m_bitrate.m_max, edBitrateMax);
CHECK(m_encoding.m_emphasis.m_none, edEmphasisNone);
CHECK(m_encoding.m_emphasis.m_50_15ms, edEmphasis5015ms);
CHECK(m_encoding.m_emphasis.m_ccit_j17, edEmphasisCCIT_J17);
CHECK(m_encoding.m_noise_shaping, edNoiseShaping);
CHECK(m_encoding.m_compatibility, edCompatibility);
CHECK(m_flags.m_copyright, edCopyright);
CHECK(m_flags.m_original, edOriginal);
CHECK(m_flags.m_protect, edProtect);
CHECK(m_flags.m_prepend, edPrepend);
CHECK(m_flags.m_append, edAppend);
CHECK(m_info.m_help, edEncoderHelp);
CHECK(m_info.m_version, edVersionInfo);
if (match) {
// found a match against known preset
if (static_cast<int>(i) != index) {
cbProgram->setCurrentIndex(i);
updateEncoderInfo();
}
return;
}
}
// fallback: "user defined"
cbProgram->setCurrentIndex(ELEMENTS_OF(g_predefined_settings));
updateEncoderInfo();
}
/***************************************************************************/
void Kwave::MP3EncoderDialog::buttonClicked(QAbstractButton *button)
{
if (!button || !buttonBox) return;
switch (buttonBox->standardButton(button)) {
case QDialogButtonBox::Ok:
// save settings and accept
save();
break;
case QDialogButtonBox::Reset:
// reset to last saved state
load();
break;
case QDialogButtonBox::RestoreDefaults:
// reset to default settings == entry #0 in the combo box
selectProgram(0);
break;
default:
break;
}
}
/***************************************************************************/
void Kwave::MP3EncoderDialog::autoDetect()
{
for (unsigned i = 0; i < ELEMENTS_OF(g_predefined_settings); i++) {
QFile f(searchPath(g_predefined_settings[i].m_path));
if (f.exists()) {
// found it :)
cbProgram->setCurrentIndex(i);
return;
}
}
}
/***************************************************************************/
void Kwave::MP3EncoderDialog::locatePath()
{
const QString prog_orig = edPath->text().simplified();
const QString prog = searchPath(prog_orig);
if (prog != prog_orig) {
edPath->setText(prog);
updateEncoderInfo();
}
}
/***************************************************************************/
void Kwave::MP3EncoderDialog::browseFile()
{
QString mask = QString("*");
#ifdef EXECUTABLE_SUFFIX
mask += QString(EXECUTABLE_SUFFIX);
#endif
KwaveFileDialog dlg("kfiledialog:///kwave_mp3_encoder", "", this,
true, "file:/" + edPath->text().simplified(), mask);
dlg.setKeepLocation(true);
dlg.setOperationMode(KFileDialog::Opening);
dlg.setCaption(i18n("Select MP3 Encoder"));
dlg.setUrl(KUrl("file:/usr/bin/"));
if (dlg.exec() != QDialog::Accepted) return;
edPath->setText(dlg.selectedFile());
}
/***************************************************************************/
void Kwave::MP3EncoderDialog::testSettings()
{
const sample_index_t test_length = 128 * 1024; // 128k samples
const double sample_rate = 44100.0;
const unsigned int bits = 16;
const unsigned int tracks = 2;
// save all data, so that the encoder can read it
save();
// us a dummy sink in memory
QBuffer dst;
// create some dummy audio data (stereo)
SignalManager manager(this);
manager.newSignal(test_length, sample_rate, bits, tracks);
Kwave::MetaDataList meta_data = manager.metaData();
// add some dummy meta data, to cover all parameters of the encoder
FileInfo info(meta_data);
info.set(INF_BITRATE_NOMINAL, QVariant(128000));
info.set(INF_BITRATE_LOWER, QVariant( 64000));
info.set(INF_BITRATE_UPPER, QVariant(192000));
info.set(INF_MPEG_EMPHASIS, QVariant(3));
info.set(INF_COPYRIGHTED, QVariant(1));
info.set(INF_ORIGINAL, QVariant(1));
meta_data.replace(info);
// create a multi track reader
QList<unsigned int> track_list;
track_list.append(0);
track_list.append(1);
sample_index_t first = 0;
sample_index_t last = test_length - 1;
MultiTrackReader src(Kwave::SinglePassForward,
manager, track_list, first, last);
// create an encoder
MP3Encoder encoder;
// pass the data through the encoder
bool succeeded = encoder.encode(this, src, dst, meta_data);
// check return code
if (succeeded) {
KMessageBox::information(this, i18n(
"Congratulation, the test was successful!"));
} // else: the plugin has already shown an error message
}
/***************************************************************************/
void Kwave::MP3EncoderDialog::encoderHelp()
{
// show complete help
QString program = edPath->text().simplified();
QString param = QString(edEncoderHelp->text()).simplified();
QString text = callWithParam(program, param);
KMessageBox::information(this, text);
}
/***************************************************************************/
QString Kwave::MP3EncoderDialog::callWithParam(const QString &path,
const QString &param)
{
QStringList params(param);
// set hourglass cursor
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
QProcess process;
process.setProcessChannelMode(QProcess::MergedChannels);
process.start(path, params);
process.waitForStarted();
if (process.state() != QProcess::NotRunning) process.waitForFinished();
QString text = QString::fromLocal8Bit(process.readAllStandardOutput());
qDebug("stdout output: %s", text.toLocal8Bit().data());
// remove hourglass
QApplication::restoreOverrideCursor();
return text;
}
/***************************************************************************/
QString Kwave::MP3EncoderDialog::encoderVersion(const QString &path,
const QString &param)
{
QString text = callWithParam(path, param);
QStringList lines = text.split('\n');
// take the first non-zero line
while (lines.count() && !lines.first().simplified().length())
lines.removeFirst();
return (!lines.isEmpty()) ? lines.first().simplified() : QString();
}
/***************************************************************************/
QString Kwave::MP3EncoderDialog::searchPath(const QString &program)
{
const QFile::Permissions executable =
(QFile::ExeOwner | QFile::ExeUser | QFile::ExeGroup | QFile::ExeOther);
QStringList path =
QString(qgetenv("PATH")).split(":", QString::SkipEmptyParts);
QFileInfo f(program);
QString d = f.path();
if (d.length()) path.prepend(d);
foreach (const QString &dir, path) {
QString p = dir;
if (!p.endsWith(QDir::separator()))
p += QDir::separator();
p += f.fileName();
QFile f(p);
qDebug("testing '%s'", p.toLocal8Bit().data());
if (f.exists() && (f.permissions() & executable)) {
// found it :)
return p;
}
}
return program;
}
/***************************************************************************/
void Kwave::MP3EncoderDialog::updateEncoderInfo()
{
int index = cbProgram->currentIndex();
QString title;
if (index >= static_cast<int>(ELEMENTS_OF(g_predefined_settings))) {
title = PRESET_NAME_USER_DEFINED;
}
// detect by using the currently selected path
if (!title.length()) {
// first try with user defined full path
QString name = g_predefined_settings[index].m_name;
QString program = QFileInfo(edPath->text().simplified()).filePath();
QString param = edVersionInfo->text().simplified();
QString version = encoderVersion(program, param);
if (version.length() >= name.length()) {
title = version;
} else {
// fallback: detect by using list of predefined settings
QString param = g_predefined_settings[index].m_info.m_version;
program = searchPath(g_predefined_settings[index].m_path);
version = encoderVersion(program, param);
if (version.length() >= name.length())
title = version;
}
}
cbProgram->setItemText(index, title);
}
/***************************************************************************/
#include "MP3EncoderDialog.moc"
/***************************************************************************/
/***************************************************************************/