forked from len0rd/rockbox
Add option to show disabled targets in the configuration dialog.
Note that disabled targets support is not intended for use by end users. This is to make development (and testing of svn) easier and should get disabled for releases. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24513 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
69fe1ad830
commit
a9ab407f84
5 changed files with 268 additions and 217 deletions
|
@ -119,7 +119,8 @@ QStringList SystemInfo::platforms(enum SystemInfo::PlatformType type, QString va
|
||||||
{
|
{
|
||||||
QString target = systemInfos->value("platforms/"+a.at(i), "null").toString();
|
QString target = systemInfos->value("platforms/"+a.at(i), "null").toString();
|
||||||
// only add target if its not disabled
|
// only add target if its not disabled
|
||||||
if(systemInfos->value(target+"/status").toString() == "disabled")
|
if(type != PlatformAllDisabled
|
||||||
|
&& systemInfos->value(target+"/status").toString() == "disabled")
|
||||||
continue;
|
continue;
|
||||||
// report only base targets when PlatformBase is requested
|
// report only base targets when PlatformBase is requested
|
||||||
if(type == PlatformBase && target.contains('.'))
|
if(type == PlatformBase && target.contains('.'))
|
||||||
|
|
|
@ -65,6 +65,7 @@ class SystemInfo : public QObject
|
||||||
|
|
||||||
enum PlatformType {
|
enum PlatformType {
|
||||||
PlatformAll,
|
PlatformAll,
|
||||||
|
PlatformAllDisabled,
|
||||||
PlatformBase,
|
PlatformBase,
|
||||||
PlatformVariant
|
PlatformVariant
|
||||||
};
|
};
|
||||||
|
|
|
@ -99,6 +99,7 @@ Config::Config(QWidget *parent,int index) : QDialog(parent)
|
||||||
connect(ui.comboTts, SIGNAL(currentIndexChanged(int)), this, SLOT(updateTtsState(int)));
|
connect(ui.comboTts, SIGNAL(currentIndexChanged(int)), this, SLOT(updateTtsState(int)));
|
||||||
connect(ui.treeDevices, SIGNAL(itemSelectionChanged()), this, SLOT(updateEncState()));
|
connect(ui.treeDevices, SIGNAL(itemSelectionChanged()), this, SLOT(updateEncState()));
|
||||||
connect(ui.testTTS,SIGNAL(clicked()),this,SLOT(testTts()));
|
connect(ui.testTTS,SIGNAL(clicked()),this,SLOT(testTts()));
|
||||||
|
connect(ui.showDisabled, SIGNAL(toggled(bool)), this, SLOT(showDisabled(bool)));
|
||||||
setUserSettings();
|
setUserSettings();
|
||||||
setDevices();
|
setDevices();
|
||||||
}
|
}
|
||||||
|
@ -282,20 +283,38 @@ void Config::updateCacheInfo(QString path)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void Config::showDisabled(bool show)
|
||||||
|
{
|
||||||
|
qDebug() << "[Config] disabled targets shown:" << show;
|
||||||
|
if(show)
|
||||||
|
QMessageBox::warning(this, tr("Showing disabled targets"),
|
||||||
|
tr("You just enabled showing targets that are marked disabled. "
|
||||||
|
"Disabled targets are not recommended to end users. Please "
|
||||||
|
"use this option only if you know what you are doing."));
|
||||||
|
setDevices();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void Config::setDevices()
|
void Config::setDevices()
|
||||||
{
|
{
|
||||||
|
|
||||||
// setup devices table
|
// setup devices table
|
||||||
qDebug() << "[Config] setting up devices list";
|
qDebug() << "[Config] setting up devices list";
|
||||||
|
|
||||||
QStringList platformList = SystemInfo::platforms();
|
QStringList platformList;
|
||||||
|
if(ui.showDisabled->isChecked())
|
||||||
|
platformList = SystemInfo::platforms(SystemInfo::PlatformAllDisabled);
|
||||||
|
else
|
||||||
|
platformList = SystemInfo::platforms(SystemInfo::PlatformAll);
|
||||||
|
|
||||||
QMap <QString, QString> manuf;
|
QMap <QString, QString> manuf;
|
||||||
QMap <QString, QString> devcs;
|
QMap <QString, QString> devcs;
|
||||||
for(int it = 0; it < platformList.size(); it++)
|
for(int it = 0; it < platformList.size(); it++)
|
||||||
{
|
{
|
||||||
QString curname = SystemInfo::name(platformList.at(it)) +
|
QString curname = SystemInfo::name(platformList.at(it)) +
|
||||||
" (" +ServerInfo::platformValue(platformList.at(it),ServerInfo::CurStatus).toString() + ")";
|
" (" +ServerInfo::platformValue(platformList.at(it),
|
||||||
|
ServerInfo::CurStatus).toString() + ")";
|
||||||
QString curbrand = SystemInfo::brand(platformList.at(it));
|
QString curbrand = SystemInfo::brand(platformList.at(it));
|
||||||
manuf.insertMulti(curbrand, platformList.at(it));
|
manuf.insertMulti(curbrand, platformList.at(it));
|
||||||
devcs.insert(platformList.at(it), curname);
|
devcs.insert(platformList.at(it), curname);
|
||||||
|
@ -341,6 +360,14 @@ void Config::setDevices()
|
||||||
items.append(w2);
|
items.append(w2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// remove any old items in list
|
||||||
|
QTreeWidgetItem* widgetitem;
|
||||||
|
do {
|
||||||
|
widgetitem = ui.treeDevices->takeTopLevelItem(0);
|
||||||
|
delete widgetitem;
|
||||||
|
}
|
||||||
|
while(widgetitem);
|
||||||
|
// add new items
|
||||||
ui.treeDevices->insertTopLevelItems(0, items);
|
ui.treeDevices->insertTopLevelItems(0, items);
|
||||||
if(w3 != 0)
|
if(w3 != 0)
|
||||||
ui.treeDevices->setCurrentItem(w3); // hilight old selection
|
ui.treeDevices->setCurrentItem(w3); // hilight old selection
|
||||||
|
|
|
@ -71,6 +71,7 @@ class Config : public QDialog
|
||||||
void updateTtsState(int);
|
void updateTtsState(int);
|
||||||
void updateEncState();
|
void updateEncState();
|
||||||
void testTts();
|
void testTts();
|
||||||
|
void showDisabled(bool);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
<ui version="4.0" >
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ui version="4.0">
|
||||||
<class>ConfigForm</class>
|
<class>ConfigForm</class>
|
||||||
<widget class="QDialog" name="ConfigForm" >
|
<widget class="QDialog" name="ConfigForm">
|
||||||
<property name="geometry" >
|
<property name="geometry">
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
|
@ -9,195 +10,215 @@
|
||||||
<height>465</height>
|
<height>465</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle" >
|
<property name="windowTitle">
|
||||||
<string>Configuration</string>
|
<string>Configuration</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout">
|
||||||
<item row="0" column="0" colspan="3" >
|
<item row="0" column="0" colspan="3">
|
||||||
<widget class="QLabel" name="labelTitle" >
|
<widget class="QLabel" name="labelTitle">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Configure Rockbox Utility</string>
|
<string>Configure Rockbox Utility</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" colspan="3" >
|
<item row="1" column="0" colspan="3">
|
||||||
<widget class="QTabWidget" name="tabConfiguration" >
|
<widget class="QTabWidget" name="tabConfiguration">
|
||||||
<property name="currentIndex" >
|
<property name="currentIndex">
|
||||||
<number>0</number>
|
<number>0</number>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="tabDevice" >
|
<widget class="QWidget" name="tabDevice">
|
||||||
<attribute name="title" >
|
<attribute name="icon">
|
||||||
<string>&Device</string>
|
<iconset resource="rbutilqt.qrc">
|
||||||
</attribute>
|
|
||||||
<attribute name="icon" >
|
|
||||||
<iconset resource="rbutilqt.qrc" >
|
|
||||||
<normaloff>:/icons/rbutil.png</normaloff>:/icons/rbutil.png</iconset>
|
<normaloff>:/icons/rbutil.png</normaloff>:/icons/rbutil.png</iconset>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" >
|
<attribute name="title">
|
||||||
<item row="0" column="0" >
|
<string>&Device</string>
|
||||||
<widget class="QLabel" name="labelMountPoint" >
|
</attribute>
|
||||||
<property name="text" >
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
|
<item row="0" column="0" colspan="2">
|
||||||
|
<widget class="QLabel" name="labelMountPoint">
|
||||||
|
<property name="text">
|
||||||
<string>Select your device in the &filesystem</string>
|
<string>Select your device in the &filesystem</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>mountPoint</cstring>
|
<cstring>mountPoint</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" colspan="2" >
|
<item row="1" column="0" colspan="3">
|
||||||
<layout class="QHBoxLayout" >
|
<layout class="QHBoxLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="mountPoint" />
|
<widget class="QLineEdit" name="mountPoint"/>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="browseMountPoint" >
|
<widget class="QPushButton" name="browseMountPoint">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>&Browse</string>
|
<string>&Browse</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon" >
|
<property name="icon">
|
||||||
<iconset resource="rbutilqt.qrc" >
|
<iconset resource="rbutilqt.qrc">
|
||||||
<normaloff>:/icons/system-search.png</normaloff>:/icons/system-search.png</iconset>
|
<normaloff>:/icons/system-search.png</normaloff>:/icons/system-search.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="autoDefault" >
|
<property name="autoDefault">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" >
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="labelPlayer" >
|
<widget class="QLabel" name="labelPlayer">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>&Select your audio player</string>
|
<string>&Select your audio player</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>treeDevices</cstring>
|
<cstring>treeDevices</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0" colspan="2" >
|
<item row="2" column="1">
|
||||||
<widget class="QTreeWidget" name="treeDevices" >
|
<spacer name="horizontalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Horizontal</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>118</width>
|
||||||
|
<height>20</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="2">
|
||||||
|
<widget class="QCheckBox" name="showDisabled">
|
||||||
|
<property name="text">
|
||||||
|
<string>Show disabled targets</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="3" column="0" colspan="3">
|
||||||
|
<widget class="QTreeWidget" name="treeDevices">
|
||||||
<column>
|
<column>
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>1</string>
|
<string>1</string>
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0" colspan="2" >
|
<item row="4" column="0">
|
||||||
<widget class="QPushButton" name="buttonAutodetect" >
|
<widget class="QPushButton" name="buttonAutodetect">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>&Autodetect</string>
|
<string>&Autodetect</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon" >
|
<property name="icon">
|
||||||
<iconset resource="rbutilqt.qrc" >
|
<iconset resource="rbutilqt.qrc">
|
||||||
<normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset>
|
<normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="default" >
|
<property name="default">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="flat" >
|
<property name="flat">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tabProxy" >
|
<widget class="QWidget" name="tabProxy">
|
||||||
<attribute name="title" >
|
<attribute name="icon">
|
||||||
<string>&Proxy</string>
|
<iconset resource="rbutilqt.qrc">
|
||||||
</attribute>
|
|
||||||
<attribute name="icon" >
|
|
||||||
<iconset resource="rbutilqt.qrc" >
|
|
||||||
<normaloff>:/icons/network-idle.png</normaloff>:/icons/network-idle.png</iconset>
|
<normaloff>:/icons/network-idle.png</normaloff>:/icons/network-idle.png</iconset>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" >
|
<attribute name="title">
|
||||||
<item row="0" column="0" >
|
<string>&Proxy</string>
|
||||||
<widget class="QRadioButton" name="radioNoProxy" >
|
</attribute>
|
||||||
<property name="text" >
|
<layout class="QGridLayout">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QRadioButton" name="radioNoProxy">
|
||||||
|
<property name="text">
|
||||||
<string>&No Proxy</string>
|
<string>&No Proxy</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="checked" >
|
<property name="checked">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" >
|
<item row="1" column="0">
|
||||||
<widget class="QRadioButton" name="radioSystemProxy" >
|
<widget class="QRadioButton" name="radioSystemProxy">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Use S&ystem values</string>
|
<string>Use S&ystem values</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" >
|
<item row="2" column="0">
|
||||||
<widget class="QRadioButton" name="radioManualProxy" >
|
<widget class="QRadioButton" name="radioManualProxy">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>&Manual Proxy settings</string>
|
<string>&Manual Proxy settings</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0" >
|
<item row="3" column="0">
|
||||||
<widget class="QGroupBox" name="groupBox" >
|
<widget class="QGroupBox" name="groupBox">
|
||||||
<property name="title" >
|
<property name="title">
|
||||||
<string>Proxy Values</string>
|
<string>Proxy Values</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout">
|
||||||
<item row="0" column="0" >
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="label" >
|
<widget class="QLabel" name="label">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>&Host:</string>
|
<string>&Host:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>proxyHost</cstring>
|
<cstring>proxyHost</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1" >
|
<item row="0" column="1">
|
||||||
<widget class="QLineEdit" name="proxyHost" >
|
<widget class="QLineEdit" name="proxyHost">
|
||||||
<property name="frame" >
|
<property name="frame">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" >
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="label_2" >
|
<widget class="QLabel" name="label_2">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>&Port:</string>
|
<string>&Port:</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>proxyPort</cstring>
|
<cstring>proxyPort</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1" >
|
<item row="1" column="1">
|
||||||
<widget class="QLineEdit" name="proxyPort" />
|
<widget class="QLineEdit" name="proxyPort"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1" >
|
<item row="2" column="1">
|
||||||
<widget class="QLineEdit" name="proxyUser" />
|
<widget class="QLineEdit" name="proxyUser"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1" >
|
<item row="3" column="1">
|
||||||
<widget class="QLineEdit" name="proxyPass" >
|
<widget class="QLineEdit" name="proxyPass">
|
||||||
<property name="echoMode" >
|
<property name="echoMode">
|
||||||
<enum>QLineEdit::Password</enum>
|
<enum>QLineEdit::Password</enum>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" >
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="label_3" >
|
<widget class="QLabel" name="label_3">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>&Username</string>
|
<string>&Username</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>proxyUser</cstring>
|
<cstring>proxyUser</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0" >
|
<item row="3" column="0">
|
||||||
<widget class="QLabel" name="label_4" >
|
<widget class="QLabel" name="label_4">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Pass&word</string>
|
<string>Pass&word</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>proxyPass</cstring>
|
<cstring>proxyPass</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -205,12 +226,12 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="0" >
|
<item row="4" column="0">
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>20</width>
|
<width>20</width>
|
||||||
<height>40</height>
|
<height>40</height>
|
||||||
|
@ -220,108 +241,108 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tabLanguage" >
|
<widget class="QWidget" name="tabLanguage">
|
||||||
<attribute name="title" >
|
<attribute name="icon">
|
||||||
<string>&Language</string>
|
<iconset resource="rbutilqt.qrc">
|
||||||
</attribute>
|
|
||||||
<attribute name="icon" >
|
|
||||||
<iconset resource="rbutilqt.qrc" >
|
|
||||||
<normaloff>:/icons/preferences-desktop-locale.png</normaloff>:/icons/preferences-desktop-locale.png</iconset>
|
<normaloff>:/icons/preferences-desktop-locale.png</normaloff>:/icons/preferences-desktop-locale.png</iconset>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" >
|
<attribute name="title">
|
||||||
<item row="0" column="0" >
|
<string>&Language</string>
|
||||||
<widget class="QListWidget" name="listLanguages" />
|
</attribute>
|
||||||
|
<layout class="QGridLayout">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QListWidget" name="listLanguages"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tabCache" >
|
<widget class="QWidget" name="tabCache">
|
||||||
<attribute name="title" >
|
<attribute name="icon">
|
||||||
<string>Cac&he</string>
|
<iconset resource="rbutilqt.qrc">
|
||||||
</attribute>
|
|
||||||
<attribute name="icon" >
|
|
||||||
<iconset resource="rbutilqt.qrc" >
|
|
||||||
<normaloff>:/icons/package-x-generic.png</normaloff>:/icons/package-x-generic.png</iconset>
|
<normaloff>:/icons/package-x-generic.png</normaloff>:/icons/package-x-generic.png</iconset>
|
||||||
</attribute>
|
</attribute>
|
||||||
<attribute name="toolTip" >
|
<attribute name="title">
|
||||||
|
<string>Cac&he</string>
|
||||||
|
</attribute>
|
||||||
|
<attribute name="toolTip">
|
||||||
<string>Download cache settings</string>
|
<string>Download cache settings</string>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout">
|
||||||
<item row="0" column="0" colspan="2" >
|
<item row="0" column="0" colspan="2">
|
||||||
<widget class="QLabel" name="cacheDescription" >
|
<widget class="QLabel" name="cacheDescription">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Rockbox Utility uses a local download cache to save network traffic. You can change the path to the cache and use it as local repository by enabling Offline mode.</string>
|
<string>Rockbox Utility uses a local download cache to save network traffic. You can change the path to the cache and use it as local repository by enabling Offline mode.</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="wordWrap" >
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" >
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="cacheSize" >
|
<widget class="QLabel" name="cacheSize">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Current cache size is %1</string>
|
<string>Current cache size is %1</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" colspan="2" >
|
<item row="2" column="0" colspan="2">
|
||||||
<layout class="QHBoxLayout" >
|
<layout class="QHBoxLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="label_5" >
|
<widget class="QLabel" name="label_5">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>P&ath</string>
|
<string>P&ath</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>cachePath</cstring>
|
<cstring>cachePath</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QLineEdit" name="cachePath" >
|
<widget class="QLineEdit" name="cachePath">
|
||||||
<property name="toolTip" >
|
<property name="toolTip">
|
||||||
<string>Entering an invalid folder will reset the path to the systems temporary path.</string>
|
<string>Entering an invalid folder will reset the path to the systems temporary path.</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="buttonCacheBrowse" >
|
<widget class="QPushButton" name="buttonCacheBrowse">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>&Browse</string>
|
<string>&Browse</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon" >
|
<property name="icon">
|
||||||
<iconset resource="rbutilqt.qrc" >
|
<iconset resource="rbutilqt.qrc">
|
||||||
<normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset>
|
<normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="0" colspan="2" >
|
<item row="3" column="0" colspan="2">
|
||||||
<layout class="QVBoxLayout" >
|
<layout class="QVBoxLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="cacheDisable" >
|
<widget class="QCheckBox" name="cacheDisable">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Disable local &download cache</string>
|
<string>Disable local &download cache</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QCheckBox" name="cacheOfflineMode" >
|
<widget class="QCheckBox" name="cacheOfflineMode">
|
||||||
<property name="toolTip" >
|
<property name="toolTip">
|
||||||
<string>This will try to use all information from the cache, even information about updates. Only use this option if you want to install without network connection. Note: you need to do the same install you want to perform later with network access first to download all required files to the cache.</string>
|
<string>This will try to use all information from the cache, even information about updates. Only use this option if you want to install without network connection. Note: you need to do the same install you want to perform later with network access first to download all required files to the cache.</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>O&ffline mode</string>
|
<string>O&ffline mode</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="1" >
|
<item row="4" column="1">
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>20</width>
|
<width>20</width>
|
||||||
<height>61</height>
|
<height>61</height>
|
||||||
|
@ -329,12 +350,12 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="0" >
|
<item row="5" column="0">
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>40</width>
|
<width>40</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
|
@ -342,78 +363,78 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="5" column="1" >
|
<item row="5" column="1">
|
||||||
<widget class="QPushButton" name="buttonCacheClear" >
|
<widget class="QPushButton" name="buttonCacheClear">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Clean cache &now</string>
|
<string>Clean cache &now</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon" >
|
<property name="icon">
|
||||||
<iconset resource="rbutilqt.qrc" >
|
<iconset resource="rbutilqt.qrc">
|
||||||
<normaloff>:/icons/user-trash-full.png</normaloff>:/icons/user-trash-full.png</iconset>
|
<normaloff>:/icons/user-trash-full.png</normaloff>:/icons/user-trash-full.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tabTts" >
|
<widget class="QWidget" name="tabTts">
|
||||||
<attribute name="title" >
|
<attribute name="icon">
|
||||||
<string>&TTS && Encoder</string>
|
<iconset resource="rbutilqt.qrc">
|
||||||
</attribute>
|
|
||||||
<attribute name="icon" >
|
|
||||||
<iconset resource="rbutilqt.qrc" >
|
|
||||||
<normaloff>:/icons/audio-input-microphone.png</normaloff>:/icons/audio-input-microphone.png</iconset>
|
<normaloff>:/icons/audio-input-microphone.png</normaloff>:/icons/audio-input-microphone.png</iconset>
|
||||||
</attribute>
|
</attribute>
|
||||||
<layout class="QVBoxLayout" >
|
<attribute name="title">
|
||||||
|
<string>&TTS && Encoder</string>
|
||||||
|
</attribute>
|
||||||
|
<layout class="QVBoxLayout">
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox_2" >
|
<widget class="QGroupBox" name="groupBox_2">
|
||||||
<property name="title" >
|
<property name="title">
|
||||||
<string>TTS Engine</string>
|
<string>TTS Engine</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout">
|
||||||
<item row="0" column="0" >
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="labelTts" >
|
<widget class="QLabel" name="labelTts">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>&Select TTS Engine</string>
|
<string>&Select TTS Engine</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy" >
|
<property name="buddy">
|
||||||
<cstring>comboTts</cstring>
|
<cstring>comboTts</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1" colspan="2" >
|
<item row="0" column="1" colspan="2">
|
||||||
<widget class="QComboBox" name="comboTts" />
|
<widget class="QComboBox" name="comboTts"/>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0" >
|
<item row="1" column="0">
|
||||||
<widget class="QLabel" name="labelTtsExecutable" >
|
<widget class="QLabel" name="labelTtsExecutable">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Configure TTS Engine</string>
|
<string>Configure TTS Engine</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1" >
|
<item row="1" column="1">
|
||||||
<widget class="QLabel" name="configTTSstatus" >
|
<widget class="QLabel" name="configTTSstatus">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Configuration invalid!</string>
|
<string>Configuration invalid!</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="2" >
|
<item row="1" column="2">
|
||||||
<widget class="QLabel" name="configTTSstatusimg" >
|
<widget class="QLabel" name="configTTSstatusimg">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap" >
|
<property name="pixmap">
|
||||||
<pixmap resource="rbutilqt.qrc" >:/icons/dialog-error.png</pixmap>
|
<pixmap resource="rbutilqt.qrc">:/icons/dialog-error.png</pixmap>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="3" >
|
<item row="1" column="3">
|
||||||
<widget class="QPushButton" name="configTts" >
|
<widget class="QPushButton" name="configTts">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Configure &TTS</string>
|
<string>Configure &TTS</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon" >
|
<property name="icon">
|
||||||
<iconset resource="rbutilqt.qrc" >
|
<iconset resource="rbutilqt.qrc">
|
||||||
<normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset>
|
<normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -429,42 +450,42 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="groupBox_3" >
|
<widget class="QGroupBox" name="groupBox_3">
|
||||||
<property name="title" >
|
<property name="title">
|
||||||
<string>Encoder Engine</string>
|
<string>Encoder Engine</string>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" >
|
<layout class="QGridLayout">
|
||||||
<item row="0" column="1" >
|
<item row="0" column="1">
|
||||||
<widget class="QLabel" name="configEncstatus" >
|
<widget class="QLabel" name="configEncstatus">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Configuration invalid!</string>
|
<string>Configuration invalid!</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="2" >
|
<item row="0" column="2">
|
||||||
<widget class="QLabel" name="configEncstatusimg" >
|
<widget class="QLabel" name="configEncstatusimg">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap" >
|
<property name="pixmap">
|
||||||
<pixmap resource="rbutilqt.qrc" >:/icons/dialog-error.png</pixmap>
|
<pixmap resource="rbutilqt.qrc">:/icons/dialog-error.png</pixmap>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="3" >
|
<item row="0" column="3">
|
||||||
<widget class="QPushButton" name="configEncoder" >
|
<widget class="QPushButton" name="configEncoder">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>Configure &Enc</string>
|
<string>Configure &Enc</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon" >
|
<property name="icon">
|
||||||
<iconset resource="rbutilqt.qrc" >
|
<iconset resource="rbutilqt.qrc">
|
||||||
<normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset>
|
<normaloff>:/icons/edit-find.png</normaloff>:/icons/edit-find.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0" >
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="encoderName" >
|
<widget class="QLabel" name="encoderName">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>encoder name</string>
|
<string>encoder name</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -474,10 +495,10 @@
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation">
|
||||||
<enum>Qt::Vertical</enum>
|
<enum>Qt::Vertical</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>458</width>
|
<width>458</width>
|
||||||
<height>131</height>
|
<height>131</height>
|
||||||
|
@ -489,12 +510,12 @@
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="0" >
|
<item row="2" column="0">
|
||||||
<spacer>
|
<spacer>
|
||||||
<property name="orientation" >
|
<property name="orientation">
|
||||||
<enum>Qt::Horizontal</enum>
|
<enum>Qt::Horizontal</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizeHint" stdset="0" >
|
<property name="sizeHint" stdset="0">
|
||||||
<size>
|
<size>
|
||||||
<width>40</width>
|
<width>40</width>
|
||||||
<height>20</height>
|
<height>20</height>
|
||||||
|
@ -502,24 +523,24 @@
|
||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1" >
|
<item row="2" column="1">
|
||||||
<widget class="QPushButton" name="buttonOk" >
|
<widget class="QPushButton" name="buttonOk">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>&Ok</string>
|
<string>&Ok</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon" >
|
<property name="icon">
|
||||||
<iconset resource="rbutilqt.qrc" >
|
<iconset resource="rbutilqt.qrc">
|
||||||
<normaloff>:/icons/go-next.png</normaloff>:/icons/go-next.png</iconset>
|
<normaloff>:/icons/go-next.png</normaloff>:/icons/go-next.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="2" >
|
<item row="2" column="2">
|
||||||
<widget class="QPushButton" name="buttonCancel" >
|
<widget class="QPushButton" name="buttonCancel">
|
||||||
<property name="text" >
|
<property name="text">
|
||||||
<string>&Cancel</string>
|
<string>&Cancel</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="icon" >
|
<property name="icon">
|
||||||
<iconset resource="rbutilqt.qrc" >
|
<iconset resource="rbutilqt.qrc">
|
||||||
<normaloff>:/icons/process-stop.png</normaloff>:/icons/process-stop.png</iconset>
|
<normaloff>:/icons/process-stop.png</normaloff>:/icons/process-stop.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -527,7 +548,7 @@
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<resources>
|
<resources>
|
||||||
<include location="rbutilqt.qrc" />
|
<include location="rbutilqt.qrc"/>
|
||||||
</resources>
|
</resources>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue