aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/General/converter/converterdialog.cpp3
-rw-r--r--src/plugins/General/converter/preseteditor.cpp15
-rw-r--r--src/plugins/General/converter/translations/converter_plugin_cs.ts9
-rw-r--r--src/plugins/General/converter/translations/converter_plugin_de.ts9
-rw-r--r--src/plugins/General/converter/translations/converter_plugin_es.ts9
-rw-r--r--src/plugins/General/converter/translations/converter_plugin_it.ts9
-rw-r--r--src/plugins/General/converter/translations/converter_plugin_ja.ts9
-rw-r--r--src/plugins/General/converter/translations/converter_plugin_lt.ts9
-rw-r--r--src/plugins/General/converter/translations/converter_plugin_nl.ts9
-rw-r--r--src/plugins/General/converter/translations/converter_plugin_pl.ts9
-rw-r--r--src/plugins/General/converter/translations/converter_plugin_ru.ts13
-rw-r--r--src/plugins/General/converter/translations/converter_plugin_tr.ts9
-rw-r--r--src/plugins/General/converter/translations/converter_plugin_uk_UA.ts9
-rw-r--r--src/plugins/General/converter/translations/converter_plugin_zh_CN.ts9
-rw-r--r--src/plugins/General/converter/translations/converter_plugin_zh_TW.ts9
15 files changed, 108 insertions, 31 deletions
diff --git a/src/plugins/General/converter/converterdialog.cpp b/src/plugins/General/converter/converterdialog.cpp
index f648f5950..2c41bce2e 100644
--- a/src/plugins/General/converter/converterdialog.cpp
+++ b/src/plugins/General/converter/converterdialog.cpp
@@ -159,8 +159,7 @@ void ConverterDialog::editPreset()
if(ui.presetComboBox->currentIndex() == -1)
return;
int index = ui.presetComboBox->currentIndex();
- if(ui.presetComboBox->itemData(index).toMap()["read_only"].toBool())
- return;
+
PresetEditor *editor = new PresetEditor(ui.presetComboBox->itemData(index).toMap(), this);
if(editor->exec() == QDialog::Accepted)
{
diff --git a/src/plugins/General/converter/preseteditor.cpp b/src/plugins/General/converter/preseteditor.cpp
index 4bf27bf67..e4ff3f0c9 100644
--- a/src/plugins/General/converter/preseteditor.cpp
+++ b/src/plugins/General/converter/preseteditor.cpp
@@ -31,7 +31,20 @@ PresetEditor::PresetEditor(const QVariantMap &data, QWidget *parent) :
m_ui->commandLineEdit->setText(data.value("command").toString());
m_ui->us16bitCheckBox->setChecked(data.value("use_16bit").toBool());
m_ui->tagsCheckBox->setChecked(data.value("tags").toBool());
- createMenus();
+
+ if(data["read_only"].toBool())
+ {
+ setWindowTitle(tr("%1 (Read Only)").arg(windowTitle()));
+ m_ui->buttonBox->setStandardButtons(QDialogButtonBox::Close);
+ m_ui->nameLineEdit->setReadOnly(true);
+ m_ui->extensionLineEdit->setReadOnly(true);
+ m_ui->commandLineEdit->setReadOnly(true);
+ m_ui->us16bitCheckBox->setDisabled(true);
+ m_ui->tagsCheckBox->setDisabled(true);
+ m_ui->commandToolButton->setDisabled(true);
+ }
+ else
+ createMenus();
}
PresetEditor::~PresetEditor()
diff --git a/src/plugins/General/converter/translations/converter_plugin_cs.ts b/src/plugins/General/converter/translations/converter_plugin_cs.ts
index 0ca61709b..a06f2254a 100644
--- a/src/plugins/General/converter/translations/converter_plugin_cs.ts
+++ b/src/plugins/General/converter/translations/converter_plugin_cs.ts
@@ -232,12 +232,17 @@ using external command-line encoders</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="57"/>
+ <location filename="../preseteditor.cpp" line="37"/>
+ <source>%1 (Read Only)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../preseteditor.cpp" line="70"/>
<source>Output file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="58"/>
+ <location filename="../preseteditor.cpp" line="71"/>
<source>Input file</source>
<translation type="unfinished"></translation>
</message>
diff --git a/src/plugins/General/converter/translations/converter_plugin_de.ts b/src/plugins/General/converter/translations/converter_plugin_de.ts
index 83b387368..4f1f7f9ce 100644
--- a/src/plugins/General/converter/translations/converter_plugin_de.ts
+++ b/src/plugins/General/converter/translations/converter_plugin_de.ts
@@ -232,12 +232,17 @@ using external command-line encoders</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="57"/>
+ <location filename="../preseteditor.cpp" line="37"/>
+ <source>%1 (Read Only)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../preseteditor.cpp" line="70"/>
<source>Output file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="58"/>
+ <location filename="../preseteditor.cpp" line="71"/>
<source>Input file</source>
<translation type="unfinished"></translation>
</message>
diff --git a/src/plugins/General/converter/translations/converter_plugin_es.ts b/src/plugins/General/converter/translations/converter_plugin_es.ts
index 752ca73a4..9d9547c56 100644
--- a/src/plugins/General/converter/translations/converter_plugin_es.ts
+++ b/src/plugins/General/converter/translations/converter_plugin_es.ts
@@ -232,12 +232,17 @@ using external command-line encoders</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="57"/>
+ <location filename="../preseteditor.cpp" line="37"/>
+ <source>%1 (Read Only)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../preseteditor.cpp" line="70"/>
<source>Output file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="58"/>
+ <location filename="../preseteditor.cpp" line="71"/>
<source>Input file</source>
<translation type="unfinished"></translation>
</message>
diff --git a/src/plugins/General/converter/translations/converter_plugin_it.ts b/src/plugins/General/converter/translations/converter_plugin_it.ts
index f96ff020a..c7ce35d54 100644
--- a/src/plugins/General/converter/translations/converter_plugin_it.ts
+++ b/src/plugins/General/converter/translations/converter_plugin_it.ts
@@ -232,12 +232,17 @@ using external command-line encoders</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="57"/>
+ <location filename="../preseteditor.cpp" line="37"/>
+ <source>%1 (Read Only)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../preseteditor.cpp" line="70"/>
<source>Output file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="58"/>
+ <location filename="../preseteditor.cpp" line="71"/>
<source>Input file</source>
<translation type="unfinished"></translation>
</message>
diff --git a/src/plugins/General/converter/translations/converter_plugin_ja.ts b/src/plugins/General/converter/translations/converter_plugin_ja.ts
index b1e7b6aa9..af05579df 100644
--- a/src/plugins/General/converter/translations/converter_plugin_ja.ts
+++ b/src/plugins/General/converter/translations/converter_plugin_ja.ts
@@ -232,12 +232,17 @@ using external command-line encoders</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="57"/>
+ <location filename="../preseteditor.cpp" line="37"/>
+ <source>%1 (Read Only)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../preseteditor.cpp" line="70"/>
<source>Output file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="58"/>
+ <location filename="../preseteditor.cpp" line="71"/>
<source>Input file</source>
<translation type="unfinished"></translation>
</message>
diff --git a/src/plugins/General/converter/translations/converter_plugin_lt.ts b/src/plugins/General/converter/translations/converter_plugin_lt.ts
index b8d787506..4593e148f 100644
--- a/src/plugins/General/converter/translations/converter_plugin_lt.ts
+++ b/src/plugins/General/converter/translations/converter_plugin_lt.ts
@@ -232,12 +232,17 @@ using external command-line encoders</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="57"/>
+ <location filename="../preseteditor.cpp" line="37"/>
+ <source>%1 (Read Only)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../preseteditor.cpp" line="70"/>
<source>Output file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="58"/>
+ <location filename="../preseteditor.cpp" line="71"/>
<source>Input file</source>
<translation type="unfinished"></translation>
</message>
diff --git a/src/plugins/General/converter/translations/converter_plugin_nl.ts b/src/plugins/General/converter/translations/converter_plugin_nl.ts
index 09dd2d226..a11df9e53 100644
--- a/src/plugins/General/converter/translations/converter_plugin_nl.ts
+++ b/src/plugins/General/converter/translations/converter_plugin_nl.ts
@@ -232,12 +232,17 @@ using external command-line encoders</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="57"/>
+ <location filename="../preseteditor.cpp" line="37"/>
+ <source>%1 (Read Only)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../preseteditor.cpp" line="70"/>
<source>Output file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="58"/>
+ <location filename="../preseteditor.cpp" line="71"/>
<source>Input file</source>
<translation type="unfinished"></translation>
</message>
diff --git a/src/plugins/General/converter/translations/converter_plugin_pl.ts b/src/plugins/General/converter/translations/converter_plugin_pl.ts
index d69812aa6..41112bd77 100644
--- a/src/plugins/General/converter/translations/converter_plugin_pl.ts
+++ b/src/plugins/General/converter/translations/converter_plugin_pl.ts
@@ -232,12 +232,17 @@ using external command-line encoders</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="57"/>
+ <location filename="../preseteditor.cpp" line="37"/>
+ <source>%1 (Read Only)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../preseteditor.cpp" line="70"/>
<source>Output file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="58"/>
+ <location filename="../preseteditor.cpp" line="71"/>
<source>Input file</source>
<translation type="unfinished"></translation>
</message>
diff --git a/src/plugins/General/converter/translations/converter_plugin_ru.ts b/src/plugins/General/converter/translations/converter_plugin_ru.ts
index d1675cdb1..f31f4e2ed 100644
--- a/src/plugins/General/converter/translations/converter_plugin_ru.ts
+++ b/src/plugins/General/converter/translations/converter_plugin_ru.ts
@@ -234,14 +234,19 @@ using external command-line encoders</source>
<translation>Преобразовать в 16 бит</translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="57"/>
+ <location filename="../preseteditor.cpp" line="37"/>
+ <source>%1 (Read Only)</source>
+ <translation>%1 (только для чтения)</translation>
+ </message>
+ <message>
+ <location filename="../preseteditor.cpp" line="70"/>
<source>Output file</source>
- <translation type="unfinished"></translation>
+ <translation>Выходной файл</translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="58"/>
+ <location filename="../preseteditor.cpp" line="71"/>
<source>Input file</source>
- <translation type="unfinished"></translation>
+ <translation>Входной файл</translation>
</message>
</context>
</TS>
diff --git a/src/plugins/General/converter/translations/converter_plugin_tr.ts b/src/plugins/General/converter/translations/converter_plugin_tr.ts
index 93c4d590a..4f2b6f3f6 100644
--- a/src/plugins/General/converter/translations/converter_plugin_tr.ts
+++ b/src/plugins/General/converter/translations/converter_plugin_tr.ts
@@ -232,12 +232,17 @@ using external command-line encoders</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="57"/>
+ <location filename="../preseteditor.cpp" line="37"/>
+ <source>%1 (Read Only)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../preseteditor.cpp" line="70"/>
<source>Output file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="58"/>
+ <location filename="../preseteditor.cpp" line="71"/>
<source>Input file</source>
<translation type="unfinished"></translation>
</message>
diff --git a/src/plugins/General/converter/translations/converter_plugin_uk_UA.ts b/src/plugins/General/converter/translations/converter_plugin_uk_UA.ts
index 1b4d9e01f..8d51aad0f 100644
--- a/src/plugins/General/converter/translations/converter_plugin_uk_UA.ts
+++ b/src/plugins/General/converter/translations/converter_plugin_uk_UA.ts
@@ -234,12 +234,17 @@ using external command-line encoders</source>
<translation>Конвертувати в 16 біт</translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="57"/>
+ <location filename="../preseteditor.cpp" line="37"/>
+ <source>%1 (Read Only)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../preseteditor.cpp" line="70"/>
<source>Output file</source>
<translation>Вихідний файл</translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="58"/>
+ <location filename="../preseteditor.cpp" line="71"/>
<source>Input file</source>
<translation>Вхідний файл</translation>
</message>
diff --git a/src/plugins/General/converter/translations/converter_plugin_zh_CN.ts b/src/plugins/General/converter/translations/converter_plugin_zh_CN.ts
index ecff1edd9..2c724f97a 100644
--- a/src/plugins/General/converter/translations/converter_plugin_zh_CN.ts
+++ b/src/plugins/General/converter/translations/converter_plugin_zh_CN.ts
@@ -232,12 +232,17 @@ using external command-line encoders</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="57"/>
+ <location filename="../preseteditor.cpp" line="37"/>
+ <source>%1 (Read Only)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../preseteditor.cpp" line="70"/>
<source>Output file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="58"/>
+ <location filename="../preseteditor.cpp" line="71"/>
<source>Input file</source>
<translation type="unfinished"></translation>
</message>
diff --git a/src/plugins/General/converter/translations/converter_plugin_zh_TW.ts b/src/plugins/General/converter/translations/converter_plugin_zh_TW.ts
index 7a661e3d8..cb5e29d51 100644
--- a/src/plugins/General/converter/translations/converter_plugin_zh_TW.ts
+++ b/src/plugins/General/converter/translations/converter_plugin_zh_TW.ts
@@ -232,12 +232,17 @@ using external command-line encoders</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="57"/>
+ <location filename="../preseteditor.cpp" line="37"/>
+ <source>%1 (Read Only)</source>
+ <translation type="unfinished"></translation>
+ </message>
+ <message>
+ <location filename="../preseteditor.cpp" line="70"/>
<source>Output file</source>
<translation type="unfinished"></translation>
</message>
<message>
- <location filename="../preseteditor.cpp" line="58"/>
+ <location filename="../preseteditor.cpp" line="71"/>
<source>Input file</source>
<translation type="unfinished"></translation>
</message>