Changeset 250
- Timestamp:
- 04/01/07 03:27:37 (2 years ago)
- Files:
-
- trunk/src/leds/CodeEdit.d (modified) (1 diff)
- trunk/src/leds/CodeView.d (modified) (3 diffs)
- trunk/src/leds/Scintilla.d (modified) (1 diff)
- trunk/src/leds/SimpleCodeEdit.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/leds/CodeEdit.d
r242 r250 138 138 * @return true if the file was modified 139 139 */ 140 bit getModify(); 140 bit getModified(); 141 142 /** 143 * Set the modified state 144 */ 145 void setModified(bool state); 141 146 142 147 /** trunk/src/leds/CodeView.d
r249 r250 502 502 void onExpose() 503 503 { 504 workspace.getErrorPane().setMarkers(project, errorLines, todoLines, bugLines, codeEdit.getLineCount()); 504 workspace.getErrorPane().setMarkers( 505 project, 506 errorLines, 507 todoLines, 508 bugLines, 509 codeEdit.getLineCount()); 505 510 if ( needReloadFile(fileName) ) 506 511 { … … 580 585 581 586 codeEdit.emptyUndoBuffer(); 587 codeEdit.setModified(false); 582 588 setBrowserView(input); 583 589 setTodos(input); … … 749 755 bit getModified() 750 756 { 751 return codeEdit.getModif y();757 return codeEdit.getModified(); 752 758 } 753 759 trunk/src/leds/Scintilla.d
r249 r250 2046 2046 * @return true if the file was modified 2047 2047 */ 2048 bit getModif y()2048 bit getModified() 2049 2049 { 2050 2050 return send(SCI_GETMODIFY,0 ,0)==0 ? false : true; 2051 } 2052 2053 void setModified(bool state) 2054 { 2055 // maitained automatically by scintilla. probably no need to maitain a flag. 2051 2056 } 2052 2057 trunk/src/leds/SimpleCodeEdit.d
r230 r250 270 270 * @return true if the file was modified 271 271 */ 272 bit getModif y()272 bit getModified() 273 273 { 274 274 return buffer.getModified()!=0; 275 } 276 277 void setModified(bool state) 278 { 279 buffer.setModified(state); 275 280 } 276 281
