Changeset 203

Show
Ignore:
Timestamp:
12/26/06 03:38:07 (2 years ago)
Author:
Ant
Message:


Files:

Legend:

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

    r200 r203  
    110110    void clearAll() 
    111111    { 
    112       rawTextCommands.getBuffer().setText(""); 
     112//        rawTextCommands.getBuffer().setText(""); 
    113113        compilerModel.clear(); 
    114114        currErrorButton.setSensitive(false); 
     
    176176    { 
    177177        rawTextCommands.appendText(line); 
    178          
    179 //      ProjectError error = new ProjectError( 
    180 //                  project,  
    181 //                  new String(),       //modulePath,  
    182 //                  1,      //lineNumber,  
    183 //                  new String(line),  
    184 //                  ProjErrorType.ERROR 
    185 //          ); 
    186 //      addCompilerError(error); 
    187178    } 
    188179 
     
    258249        } 
    259250             
    260         addButton(StockID.DIALOG_INFO,"Show show raw input/output", &showRawCommands); 
     251        addButton(StockID.OPEN,"Show show raw input/output", &showRawCommands); 
    261252         
    262253        return toolbar; 
     
    297288    void showRawCommands(Button button) 
    298289    { 
     290        class ShowRaw : Window 
     291        { 
     292             
     293            this() 
     294            { 
     295                super("Compile output"); 
     296                setSizeRequest(400, 300); 
     297                ScrolledWindow sw = new ScrolledWindow(); 
     298                sw.add(rawTextCommands); 
     299                add(sw); 
     300                showAll(); 
     301            } 
     302             
     303             
     304             
     305        } 
     306         
     307        (new ShowRaw()).showAll(); 
    299308        // todo popup a simple text window with all the input and output text 
    300309    } 
  • trunk/src/leds/Project.d

    r200 r203  
    413413        { 
    414414            ok = false; 
     415            PopupBox.information(workspace, "Cannot create basic project structure", "Create Project"); 
    415416        } 
    416417        return ok; 
     
    642643//                  compilerBox.addCompilerError(projectError); 
    643644//              } 
     645                bool added = false; 
    644646                if ( lineNumber > 0 ) 
    645647                { 
    646648                    if ( modulePath.length>0 ) 
    647649                    { 
    648                         bool added = project.addProjectError(projectError); 
    649                         if ( added && buildConsole !is null ) 
    650                         { 
    651                             buildConsole.append(projectError); 
    652                         } 
     650                        added = project.addProjectError(projectError); 
    653651                    } 
     652                } 
     653                if ( added && buildConsole !is null ) 
     654                { 
     655                    buildConsole.append(projectError); 
     656                } 
     657                else 
     658                { 
     659                    buildConsole.append(inLine); 
    654660                } 
    655661            } 
  • trunk/src/leds/SystemConsole.d

    r200 r203  
    4040private import gtk.Widget; 
    4141 
     42private import gdk.Gdk; 
    4243private import gdk.Pixbuf; 
    4344private import gtk.gtktypes; 
     
    411412        writefln("SystemConsole.childEnd (calling queue) for %s", getTabName()); 
    412413        childQueue.push(spawn); 
     414 
     415        if ( Leds.leds.getPropValue("beepOnCommandEnd", true) ) 
     416        { 
     417            Gdk.beep(); 
     418        } 
    413419         
    414420        return false;