summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--menu.c2
-rw-r--r--po/de_DE.po9
-rw-r--r--po/fi_FI.po9
-rw-r--r--po/it_IT.po9
-rw-r--r--render.c6
-rw-r--r--setup.c2
-rw-r--r--setup.h1
7 files changed, 37 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 487c7cb..2acd674 100644
--- a/menu.c
+++ b/menu.c
@@ -26,6 +26,7 @@ void cText2SkinSetupPage::Setup(void) {
Add(new cOsdItem(tr("Flush image cache"), osUser1));
Add(new cMenuEditIntItem(tr("Max. image cache size"), &mData.MaxCacheFill, 1));
Add(new cMenuEditIntItem(tr("Max. characters per line"), &mData.MaxChars, 1));
+ Add(new cMenuEditBoolItem(tr("Tabulator width"), &mData.TabWidth, tr("narrow"), tr("wide")));
Add(new cMenuEditBoolItem(tr("Old Skin compatibility (<1.0)"), &mData.SupportOldSkins, tr("no"), tr("yes")));
SetCurrent(Get(current));
@@ -44,6 +45,7 @@ void cText2SkinSetupPage::Store(void) {
SetupStore("CheckTimerConflict", mData.CheckTimerConflict);
SetupStore("MaxCacheFill", mData.MaxCacheFill);
SetupStore("MaxChars", mData.MaxChars);
+ SetupStore("TabWidth", mData.TabWidth);
SetupStore("SupportOldSkins", mData.SupportOldSkins);
Text2SkinSetup = mData;
}
diff --git a/po/de_DE.po b/po/de_DE.po
index b627283..4629b8b 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -63,6 +63,15 @@ msgstr "Max. Größe des Bildspeichers"
msgid "Max. characters per line"
msgstr "Max. Zeichenzahl pro Linie"
+msgid "Tabulator width"
+msgstr "Tabulator Breite"
+
+msgid "narrow"
+msgstr "schmal"
+
+msgid "wide"
+msgstr "breit"
+
msgid "Old Skin compatibility (<1.0)"
msgstr "Unterstützung alter Skins (<1.0)"
diff --git a/po/fi_FI.po b/po/fi_FI.po
index c96bfe2..95dfb5a 100644
--- a/po/fi_FI.po
+++ b/po/fi_FI.po
@@ -63,6 +63,15 @@ msgstr "Välimuistin maksimikoko"
msgid "Max. characters per line"
msgstr ""
+msgid "Tabulator width"
+msgstr ""
+
+msgid "narrow"
+msgstr ""
+
+msgid "wide"
+msgstr ""
+
msgid "Old Skin compatibility (<1.0)"
msgstr ""
diff --git a/po/it_IT.po b/po/it_IT.po
index b2d6f1e..73ac56a 100644
--- a/po/it_IT.po
+++ b/po/it_IT.po
@@ -65,6 +65,15 @@ msgstr "Dim. massima cache immagini"
msgid "Max. characters per line"
msgstr ""
+msgid "Tabulator width"
+msgstr ""
+
+msgid "narrow"
+msgstr ""
+
+msgid "wide"
+msgstr ""
+
msgid "Old Skin compatibility (<1.0)"
msgstr ""
diff --git a/render.c b/render.c
index 2a73adb..309c4b6 100644
--- a/render.c
+++ b/render.c
@@ -5,6 +5,7 @@
#include "i18n.h"
#include "theme.h"
#include "bitmap.h"
+#include "setup.h"
#include "status.h"
#include "screen.h"
#include "display.h"
@@ -336,7 +337,10 @@ void cText2SkinRender::DrawItemText(cxObject *Object, int i, const txPoint &List
const cFont *defFont = cFont::GetFont(fontOsd);
const char *dummy = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ";
//if (defFont != Object->Font())
- mTabScale = 1.4 * (float)Object->Font()->Width(dummy) / (float)defFont->Width(dummy);
+ if (Text2SkinSetup.TabWidth)
+ mTabScale = 1.4 * (float)Object->Font()->Width(dummy) / (float)defFont->Width(dummy);
+ else
+ mTabScale = 1.08 * (float)Object->Font()->Width(dummy) / (float)defFont->Width(dummy);
mTabScaleSet = true;
}
diff --git a/setup.c b/setup.c
index b2d3f9d..56e9fd7 100644
--- a/setup.c
+++ b/setup.c
@@ -15,6 +15,7 @@ cText2SkinSetup::cText2SkinSetup(void):
CheckTimerConflict(false),
MaxCacheFill(25),
MaxChars(100),
+ TabWidth(false),
SupportOldSkins(true)
{
}
@@ -28,6 +29,7 @@ bool cText2SkinSetup::SetupParse(const char *Name, const char *Value) {
else if (strcmp(Name, "CheckTimerConflict") == 0) CheckTimerConflict = atoi(Value);
else if (strcmp(Name, "MaxCacheFill") == 0) MaxCacheFill = atoi(Value);
else if (strcmp(Name, "MaxChars") == 0) MaxChars = atoi(Value);
+ else if (strcmp(Name, "TabWidth") == 0) TabWidth = atoi(Value);
else if (strcmp(Name, "SupportOldSkins") == 0) SupportOldSkins = atoi(Value);
else return false;
return true;
diff --git a/setup.h b/setup.h
index 4562d4d..3918e55 100644
--- a/setup.h
+++ b/setup.h
@@ -19,6 +19,7 @@ public:
int CheckTimerConflict;
int MaxCacheFill;
int MaxChars;
+ int TabWidth;
int SupportOldSkins;
};