summaryrefslogtreecommitdiffstats
path: root/rbutil/rbutilqt/configure.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2012-01-06 19:19:32 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2012-01-06 19:19:32 +0000
commitbe0e197190c0d4af347c5532b8ab8229279d940e (patch)
tree39b9030d4e5df8c8b736af0492e7e69ac2a1d8e7 /rbutil/rbutilqt/configure.cpp
parentf860b571437fc514bfefa1444dbdbf09583f8f9b (diff)
downloadrockbox-be0e197190c0d4af347c5532b8ab8229279d940e.tar.gz
rockbox-be0e197190c0d4af347c5532b8ab8229279d940e.tar.bz2
rockbox-be0e197190c0d4af347c5532b8ab8229279d940e.zip
Split up encoders sources.
Create a separate source / header file for each supported encoder and the base class and rename classes for better readability. This should also make it easier adding new encoders. Remove a few trailing spaces while at it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31592 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/rbutilqt/configure.cpp')
-rw-r--r--rbutil/rbutilqt/configure.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index 872fcfaa84..470a5a5d6b 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -22,7 +22,7 @@
#include "configure.h"
#include "autodetection.h"
#include "ui_configurefrm.h"
-#include "encoders.h"
+#include "encoderbase.h"
#include "ttsbase.h"
#include "system.h"
#include "encttscfggui.h"
@@ -40,6 +40,8 @@
#endif
#include "rbutilqt.h"
+#include "systrace.h"
+
#define DEFAULT_LANG "English (en)"
#define DEFAULT_LANG_CODE "en"
@@ -436,10 +438,10 @@ void Config::updateEncState()
QString devname = ui.treeDevices->selectedItems().at(0)->data(0, Qt::UserRole).toString();
QString encoder = SystemInfo::platformValue(devname,
SystemInfo::CurEncoder).toString();
- ui.encoderName->setText(EncBase::getEncoderName(SystemInfo::platformValue(devname,
+ ui.encoderName->setText(EncoderBase::getEncoderName(SystemInfo::platformValue(devname,
SystemInfo::CurEncoder).toString()));
- EncBase* enc = EncBase::getEncoder(this,encoder);
+ EncoderBase* enc = EncoderBase::getEncoder(this,encoder);
if(enc->configOk())
{
@@ -893,13 +895,13 @@ void Config::configEnc()
QString devname = ui.treeDevices->selectedItems().at(0)->data(0, Qt::UserRole).toString();
QString encoder = SystemInfo::platformValue(devname,
SystemInfo::CurEncoder).toString();
- ui.encoderName->setText(EncBase::getEncoderName(SystemInfo::platformValue(devname,
+ ui.encoderName->setText(EncoderBase::getEncoderName(SystemInfo::platformValue(devname,
SystemInfo::CurEncoder).toString()));
- EncBase* enc = EncBase::getEncoder(this,encoder);
+ EncoderBase* enc = EncoderBase::getEncoder(this,encoder);
- EncTtsCfgGui gui(this,enc,EncBase::getEncoderName(encoder));
+ EncTtsCfgGui gui(this,enc,EncoderBase::getEncoderName(encoder));
gui.exec();
updateEncState();