Changeset 204
- Timestamp:
- 12/26/06 10:39:33 (2 years ago)
- Files:
-
- trunk/src/leds/CompilerBox.d (modified) (6 diffs)
- trunk/src/leds/Project.d (modified) (3 diffs)
- trunk/src/leds/SystemConsole.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/leds/CompilerBox.d
r203 r204 110 110 void clearAll() 111 111 { 112 // rawTextCommands.getBuffer().setText(""); 112 //rawTextCommands.getBuffer().setText(""); 113 rawTextCommands = new TextView(); 114 rawTextCommands.setWrapMode(WrapMode.WORD); 113 115 compilerModel.clear(); 114 116 currErrorButton.setSensitive(false); … … 124 126 void addCompilerCommand(String compilerCommand) 125 127 { 126 rawTextCommands.getBuffer().setText(compilerCommand.toString()); 128 writefln("CompilerBox.addCompilerCommand ---- %s ----", compilerCommand); 129 rawTextCommands.appendText(compilerCommand.toString()); 127 130 } 128 131 … … 134 137 void addLinkerCommand(String linkerCommand) 135 138 { 139 writefln("CompilerBox.addLinkerCommand ---- %s ----", linkerCommand); 136 140 rawTextCommands.appendText(linkerCommand.toString()); 137 141 } … … 175 179 void addOuputLine(char[] line) 176 180 { 181 writefln("CompilerBox.addOuputLine ---- %s ----", line); 177 182 rawTextCommands.appendText(line); 178 183 } … … 291 296 { 292 297 298 ScrolledWindow sw; 299 293 300 this() 294 301 { 295 302 super("Compile output"); 296 303 setSizeRequest(400, 300); 297 ScrolledWindow sw = new ScrolledWindow(); 304 addOnDelete(&windowDelete); 305 306 sw = new ScrolledWindow(); 298 307 sw.add(rawTextCommands); 299 308 add(sw); … … 301 310 } 302 311 303 312 /** 313 * Executed when the user tries to close the window 314 * this will just hide the window 315 * @return true to refuse to close the window 316 */ 317 protected int windowDelete(Event event, Widget widget) 318 { 319 sw.removeAll(); 320 return false; 321 } 322 304 323 305 324 } trunk/src/leds/Project.d
r203 r204 1405 1405 } 1406 1406 ProjectError[] moduleErrors; 1407 String fileName = projectError.getFileName() ;1407 String fileName = projectError.getFileName().dup; 1408 1408 if ( fileName in projectErrors ) 1409 1409 { 1410 moduleErrors = projectErrors[fileName ];1410 moduleErrors = projectErrors[fileName.dup]; 1411 1411 moduleErrors ~= projectError; 1412 1412 } 1413 1413 else 1414 1414 { 1415 addCompileErrors(fileName );1415 addCompileErrors(fileName.dup); 1416 1416 moduleErrors ~= projectError; 1417 projectErrors[fileName ] = moduleErrors;1417 projectErrors[fileName.dup] = moduleErrors; 1418 1418 } 1419 1419 return true; … … 1429 1429 projectError = new ProjectError( 1430 1430 this, 1431 fileName ,1431 fileName.dup, 1432 1432 lineNumber, 1433 1433 message, … … 1440 1440 projectError = new ProjectError( 1441 1441 this, 1442 fileName ,1442 fileName.dup, 1443 1443 lineNumber, 1444 1444 message, trunk/src/leds/SystemConsole.d
r203 r204 415 415 if ( Leds.leds.getPropValue("beepOnCommandEnd", true) ) 416 416 { 417 Gdk.beep(); 417 if ( exitStatus == 0 ) 418 { 419 Gdk.beep(); 420 } 421 else 422 { 423 Gdk.beep(); 424 Gdk.beep(); 425 } 418 426 } 419 427
