equal
deleted
inserted
replaced
87 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
87 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
88 OTHER DEALINGS IN THE SOFTWARE. |
88 OTHER DEALINGS IN THE SOFTWARE. |
89 " |
89 " |
90 ! ! |
90 ! ! |
91 |
91 |
|
92 |
92 !CodeView2 class methodsFor:'initialization'! |
93 !CodeView2 class methodsFor:'initialization'! |
93 |
94 |
94 initialize |
95 initialize |
95 "Invoked at system start or when the class is dynamically loaded." |
96 "Invoked at system start or when the class is dynamically loaded." |
96 |
97 |
99 TraceSelectors := IdentitySet new. |
100 TraceSelectors := IdentitySet new. |
100 |
101 |
101 "Modified: / 14-02-2010 / 15:36:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
102 "Modified: / 14-02-2010 / 15:36:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
102 ! ! |
103 ! ! |
103 |
104 |
|
105 |
104 !CodeView2 class methodsFor:'debugging'! |
106 !CodeView2 class methodsFor:'debugging'! |
105 |
107 |
106 trace: aSelector |
108 trace: aSelector |
107 |
109 |
108 TraceSelectors add: aSelector |
110 TraceSelectors add: aSelector |
121 |
123 |
122 TraceSelectors := IdentitySet new |
124 TraceSelectors := IdentitySet new |
123 |
125 |
124 "Created: / 14-02-2010 / 09:53:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
126 "Created: / 14-02-2010 / 09:53:32 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
125 ! ! |
127 ! ! |
|
128 |
126 |
129 |
127 !CodeView2 class methodsFor:'examples'! |
130 !CodeView2 class methodsFor:'examples'! |
128 |
131 |
129 example1 |
132 example1 |
130 |
133 |
143 |
146 |
144 window open. |
147 window open. |
145 |
148 |
146 "Created: / 02-09-2009 / 21:48:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
149 "Created: / 02-09-2009 / 21:48:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
147 ! ! |
150 ! ! |
|
151 |
148 |
152 |
149 !CodeView2 class methodsFor:'menu specs'! |
153 !CodeView2 class methodsFor:'menu specs'! |
150 |
154 |
151 debugMenu |
155 debugMenu |
152 "This resource specification was automatically generated |
156 "This resource specification was automatically generated |
479 ) |
483 ) |
480 |
484 |
481 "Modified: / 02-03-2012 / 19:53:19 / cg" |
485 "Modified: / 02-03-2012 / 19:53:19 / cg" |
482 ! ! |
486 ! ! |
483 |
487 |
|
488 |
484 !CodeView2 methodsFor:'* As yet uncategorized *'! |
489 !CodeView2 methodsFor:'* As yet uncategorized *'! |
485 |
490 |
486 defaultFileNameForSave |
491 defaultFileNameForSave |
487 self halt:'please define defaultFileNameForSave here'. |
492 self halt:'please define defaultFileNameForSave here'. |
488 |
493 |
489 "Created: / 11-05-2012 / 15:38:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
494 "Created: / 11-05-2012 / 15:38:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
490 ! ! |
495 ! ! |
|
496 |
491 |
497 |
492 !CodeView2 methodsFor:'accessing'! |
498 !CodeView2 methodsFor:'accessing'! |
493 |
499 |
494 acceptAction:aBlock |
500 acceptAction:aBlock |
495 |
501 |
743 "Created: / 06-04-2010 / 14:13:14 / Jakub <zelenja7@fel.cvut.cz>" |
749 "Created: / 06-04-2010 / 14:13:14 / Jakub <zelenja7@fel.cvut.cz>" |
744 "Modified: / 23-06-2010 / 17:01:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
750 "Modified: / 23-06-2010 / 17:01:47 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
745 "Created: / 19-03-2012 / 14:25:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
751 "Created: / 19-03-2012 / 14:25:51 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
746 ! ! |
752 ! ! |
747 |
753 |
|
754 |
748 !CodeView2 methodsFor:'accessing - code component'! |
755 !CodeView2 methodsFor:'accessing - code component'! |
749 |
756 |
750 klass |
757 klass |
751 |
758 |
752 | v | |
759 | v | |
756 |
763 |
757 ^nil |
764 ^nil |
758 |
765 |
759 "Created: / 27-07-2011 / 13:14:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
766 "Created: / 27-07-2011 / 13:14:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
760 ! ! |
767 ! ! |
|
768 |
761 |
769 |
762 !CodeView2 methodsFor:'accessing-code component'! |
770 !CodeView2 methodsFor:'accessing-code component'! |
763 |
771 |
764 klass: aClass |
772 klass: aClass |
765 |
773 |
799 |
807 |
800 ^self methodHolder value: aMethod |
808 ^self methodHolder value: aMethod |
801 |
809 |
802 "Created: / 27-07-2011 / 13:12:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
810 "Created: / 27-07-2011 / 13:12:42 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
803 ! ! |
811 ! ! |
|
812 |
804 |
813 |
805 !CodeView2 methodsFor:'aspects'! |
814 !CodeView2 methodsFor:'aspects'! |
806 |
815 |
807 browserHolder |
816 browserHolder |
808 browserHolder isNil ifTrue:[ |
817 browserHolder isNil ifTrue:[ |
995 self changed: #modeHolder with: modeHolder |
1004 self changed: #modeHolder with: modeHolder |
996 |
1005 |
997 "Modified: / 17-06-2011 / 12:55:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1006 "Modified: / 17-06-2011 / 12:55:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
998 ! ! |
1007 ! ! |
999 |
1008 |
|
1009 |
1000 !CodeView2 methodsFor:'change & update'! |
1010 !CodeView2 methodsFor:'change & update'! |
1001 |
1011 |
1002 update:aspect with:param from:sender |
1012 update:aspect with:param from:sender |
1003 |
1013 |
1004 sender == modeHolder ifTrue:[ |
1014 sender == modeHolder ifTrue:[ |
1034 ] |
1044 ] |
1035 |
1045 |
1036 "Created: / 23-06-2010 / 19:05:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1046 "Created: / 23-06-2010 / 19:05:39 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1037 ! ! |
1047 ! ! |
1038 |
1048 |
|
1049 |
1039 !CodeView2 methodsFor:'channels'! |
1050 !CodeView2 methodsFor:'channels'! |
1040 |
1051 |
1041 modifiedChannel |
1052 modifiedChannel |
1042 "return the valueHolder holding true if text was modified" |
1053 "return the valueHolder holding true if text was modified" |
1043 |
1054 |
1117 showGutterChannel := aValueHolder. |
1128 showGutterChannel := aValueHolder. |
1118 self setupChannel:aValueHolder for:nil withOld:prev |
1129 self setupChannel:aValueHolder for:nil withOld:prev |
1119 |
1130 |
1120 "Created: / 23-06-2010 / 19:03:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1131 "Created: / 23-06-2010 / 19:03:26 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1121 ! ! |
1132 ! ! |
|
1133 |
1122 |
1134 |
1123 !CodeView2 methodsFor:'code services'! |
1135 !CodeView2 methodsFor:'code services'! |
1124 |
1136 |
1125 browseMethod: method |
1137 browseMethod: method |
1126 |
1138 |
1216 "Created: / 26-12-2007 / 11:37:22 / janfrog" |
1228 "Created: / 26-12-2007 / 11:37:22 / janfrog" |
1217 "Modified: / 30-06-2011 / 19:32:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1229 "Modified: / 30-06-2011 / 19:32:52 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1218 "Modified: / 18-11-2011 / 14:58:19 / cg" |
1230 "Modified: / 18-11-2011 / 14:58:19 / cg" |
1219 ! ! |
1231 ! ! |
1220 |
1232 |
|
1233 |
1221 !CodeView2 methodsFor:'delegation'! |
1234 !CodeView2 methodsFor:'delegation'! |
1222 |
1235 |
1223 doesNotUnderstand: aMessage |
1236 doesNotUnderstand: aMessage |
1224 |
1237 |
1225 ((textView respondsTo: aMessage selector) |
1238 ((textView respondsTo: aMessage selector) |
1235 |
1248 |
1236 ^textView hasSelection |
1249 ^textView hasSelection |
1237 |
1250 |
1238 "Created: / 14-02-2010 / 09:53:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1251 "Created: / 14-02-2010 / 09:53:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1239 ! ! |
1252 ! ! |
|
1253 |
1240 |
1254 |
1241 !CodeView2 methodsFor:'delegation - events'! |
1255 !CodeView2 methodsFor:'delegation - events'! |
1242 |
1256 |
1243 buttonMotion: button x:x y:y in: view |
1257 buttonMotion: button x:x y:y in: view |
1244 "Delegates events to services. Answers true iff at least |
1258 "Delegates events to services. Answers true iff at least |
1328 |
1342 |
1329 "Created: / 06-04-2010 / 14:02:39 / Jakub <zelenja7@fel.cvut.cz>" |
1343 "Created: / 06-04-2010 / 14:02:39 / Jakub <zelenja7@fel.cvut.cz>" |
1330 "Created: / 19-03-2012 / 17:05:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1344 "Created: / 19-03-2012 / 17:05:09 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1331 ! ! |
1345 ! ! |
1332 |
1346 |
|
1347 |
1333 !CodeView2 methodsFor:'delegation-drawing'! |
1348 !CodeView2 methodsFor:'delegation-drawing'! |
1334 |
1349 |
1335 drawLine:lineNo in: view atX:x y:y width: w height:h from:startCol to:endColOrNil with:fg and:bg |
1350 drawLine:lineNo in: view atX:x y:y width: w height:h from:startCol to:endColOrNil with:fg and:bg |
1336 "See the comment in |
1351 "See the comment in |
1337 CodeViewService>>drawLine:in:atX..." |
1352 CodeViewService>>drawLine:in:atX..." |
1362 |
1377 |
1363 redrawVisibleLine:visLine from:startCol to:endCol |
1378 redrawVisibleLine:visLine from:startCol to:endCol |
1364 |
1379 |
1365 "Modified: / 07-03-2010 / 14:46:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1380 "Modified: / 07-03-2010 / 14:46:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1366 ! ! |
1381 ! ! |
|
1382 |
1367 |
1383 |
1368 !CodeView2 methodsFor:'delegation-events'! |
1384 !CodeView2 methodsFor:'delegation-events'! |
1369 |
1385 |
1370 linesDeletedFrom: start to: end |
1386 linesDeletedFrom: start to: end |
1371 |
1387 |
1405 ! |
1421 ! |
1406 |
1422 |
1407 |
1423 |
1408 |
1424 |
1409 ! |
1425 ! |
|
1426 |
1410 |
1427 |
1411 !CodeView2 methodsFor:'diff mode'! |
1428 !CodeView2 methodsFor:'diff mode'! |
1412 |
1429 |
1413 recomputeDiff:view |
1430 recomputeDiff:view |
1414 |t1 t2 pom diffHelper view2| |
1431 |t1 t2 pom diffHelper view2| |
1438 |
1455 |
1439 "Modified: / 22-06-2010 / 23:35:41 / Jakub <zelenja7@fel.cvut.cz>" |
1456 "Modified: / 22-06-2010 / 23:35:41 / Jakub <zelenja7@fel.cvut.cz>" |
1440 "Modified: / 23-06-2010 / 17:25:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1457 "Modified: / 23-06-2010 / 17:25:59 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1441 ! ! |
1458 ! ! |
1442 |
1459 |
|
1460 |
1443 !CodeView2 methodsFor:'initialization'! |
1461 !CodeView2 methodsFor:'initialization'! |
1444 |
1462 |
1445 initialize |
1463 initialize |
1446 "Invoked when a new instance is created." |
1464 "Invoked when a new instance is created." |
1447 "Call super initialize" |
1465 "Call super initialize" |
1524 |
1542 |
1525 "Created: / 02-09-2009 / 21:36:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1543 "Created: / 02-09-2009 / 21:36:02 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1526 "Modified: / 23-06-2010 / 19:38:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1544 "Modified: / 23-06-2010 / 19:38:20 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1527 ! ! |
1545 ! ! |
1528 |
1546 |
|
1547 |
1529 !CodeView2 methodsFor:'menu actions'! |
1548 !CodeView2 methodsFor:'menu actions'! |
1530 |
1549 |
1531 accept |
1550 accept |
1532 textView accept |
1551 textView accept |
1533 |
1552 |
1629 |
1648 |
1630 textView undo |
1649 textView undo |
1631 |
1650 |
1632 "Created: / 16-02-2010 / 19:35:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1651 "Created: / 16-02-2010 / 19:35:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1633 ! ! |
1652 ! ! |
|
1653 |
1634 |
1654 |
1635 !CodeView2 methodsFor:'menus-dynamic'! |
1655 !CodeView2 methodsFor:'menus-dynamic'! |
1636 |
1656 |
1637 editMenu |
1657 editMenu |
1638 | editMenu superEditMenu moreMenu moreMenuItem | |
1658 | editMenu superEditMenu moreMenu moreMenuItem | |
1825 ^ menu |
1845 ^ menu |
1826 |
1846 |
1827 "Created: / 07-03-2010 / 14:03:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1847 "Created: / 07-03-2010 / 14:03:00 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1828 "Modified: / 06-10-2011 / 14:14:30 / cg" |
1848 "Modified: / 06-10-2011 / 14:14:30 / cg" |
1829 ! ! |
1849 ! ! |
|
1850 |
1830 |
1851 |
1831 !CodeView2 methodsFor:'private'! |
1852 !CodeView2 methodsFor:'private'! |
1832 |
1853 |
1833 codeCompletion |
1854 codeCompletion |
1834 |cls |
1855 |cls |
1949 [app showInfo: message]]. |
1970 [app showInfo: message]]. |
1950 |
1971 |
1951 "Modified: / 13-02-2010 / 23:25:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1972 "Modified: / 13-02-2010 / 23:25:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
1952 ! ! |
1973 ! ! |
1953 |
1974 |
|
1975 |
1954 !CodeView2 methodsFor:'private-accessing'! |
1976 !CodeView2 methodsFor:'private-accessing'! |
1955 |
1977 |
1956 gutterView |
1978 gutterView |
1957 |
1979 |
1958 ^gutterView |
1980 ^gutterView |
1997 ^textViewScroller |
2019 ^textViewScroller |
1998 |
2020 |
1999 "Created: / 14-02-2010 / 15:21:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2021 "Created: / 14-02-2010 / 15:21:18 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2000 ! ! |
2022 ! ! |
2001 |
2023 |
|
2024 |
2002 !CodeView2 methodsFor:'realization'! |
2025 !CodeView2 methodsFor:'realization'! |
2003 |
2026 |
2004 postRealize |
2027 postRealize |
2005 |
2028 |
2006 services do:[:service| |
2029 services do:[:service| |
2008 ] |
2031 ] |
2009 |
2032 |
2010 "Created: / 23-01-2012 / 10:35:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2033 "Created: / 23-01-2012 / 10:35:06 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2011 ! ! |
2034 ! ! |
2012 |
2035 |
|
2036 |
2013 !CodeView2 methodsFor:'services'! |
2037 !CodeView2 methodsFor:'services'! |
2014 |
2038 |
2015 registerService: aCodeViewService |
2039 registerService: aCodeViewService |
2016 |
2040 |
2017 services add: aCodeViewService. |
2041 services add: aCodeViewService. |
2027 |
2051 |
2028 "Created: / 06-03-2010 / 19:21:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2052 "Created: / 06-03-2010 / 19:21:10 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2029 "Created: / 19-07-2012 / 16:34:18 / cg" |
2053 "Created: / 19-07-2012 / 16:34:18 / cg" |
2030 ! ! |
2054 ! ! |
2031 |
2055 |
|
2056 |
2032 !CodeView2 methodsFor:'testing'! |
2057 !CodeView2 methodsFor:'testing'! |
2033 |
2058 |
2034 isCodeView2 |
2059 isCodeView2 |
2035 |
2060 |
2036 ^true |
2061 ^true |
2042 |
2067 |
2043 ^true |
2068 ^true |
2044 |
2069 |
2045 "Created: / 14-02-2010 / 22:13:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2070 "Created: / 14-02-2010 / 22:13:37 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2046 ! ! |
2071 ! ! |
|
2072 |
2047 |
2073 |
2048 !CodeView2::GutterView methodsFor:'accessing'! |
2074 !CodeView2::GutterView methodsFor:'accessing'! |
2049 |
2075 |
2050 setTextView: aTextView |
2076 setTextView: aTextView |
2051 |
2077 |
2066 setTextViewScroller:aScr |
2092 setTextViewScroller:aScr |
2067 textViewScroller := aScr. |
2093 textViewScroller := aScr. |
2068 |
2094 |
2069 "Created: / 07-12-2009 / 22:36:31 / Jindra <a>" |
2095 "Created: / 07-12-2009 / 22:36:31 / Jindra <a>" |
2070 ! ! |
2096 ! ! |
|
2097 |
2071 |
2098 |
2072 !CodeView2::GutterView methodsFor:'accessing-dimensions'! |
2099 !CodeView2::GutterView methodsFor:'accessing-dimensions'! |
2073 |
2100 |
2074 acceptButtonBottom |
2101 acceptButtonBottom |
2075 |
2102 |
2133 |
2160 |
2134 usedWidthForAcceptCancel |
2161 usedWidthForAcceptCancel |
2135 ^ (codeView showAcceptCancelBar ifTrue:[widthAcceptCancel ? 0] ifFalse:[0]) |
2162 ^ (codeView showAcceptCancelBar ifTrue:[widthAcceptCancel ? 0] ifFalse:[0]) |
2136 ! ! |
2163 ! ! |
2137 |
2164 |
|
2165 |
2138 !CodeView2::GutterView methodsFor:'actions'! |
2166 !CodeView2::GutterView methodsFor:'actions'! |
2139 |
2167 |
2140 accept |
2168 accept |
2141 |
2169 |
2142 textView accept |
2170 textView accept |
2153 |
2181 |
2154 diff |
2182 diff |
2155 |
2183 |
2156 "Created: / 07-10-2011 / 20:23:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2184 "Created: / 07-10-2011 / 20:23:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2157 ! ! |
2185 ! ! |
|
2186 |
2158 |
2187 |
2159 !CodeView2::GutterView methodsFor:'aspects'! |
2188 !CodeView2::GutterView methodsFor:'aspects'! |
2160 |
2189 |
2161 currentBlockNodeHolder |
2190 currentBlockNodeHolder |
2162 "return/create the 'currentBlockNodeHolder' value holder (automatically generated)" |
2191 "return/create the 'currentBlockNodeHolder' value holder (automatically generated)" |
2184 newValue := currentBlockNodeHolder value. |
2213 newValue := currentBlockNodeHolder value. |
2185 oldValue ~~ newValue ifTrue:[ |
2214 oldValue ~~ newValue ifTrue:[ |
2186 self update:#value with:newValue from:currentBlockNodeHolder. |
2215 self update:#value with:newValue from:currentBlockNodeHolder. |
2187 ]. |
2216 ]. |
2188 ! ! |
2217 ! ! |
|
2218 |
2189 |
2219 |
2190 !CodeView2::GutterView methodsFor:'change & update'! |
2220 !CodeView2::GutterView methodsFor:'change & update'! |
2191 |
2221 |
2192 update:something with:aParameter from:changedObject |
2222 update:something with:aParameter from:changedObject |
2193 self shown ifFalse:[^self]. |
2223 self shown ifFalse:[^self]. |
2219 super update:something with:aParameter from:changedObject |
2249 super update:something with:aParameter from:changedObject |
2220 |
2250 |
2221 "Modified (format): / 15-07-2011 / 20:14:04 / cg" |
2251 "Modified (format): / 15-07-2011 / 20:14:04 / cg" |
2222 "Modified: / 05-04-2012 / 17:47:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2252 "Modified: / 05-04-2012 / 17:47:24 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2223 ! ! |
2253 ! ! |
|
2254 |
2224 |
2255 |
2225 !CodeView2::GutterView methodsFor:'event handling'! |
2256 !CodeView2::GutterView methodsFor:'event handling'! |
2226 |
2257 |
2227 buttonPress: btn x: x y: y |
2258 buttonPress: btn x: x y: y |
2228 |extraSafeArea| |
2259 |extraSafeArea| |
2260 |
2291 |
2261 "Created: / 17-06-2011 / 13:02:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2292 "Created: / 17-06-2011 / 13:02:54 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2262 "Modified (comment): / 18-05-2012 / 10:56:54 / cg" |
2293 "Modified (comment): / 18-05-2012 / 10:56:54 / cg" |
2263 ! ! |
2294 ! ! |
2264 |
2295 |
|
2296 |
2265 !CodeView2::GutterView methodsFor:'help'! |
2297 !CodeView2::GutterView methodsFor:'help'! |
2266 |
2298 |
2267 flyByHelpText |
2299 flyByHelpText |
2268 ^ 'Click to toggle breakpoint. Shift-Click to toggle tracepoint.' |
2300 ^ 'Click to toggle breakpoint. Shift-Click to toggle tracepoint.' |
2269 |
2301 |
2270 "Created: / 27-01-2012 / 14:04:52 / cg" |
2302 "Created: / 27-01-2012 / 14:04:52 / cg" |
2271 ! ! |
2303 ! ! |
|
2304 |
2272 |
2305 |
2273 !CodeView2::GutterView methodsFor:'initialization'! |
2306 !CodeView2::GutterView methodsFor:'initialization'! |
2274 |
2307 |
2275 initialize |
2308 initialize |
2276 |
2309 |
2305 "Created: / 14-02-2010 / 15:19:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2338 "Created: / 14-02-2010 / 15:19:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2306 "Modified: / 17-08-2011 / 15:15:55 / cg" |
2339 "Modified: / 17-08-2011 / 15:15:55 / cg" |
2307 "Modified: / 05-04-2012 / 17:46:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2340 "Modified: / 05-04-2012 / 17:46:21 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2308 ! ! |
2341 ! ! |
2309 |
2342 |
|
2343 |
2310 !CodeView2::GutterView methodsFor:'queries'! |
2344 !CodeView2::GutterView methodsFor:'queries'! |
2311 |
2345 |
2312 displayedString: line |
2346 displayedString: line |
2313 "get text to display in gutter for specified list line number" |
2347 "get text to display in gutter for specified list line number" |
2314 |
2348 |
2344 yOfTextViewLine:line |
2378 yOfTextViewLine:line |
2345 ^(textView yOfLine:line) + 1 |
2379 ^(textView yOfLine:line) + 1 |
2346 |
2380 |
2347 "Created: / 14-12-2009 / 13:35:07 / Jindra <a>" |
2381 "Created: / 14-12-2009 / 13:35:07 / Jindra <a>" |
2348 ! ! |
2382 ! ! |
|
2383 |
2349 |
2384 |
2350 !CodeView2::GutterView methodsFor:'redrawing'! |
2385 !CodeView2::GutterView methodsFor:'redrawing'! |
2351 |
2386 |
2352 redrawAcceptCancelBarX: x y: y width:w height:h |
2387 redrawAcceptCancelBarX: x y: y width:w height:h |
2353 |
2388 |
2504 "Created: / 03-09-2009 / 08:22:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2539 "Created: / 03-09-2009 / 08:22:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2505 "Modified: / 14-12-2009 / 14:13:14 / Jindra <a>" |
2540 "Modified: / 14-12-2009 / 14:13:14 / Jindra <a>" |
2506 "Modified: / 10-10-2011 / 16:35:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2541 "Modified: / 10-10-2011 / 16:35:50 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2507 ! ! |
2542 ! ! |
2508 |
2543 |
|
2544 |
2509 !CodeView2::TextView methodsFor:'accessing'! |
2545 !CodeView2::TextView methodsFor:'accessing'! |
2510 |
2546 |
2511 changedDiffText |
2547 changedDiffText |
2512 ^ changedDiffText |
2548 ^ changedDiffText |
2513 ! |
2549 ! |
2617 ^self reallyModifiedChannel value |
2653 ^self reallyModifiedChannel value |
2618 |
2654 |
2619 "Created: / 07-10-2011 / 19:28:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2655 "Created: / 07-10-2011 / 19:28:11 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2620 ! ! |
2656 ! ! |
2621 |
2657 |
|
2658 |
2622 !CodeView2::TextView methodsFor:'accessing-colors'! |
2659 !CodeView2::TextView methodsFor:'accessing-colors'! |
2623 |
2660 |
2624 colorChanged |
2661 colorChanged |
2625 ^ Color redByte:240 greenByte: 192 blueByte: 192 |
2662 ^ Color redByte:240 greenByte: 192 blueByte: 192 |
2626 |
2663 |
2639 colorInserted |
2676 colorInserted |
2640 ^ Color redByte: 239 greenByte: 225 blueByte: 152 |
2677 ^ Color redByte: 239 greenByte: 225 blueByte: 152 |
2641 |
2678 |
2642 "Modified: / 24-06-2010 / 14:13:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2679 "Modified: / 24-06-2010 / 14:13:14 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2643 ! ! |
2680 ! ! |
|
2681 |
2644 |
2682 |
2645 !CodeView2::TextView methodsFor:'accessing-contents'! |
2683 !CodeView2::TextView methodsFor:'accessing-contents'! |
2646 |
2684 |
2647 list:aCollection expandTabs:expand scanForNonStrings:scan includesNonStrings:nonStrings |
2685 list:aCollection expandTabs:expand scanForNonStrings:scan includesNonStrings:nonStrings |
2648 |
2686 |
2662 self notifyLinesModifiedFrom: 1 to: list size. |
2700 self notifyLinesModifiedFrom: 1 to: list size. |
2663 |
2701 |
2664 "Created: / 07-10-2011 / 18:42:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2702 "Created: / 07-10-2011 / 18:42:56 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2665 ! ! |
2703 ! ! |
2666 |
2704 |
|
2705 |
2667 !CodeView2::TextView methodsFor:'accessing-look'! |
2706 !CodeView2::TextView methodsFor:'accessing-look'! |
2668 |
2707 |
2669 lineSpacing |
2708 lineSpacing |
2670 |
2709 |
2671 ^lineSpacing |
2710 ^lineSpacing |
2672 |
2711 |
2673 "Modified: / 22-05-1996 / 12:22:29 / cg" |
2712 "Modified: / 22-05-1996 / 12:22:29 / cg" |
2674 "Created: / 19-03-2012 / 13:22:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2713 "Created: / 19-03-2012 / 13:22:12 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2675 ! ! |
2714 ! ! |
|
2715 |
2676 |
2716 |
2677 !CodeView2::TextView methodsFor:'accessing-state'! |
2717 !CodeView2::TextView methodsFor:'accessing-state'! |
2678 |
2718 |
2679 beUnmodified |
2719 beUnmodified |
2680 |
2720 |
2696 |
2736 |
2697 ^self reallyModified |
2737 ^self reallyModified |
2698 |
2738 |
2699 "Created: / 08-10-2011 / 12:52:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2739 "Created: / 08-10-2011 / 12:52:31 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2700 ! ! |
2740 ! ! |
|
2741 |
2701 |
2742 |
2702 !CodeView2::TextView methodsFor:'channels'! |
2743 !CodeView2::TextView methodsFor:'channels'! |
2703 |
2744 |
2704 reallyModifiedChannel |
2745 reallyModifiedChannel |
2705 |
2746 |
2724 reallyModifiedChannel addDependent: gutterView. |
2765 reallyModifiedChannel addDependent: gutterView. |
2725 ] |
2766 ] |
2726 |
2767 |
2727 "Created: / 07-10-2011 / 18:50:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2768 "Created: / 07-10-2011 / 18:50:27 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2728 ! ! |
2769 ! ! |
|
2770 |
2729 |
2771 |
2730 !CodeView2::TextView methodsFor:'drawing'! |
2772 !CodeView2::TextView methodsFor:'drawing'! |
2731 |
2773 |
2732 backgroundForVisibleLine:visLineNr default:bg |
2774 backgroundForVisibleLine:visLineNr default:bg |
2733 | lineNr | |
2775 | lineNr | |
2880 |
2922 |
2881 "Created: / 26-04-2010 / 21:04:31 / Jakub <zelenja7@fel.cvut.cz>" |
2923 "Created: / 26-04-2010 / 21:04:31 / Jakub <zelenja7@fel.cvut.cz>" |
2882 "Modified: / 22-06-2010 / 23:28:30 / Jakub <zelenja7@fel.cvut.cz>" |
2924 "Modified: / 22-06-2010 / 23:28:30 / Jakub <zelenja7@fel.cvut.cz>" |
2883 "Modified: / 17-03-2012 / 09:27:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2925 "Modified: / 17-03-2012 / 09:27:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
2884 ! ! |
2926 ! ! |
|
2927 |
2885 |
2928 |
2886 !CodeView2::TextView methodsFor:'editing'! |
2929 !CodeView2::TextView methodsFor:'editing'! |
2887 |
2930 |
2888 contentsChanged |
2931 contentsChanged |
2889 super contentsChanged. |
2932 super contentsChanged. |
3016 "Created: / 22-06-2010 / 22:33:27 / Jakub <zelenja7@fel.cvut.cz>" |
3059 "Created: / 22-06-2010 / 22:33:27 / Jakub <zelenja7@fel.cvut.cz>" |
3017 "Modified: / 24-06-2010 / 14:27:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3060 "Modified: / 24-06-2010 / 14:27:03 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3018 "Modified: / 18-11-2011 / 14:58:22 / cg" |
3061 "Modified: / 18-11-2011 / 14:58:22 / cg" |
3019 ! ! |
3062 ! ! |
3020 |
3063 |
|
3064 |
3021 !CodeView2::TextView methodsFor:'editing-basic'! |
3065 !CodeView2::TextView methodsFor:'editing-basic'! |
3022 |
3066 |
3023 basicDeleteCharsAtLine:lineNr fromCol:startCol toCol:endCol |
3067 basicDeleteCharsAtLine:lineNr fromCol:startCol toCol:endCol |
3024 "delete characters from startCol to endCol in line lineNr" |
3068 "delete characters from startCol to endCol in line lineNr" |
3025 |
3069 |
3082 super insertLines:someText from:start to:end before:lineNr. |
3126 super insertLines:someText from:start to:end before:lineNr. |
3083 autoIndent := wasAutoIndent |
3127 autoIndent := wasAutoIndent |
3084 |
3128 |
3085 "Created: / 20-12-2011 / 15:32:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3129 "Created: / 20-12-2011 / 15:32:35 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3086 ! ! |
3130 ! ! |
|
3131 |
3087 |
3132 |
3088 !CodeView2::TextView methodsFor:'event handling'! |
3133 !CodeView2::TextView methodsFor:'event handling'! |
3089 |
3134 |
3090 buttonMotion:button x:x y:y |
3135 buttonMotion:button x:x y:y |
3091 |
3136 |
3149 " |
3194 " |
3150 |
3195 |
3151 "Created: / 14-02-2010 / 16:38:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3196 "Created: / 14-02-2010 / 16:38:46 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3152 "Modified: / 06-03-2010 / 21:04:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3197 "Modified: / 06-03-2010 / 21:04:55 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3153 ! ! |
3198 ! ! |
|
3199 |
3154 |
3200 |
3155 !CodeView2::TextView methodsFor:'formatting'! |
3201 !CodeView2::TextView methodsFor:'formatting'! |
3156 |
3202 |
3157 leftIndentForLine:lineNr |
3203 leftIndentForLine:lineNr |
3158 |
3204 |
3190 ^super leftIndentForLine:lineNr |
3236 ^super leftIndentForLine:lineNr |
3191 |
3237 |
3192 "Created: / 10-12-2011 / 11:02:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3238 "Created: / 10-12-2011 / 11:02:40 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3193 ! ! |
3239 ! ! |
3194 |
3240 |
|
3241 |
3195 !CodeView2::TextView methodsFor:'initialization'! |
3242 !CodeView2::TextView methodsFor:'initialization'! |
3196 |
3243 |
3197 initialize |
3244 initialize |
3198 |
3245 |
3199 super initialize. |
3246 super initialize. |
3228 gutterView := aGutterView. |
3275 gutterView := aGutterView. |
3229 gutterView setTextView: self. |
3276 gutterView setTextView: self. |
3230 |
3277 |
3231 "Created: / 02-09-2009 / 21:57:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3278 "Created: / 02-09-2009 / 21:57:53 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3232 ! ! |
3279 ! ! |
|
3280 |
3233 |
3281 |
3234 !CodeView2::TextView methodsFor:'menu & menu actions'! |
3282 !CodeView2::TextView methodsFor:'menu & menu actions'! |
3235 |
3283 |
3236 accept |
3284 accept |
3237 |
3285 |
3313 ^ elementUnderCursor. |
3361 ^ elementUnderCursor. |
3314 |
3362 |
3315 "Created: / 08-03-2012 / 12:44:03 / cg" |
3363 "Created: / 08-03-2012 / 12:44:03 / cg" |
3316 ! ! |
3364 ! ! |
3317 |
3365 |
|
3366 |
3318 !CodeView2::TextView methodsFor:'notification'! |
3367 !CodeView2::TextView methodsFor:'notification'! |
3319 |
3368 |
3320 notifyLinesDeletedFrom: startLine to: endLine |
3369 notifyLinesDeletedFrom: startLine to: endLine |
3321 |
3370 |
3322 self updateReallyModified. |
3371 self updateReallyModified. |
3349 suppressNotifications := true. |
3398 suppressNotifications := true. |
3350 |
3399 |
3351 "Modified: / 06-07-2011 / 17:47:20 / jv" |
3400 "Modified: / 06-07-2011 / 17:47:20 / jv" |
3352 "Created: / 16-09-2011 / 15:12:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3401 "Created: / 16-09-2011 / 15:12:33 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3353 ! ! |
3402 ! ! |
|
3403 |
3354 |
3404 |
3355 !CodeView2::TextView methodsFor:'private'! |
3405 !CodeView2::TextView methodsFor:'private'! |
3356 |
3406 |
3357 superEditMenu |
3407 superEditMenu |
3358 |
3408 |
3418 "Created: / 07-10-2011 / 19:16:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3468 "Created: / 07-10-2011 / 19:16:25 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3419 "Modified: / 08-10-2011 / 11:10:01 / cg" |
3469 "Modified: / 08-10-2011 / 11:10:01 / cg" |
3420 "Modified: / 28-10-2011 / 09:23:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3470 "Modified: / 28-10-2011 / 09:23:01 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3421 ! ! |
3471 ! ! |
3422 |
3472 |
|
3473 |
3423 !CodeView2::TextView methodsFor:'queries'! |
3474 !CodeView2::TextView methodsFor:'queries'! |
3424 |
3475 |
3425 supportsSyntaxElements |
3476 supportsSyntaxElements |
3426 ^ true |
3477 ^ true |
3427 ! ! |
3478 ! ! |
|
3479 |
3428 |
3480 |
3429 !CodeView2::TextView methodsFor:'scrolling'! |
3481 !CodeView2::TextView methodsFor:'scrolling'! |
3430 |
3482 |
3431 |
3483 |
3432 |
3484 |
3461 "Created: / 19-03-2012 / 17:05:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3513 "Created: / 19-03-2012 / 17:05:22 / Jan Vrany <jan.vrany@fit.cvut.cz>" |
3462 ! |
3514 ! |
3463 |
3515 |
3464 ! |
3516 ! |
3465 |
3517 |
|
3518 |
3466 !CodeView2::TextView methodsFor:'undo & again'! |
3519 !CodeView2::TextView methodsFor:'undo & again'! |
3467 |
3520 |
3468 nonUndoableDo: aBlock |
3521 nonUndoableDo: aBlock |
3469 |
3522 |
3470 super nonUndoableDo: aBlock. |
3523 super nonUndoableDo: aBlock. |
3479 suppressNotifications := false. |
3532 suppressNotifications := false. |
3480 |
3533 |
3481 "Created: / 06-07-2011 / 17:48:49 / jv" |
3534 "Created: / 06-07-2011 / 17:48:49 / jv" |
3482 ! ! |
3535 ! ! |
3483 |
3536 |
|
3537 |
3484 !CodeView2 class methodsFor:'documentation'! |
3538 !CodeView2 class methodsFor:'documentation'! |
3485 |
3539 |
3486 version |
3540 version |
3487 ^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2.st,v 1.67 2012/11/01 14:20:15 cg Exp $' |
3541 ^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2.st,v 1.67 2012-11-01 14:20:15 cg Exp $' |
3488 ! |
3542 ! |
3489 |
3543 |
3490 version_CVS |
3544 version_CVS |
3491 ^ '§Header: /cvs/stx/stx/libtool/Tools__CodeView2.st,v 1.67 2012/11/01 14:20:15 cg Exp §' |
3545 ^ '$Header: /cvs/stx/stx/libtool/Tools__CodeView2.st,v 1.67 2012-11-01 14:20:15 cg Exp $' |
3492 ! |
3546 ! |
3493 |
3547 |
3494 version_SVN |
3548 version_SVN |
3495 ^ '$Id: Tools__CodeView2.st 8074 2012-11-30 17:23:39Z vranyj1 $' |
3549 ^ '§Id: Tools__CodeView2.st 7797 2011-06-28 07:45:06Z vranyj1 §' |
3496 ! ! |
3550 ! ! |
|
3551 |
3497 |
3552 |
3498 CodeView2 initialize! |
3553 CodeView2 initialize! |