OSDN Git Service

Fix osdn.net ticket #47553: Allow text to wrap in the Table Compare Window and unwrap...
authorTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 12 Mar 2023 10:39:38 +0000 (19:39 +0900)
committerTakashi Sawanaka <sdottaka@users.sourceforge.net>
Sun, 12 Mar 2023 10:39:38 +0000 (19:39 +0900)
43 files changed:
Src/Merge.rc
Src/MergeEditView.cpp
Src/OptionsDef.h
Src/OptionsInit.cpp
Src/resource.h
Testing/GoogleTest/GUITests/ConfigTest.cpp
Translations/WinMerge/Arabic.po
Translations/WinMerge/Basque.po
Translations/WinMerge/Brazilian.po
Translations/WinMerge/Bulgarian.po
Translations/WinMerge/Catalan.po
Translations/WinMerge/ChineseSimplified.po
Translations/WinMerge/ChineseTraditional.po
Translations/WinMerge/Corsican.po
Translations/WinMerge/Croatian.po
Translations/WinMerge/Czech.po
Translations/WinMerge/Danish.po
Translations/WinMerge/Dutch.po
Translations/WinMerge/English.pot
Translations/WinMerge/Finnish.po
Translations/WinMerge/French.po
Translations/WinMerge/Galician.po
Translations/WinMerge/German.po
Translations/WinMerge/Greek.po
Translations/WinMerge/Hungarian.po
Translations/WinMerge/Italian.po
Translations/WinMerge/Japanese.po
Translations/WinMerge/Korean.po
Translations/WinMerge/Lithuanian.po
Translations/WinMerge/Norwegian.po
Translations/WinMerge/Persian.po
Translations/WinMerge/Polish.po
Translations/WinMerge/Portuguese.po
Translations/WinMerge/Romanian.po
Translations/WinMerge/Russian.po
Translations/WinMerge/Serbian.po
Translations/WinMerge/Sinhala.po
Translations/WinMerge/Slovak.po
Translations/WinMerge/Slovenian.po
Translations/WinMerge/Spanish.po
Translations/WinMerge/Swedish.po
Translations/WinMerge/Turkish.po
Translations/WinMerge/Ukrainian.po

index 5989a52..e72341b 100644 (file)
@@ -4002,6 +4002,11 @@ END
 \r
 STRINGTABLE\r
 BEGIN\r
+    IDS_VIEW_WRAP_TEXT      "W&rap Text"\r
+END\r
+\r
+STRINGTABLE\r
+BEGIN\r
     IDS_FRHED_NOTINSTALLED  "Frhed is not installed."\r
 END\r
 \r
index 4f163e9..97c1065 100644 (file)
@@ -3572,7 +3572,9 @@ void CMergeEditView::OnUpdateViewLineNumbers(CCmdUI* pCmdUI)
  */
 void CMergeEditView::OnViewWordWrap()
 {
-       GetOptionsMgr()->SaveOption(OPT_WORDWRAP, !m_bWordWrap);
+       GetOptionsMgr()->SaveOption(
+               GetDocument()->m_ptBuf[0]->GetTableEditing() ?  OPT_WORDWRAP_TABLE : OPT_WORDWRAP,
+               !m_bWordWrap);
 
        // Call CMergeDoc RefreshOptions() to refresh *both* views
        CMergeDoc *pDoc = GetDocument();
@@ -3586,6 +3588,8 @@ void CMergeEditView::OnUpdateViewWordWrap(CCmdUI* pCmdUI)
 {
        pCmdUI->Enable(true);
        pCmdUI->SetCheck(m_bWordWrap);
+       pCmdUI->SetText((GetDocument()->m_ptBuf[0]->GetTableEditing() ?
+               _("W&rap Text") : _("W&rap Lines")).c_str());
 }
 
 void CMergeEditView::OnViewWhitespace() 
@@ -3883,7 +3887,8 @@ void CMergeEditView::DocumentsLoaded()
        const bool mixedEOLs = GetOptionsMgr()->GetBool(OPT_ALLOW_MIXED_EOL) ||
                GetDocument()->IsMixedEOL(m_nThisPane);
        SetViewEols(GetOptionsMgr()->GetBool(OPT_VIEW_EOL), mixedEOLs);
-       SetWordWrapping(GetOptionsMgr()->GetBool(OPT_WORDWRAP));
+       SetWordWrapping(GetOptionsMgr()->GetBool(GetDocument()->m_ptBuf[m_nThisPane]->GetTableEditing() ?
+               OPT_WORDWRAP_TABLE : OPT_WORDWRAP));
        SetViewLineNumbers(GetOptionsMgr()->GetBool(OPT_VIEW_LINENUMBERS));
        SetSelectionMargin(GetOptionsMgr()->GetBool(OPT_VIEW_FILEMARGIN));
 
index 2c273a0..5eedb82 100644 (file)
@@ -82,6 +82,7 @@ inline const String OPT_COPY_FULL_LINE {_T("Settings/CopyFullLine"s)};
 inline const String OPT_TAB_SIZE {_T("Settings/TabSize"s)};
 inline const String OPT_TAB_TYPE {_T("Settings/TabType"s)};
 inline const String OPT_WORDWRAP {_T("Settings/WordWrap"s)};
+inline const String OPT_WORDWRAP_TABLE {_T("Settings/WordWrapTable"s)};
 inline const String OPT_VIEW_LINENUMBERS {_T("Settings/ViewLineNumbers"s)};
 inline const String OPT_VIEW_FILEMARGIN {_T("Settings/ViewFileMargin"s)};
 inline const String OPT_VIEW_TOPMARGIN {_T("Settings/ViewTopMargin"s)};
index a724c68..71d7595 100644 (file)
@@ -71,6 +71,7 @@ void Init(COptionsMgr *pOptions)
 
        pOptions->InitOption(OPT_SYNTAX_HIGHLIGHT, true);
        pOptions->InitOption(OPT_WORDWRAP, false);
+       pOptions->InitOption(OPT_WORDWRAP_TABLE, false);
        pOptions->InitOption(OPT_VIEW_LINENUMBERS, false);
        pOptions->InitOption(OPT_VIEW_WHITESPACE, false);
        pOptions->InitOption(OPT_VIEW_EOL, false);
index 369ad32..41fe081 100644 (file)
 #define IDS_EOL_CONFLICT                43247\r
 #define IDS_IMAGE_MENU                  43352\r
 #define IDS_WEBPAGE_MENU                43353\r
+#define IDS_VIEW_WRAP_TEXT              43354\r
 #define IDS_EOL_DOS                     43400\r
 #define IDS_EOL_MAC                     43401\r
 #define IDS_EOL_UNIX                    43402\r
index 668f93a..9b78088 100644 (file)
@@ -162,6 +162,7 @@ namespace
                { OPT_TAB_SIZE, varprop::VT_INT, {1, 2, 4, 8, 128}, {} },
                { OPT_TAB_TYPE, varprop::VT_INT, {0, 1}, {} },
                { OPT_WORDWRAP, varprop::VT_BOOL, {}, {} },
+               { OPT_WORDWRAP_TABLE, varprop::VT_BOOL, {}, {} },
                { OPT_VIEW_LINENUMBERS, varprop::VT_BOOL, {}, {} },
                { OPT_VIEW_FILEMARGIN, varprop::VT_BOOL, {}, {} },
                { OPT_DIFF_CONTEXT, varprop::VT_INT, {0, 1, 3, 5, 7, 9}, {} },
index 53b872a..2b4605f 100644 (file)
@@ -3705,6 +3705,9 @@ msgstr "&تفعيل النطاق الأقصى التلقائي"
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "المحرر Frhed غير مثبت."
 
index 76ce3e1..703ca69 100644 (file)
@@ -4315,6 +4315,9 @@ msgstr ""
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr ""
 
index 3d6fba8..f16cddb 100644 (file)
@@ -3393,6 +3393,9 @@ msgstr "Ativar o &Máximo de Largura Automática"
 msgid "We&bpage"
 msgstr "Página Web"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "O Frhed não está instalado."
 
index 919ed5f..a05b7fe 100644 (file)
@@ -3789,6 +3789,9 @@ msgstr "Автоматична &максимална ширина"
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed не е инсталиран."
 
index b6632b3..6863f38 100644 (file)
@@ -4464,6 +4464,9 @@ msgstr "Activa l'amplada màxima automàtica"
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "L'aplicació Frhed no està instal·lada."
 
index 5ac82c3..ee17d0f 100644 (file)
@@ -3809,6 +3809,9 @@ msgstr "启用自动最大宽度(&A)"
 msgid "We&bpage"
 msgstr "网页(&B)"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed 未安装。"
 
index c04663e..8105b8f 100644 (file)
@@ -4463,6 +4463,9 @@ msgstr "開啟自動最大寬度 (&A)"
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed 未安裝。"
 
index 25d1079..6efaf87 100644 (file)
@@ -3780,6 +3780,9 @@ msgstr "&Attivà a larghezza massima autumatica"
 msgid "We&bpage"
 msgstr "Pagina we&b"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed ùn hè micca installatu."
 
index 806ce56..0d3c182 100644 (file)
@@ -4314,6 +4314,9 @@ msgstr ""
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr ""
 
index 3ca8eaa..d1d39b2 100644 (file)
@@ -4247,6 +4247,9 @@ msgstr ""
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr ""
 
index 37033a8..f60c894 100644 (file)
@@ -4352,6 +4352,9 @@ msgstr ""
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr ""
 
index d24f734..abfa783 100644 (file)
@@ -3787,6 +3787,9 @@ msgstr "Automatische maximale breedte inschakelen"
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Fhred is niet geïnstalleerd"
 
index 3650836..e62133c 100644 (file)
@@ -5,7 +5,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: WinMerge\n"
 "Report-Msgid-Bugs-To: https://bugs.winmerge.org/\n"
-"POT-Creation-Date: 2023-02-19 08:57+0000\n"
+"POT-Creation-Date: 2023-03-12 11:58+0000\n"
 "PO-Revision-Date: \n"
 "Last-Translator: \n"
 "Language-Team: English <winmerge-translate@lists.sourceforge.net>\n"
@@ -3387,6 +3387,9 @@ msgstr ""
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr ""
 
index 99917ba..bb64fb5 100644 (file)
@@ -3798,6 +3798,9 @@ msgstr "Käytä &automaattista maksimi leveyttä"
 msgid "We&bpage"
 msgstr "Ver&kkosivu"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed ei ole asennettu."
 
index 6a13642..bd5c254 100644 (file)
@@ -4491,6 +4491,9 @@ msgstr "Activer largeur &auto max"
 msgid "We&bpage"
 msgstr "Page &web"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed n'est pas installé."
 
index 66d03ab..08c615b 100644 (file)
@@ -4486,6 +4486,9 @@ msgstr "Activar &anchura máxima automática"
 msgid "We&bpage"
 msgstr "Páxina we&b"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed non está instalado."
 
index 547fba8..4479a4d 100644 (file)
@@ -4110,6 +4110,9 @@ msgstr "Automatisch maximale Breite aktivieren"
 msgid "We&bpage"
 msgstr "We&bseite"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed ist nicht installiert."
 
index a157645..02cb673 100644 (file)
@@ -4292,6 +4292,9 @@ msgstr ""
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr ""
 
index 3cd7a42..3c2cb4d 100644 (file)
@@ -4448,6 +4448,9 @@ msgstr "Auto oszlopszélesség be"
 msgid "We&bpage"
 msgstr "Weboldal"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Az Frhed hexa szerkesztő nincs telepítve."
 
index 9043995..330bfc9 100644 (file)
@@ -3744,6 +3744,9 @@ msgstr "Abilita altezza massima &automatica"
 msgid "We&bpage"
 msgstr "Pagina we&b"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed non è installato."
 
index d69e9ad..1aa0b5b 100644 (file)
@@ -3771,6 +3771,9 @@ msgstr "タブ幅の自動調整を有効にする(&A)"
 msgid "We&bpage"
 msgstr "Webページ(&B)"
 
+msgid "W&rap Text"
+msgstr "折り返して全体を表示(&R)"
+
 msgid "Frhed is not installed."
 msgstr "Frhed がインストールされていません。"
 
index 0243dce..c6ecdb9 100644 (file)
@@ -4489,6 +4489,9 @@ msgstr "자동 최대 너비 사용(&A)"
 msgid "We&bpage"
 msgstr "웹페이지(&B)"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed가 설치되지 않았습니다."
 
index 2d62e4c..cbdbc4f 100644 (file)
@@ -3393,6 +3393,9 @@ msgstr "Įjungti &Automatinį maks. plotį"
 msgid "We&bpage"
 msgstr "Ti&nklapiai"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "„Frhed“ neįdiegtas."
 
index 68e7820..6c47042 100644 (file)
@@ -3777,6 +3777,9 @@ msgstr ""
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr ""
 
index b9cdf96..51b9837 100644 (file)
@@ -4361,6 +4361,9 @@ msgstr ""
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr ""
 
index f26bb56..a987d01 100644 (file)
@@ -3394,6 +3394,9 @@ msgstr "Włącz automatycznie maksymalną szerokość"
 msgid "We&bpage"
 msgstr "Strona internetowa"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Free Hex Editor nie został zainstalowany."
 
index 6941bf0..6ab315f 100644 (file)
@@ -3814,6 +3814,9 @@ msgstr "Ativar largura máxima automática"
 msgid "We&bpage"
 msgstr "&Página web"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "O Frhed não está instalado."
 
index 9ee4dad..2391fea 100644 (file)
@@ -4297,6 +4297,9 @@ msgstr ""
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr ""
 
index bd4cb6b..ac63f61 100644 (file)
@@ -3395,6 +3395,9 @@ msgstr "Включить максимальную авто ширину"
 msgid "We&bpage"
 msgstr "Веб-страница"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed не установлен."
 
index 912328c..628e8ca 100644 (file)
@@ -4286,6 +4286,9 @@ msgstr ""
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr ""
 
index 1e294c4..b57f8cd 100644 (file)
@@ -4315,6 +4315,9 @@ msgstr ""
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr ""
 
index e716bea..b553c0f 100644 (file)
@@ -3745,6 +3745,9 @@ msgstr "Povoliť &automaticky maximalizovať šírku"
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed nie je nainštalovaný."
 
index 02bce4d..dea8cdc 100644 (file)
@@ -3770,6 +3770,9 @@ msgstr "Omogoči sa&modejno največjo širino"
 msgid "We&bpage"
 msgstr "&Spletna stran"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed ni nameščen."
 
index 049646d..470a2c8 100644 (file)
@@ -3772,6 +3772,9 @@ msgstr "Habilitar Ancho Máximo &Automático"
 msgid "We&bpage"
 msgstr "We&bpage"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed no está instalado."
 
index 937434e..1258d71 100644 (file)
@@ -3847,6 +3847,9 @@ msgstr "Aktivera automatisk högsta bredd"
 msgid "We&bpage"
 msgstr "Websida"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed är inte installerad."
 
index 0a72bce..2098da6 100644 (file)
@@ -3840,6 +3840,9 @@ msgstr "Otom&atik en fazla genişlik"
 msgid "We&bpage"
 msgstr "We&b sayfası"
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr "Frhed kurulmamış."
 
index ed750c0..d0afa6c 100644 (file)
@@ -4318,6 +4318,9 @@ msgstr ""
 msgid "We&bpage"
 msgstr ""
 
+msgid "W&rap Text"
+msgstr ""
+
 msgid "Frhed is not installed."
 msgstr ""