OSDN Git Service

PATCH: [ 1147039 ] experimental patch for colored word diff
authorKimmo Varis <kimmov@gmail.com>
Fri, 4 Mar 2005 13:39:42 +0000 (13:39 +0000)
committerKimmo Varis <kimmov@gmail.com>
Fri, 4 Mar 2005 13:39:42 +0000 (13:39 +0000)
 - submitted by Takashi Sawanaka

80 files changed:
Src/Languages/Brazilian/MergeBrazilian.rc
Src/Languages/Brazilian/resource.h
Src/Languages/Bulgarian/MergeBulgarian.rc
Src/Languages/Bulgarian/resource.h
Src/Languages/Catalan/MergeCatalan.rc
Src/Languages/Catalan/resource.h
Src/Languages/ChineseSimplified/MergeChineseSimplified.rc
Src/Languages/ChineseSimplified/resource.h
Src/Languages/ChineseTraditional/MergeChineseTraditional.rc
Src/Languages/ChineseTraditional/resource.h
Src/Languages/Czech/MergeCzech.rc
Src/Languages/Czech/resource.h
Src/Languages/Danish/MergeDanish.rc
Src/Languages/Danish/resource.h
Src/Languages/Dutch/MergeDutch.rc
Src/Languages/Dutch/resource.h
Src/Languages/French/MergeFrench.rc
Src/Languages/French/resource.h
Src/Languages/German/MergeGerman.rc
Src/Languages/German/resource.h
Src/Languages/Hungarian/MergeHungarian.rc
Src/Languages/Hungarian/resource.h
Src/Languages/Italian/MergeItalian.rc
Src/Languages/Italian/resource.h
Src/Languages/Japanese/MergeJapanese.rc
Src/Languages/Japanese/resource.h
Src/Languages/Korean/MergeKorean.rc
Src/Languages/Korean/resource.h
Src/Languages/Norwegian/MergeNorwegian.rc
Src/Languages/Norwegian/resource.h
Src/Languages/Polish/MergePolish.rc
Src/Languages/Polish/resource.h
Src/Languages/Russian/MergeRussian.rc
Src/Languages/Russian/resource.h
Src/Languages/Slovak/MergeSlovak.rc
Src/Languages/Slovak/resource.h
Src/Languages/Spanish/MergeSpanish.rc
Src/Languages/Spanish/resource.h
Src/Languages/Swedish/MergeSwedish.rc
Src/Languages/Swedish/resource.h
Src/MainFrm.cpp
Src/Merge.rc
Src/MergeDiffDetailView.cpp
Src/MergeDiffDetailView.h
Src/MergeDoc.h
Src/MergeDocLineDiffs.cpp
Src/MergeEditView.cpp
Src/MergeEditView.h
Src/OptionsDef.h
Src/PropColors.cpp
Src/PropColors.h
Src/editlib/asp.cpp
Src/editlib/basic.cpp
Src/editlib/batch.cpp
Src/editlib/ccrystaltextview.cpp
Src/editlib/ccrystaltextview.h
Src/editlib/cplusplus.cpp
Src/editlib/csharp.cpp
Src/editlib/dcl.cpp
Src/editlib/fortran.cpp
Src/editlib/html.cpp
Src/editlib/ini.cpp
Src/editlib/is.cpp
Src/editlib/java.cpp
Src/editlib/lisp.cpp
Src/editlib/pascal.cpp
Src/editlib/perl.cpp
Src/editlib/php.cpp
Src/editlib/python.cpp
Src/editlib/rexx.cpp
Src/editlib/rsrc.cpp
Src/editlib/sgml.cpp
Src/editlib/sh.cpp
Src/editlib/siod.cpp
Src/editlib/sql.cpp
Src/editlib/tcl.cpp
Src/editlib/tex.cpp
Src/editlib/xml.cpp
Src/readme.txt
Src/resource.h

index c371ddc..27d8af0 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "Usar F&onte Padrão",          ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "E&xibir Espaços",             ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "Barra de &Ferramentas",       ID_VIEW_TOOLBAR
         MENUITEM "Barra de &Status",            ID_VIEW_STATUS_BAR
@@ -610,7 +611,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Cores"
 FONT 8, "MS Shell Dlg"
@@ -668,7 +669,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2207,6 +2222,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Location pane shows overall picture from files"
     ID_VIEW_DIR_STATEPANE   "Show directory compare statepane"
     ID_VIEW_LANGUAGE        "Seleciona o Idioma usado na interface\nLíngua"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index e281a2f..7f84e59 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "Èçïîëçâàé ô&îíò ïî ïîäðàçáèðàíå",           ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "&Âèæäàé ïðàçíèòå ìåñòà",            ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "&Èíñòðóìåíòè",                    ID_VIEW_TOOLBAR
         MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
@@ -608,7 +609,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Öâåòîâå"
 FONT 8, "MS Shell Dlg"
@@ -666,7 +667,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Ïúðâîíà÷àëíè",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Ïúðâîíà÷àëíè",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2091,6 +2106,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Location pane shows overall picture from files"
     ID_VIEW_DIR_STATEPANE   "Show directory compare statepane"
     ID_VIEW_LANGUAGE        "Èçáåðåòå åçèêà íà êîèòî äà å ïðîãðàìàòà\nÅçèê"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index ce9839d..36ae3e3 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "Empra el tipus de lletra del &sistema", ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "Mostra els es&pais",          ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "Barra d'ei&nes",              ID_VIEW_TOOLBAR
         MENUITEM "Barra d'est&at",              ID_VIEW_STATUS_BAR
@@ -608,7 +609,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Colors"
 FONT 8, "MS Shell Dlg"
@@ -666,7 +667,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Predeterminats",IDC_COLORDEFAULTS_BTN,166,130,59,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Predeterminats",IDC_COLORDEFAULTS_BTN,166,170,59,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2107,6 +2122,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Mostra la subfinestra d'ubicació amb una image general dels fitxers"
     ID_VIEW_DIR_STATEPANE   "Mostra la subfinestra d'estat de comparació de directori"
     ID_VIEW_LANGUAGE        "Selecciona l'idioma de la interfície d'usuari\nIdioma"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 054c5be..4051358 100644 (file)
@@ -175,6 +175,7 @@ BEGIN
         MENUITEM "ʹÓÃĬÈÏ×ÖÐÍ(&O)",          ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "ÏÔʾ¿Õ°×ºÍÖƱí·û(&V)",          ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "¹¤¾ßÀ¸(&T)",                  ID_VIEW_TOOLBAR
         MENUITEM "״̬À¸(&S)",                  ID_VIEW_STATUS_BAR
@@ -600,7 +601,7 @@ BEGIN
                     ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "ÑÕÉ«"
 FONT 8, "MS Shell Dlg"
@@ -656,7 +657,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2077,6 +2092,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Location pane shows overall picture from files"
     ID_VIEW_DIR_STATEPANE   "Show directory compare statepane"
     ID_VIEW_LANGUAGE        "Ñ¡ÔñÄ¿Ç°Óû§½Ó¿ÚÓïÑÔ\nÓïÑÔ"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 67ae6a6..2c08d82 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "¨Ï¥Î¹w³]ªº¦r«¬(&O)",          ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "À˵øªÅ¥Õ©M¸õ®æ(&V)",          ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "¤u¨ã¦C(&T)",                  ID_VIEW_TOOLBAR
         MENUITEM "ª¬ºA¦C(&S)",                  ID_VIEW_STATUS_BAR
@@ -600,7 +601,7 @@ BEGIN
                     ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "¦â±m"
 FONT 8, "MS Shell Dlg"
@@ -656,7 +657,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2190,6 +2205,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Location pane shows overall picture from files"
     ID_VIEW_DIR_STATEPANE   "Show directory compare statepane"
     ID_VIEW_LANGUAGE        "¿ï¨ú¥Ø«e¥Î¤á¤¶­±»y¨¥\n»y¨¥"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 4f00342..34641dc 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "Pou\9eít základní písm&o",      ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "&View Whitespace",            ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "&Panel nástroju",             ID_VIEW_TOOLBAR
         MENUITEM "&Stavový rádek",              ID_VIEW_STATUS_BAR
@@ -608,7 +609,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Colors"
 FONT 8, "MS Shell Dlg"
@@ -666,7 +667,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2204,6 +2219,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Location pane shows overall picture from files"
     ID_VIEW_DIR_STATEPANE   "Show directory compare statepane"
     ID_VIEW_LANGUAGE        "Zvolit jazyk pro u\9eivatelské rozhraní\nLanguage"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 4ceefc0..4a2473f 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "Brug standard s&krifttype",   ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "Vis &mellemrum",              ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "V&ærktøjslinje",              ID_VIEW_TOOLBAR
         MENUITEM "S&tatuslinje",                ID_VIEW_STATUS_BAR
@@ -608,7 +609,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Farver"
 FONT 8, "MS Shell Dlg"
@@ -666,7 +667,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Standard",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Standard",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2089,6 +2104,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Vis eller gem vertikalt panel"
     ID_VIEW_DIR_STATEPANE   "Vis eller gem status på sammeligning af mapper"
     ID_VIEW_LANGUAGE        "Vælg sprog til brugerfladen\nSprog"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 7d1b2d2..64d1b64 100644 (file)
@@ -177,6 +177,7 @@ BEGIN
         MENUITEM "Gebruik standaard  F&ont",    ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "&View Whitespace",            ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "&Werkbalk",                   ID_VIEW_TOOLBAR
         MENUITEM "&Status Balk",                ID_VIEW_STATUS_BAR
@@ -609,7 +610,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Colors"
 FONT 8, "MS Shell Dlg"
@@ -667,7 +668,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2206,6 +2221,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Location pane shows overall picture from files"
     ID_VIEW_DIR_STATEPANE   "Show directory compare statepane"
     ID_VIEW_LANGUAGE        "Selecteer de gewenste taal. \nTaal"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 4c13557..63a131d 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "Utiliser la police par dé&faut", ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "&Afficher les espaces",       ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "Barre d'&outils",             ID_VIEW_TOOLBAR
         MENUITEM "&Barre d'état",               ID_VIEW_STATUS_BAR
@@ -609,7 +610,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Couleurs"
 FONT 8, "MS Shell Dlg", 0, 0, 0x1
@@ -667,7 +668,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2092,6 +2107,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Location pane shows overall picture from files"
     ID_VIEW_DIR_STATEPANE   "Show directory compare statepane"
     ID_VIEW_LANGUAGE        "Sélectionner la langue de l'interface\nLangue"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 279d231..da6a5c4 100644 (file)
@@ -180,6 +180,7 @@ BEGIN
         MENUITEM "Standard-Schrift &verwenden", ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "Leer&zeichen anzeigen",       ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "&Symbolleiste",               ID_VIEW_TOOLBAR
         MENUITEM "S&tatusleiste",               ID_VIEW_STATUS_BAR
@@ -616,7 +617,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Farben"
 FONT 8, "MS Shell Dlg"
@@ -674,7 +675,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Vorgaben",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Vorgaben",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2209,6 +2224,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Die Positionsleiste zeigt gesamte Abbildungen von den Dateien."
     ID_VIEW_DIR_STATEPANE   "Blendet den Vergleichszustand ein oder aus."
     ID_VIEW_LANGUAGE        "Wählt die Sprache der Benutzeroberfläche.\nSprache"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 4988fde..7d46214 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "Alapértelmezett betûtípus használata",           ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "&Szóközök mutatása",            ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "&Eszköztár",                    ID_VIEW_TOOLBAR
         MENUITEM "&Álapotsor",                 ID_VIEW_STATUS_BAR
@@ -609,7 +610,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Színek"
 FONT 8, "MS Shell Dlg"
@@ -667,7 +668,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Alapértékek",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Alapértékek",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2090,6 +2105,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "A Pozíció panel vizuális képet ad az összehasonlított fájlokról"
     ID_VIEW_DIR_STATEPANE   "Könyvtár összehasonlítási állapot panel mutatása"
     ID_VIEW_LANGUAGE        "Add meg a használni kívánt nyelvet\nNyelv"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 2af4686..5aca62c 100644 (file)
@@ -175,7 +175,8 @@ BEGIN
         MENUITEM "&Carattere...",               ID_VIEW_SELECTFONT
         MENUITEM "&Utilizza carattere predefinito",  ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
-        MENUITEM "&Visualizza spazi bianchi",            ID_VIEW_WHITESPACE
+        MENUITEM "&Visualizza spazi bianchi",   ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "Barra degli &strumenti",      ID_VIEW_TOOLBAR
         MENUITEM "&Barra di stato",             ID_VIEW_STATUS_BAR
@@ -609,7 +610,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Colori"
 FONT 8, "MS Shell Dlg"
@@ -667,7 +668,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Predefinito",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Predefinito",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2205,6 +2220,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Il pannello della locazione mostra un'immagine complessiva dei file"
     ID_VIEW_DIR_STATEPANE   "Mostra pannello di riepilogo rapido del confronto tra cartelle"
     ID_VIEW_LANGUAGE        "Seleziona la lingua dell'interfaccia utente\nLingua"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 91b936c..8b7b2ff 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "\83f\83t\83H\83\8b\83g\83t\83H\83\93\83g\82ð\8eg\97p(&O)", ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "\8bó\94\92\82ð\95\\8e¦(&V)",              ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "\83c\81[\83\8b\83o\81[(&T)",              ID_VIEW_TOOLBAR
         MENUITEM "\83X\83e\81[\83^\83X\83o\81[(&S)",          ID_VIEW_STATUS_BAR
@@ -610,7 +611,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "\90F"
 FONT 8, "MS Shell Dlg"
@@ -668,7 +669,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "\83f\83t\83H\83\8b\83g",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "\92P\8cê\82Ì\8d·\88Ù:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "\91I\91ð\82³\82ê\82½\92P\8cê\82Ì\8d·\88Ù:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "\83f\83t\83H\83\8b\83g",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2094,6 +2109,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "\83\8d\83P\81[\83V\83\87\83\93\83y\83C\83\93\82Í\83t\83@\83C\83\8b\82Ì\93à\97e\91S\91Ì\82ð\83s\83N\83`\83\83\82Æ\82µ\82Ä\95\\8e¦\82µ\82Ü\82·"
     ID_VIEW_DIR_STATEPANE   "\83f\83B\83\8c\83N\83g\83\8a\94ä\8ar\8fó\91Ô\83y\83C\83\93\82ð\95\\8e¦\82µ\82Ü\82·"
     ID_VIEW_LANGUAGE        "\8c»\8dÝ\82Ì\83\86\81[\83U\81[\83C\83\93\83^\81[\83t\83F\81[\83X\8c¾\8cê\82ð\91I\91ð\82µ\82Ü\82·\n\8c¾\8cê"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 2de38b5..9b2b798 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "±âº» ÆùÆ® »ç¿ë(&O)",          ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "°ø¹é º¸±â(&V)",               ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "Åø¹Ù(&T)",                    ID_VIEW_TOOLBAR
         MENUITEM "»óÅ ǥ½ÃÁÙ(&S)",             ID_VIEW_STATUS_BAR
@@ -607,7 +608,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "»ö»ó"
 FONT 8, "MS Shell Dlg"
@@ -665,7 +666,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,
                     WS_EX_TRANSPARENT | WS_EX_CLIENTEDGE
-    PUSHBUTTON      "±âº»°ª",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "±âº»°ª",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2088,6 +2103,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "À§Ä¡ Ç¥½ÃâÀº Àüü ºñ±³ »óȲÀ» À̹ÌÁö·Î º¸¿©ÁÝ´Ï´Ù."
     ID_VIEW_DIR_STATEPANE   "µð·ºÅ丮 ºñ±³ »óȲÀ» ¿ä¾àÇؼ­ º¾´Ï´Ù."
     ID_VIEW_LANGUAGE        "¾ð¾î¸¦ ¼±ÅÃÇÕ´Ï´Ù.\n¾ð¾î"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 9f623a2..3b1dce2 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "Bruk standard s&krifttype",   ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "&Vis mellomrom",              ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "&verktøylinje",               ID_VIEW_TOOLBAR
         MENUITEM "S&tatuslinje",                ID_VIEW_STATUS_BAR
@@ -607,7 +608,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Farger"
 FONT 8, "MS Shell Dlg"
@@ -665,7 +666,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Standardverdier",IDC_COLORDEFAULTS_BTN,166,130,70,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Standardverdier",IDC_COLORDEFAULTS_BTN,166,170,70,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2203,6 +2218,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Plasseringsvindu viser oversiktbilde av filene"
     ID_VIEW_DIR_STATEPANE   "Vis mappesammenligningsvindu"
     ID_VIEW_LANGUAGE        "Velg språk til brukergrensesnittet\nSpråk"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 0fe0cf5..5a6f15f 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "Czcionka &domyslna",          ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "&Pokaz biale znaki",          ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "Pasek &narzedzi",             ID_VIEW_TOOLBAR
         MENUITEM "Pasek s&tanu",                ID_VIEW_STATUS_BAR
@@ -608,7 +609,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Kolory"
 FONT 8, "MS Shell Dlg"
@@ -666,7 +667,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2204,6 +2219,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Location pane shows overall picture from files"
     ID_VIEW_DIR_STATEPANE   "Show directory compare statepane"
     ID_VIEW_LANGUAGE        "Wybierz jezyk interfejsu uzytkownika\nJezyk"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index ac52581..59269f7 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "Èñïîëüçîâàòü øðèôò ïî &óìîë÷àíèþ", ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "Ïîêàçû&âàòü íåâèäèìûå",       ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "Ïà&íåëü èíñòðóìåíòîâ",        ID_VIEW_TOOLBAR
         MENUITEM "&Ñòðîêà ñîñòîÿíèÿ",           ID_VIEW_STATUS_BAR
@@ -616,7 +617,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Öâåòà"
 FONT 8, "MS Shell Dlg"
@@ -674,7 +675,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Ïî óìîë÷àíèþ",IDC_COLORDEFAULTS_BTN,166,130,54,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Ïî óìîë÷àíèþ",IDC_COLORDEFAULTS_BTN,166,170,54,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2101,6 +2116,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Location pane shows overall picture from files"
     ID_VIEW_DIR_STATEPANE   "Show directory compare statepane"
     ID_VIEW_LANGUAGE        "Âûáîð ÿçûêà ïîëüçîâàòåëÿ\nLanguage"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 10c752b..0504769 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "Pou\9ei\9d základné písm&o",      ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "&Zobraz prázdne miesto",      ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "&Panel nástrojov",            ID_VIEW_TOOLBAR
         MENUITEM "&Stavový riadok",             ID_VIEW_STATUS_BAR
@@ -608,7 +609,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Farby"
 FONT 8, "MS Shell Dlg"
@@ -666,7 +667,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2204,6 +2219,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Location pane shows overall picture from files"
     ID_VIEW_DIR_STATEPANE   "Show directory compare statepane"
     ID_VIEW_LANGUAGE        "Zvoli\9d jazyk u\9eivate¾ského rozhrania\nJazyk"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 77b44da..6af4291 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "Usar Fuente de Sistema",      ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "&View Whitespace",            ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "&Barra de Herramientas",      ID_VIEW_TOOLBAR
         MENUITEM "&Barra de Estado",            ID_VIEW_STATUS_BAR
@@ -607,7 +608,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Colors"
 FONT 8, "MS Shell Dlg"
@@ -665,7 +666,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2204,6 +2219,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Location pane shows overall picture from files"
     ID_VIEW_DIR_STATEPANE   "Show directory compare statepane"
     ID_VIEW_LANGUAGE        "Especifice a la idioma\nIdioma"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index cabac7b..491ac57 100644 (file)
@@ -175,6 +175,7 @@ BEGIN
         MENUITEM "Använd standardtec&kensnitt", ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "Visa &mellanslag",            ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "V&erktygsfält",               ID_VIEW_TOOLBAR
         MENUITEM "S&tatusfält",                 ID_VIEW_STATUS_BAR
@@ -606,7 +607,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Färger"
 FONT 8, "MS Shell Dlg"
@@ -664,7 +665,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Standard",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Standard",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2203,6 +2218,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Skillnadsbilden visar en övergripande bild av filerna"
     ID_VIEW_DIR_STATEPANE   "Visar jämför katalogs Statuspanel"
     ID_VIEW_LANGUAGE        "Väljer språk för användargränssnittet\nSpråk"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833
index 516e817..57a25bc 100644 (file)
@@ -182,6 +182,7 @@ CMainFrame::CMainFrame()
        m_options.InitOption(OPT_SHOW_STATUSBAR, true);
 
        m_options.InitOption(OPT_SYNTAX_HIGHLIGHT, true);
+       m_options.InitOption(OPT_WORDDIFF_HIGHLIGHT, true);
        m_options.InitOption(OPT_DISABLE_SPLASH, false);
        m_options.InitOption(OPT_CREATE_BACKUPS, true);
        m_options.InitOption(OPT_VIEW_WHITESPACE, false);
@@ -226,6 +227,10 @@ CMainFrame::CMainFrame()
        m_options.InitOption(OPT_CLR_SELECTED_MOVEDBLOCK, (int)RGB(248,112,78));
        m_options.InitOption(OPT_CLR_SELECTED_MOVEDBLOCK_DELETED, (int)RGB(252, 181, 163));
        m_options.InitOption(OPT_CLR_SELECTED_MOVEDBLOCK_TEXT, (int)RGB(0,0,0));
+       m_options.InitOption(OPT_CLR_WORDDIFF, (int)RGB(255,255,0));
+       m_options.InitOption(OPT_CLR_SELECTED_WORDDIFF, (int)RGB(255,160,160));
+       m_options.InitOption(OPT_CLR_WORDDIFF_TEXT, (int)RGB(0,0,0));
+       m_options.InitOption(OPT_CLR_SELECTED_WORDDIFF_TEXT, (int)RGB(0,0,0));
 
        m_options.InitOption(OPT_PROJECTS_PATH,_T(""));
 
@@ -1251,6 +1256,10 @@ void CMainFrame::OnOptions()
                m_options.SaveOption(OPT_CLR_SELECTED_MOVEDBLOCK, (int)colors.m_clrSelMoved);
                m_options.SaveOption(OPT_CLR_SELECTED_MOVEDBLOCK_DELETED, (int)colors.m_clrSelMovedDeleted);
                m_options.SaveOption(OPT_CLR_SELECTED_MOVEDBLOCK_TEXT, (int)colors.m_clrSelMovedText);
+               m_options.SaveOption(OPT_CLR_WORDDIFF, (int)colors.m_clrWordDiff);
+               m_options.SaveOption(OPT_CLR_SELECTED_WORDDIFF, (int)colors.m_clrSelWordDiff);
+               m_options.SaveOption(OPT_CLR_WORDDIFF_TEXT, (int)colors.m_clrWordDiffText);
+               m_options.SaveOption(OPT_CLR_SELECTED_WORDDIFF_TEXT, (int)colors.m_clrSelWordDiffText);
                m_options.SaveOption(OPT_CP_DEFAULT_MODE, (int)codepage.m_nCodepageSystem);
                m_options.SaveOption(OPT_CP_DEFAULT_CUSTOM, (int)codepage.m_nCustomCodepageValue);
                m_options.SaveOption(OPT_CP_DETECT, codepage.m_bDetectCodepage == TRUE);
index fabb0d0..dfcf97b 100644 (file)
@@ -176,6 +176,7 @@ BEGIN
         MENUITEM "Use Default F&ont",           ID_VIEW_USEDEFAULTFONT
         MENUITEM SEPARATOR
         MENUITEM "&View Whitespace",            ID_VIEW_WHITESPACE
+        MENUITEM "Vie&w Line Differences",      ID_VIEW_LINEDIFFS
         MENUITEM SEPARATOR
         MENUITEM "&Toolbar",                    ID_VIEW_TOOLBAR
         MENUITEM "&Status Bar",                 ID_VIEW_STATUS_BAR
@@ -609,7 +610,7 @@ BEGIN
                     ES_AUTOHSCROLL | ES_WANTRETURN
 END
 
-IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 156
+IDD_PROPPAGE_COLORS DIALOGEX 0, 0, 235, 196
 STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_DISABLED | WS_CAPTION
 CAPTION "Colors"
 FONT 8, "MS Shell Dlg"
@@ -667,7 +668,21 @@ BEGIN
     CONTROL         "Dif",IDC_SEL_MOVEDBLOCK_TEXT_COLOR,"Button",
                     BS_OWNERDRAW | WS_TABSTOP,199,109,17,14,WS_EX_TRANSPARENT |
                     WS_EX_CLIENTEDGE
-    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,130,50,14
+    RTEXT           "Word Difference:",IDC_STATIC,7,129,90,8
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,129,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    RTEXT           "Selected Word Diff:",IDC_STATIC,7,149,90,8
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_COLOR,"Button",BS_OWNERDRAW |
+                    WS_TABSTOP,113,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    CONTROL         "Dif",IDC_SEL_WORDDIFFERENCE_TEXT_COLOR,"Button",
+                    BS_OWNERDRAW | WS_TABSTOP,199,149,17,14,WS_EX_TRANSPARENT |
+                    WS_EX_CLIENTEDGE
+    PUSHBUTTON      "Defaults",IDC_COLORDEFAULTS_BTN,166,170,50,14
 END
 
 IDD_OUTPUT DIALOGEX 0, 0, 278, 157
@@ -2099,6 +2114,7 @@ BEGIN
     ID_VIEW_LOCATION_BAR    "Location pane shows overall picture from files"
     ID_VIEW_DIR_STATEPANE   "Show directory compare statepane"
     ID_VIEW_LANGUAGE        "Select the current user interfacce language\nLanguage"
+    ID_VIEW_LINEDIFFS       "Shows differences inside lines with different color\nShow Line Diff"
 END
 
 // MERGE MENU
index 49e5a27..8ac0830 100644 (file)
@@ -163,6 +163,65 @@ void CMergeDiffDetailView::OnInitialUpdate()
        displayLength = NROWS_INIT;
 }
 
+int CMergeDiffDetailView::GetAdditionalTextBlocks (int nLineIndex, TEXTBLOCK *pBuf)
+{
+       if (nLineIndex < lineBegin || nLineIndex > lineEnd)
+               return 0;
+
+       DWORD dwLineFlags = GetLineFlags(nLineIndex);
+       if ((dwLineFlags & LF_DIFF) != LF_DIFF || (dwLineFlags & LF_MOVED) == LF_MOVED)
+               return 0;
+
+       if (!mf->m_options.GetBool(OPT_WORDDIFF_HIGHLIGHT))
+               return 0;
+
+       int nLineLength = GetLineLength(nLineIndex);
+       wdiffarray worddiffs;
+       GetDocument()->GetWordDiffArray(nLineIndex, &worddiffs);
+       if (worddiffs.GetSize() == 0 || (worddiffs[0].end[0] == -1 && worddiffs[0].end[1] + 1 == nLineLength) || (worddiffs[0].end[1] == -1 && worddiffs[0].end[0] + 1 == nLineLength))
+               return 0;
+
+       int nWordDiffs = worddiffs.GetSize();
+
+       pBuf[0].m_nCharPos = 0;
+       pBuf[0].m_nColorIndex = COLORINDEX_NONE;
+       pBuf[0].m_nBgColorIndex = COLORINDEX_NONE;
+       for (int i = 0; i < nWordDiffs; i++)
+       {
+               if (m_bIsLeft)
+               {
+                       pBuf[1 + i * 2].m_nCharPos = worddiffs[i].start[0];
+                       pBuf[2 + i * 2].m_nCharPos = worddiffs[i].end[0] + 1;
+               }
+               else
+               {
+                       pBuf[1 + i * 2].m_nCharPos = worddiffs[i].start[1];
+                       pBuf[2 + i * 2].m_nCharPos = worddiffs[i].end[1] + 1;
+               }
+               pBuf[1 + i * 2].m_nColorIndex = COLORINDEX_HIGHLIGHTTEXT1 | COLORINDEX_APPLYFORCE;
+               pBuf[1 + i * 2].m_nBgColorIndex = COLORINDEX_HIGHLIGHTBKGND1 | COLORINDEX_APPLYFORCE;
+               pBuf[2 + i * 2].m_nColorIndex = COLORINDEX_NONE;
+               pBuf[2 + i * 2].m_nBgColorIndex = COLORINDEX_NONE;
+       }
+       return nWordDiffs * 2 + 1;
+}
+
+COLORREF CMergeDiffDetailView::GetColor(int nColorIndex)
+{
+       switch (nColorIndex & ~COLORINDEX_APPLYFORCE)
+       {
+       case COLORINDEX_HIGHLIGHTBKGND1:
+               return mf->m_options.GetInt(OPT_CLR_SELECTED_WORDDIFF);
+       case COLORINDEX_HIGHLIGHTTEXT1:
+               return mf->m_options.GetInt(OPT_CLR_SELECTED_WORDDIFF_TEXT);
+       case COLORINDEX_HIGHLIGHTBKGND2:
+               return mf->m_options.GetInt(OPT_CLR_WORDDIFF);
+       case COLORINDEX_HIGHLIGHTTEXT2:
+               return mf->m_options.GetInt(OPT_CLR_WORDDIFF_TEXT);
+       default:
+               return CCrystalTextView::GetColor(nColorIndex);
+       }
+}
 
 /// virtual, avoid coloring the whole diff with diff color 
 void CMergeDiffDetailView::GetLineColors(int nLineIndex, COLORREF & crBkgnd,
index 60459a8..f37845d 100644 (file)
@@ -107,6 +107,8 @@ protected:
 // Implementation
 protected:
        virtual ~CMergeDiffDetailView();
+       virtual int GetAdditionalTextBlocks (int nLineIndex, TEXTBLOCK *pBuf);
+       virtual COLORREF GetColor(int nColorIndex);
        virtual void GetLineColors (int nLineIndex, COLORREF & crBkgnd,
                               COLORREF & crText, BOOL & bDrawWhitespace);
        virtual void OnUpdateSibling (CCrystalTextView * pUpdateSource, BOOL bHorz);
index 9dbcf65..33db85f 100644 (file)
@@ -32,6 +32,7 @@
 #include <vector>
 #include "DiffWrapper.h"
 #include "DiffList.h"
+#include "stringdiffs.h"
 
 #ifndef _DIFF_FILE_INFO_H_INCLUDED
 #include "DiffFileInfo.h"
@@ -254,6 +255,7 @@ public:
        typedef enum { BYTEDIFF, WORDDIFF } DIFFLEVEL;
        void Showlinediff(CMergeEditView * pView, DIFFLEVEL difflvl);
        void Showlinediff(CMergeDiffDetailView * pView, DIFFLEVEL difflvl);
+       void GetWordDiffArray(int nLineIndex, wdiffarray *pworddiffs);
 private:
        void Computelinediff(CCrystalTextView * pView, CCrystalTextView * pOther, int line, CRect * rc1, CRect * rc2, DIFFLEVEL difflvl);
 // End MergeDocLineDiffs.cpp
index 61fc9cc..3805f43 100644 (file)
@@ -304,3 +304,49 @@ void CMergeDoc::Computelinediff(CCrystalTextView * pView1, CCrystalTextView * pV
        }
 }
 
+void CMergeDoc::GetWordDiffArray(int nLineIndex, wdiffarray *pworddiffs)
+{
+       if (nLineIndex >= m_pLeftView->GetLineCount()) return;
+       if (nLineIndex >= m_pRightView->GetLineCount()) return;
+
+       DIFFOPTIONS diffOptions = {0};
+       m_diffWrapper.GetOptions(&diffOptions);
+
+       CString str1 = m_pLeftView->GetLineChars(nLineIndex);
+       CString str2 = m_pRightView->GetLineChars(nLineIndex);
+
+       if (!diffOptions.bEolSensitive)
+       {
+               /* Commented out code because GetLineActualLength is buggy
+               // Chop of eol (end of line) characters
+               int len1 = pView1->GetLineActualLength(line);
+               str1 = str1.Left(len1);
+               int len2 = pView2->GetLineActualLength(line);
+               str2 = str2.Left(len2);
+               */
+               int i = str1.GetLength()-1;
+               while (i>=0 && (str1[i]=='\r' || str1[i]=='\n'))
+                       --i;
+               if (i+1 < str1.GetLength())
+                       str1 = str1.Left(i+1);
+               i = str2.GetLength()-1;
+               while (i>=0 && (str2[i]=='\r' || str2[i]=='\n'))
+                       --i;
+               if (i+1 < str2.GetLength())
+                       str2 = str2.Left(i+1);
+       }
+
+       // We truncate diffs to remain inside line (ie, to not flag eol characters)
+       int width1 = m_pLeftView->GetLineLength(nLineIndex);
+       int width2 = m_pRightView->GetLineLength(nLineIndex);
+
+       // Options that affect comparison
+       bool casitive = !diffOptions.bIgnoreCase;
+       int xwhite = diffOptions.nIgnoreWhitespace;
+
+       // Make the call to stringdiffs, which does all the hard & tedious computations
+       stringdiffs_Get(str1, str2, casitive, xwhite, pworddiffs);
+
+       return;
+}
+
index f518d91..07ea540 100644 (file)
@@ -70,6 +70,7 @@ CMergeEditView::CMergeEditView()
        m_bCloseWithEsc = mf->m_options.GetBool(OPT_CLOSE_WITH_ESC);
 
        m_bSyntaxHighlight = mf->m_options.GetBool(OPT_SYNTAX_HIGHLIGHT);
+       m_bWordDiffHighlight = mf->m_options.GetBool(OPT_WORDDIFF_HIGHLIGHT);
        m_cachedColors.clrDiff = mf->m_options.GetInt(OPT_CLR_DIFF);
        m_cachedColors.clrSelDiff = mf->m_options.GetInt(OPT_CLR_SELECTED_DIFF);
        m_cachedColors.clrDiffDeleted = mf->m_options.GetInt(OPT_CLR_DIFF_DELETED);
@@ -85,6 +86,10 @@ CMergeEditView::CMergeEditView()
        m_cachedColors.clrSelMoved = mf->m_options.GetInt(OPT_CLR_SELECTED_MOVEDBLOCK);
        m_cachedColors.clrSelMovedDeleted = mf->m_options.GetInt(OPT_CLR_SELECTED_MOVEDBLOCK_DELETED);
        m_cachedColors.clrSelMovedText = mf->m_options.GetInt(OPT_CLR_SELECTED_MOVEDBLOCK_TEXT);
+       m_cachedColors.clrWordDiff = mf->m_options.GetInt(OPT_CLR_WORDDIFF);
+       m_cachedColors.clrSelWordDiff = mf->m_options.GetInt(OPT_CLR_SELECTED_WORDDIFF);
+       m_cachedColors.clrWordDiffText = mf->m_options.GetInt(OPT_CLR_WORDDIFF_TEXT);
+       m_cachedColors.clrSelWordDiffText = mf->m_options.GetInt(OPT_CLR_SELECTED_WORDDIFF_TEXT);
 }
 
 CMergeEditView::~CMergeEditView()
@@ -170,6 +175,8 @@ BEGIN_MESSAGE_MAP(CMergeEditView, CCrystalEditViewEx)
        ON_WM_VSCROLL ()
        ON_COMMAND(ID_EDIT_COPY_LINENUMBERS, OnEditCopyLineNumbers)
        ON_UPDATE_COMMAND_UI(ID_EDIT_COPY_LINENUMBERS, OnUpdateEditCopyLinenumbers)
+       ON_COMMAND(ID_VIEW_LINEDIFFS, OnViewLineDiffs)
+       ON_UPDATE_COMMAND_UI(ID_VIEW_LINEDIFFS, OnUpdateViewLineDiffs)
        //}}AFX_MSG_MAP
 END_MESSAGE_MAP()
 
@@ -322,6 +329,72 @@ void CMergeEditView::OnActivateView(BOOL bActivate, CView* pActivateView, CView*
        mf->UpdatePrediffersMenu();
 }
 
+int CMergeEditView::GetAdditionalTextBlocks (int nLineIndex, TEXTBLOCK *pBuf)
+{
+       DWORD dwLineFlags = GetLineFlags(nLineIndex);
+       if ((dwLineFlags & LF_DIFF) != LF_DIFF || (dwLineFlags & LF_MOVED) == LF_MOVED)
+               return 0;
+
+       if (!m_bWordDiffHighlight)
+               return 0;
+
+       int nLineLength = GetLineLength(nLineIndex);
+       wdiffarray worddiffs;
+       GetDocument()->GetWordDiffArray(nLineIndex, &worddiffs);
+       if (worddiffs.GetSize() == 0 || (worddiffs[0].end[0] == -1 && worddiffs[0].end[1] + 1 == nLineLength) || (worddiffs[0].end[1] == -1 && worddiffs[0].end[0] + 1 == nLineLength))
+               return 0;
+
+       BOOL lineInCurrentDiff = IsLineInCurrentDiff(nLineIndex);
+       int nWordDiffs = worddiffs.GetSize();
+
+       pBuf[0].m_nCharPos = 0;
+       pBuf[0].m_nColorIndex = COLORINDEX_NONE;
+       pBuf[0].m_nBgColorIndex = COLORINDEX_NONE;
+       for (int i = 0; i < nWordDiffs; i++)
+       {
+               if (m_bIsLeft)
+               {
+                       pBuf[1 + i * 2].m_nCharPos = worddiffs[i].start[0];
+                       pBuf[2 + i * 2].m_nCharPos = worddiffs[i].end[0] + 1;
+               }
+               else
+               {
+                       pBuf[1 + i * 2].m_nCharPos = worddiffs[i].start[1];
+                       pBuf[2 + i * 2].m_nCharPos = worddiffs[i].end[1] + 1;
+               }
+               if (lineInCurrentDiff)
+               {
+                       pBuf[1 + i * 2].m_nColorIndex = COLORINDEX_HIGHLIGHTTEXT1 | COLORINDEX_APPLYFORCE;
+                       pBuf[1 + i * 2].m_nBgColorIndex = COLORINDEX_HIGHLIGHTBKGND1 | COLORINDEX_APPLYFORCE;
+               }
+               else
+               {
+                       pBuf[1 + i * 2].m_nColorIndex = COLORINDEX_HIGHLIGHTTEXT2 | COLORINDEX_APPLYFORCE;
+                       pBuf[1 + i * 2].m_nBgColorIndex = COLORINDEX_HIGHLIGHTBKGND2 | COLORINDEX_APPLYFORCE;
+               }
+               pBuf[2 + i * 2].m_nColorIndex = COLORINDEX_NONE;
+               pBuf[2 + i * 2].m_nBgColorIndex = COLORINDEX_NONE;
+       }
+       return nWordDiffs * 2 + 1;
+}
+
+COLORREF CMergeEditView::GetColor(int nColorIndex)
+{
+       switch (nColorIndex & ~COLORINDEX_APPLYFORCE)
+       {
+       case COLORINDEX_HIGHLIGHTBKGND1:
+               return m_cachedColors.clrSelWordDiff;
+       case COLORINDEX_HIGHLIGHTTEXT1:
+               return m_cachedColors.clrSelWordDiffText;
+       case COLORINDEX_HIGHLIGHTBKGND2:
+               return m_cachedColors.clrWordDiff;
+       case COLORINDEX_HIGHLIGHTTEXT2:
+               return m_cachedColors.clrWordDiffText;
+       default:
+               return CCrystalTextView::GetColor(nColorIndex);
+       }
+}
+
 /**
  * @brief Determine text and background color for line
  * @param [in] nLineIndex Index of line in view (NOT line in file)
@@ -2115,6 +2188,7 @@ void CMergeEditView::RefreshOptions()
        m_bCloseWithEsc = mf->m_options.GetBool(OPT_CLOSE_WITH_ESC);
 
        m_bSyntaxHighlight = mf->m_options.GetBool(OPT_SYNTAX_HIGHLIGHT);
+       m_bWordDiffHighlight = mf->m_options.GetBool(OPT_WORDDIFF_HIGHLIGHT);
        m_cachedColors.clrDiff = mf->m_options.GetInt(OPT_CLR_DIFF);
        m_cachedColors.clrSelDiff = mf->m_options.GetInt(OPT_CLR_SELECTED_DIFF);
        m_cachedColors.clrDiffDeleted = mf->m_options.GetInt(OPT_CLR_DIFF_DELETED);
@@ -2130,6 +2204,10 @@ void CMergeEditView::RefreshOptions()
        m_cachedColors.clrSelMoved = mf->m_options.GetInt(OPT_CLR_SELECTED_MOVEDBLOCK);
        m_cachedColors.clrSelMovedDeleted = mf->m_options.GetInt(OPT_CLR_SELECTED_MOVEDBLOCK_DELETED);
        m_cachedColors.clrSelMovedText = mf->m_options.GetInt(OPT_CLR_SELECTED_MOVEDBLOCK_TEXT);
+       m_cachedColors.clrWordDiff = mf->m_options.GetInt(OPT_CLR_WORDDIFF);
+       m_cachedColors.clrSelWordDiff = mf->m_options.GetInt(OPT_CLR_SELECTED_WORDDIFF);
+       m_cachedColors.clrWordDiffText = mf->m_options.GetInt(OPT_CLR_WORDDIFF_TEXT);
+       m_cachedColors.clrSelWordDiffText = mf->m_options.GetInt(OPT_CLR_SELECTED_WORDDIFF_TEXT);
 }
 
 /**
@@ -2453,3 +2531,22 @@ void CMergeEditView::RepaintLocationPane()
        if (m_pLocationView)
                m_pLocationView->Invalidate();
 }
+
+/**
+ * @brief Enables/disables linediff (different color for diffs)
+ */
+void CMergeEditView::OnViewLineDiffs()
+{
+       mf->m_options.SaveOption(OPT_WORDDIFF_HIGHLIGHT, !m_bWordDiffHighlight);
+
+       // Call CMergeDoc RefreshOptions() to refresh *both* views
+       CMergeDoc *pDoc = GetDocument();
+       pDoc->RefreshOptions();
+       pDoc->FlushAndRescan(TRUE);
+}
+
+void CMergeEditView::OnUpdateViewLineDiffs(CCmdUI* pCmdUI)
+{
+       pCmdUI->Enable(TRUE);
+       pCmdUI->SetCheck(m_bWordDiffHighlight);
+}
index 60a2491..644a3fa 100644 (file)
@@ -49,6 +49,10 @@ struct COLORSETTINGS
        COLORREF        clrSelMoved;            /**< Selected moved block color */
        COLORREF        clrSelMovedDeleted;     /**< Selected moved block deleted color */
        COLORREF        clrSelMovedText;        /**< Selected moved block text color */
+       COLORREF        clrWordDiff;            /**< Word difference color */
+       COLORREF        clrWordDiffText;        /**< Word difference text color */
+       COLORREF        clrSelWordDiff;         /**< Selected word difference color */
+       COLORREF        clrSelWordDiffText;     /**< Selected word difference text color */
 };
 
 /** 
@@ -135,6 +139,7 @@ private:
        BOOL fTimerWaitingForIdle;
        COLORSETTINGS m_cachedColors; /**< Cached color settings */
        BOOL m_bSyntaxHighlight; /**< Cached setting for syntax highlight */
+       BOOL m_bWordDiffHighlight; /**< Cached setting for word diff highlight */
        BOOL m_bCloseWithEsc; /**< Cached setting for closing windows with ESC */
 
        /// active prediffer ID : helper to check the radio button
@@ -165,6 +170,8 @@ public:
        void SetStatusInterface(IMergeEditStatus * piMergeEditStatus);
        void SelectArea(const CPoint & ptStart, const CPoint & ptEnd) { SetSelection(ptStart, ptEnd); } // make public
        virtual void UpdateSiblingScrollPos (BOOL bHorz);
+       virtual int GetAdditionalTextBlocks (int nLineIndex, TEXTBLOCK *pBuf);
+       virtual COLORREF GetColor(int nColorIndex);
        virtual void GetLineColors (int nLineIndex, COLORREF & crBkgnd,
                        COLORREF & crText, BOOL & bDrawWhitespace);
        void WMGoto() { OnWMGoto(); };
@@ -273,6 +280,8 @@ protected:
        afx_msg void OnVScroll (UINT nSBCode, UINT nPos, CScrollBar * pScrollBar);
        afx_msg void OnEditCopyLineNumbers();
        afx_msg void OnUpdateEditCopyLinenumbers(CCmdUI* pCmdUI);
+       afx_msg void OnViewLineDiffs();
+       afx_msg void OnUpdateViewLineDiffs(CCmdUI* pCmdUI);
        //}}AFX_MSG
        DECLARE_MESSAGE_MAP()
 };
index 1fa7989..cf02f8a 100644 (file)
@@ -23,6 +23,7 @@ const TCHAR OPT_SHOW_TOOLBAR[] = _T("Settings/ShowToolbar");
 const TCHAR OPT_SHOW_STATUSBAR[] = _T("Settings/ShowStatusbar");
 
 const TCHAR OPT_SYNTAX_HIGHLIGHT[] = _T("Settings/HiliteSyntax");
+const TCHAR OPT_WORDDIFF_HIGHLIGHT[] = _T("Settings/HiliteWordDiff");
 const TCHAR OPT_DISABLE_SPLASH[] = _T("Settings/DisableSplash");
 const TCHAR OPT_CREATE_BACKUPS[] = _T("Settings/BackupFile");
 const TCHAR OPT_VIEW_WHITESPACE[] =  _T("Settings/ViewWhitespace");
@@ -80,6 +81,14 @@ const TCHAR OPT_CLR_SELECTED_MOVEDBLOCK[] = _T("Settings/SelectedMovedBlockColor
 const TCHAR OPT_CLR_SELECTED_MOVEDBLOCK_DELETED[] = _T("Settings/SelectedMovedBlockDeletedColor");
 // The selected moved block text color
 const TCHAR OPT_CLR_SELECTED_MOVEDBLOCK_TEXT[] = _T("Settings/SelectedMovedBlockTextColor");
+// The word difference color
+const TCHAR OPT_CLR_WORDDIFF[] = _T("Settings/WordDifferenceColor");
+// The selected word difference color
+const TCHAR OPT_CLR_SELECTED_WORDDIFF[] = _T("Settings/SelectedWordDifferenceColor");
+// The word difference text color
+const TCHAR OPT_CLR_WORDDIFF_TEXT[] = _T("Settings/WordDifferenceTextColor");
+// The selected word difference text color
+const TCHAR OPT_CLR_SELECTED_WORDDIFF_TEXT[] = _T("Settings/SelectedWordDifferenceTextColor");
 
 // Compare options
 const TCHAR OPT_CMP_IGNORE_WHITESPACE[] = _T("Settings/IgnoreSpace");
index b6f4551..18abb4b 100644 (file)
@@ -41,6 +41,10 @@ CPropColors::CPropColors(COptionsMgr *optionsMgr) : CPropertyPage(CPropColors::I
        m_clrSelMoved = optionsMgr->GetInt(OPT_CLR_SELECTED_MOVEDBLOCK);
        m_clrSelMovedDeleted = optionsMgr->GetInt(OPT_CLR_SELECTED_MOVEDBLOCK_DELETED);
        m_clrSelMovedText = optionsMgr->GetInt(OPT_CLR_SELECTED_MOVEDBLOCK_TEXT);
+       m_clrWordDiff = optionsMgr->GetInt(OPT_CLR_WORDDIFF);
+       m_clrSelWordDiff = optionsMgr->GetInt(OPT_CLR_SELECTED_WORDDIFF);
+       m_clrWordDiffText = optionsMgr->GetInt(OPT_CLR_WORDDIFF_TEXT);
+       m_clrSelWordDiffText = optionsMgr->GetInt(OPT_CLR_SELECTED_WORDDIFF_TEXT);
 
        // Set colors for buttons, do NOT invalidate
        m_cDiff.SetColor(m_clrDiff, FALSE);
@@ -58,6 +62,10 @@ CPropColors::CPropColors(COptionsMgr *optionsMgr) : CPropertyPage(CPropColors::I
        m_cSelMoved.SetColor(m_clrSelMoved, FALSE);
        m_cSelMovedDeleted.SetColor(m_clrSelMovedDeleted, FALSE);
        m_cSelMovedText.SetColor(m_clrSelMovedText, FALSE);
+       m_cWordDiff.SetColor(m_clrWordDiff, FALSE);
+       m_cSelWordDiff.SetColor(m_clrSelWordDiff, FALSE);
+       m_cWordDiffText.SetColor(m_clrWordDiffText, FALSE);
+       m_cSelWordDiffText.SetColor(m_clrSelWordDiffText, FALSE);
 
        m_pOptionsMgr = optionsMgr;
        //}}AFX_DATA_INIT
@@ -82,6 +90,10 @@ void CPropColors::DoDataExchange(CDataExchange* pDX)
        DDX_Control(pDX, IDC_SEL_MOVEDBLOCK_COLOR, m_cSelMoved);
        DDX_Control(pDX, IDC_SEL_MOVEDBLOCK_DELETED_COLOR, m_cSelMovedDeleted);
        DDX_Control(pDX, IDC_SEL_MOVEDBLOCK_TEXT_COLOR, m_cSelMovedText);
+       DDX_Control(pDX, IDC_SEL_WORDDIFFERENCE_TEXT_COLOR, m_cSelWordDiffText);
+       DDX_Control(pDX, IDC_WORDDIFFERENCE_TEXT_COLOR, m_cWordDiffText);
+       DDX_Control(pDX, IDC_SEL_WORDDIFFERENCE_COLOR, m_cSelWordDiff);
+       DDX_Control(pDX, IDC_WORDDIFFERENCE_COLOR, m_cWordDiff);
        //}}AFX_DATA_MAP
 }
 
@@ -104,6 +116,10 @@ BEGIN_MESSAGE_MAP(CPropColors, CDialog)
        ON_BN_CLICKED(IDC_SEL_MOVEDBLOCK_COLOR, OnSelMovedColor)
        ON_BN_CLICKED(IDC_SEL_MOVEDBLOCK_DELETED_COLOR, OnSelMovedDeletedColor)
        ON_BN_CLICKED(IDC_SEL_MOVEDBLOCK_TEXT_COLOR, OnSelMovedTextColor)
+       ON_BN_CLICKED(IDC_WORDDIFFERENCE_COLOR, OnWordDifferenceColor)
+       ON_BN_CLICKED(IDC_SEL_WORDDIFFERENCE_COLOR, OnSelWordDifferenceColor)
+       ON_BN_CLICKED(IDC_WORDDIFFERENCE_TEXT_COLOR, OnWordDifferenceTextColor)
+       ON_BN_CLICKED(IDC_SEL_WORDDIFFERENCE_TEXT_COLOR, OnSelWordDifferenceTextColor)
        //}}AFX_MSG_MAP
 END_MESSAGE_MAP()
 
@@ -342,6 +358,74 @@ void CPropColors::OnSelMovedTextColor()
 }
 
 /** 
+ * @brief User wants to change word difference color
+ */
+void CPropColors::OnWordDifferenceColor() 
+{
+       CColorDialog dialog(m_clrWordDiff);
+       LoadCustomColors();
+       dialog.m_cc.lpCustColors = m_cCustColors;
+       
+       if (dialog.DoModal() == IDOK)
+       {
+               m_clrWordDiff = dialog.GetColor();
+               m_cWordDiff.SetColor(m_clrWordDiff);
+       }
+       SaveCustomColors();
+}
+
+/** 
+ * @brief User wants to change selected word difference color
+ */
+void CPropColors::OnSelWordDifferenceColor() 
+{
+       CColorDialog dialog(m_clrSelWordDiff);
+       LoadCustomColors();
+       dialog.m_cc.lpCustColors = m_cCustColors;
+       
+       if (dialog.DoModal() == IDOK)
+       {
+               m_clrSelWordDiff = dialog.GetColor();
+               m_cSelWordDiff.SetColor(m_clrSelWordDiff);
+       }
+       SaveCustomColors();
+}
+
+/** 
+ * @brief User wants to change word difference text color
+ */
+void CPropColors::OnWordDifferenceTextColor() 
+{
+       CColorDialog dialog(m_clrWordDiffText);
+       LoadCustomColors();
+       dialog.m_cc.lpCustColors = m_cCustColors;
+
+       if (dialog.DoModal() == IDOK)
+       {
+               m_clrWordDiffText = dialog.GetColor();
+               m_cWordDiffText.SetColor(m_clrWordDiffText);
+       }
+       SaveCustomColors();
+}
+
+/** 
+ * @brief User wants to change selected word difference text color
+ */
+void CPropColors::OnSelWordDifferenceTextColor() 
+{
+       CColorDialog dialog(m_clrSelWordDiffText);
+       LoadCustomColors();
+       dialog.m_cc.lpCustColors = m_cCustColors;
+       
+       if (dialog.DoModal() == IDOK)
+       {
+               m_clrSelWordDiffText = dialog.GetColor();
+               m_cSelWordDiffText.SetColor(m_clrSelWordDiffText);
+       }
+       SaveCustomColors();
+}
+
+/** 
  * @brief Resets colors to defaults
  */
 void CPropColors::OnDefaults()
@@ -361,6 +445,10 @@ void CPropColors::OnDefaults()
        m_pOptionsMgr->GetDefault(OPT_CLR_SELECTED_MOVEDBLOCK, m_clrSelMoved);
        m_pOptionsMgr->GetDefault(OPT_CLR_SELECTED_MOVEDBLOCK_DELETED, m_clrSelMovedDeleted);
        m_pOptionsMgr->GetDefault(OPT_CLR_SELECTED_MOVEDBLOCK_TEXT, m_clrSelMovedText);
+       m_pOptionsMgr->GetDefault(OPT_CLR_WORDDIFF, m_clrWordDiff);
+       m_pOptionsMgr->GetDefault(OPT_CLR_SELECTED_WORDDIFF, m_clrSelWordDiff);
+       m_pOptionsMgr->GetDefault(OPT_CLR_WORDDIFF_TEXT, m_clrWordDiffText);
+       m_pOptionsMgr->GetDefault(OPT_CLR_SELECTED_WORDDIFF_TEXT, m_clrSelWordDiffText);
 
        m_cDiff.SetColor(m_clrDiff);
        m_cSelDiff.SetColor(m_clrSelDiff);
@@ -377,6 +465,10 @@ void CPropColors::OnDefaults()
        m_cSelMoved.SetColor(m_clrSelMoved);
        m_cSelMovedDeleted.SetColor(m_clrSelMovedDeleted);
        m_cSelMovedText.SetColor(m_clrSelMovedText);
+       m_cWordDiff.SetColor(m_clrWordDiff);
+       m_cSelWordDiff.SetColor(m_clrSelWordDiff);
+       m_cWordDiffText.SetColor(m_clrWordDiffText);
+       m_cSelWordDiffText.SetColor(m_clrSelWordDiffText);
 }
 
 /** 
index ee3a708..d595894 100644 (file)
@@ -45,6 +45,10 @@ public:
        CColorButton    m_cSelMoved;
        CColorButton    m_cSelMovedDeleted;
        CColorButton    m_cSelMovedText;
+       CColorButton    m_cSelWordDiffText;
+       CColorButton    m_cWordDiffText;
+       CColorButton    m_cSelWordDiff;
+       CColorButton    m_cWordDiff;
        //}}AFX_DATA
 
 
@@ -63,6 +67,10 @@ public:
        COLORREF        m_clrSelMoved;
        COLORREF        m_clrSelMovedDeleted;
        COLORREF        m_clrSelMovedText;
+       COLORREF        m_clrWordDiff;
+       COLORREF        m_clrWordDiffText;
+       COLORREF        m_clrSelWordDiff;
+       COLORREF        m_clrSelWordDiffText;
 
        // Overrides
        // ClassWizard generated virtual function overrides
@@ -96,6 +104,10 @@ protected:
        afx_msg void OnSelMovedColor();
        afx_msg void OnSelMovedDeletedColor();
        afx_msg void OnSelMovedTextColor();
+       afx_msg void OnWordDifferenceColor();
+       afx_msg void OnSelWordDifferenceColor();
+       afx_msg void OnWordDifferenceTextColor();
+       afx_msg void OnSelWordDifferenceTextColor();
        afx_msg void OnDefaults();
        //}}AFX_MSG
        DECLARE_MESSAGE_MAP()
index be4d645..d25751e 100644 (file)
@@ -519,6 +519,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 16b0473..a1e5331 100644 (file)
@@ -259,6 +259,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index ac73ee4..b6a585c 100644 (file)
@@ -637,6 +637,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 32544dd..880fe08 100644 (file)
@@ -945,7 +945,7 @@ int CCrystalTextView::GetCharWidthFromDisplayableChar(const ViewableWhitespaceCh
  */
 void CCrystalTextView::
 DrawLineHelperImpl (CDC * pdc, CPoint & ptOrigin, const CRect & rcClip,
-                    int nColorIndex, COLORREF crText, COLORREF crBkgnd, LPCTSTR pszChars, int nOffset, int nCount, int &nActualOffset)
+                    int nColorIndex, int nBgColorIndex, COLORREF crText, COLORREF crBkgnd, LPCTSTR pszChars, int nOffset, int nCount, int &nActualOffset)
 {
   ASSERT (nCount >= 0);
   if (nCount > 0)
@@ -1024,11 +1024,14 @@ DrawLineHelperImpl (CDC * pdc, CPoint & ptOrigin, const CRect & rcClip,
 
               if (ptOrigin.x + nSumWidth > rcClip.left)
                 {
-                   if (crText == CLR_NONE)
+                   if (crText == CLR_NONE || nColorIndex & COLORINDEX_APPLYFORCE)
                      pdc->SetTextColor(GetColor(nColorIndex));
                    else
                      pdc->SetTextColor(crText);
-                   pdc->SetBkColor(crBkgnd);
+                   if (crBkgnd == CLR_NONE || nBgColorIndex & COLORINDEX_APPLYFORCE)
+                     pdc->SetBkColor(GetColor(nBgColorIndex));
+                   else
+                     pdc->SetBkColor(crBkgnd);
 
                    pdc->SelectObject(GetFont(GetItalic(nColorIndex),
                        GetBold(nColorIndex)));
@@ -1053,7 +1056,7 @@ DrawLineHelperImpl (CDC * pdc, CPoint & ptOrigin, const CRect & rcClip,
 }
 
 void CCrystalTextView::
-DrawLineHelper (CDC * pdc, CPoint & ptOrigin, const CRect & rcClip, int nColorIndex,
+DrawLineHelper (CDC * pdc, CPoint & ptOrigin, const CRect & rcClip, int nColorIndex, int nBgColorIndex, 
                 COLORREF crText, COLORREF crBkgnd, LPCTSTR pszChars, int nOffset, int nCount, int &nActualOffset, CPoint ptTextPos)
 {
   if (nCount > 0)
@@ -1093,23 +1096,24 @@ DrawLineHelper (CDC * pdc, CPoint & ptOrigin, const CRect & rcClip, int nColorIn
           //  Draw part of the text before selection
           if (nSelBegin > 0)
             {
-              DrawLineHelperImpl (pdc, ptOrigin, rcClip, nColorIndex, crText, crBkgnd, pszChars, nOffset, nSelBegin, nActualOffset);
+              DrawLineHelperImpl (pdc, ptOrigin, rcClip, nColorIndex, nBgColorIndex, crText, crBkgnd, pszChars, nOffset, nSelBegin, nActualOffset);
             }
           if (nSelBegin < nSelEnd)
             {
-              DrawLineHelperImpl (pdc, ptOrigin, rcClip, nColorIndex,
+              DrawLineHelperImpl (pdc, ptOrigin, rcClip,
+                  nColorIndex & ~COLORINDEX_APPLYFORCE, nBgColorIndex & ~COLORINDEX_APPLYFORCE, 
                   GetColor (COLORINDEX_SELTEXT),
                   GetColor (COLORINDEX_SELBKGND),
                   pszChars, nOffset + nSelBegin, nSelEnd - nSelBegin, nActualOffset);
             }
           if (nSelEnd < nCount)
             {
-              DrawLineHelperImpl (pdc, ptOrigin, rcClip, nColorIndex, crText, crBkgnd, pszChars, nOffset + nSelEnd, nCount - nSelEnd, nActualOffset);
+              DrawLineHelperImpl (pdc, ptOrigin, rcClip, nColorIndex, nBgColorIndex, crText, crBkgnd, pszChars, nOffset + nSelEnd, nCount - nSelEnd, nActualOffset);
             }
         }
       else
         {
-          DrawLineHelperImpl (pdc, ptOrigin, rcClip, nColorIndex, crText, crBkgnd, pszChars, nOffset, nCount, nActualOffset);
+          DrawLineHelperImpl (pdc, ptOrigin, rcClip, nColorIndex, nBgColorIndex, crText, crBkgnd, pszChars, nOffset, nCount, nActualOffset);
         }
     }
 }
@@ -1178,6 +1182,12 @@ GetParseCookie (int nLineIndex)
   return m_ParseCookies->GetAt(nLineIndex);
 }
 
+int CCrystalTextView::
+GetAdditionalTextBlocks (int nLineIndex, TEXTBLOCK *pBuf)
+{
+  return 0;
+}
+
 //BEGIN SW
 void CCrystalTextView::WrapLine( int nLineIndex, int nMaxLineWidth, int *anBreaks, int &nBreaks )
 {
@@ -1282,7 +1292,7 @@ void CCrystalTextView::DrawScreenLine( CDC *pdc, CPoint &ptOrigin, const CRect &
 
           int nOffsetToUse = (nOffset > pBuf[I].m_nCharPos) ?
              nOffset : pBuf[I].m_nCharPos;
-          DrawLineHelper(pdc, ptOrigin, rcClip, pBuf[I].m_nColorIndex, crText, crBkgnd, pszChars,
+          DrawLineHelper(pdc, ptOrigin, rcClip, pBuf[I].m_nColorIndex, pBuf[I].m_nBgColorIndex, crText, crBkgnd, pszChars,
               (nOffset > pBuf[I].m_nCharPos)? nOffset : pBuf[I].m_nCharPos, 
               pBuf[I + 1].m_nCharPos - nOffsetToUse,
               nActualOffset, CPoint( nOffsetToUse, ptTextPos.y ));
@@ -1295,7 +1305,7 @@ void CCrystalTextView::DrawScreenLine( CDC *pdc, CPoint &ptOrigin, const CRect &
       ASSERT(pBuf[nActualItem].m_nCharPos >= 0 &&
         pBuf[nActualItem].m_nCharPos <= nLineLength);
 
-      DrawLineHelper(pdc, ptOrigin, rcClip, pBuf[nActualItem].m_nColorIndex,
+      DrawLineHelper(pdc, ptOrigin, rcClip, pBuf[nActualItem].m_nColorIndex, pBuf[nActualItem].m_nBgColorIndex,
               crText, crBkgnd, pszChars, pBuf[nActualItem].m_nCharPos,
               nOffset + nCount - pBuf[nActualItem].m_nCharPos,
               nActualOffset, CPoint(pBuf[nActualItem].m_nCharPos, ptTextPos.y));
@@ -1303,7 +1313,7 @@ void CCrystalTextView::DrawScreenLine( CDC *pdc, CPoint &ptOrigin, const CRect &
   else
     {
       DrawLineHelper(
-              pdc, ptOrigin, rcClip, pBuf[nActualItem].m_nColorIndex, 
+              pdc, ptOrigin, rcClip, pBuf[nActualItem].m_nColorIndex, pBuf[nActualItem].m_nBgColorIndex,
               crText, crBkgnd, pszChars, nOffset, nCount, nActualOffset, ptTextPos);
     }
 
@@ -1342,6 +1352,63 @@ public:
   explicit IntArray(int len) { SetSize(len); }
 };
 
+int CCrystalTextView::
+MergeTextBlocks (TEXTBLOCK *pBuf1, int nBlocks1, TEXTBLOCK *pBuf2, int nBlocks2, TEXTBLOCK *&pMergedBuf)
+{
+  int i, j, k;
+
+  pMergedBuf = new TEXTBLOCK[nBlocks1 + nBlocks2];
+
+  for (i = 0, j = 0, k = 0; ; k++)
+  {
+    if (i >= nBlocks1 && j >= nBlocks2)
+    {
+      break;
+    }
+    else if ((i < nBlocks1 && j < nBlocks2) && (pBuf1[i].m_nCharPos == pBuf2[j].m_nCharPos))
+    {
+      pMergedBuf[k].m_nCharPos = pBuf2[j].m_nCharPos;
+      if (pBuf2[j].m_nColorIndex == COLORINDEX_NONE)
+        pMergedBuf[k].m_nColorIndex = pBuf1[i].m_nColorIndex;
+      else
+        pMergedBuf[k].m_nColorIndex = pBuf2[j].m_nColorIndex;
+      if (pBuf2[j].m_nBgColorIndex == COLORINDEX_NONE)
+        pMergedBuf[k].m_nBgColorIndex = pBuf1[i].m_nBgColorIndex;
+      else
+        pMergedBuf[k].m_nBgColorIndex = pBuf2[j].m_nBgColorIndex;
+      i++;
+      j++;
+    }
+    else if (j >= nBlocks2 || (i < nBlocks1 && pBuf1[i].m_nCharPos < pBuf2[j].m_nCharPos))
+    {
+      pMergedBuf[k].m_nCharPos = pBuf1[i].m_nCharPos;
+      if (nBlocks2 == 0 || pBuf2[j - 1].m_nColorIndex == COLORINDEX_NONE)
+        pMergedBuf[k].m_nColorIndex = pBuf1[i].m_nColorIndex;
+      else
+        pMergedBuf[k].m_nColorIndex = pBuf2[j - 1].m_nColorIndex;
+      if (nBlocks2 == 0 || pBuf2[j - 1].m_nBgColorIndex == COLORINDEX_NONE)
+        pMergedBuf[k].m_nBgColorIndex = pBuf1[i].m_nBgColorIndex;
+      else
+        pMergedBuf[k].m_nBgColorIndex = pBuf2[j - 1].m_nBgColorIndex;
+      i++;
+    }
+    else if (i >= nBlocks1 || (j < nBlocks2 && pBuf1[i].m_nCharPos > pBuf2[j].m_nCharPos))
+    {
+      pMergedBuf[k].m_nCharPos = pBuf2[j].m_nCharPos;
+      if (i > 0 && pBuf2[j].m_nColorIndex == COLORINDEX_NONE)
+        pMergedBuf[k].m_nColorIndex = pBuf1[i - 1].m_nColorIndex;
+      else
+        pMergedBuf[k].m_nColorIndex = pBuf2[j].m_nColorIndex;
+      if (i > 0 && pBuf2[j].m_nBgColorIndex == COLORINDEX_NONE)
+        pMergedBuf[k].m_nBgColorIndex = pBuf1[i - 1].m_nBgColorIndex;
+      else
+        pMergedBuf[k].m_nBgColorIndex = pBuf2[j].m_nBgColorIndex;
+      j++;
+    }
+  }
+  return k;
+}
+
 void CCrystalTextView::
 DrawSingleLine (CDC * pdc, const CRect & rc, int nLineIndex)
 {
@@ -1359,8 +1426,6 @@ DrawSingleLine (CDC * pdc, const CRect & rc, int nLineIndex)
   BOOL bDrawWhitespace = FALSE;
   COLORREF crBkgnd, crText;
   GetLineColors (nLineIndex, crBkgnd, crText, bDrawWhitespace);
-  if (crBkgnd == CLR_NONE)
-    crBkgnd = GetColor (COLORINDEX_BKGND);
 
   int nLength = GetLineLength (nLineIndex);
   LPCTSTR pszChars = GetLineChars (nLineIndex);
@@ -1377,11 +1442,26 @@ DrawSingleLine (CDC * pdc, const CRect & rc, int nLineIndex)
   // insert at least one textblock of normal color at the beginning
   pBuf[0].m_nCharPos = 0;
   pBuf[0].m_nColorIndex = COLORINDEX_NORMALTEXT;
+  pBuf[0].m_nBgColorIndex = COLORINDEX_BKGND;
   nBlocks++;
   //END SW
   m_ParseCookies->SetAt(nLineIndex, ParseLine (dwCookie, nLineIndex, pBuf, nBlocks));
   ASSERT (m_ParseCookies->GetAt(nLineIndex) != - 1);
 
+////////
+  TEXTBLOCK *pAddedBuf = new TEXTBLOCK[(nLength+1) * 3];
+  int nAddedBlocks = GetAdditionalTextBlocks(nLineIndex, pAddedBuf);
+
+  TEXTBLOCK *pMergedBuf;
+  int nMergedBlocks = MergeTextBlocks(pBuf, nBlocks, pAddedBuf, nAddedBlocks, pMergedBuf);
+
+  delete[] pBuf;
+  delete[] pAddedBuf;
+
+  pBuf = pMergedBuf;
+  nBlocks = nMergedBlocks;
+///////
+
   //BEGIN SW
   int nActualItem = 0;
   int nActualOffset = 0;
@@ -1394,7 +1474,8 @@ DrawSingleLine (CDC * pdc, const CRect & rc, int nLineIndex)
 
   //  Draw the line text
   CPoint origin (rc.left - m_nOffsetChar * nCharWidth, rc.top);
-  pdc->SetBkColor (crBkgnd);
+  if (crBkgnd != CLR_NONE)
+    pdc->SetBkColor (crBkgnd);
   if (crText != CLR_NONE)
     pdc->SetTextColor (crText);
 // BOOL bColorSet = FALSE;
@@ -1497,7 +1578,7 @@ DrawSingleLine (CDC * pdc, const CRect & rc, int nLineIndex)
 COLORREF CCrystalTextView::
 GetColor (int nColorIndex)
 {
-  switch (nColorIndex)
+  switch (nColorIndex & ~COLORINDEX_APPLYFORCE)
     {
     case COLORINDEX_WHITESPACE :
     case COLORINDEX_BKGND:
@@ -1531,6 +1612,14 @@ GetColor (int nColorIndex)
       return RGB (0, 0, 0);
     case COLORINDEX_SELTEXT:
       return RGB (255, 255, 255);
+    case COLORINDEX_HIGHLIGHTBKGND1:
+      return RGB (255, 160, 160);
+    case COLORINDEX_HIGHLIGHTTEXT1:
+      return RGB (0, 0, 0);
+    case COLORINDEX_HIGHLIGHTBKGND2:
+      return RGB (255, 255, 0);
+    case COLORINDEX_HIGHLIGHTTEXT2:
+      return RGB (0, 0, 0);
     }
   //  return RGB(255, 0, 0);
   return RGB (128, 0, 0);
index 936bcb9..a1cf3d0 100644 (file)
@@ -167,7 +167,7 @@ protected:
     int ApproxActualOffset (int nLineIndex, int nOffset);
     void AdjustTextPoint (CPoint & point);
     void DrawLineHelperImpl (CDC * pdc, CPoint & ptOrigin, const CRect & rcClip,
-                             int nColorIndex, COLORREF crText, COLORREF crBkgnd, LPCTSTR pszChars, int nOffset, int nCount, int &nActualOffset);
+                             int nColorIndex, int nBgColorIndex, COLORREF crText, COLORREF crBkgnd, LPCTSTR pszChars, int nOffset, int nCount, int &nActualOffset);
     BOOL IsInsideSelBlock (CPoint ptTextPos);
 
     BOOL m_bBookmarkExist;        // More bookmarks
@@ -431,7 +431,7 @@ protected:
     virtual BOOL GetItalic (int nColorIndex);
     virtual BOOL GetBold (int nColorIndex);
 
-    void DrawLineHelper (CDC * pdc, CPoint & ptOrigin, const CRect & rcClip, int nColorIndex,
+    void DrawLineHelper (CDC * pdc, CPoint & ptOrigin, const CRect & rcClip, int nColorIndex, int nBgColorIndex,
                          COLORREF crText, COLORREF crBkgnd, LPCTSTR pszChars, int nOffset, int nCount, int &nActualOffset, CPoint ptTextPos);
     virtual void DrawSingleLine (CDC * pdc, const CRect & rect, int nLineIndex);
     virtual void DrawMargin (CDC * pdc, const CRect & rect, int nLineIndex);
@@ -524,6 +524,7 @@ protected:
       {
         int m_nCharPos;
         int m_nColorIndex;
+               int m_nBgColorIndex;
       };
 
     virtual HINSTANCE GetResourceHandle ();
@@ -538,6 +539,8 @@ protected:
                int nOffset, int nCount, int &nActualOffset, CPoint ptTextPos );
        //END SW
 
+       int MergeTextBlocks(TEXTBLOCK *pBuf1, int nBlocks1, TEXTBLOCK *pBuf2, int nBlocks2, TEXTBLOCK *&pBufMerged);
+       virtual int GetAdditionalTextBlocks (int nLineIndex, TEXTBLOCK *pBuf);
 
        //BEGIN SW
        // helpers for incremental search
@@ -740,6 +743,7 @@ public :
 
     enum
     {
+      COLORINDEX_NONE,
       //  Base colors
       COLORINDEX_WHITESPACE,
       COLORINDEX_BKGND,
@@ -763,7 +767,14 @@ public :
       COLORINDEX_EXECUTIONBKGND,
       COLORINDEX_EXECUTIONTEXT,
       COLORINDEX_BREAKPOINTBKGND,
-      COLORINDEX_BREAKPOINTTEXT
+      COLORINDEX_BREAKPOINTTEXT,
+      //
+      COLORINDEX_HIGHLIGHTBKGND1,
+      COLORINDEX_HIGHLIGHTTEXT1,
+      COLORINDEX_HIGHLIGHTBKGND2,
+      COLORINDEX_HIGHLIGHTTEXT2,
+      //
+      COLORINDEX_APPLYFORCE = 0x80000000
       //  ...
       //  Expandable: custom elements are allowed.
     };
index 7ab3303..b2dc663 100644 (file)
@@ -244,6 +244,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 411ff61..9642c70 100644 (file)
@@ -168,6 +168,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 5e0b765..96227af 100644 (file)
@@ -171,6 +171,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index fd985b6..8ec544a 100644 (file)
@@ -285,6 +285,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index df82ab9..e91326b 100644 (file)
@@ -430,6 +430,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 8e5fae6..e12911c 100644 (file)
@@ -57,6 +57,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index de706d1..197d84f 100644 (file)
@@ -477,6 +477,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 35d5f4e..1610889 100644 (file)
@@ -130,6 +130,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index b072f2a..c5f51a4 100644 (file)
@@ -306,6 +306,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 00e9046..e83588b 100644 (file)
@@ -131,6 +131,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 3db474c..a412e8c 100644 (file)
@@ -302,6 +302,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index a42cae5..3a949d2 100644 (file)
@@ -519,6 +519,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index af7d673..99b119c 100644 (file)
@@ -220,6 +220,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 624940f..6494762 100644 (file)
@@ -158,6 +158,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 3d4f274..3548d4d 100644 (file)
@@ -222,6 +222,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 8a8b382..f21ffff 100644 (file)
@@ -262,6 +262,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 55e16eb..70d8cb4 100644 (file)
@@ -127,6 +127,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 91d376b..68d5cc2 100644 (file)
@@ -384,6 +384,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 30d7675..18bc360 100644 (file)
@@ -118,6 +118,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 663dd2e..308c944 100644 (file)
@@ -94,6 +94,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index c002c05..e72521b 100644 (file)
@@ -915,6 +915,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 951ef20..783d491 100644 (file)
@@ -231,6 +231,7 @@ if (pBuf != NULL)\
     if (nActualItems == 0 || pBuf[nActualItems - 1].m_nCharPos <= (pos)){\
         pBuf[nActualItems].m_nCharPos = (pos);\
         pBuf[nActualItems].m_nColorIndex = (colorindex);\
+        pBuf[nActualItems].m_nBgColorIndex = COLORINDEX_BKGND;\
         nActualItems ++;}\
   }
 
index 16f70da..158e3b6 100644 (file)
@@ -6,6 +6,16 @@
   Src: DiffContext.cpp DiffContext.h DirDoc.cpp DirView.h DirViewColHandler.cpp
  PATCH: [ 1156188 ] Updated readme-innosetup
   Docs/Developers: readme-developers-InnoSetup.html
+ PATCH: [ 1147039 ] experimental patch for colored word diff
+  Submitted by Takashi Sawanaka
+  Src: MainFrm.cpp Merge.rc MergeDiffDetailView.cpp MergeDiffDetailView.h MergeDoc.h
+   MergeDocLineDiffs.cpp MergeEditView.cpp MergeEditView.h OptionsDef.h
+   PropColors.cpp PropColors.h resource.h
+  Src/editlib: asp.cpp basic.cpp batch.cpp ccrystaltextview.cpp ccrystaltextview.h
+   cplusplus.cpp csharp.cpp dcl.cpp fortran.cpp html.cpp ini.cpp is.cpp java.cpp
+   lisp.cpp pascal.cpp perl.cpp php.cpp python.cpp rexx.cpp rsrc.cpp sgml.cpp sh.cpp
+   siod.cpp sql.cpp tcl.cpp tex.cpp xml.cpp
+  Src/Languages: *.rc resource.h
 
 2005-03-04 Perry
  PATCH: [ 1156253 ] Fix filter helper handling of new filters
index 3dd2d56..c0eb7f6 100644 (file)
 #define IDC_SAVEPROJECT                 1151
 #define IDC_FILTERFILE_NEWBTN           1152
 #define IDC_FILTERFILE_DELETEBTN        1153
+#define IDC_WORDDIFFERENCE_COLOR        1154
+#define IDC_SEL_WORDDIFFERENCE_COLOR    1155
+#define IDC_WORDDIFFERENCE_TEXT_COLOR   1156
+#define IDC_SEL_WORDDIFFERENCE_TEXT_COLOR 1157
 
 
 #define IDC_EDIT_WHOLE_WORD             8603
 #define ID_VIEW_LOCATION_BAR            32820
 #define ID_VIEW_DIR_STATEPANE           32821
 #define ID_VIEW_LANGUAGE                32822
+#define ID_VIEW_LINEDIFFS               32823
 
 #define ID_PREVDIFF                     32832
 #define ID_NEXTDIFF                     32833