diff options
-rw-r--r-- | menu.c | 2 | ||||
-rw-r--r-- | po/de_DE.po | 9 | ||||
-rw-r--r-- | po/fi_FI.po | 9 | ||||
-rw-r--r-- | po/it_IT.po | 9 | ||||
-rw-r--r-- | render.c | 6 | ||||
-rw-r--r-- | setup.c | 2 | ||||
-rw-r--r-- | setup.h | 1 |
7 files changed, 37 insertions, 1 deletions
@@ -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 "" @@ -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; } @@ -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; @@ -19,6 +19,7 @@ public: int CheckTimerConflict; int MaxCacheFill; int MaxChars; + int TabWidth; int SupportOldSkins; }; |