Changeset 204

Show
Ignore:
Timestamp:
12/26/06 10:39:33 (2 years ago)
Author:
Ant
Message:

added annoying beep

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/leds/CompilerBox.d

    r203 r204  
    110110    void clearAll() 
    111111    { 
    112 //      rawTextCommands.getBuffer().setText(""); 
     112        //rawTextCommands.getBuffer().setText(""); 
     113        rawTextCommands = new TextView(); 
     114        rawTextCommands.setWrapMode(WrapMode.WORD); 
    113115        compilerModel.clear(); 
    114116        currErrorButton.setSensitive(false); 
     
    124126    void addCompilerCommand(String compilerCommand) 
    125127    { 
    126         rawTextCommands.getBuffer().setText(compilerCommand.toString()); 
     128        writefln("CompilerBox.addCompilerCommand ---- %s ----", compilerCommand); 
     129        rawTextCommands.appendText(compilerCommand.toString()); 
    127130    } 
    128131     
     
    134137    void addLinkerCommand(String linkerCommand) 
    135138    { 
     139        writefln("CompilerBox.addLinkerCommand ---- %s ----", linkerCommand); 
    136140        rawTextCommands.appendText(linkerCommand.toString()); 
    137141    } 
     
    175179    void addOuputLine(char[] line) 
    176180    { 
     181        writefln("CompilerBox.addOuputLine ---- %s ----", line); 
    177182        rawTextCommands.appendText(line); 
    178183    } 
     
    291296        { 
    292297             
     298            ScrolledWindow sw; 
     299             
    293300            this() 
    294301            { 
    295302                super("Compile output"); 
    296303                setSizeRequest(400, 300); 
    297                 ScrolledWindow sw = new ScrolledWindow(); 
     304                addOnDelete(&windowDelete); 
     305 
     306                sw = new ScrolledWindow(); 
    298307                sw.add(rawTextCommands); 
    299308                add(sw); 
     
    301310            } 
    302311             
    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 
    304323             
    305324        } 
  • trunk/src/leds/Project.d

    r203 r204  
    14051405        } 
    14061406        ProjectError[] moduleErrors; 
    1407         String fileName = projectError.getFileName()
     1407        String fileName = projectError.getFileName().dup
    14081408        if ( fileName in projectErrors ) 
    14091409        { 
    1410             moduleErrors = projectErrors[fileName]; 
     1410            moduleErrors = projectErrors[fileName.dup]; 
    14111411            moduleErrors ~= projectError; 
    14121412        } 
    14131413        else 
    14141414        { 
    1415             addCompileErrors(fileName); 
     1415            addCompileErrors(fileName.dup); 
    14161416            moduleErrors ~= projectError; 
    1417             projectErrors[fileName] = moduleErrors; 
     1417            projectErrors[fileName.dup] = moduleErrors; 
    14181418        } 
    14191419        return true; 
     
    14291429            projectError = new ProjectError( 
    14301430                this,  
    1431                 fileName,  
     1431                fileName.dup,  
    14321432                lineNumber,  
    14331433                message,  
     
    14401440            projectError = new ProjectError( 
    14411441                this,  
    1442                 fileName,  
     1442                fileName.dup,  
    14431443                lineNumber,  
    14441444                message,  
  • trunk/src/leds/SystemConsole.d

    r203 r204  
    415415        if ( Leds.leds.getPropValue("beepOnCommandEnd", true) ) 
    416416        { 
    417             Gdk.beep(); 
     417            if ( exitStatus == 0 ) 
     418            { 
     419                Gdk.beep(); 
     420            } 
     421            else 
     422            { 
     423                Gdk.beep(); 
     424                Gdk.beep(); 
     425            } 
    418426        } 
    419427