From 84487e2f2023013b68f011431432782b16946954 Mon Sep 17 00:00:00 2001 From: donho Date: Tue, 22 Jan 2008 00:25:59 +0000 Subject: [PATCH] [IN_PROGRESS] VERTICAL/MULTILINE feature in progress. git-svn-id: svn://svn.tuxfamily.org/svnroot/notepadplus/repository@113 f5eea248-9336-0410-98b8-ebc06183d4e3 --- PowerEditor/src/Parameters.cpp | 39 ++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/PowerEditor/src/Parameters.cpp b/PowerEditor/src/Parameters.cpp index e8dbda0f0..ece1701e4 100644 --- a/PowerEditor/src/Parameters.cpp +++ b/PowerEditor/src/Parameters.cpp @@ -1754,6 +1754,10 @@ void NppParameters::feedGUIParameters(TiXmlNode *node) { if (!strcmp(val, "yes")) _nppGUI._tabStatus |= TAB_CLOSEBUTTON; + else if (!strcmp(val, "no")) + _nppGUI._tabStatus |= 0; + else + isFailed = true; } val = element->Attribute("doubleClick2Close"); @@ -1761,9 +1765,37 @@ void NppParameters::feedGUIParameters(TiXmlNode *node) { if (!strcmp(val, "yes")) _nppGUI._tabStatus |= TAB_DBCLK2CLOSE; + else if (!strcmp(val, "no")) + _nppGUI._tabStatus |= 0; + else + isFailed = true; + } + val = element->Attribute("vertical"); + if (val) + { + if (!strcmp(val, "yes")) + _nppGUI._tabStatus |= TAB_VERTICAL; + else if (!strcmp(val, "no")) + _nppGUI._tabStatus |= 0; + else + isFailed = true; } + + val = element->Attribute("multiLine"); + if (val) + { + if (!strcmp(val, "yes")) + _nppGUI._tabStatus |= TAB_MULTILINE; + else if (!strcmp(val, "no")) + _nppGUI._tabStatus |= 0; + else + isFailed = true; + } + if (isFailed) _nppGUI._tabStatus = oldValue; + + } else if (!strcmp(nm, "Auto-detection")) { @@ -2610,6 +2642,13 @@ bool NppParameters::writeGUIParams() pStr = (_nppGUI._tabStatus & TAB_DBCLK2CLOSE)?"yes":"no"; element->SetAttribute("doubleClick2Close", pStr); + + pStr = (_nppGUI._tabStatus & TAB_VERTICAL)?"yes":"no"; + element->SetAttribute("vertical", pStr); + + pStr = (_nppGUI._tabStatus & TAB_MULTILINE)?"yes":"no"; + element->SetAttribute("multiLine", pStr); + } else if (!strcmp(nm, "ScintillaViewsSplitter")) {