Changeset 250

Show
Ignore:
Timestamp:
04/01/07 03:27:37 (2 years ago)
Author:
Ant
Message:

minor fixes on sourve view support

Files:

Legend:

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

    r242 r250  
    138138     * @return true if the file was modified 
    139139     */ 
    140     bit getModify(); 
     140    bit getModified(); 
     141 
     142    /** 
     143     * Set the modified state 
     144     */ 
     145    void setModified(bool state);  
    141146 
    142147    /** 
  • trunk/src/leds/CodeView.d

    r249 r250  
    502502    void onExpose() 
    503503    { 
    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()); 
    505510        if ( needReloadFile(fileName) ) 
    506511        { 
     
    580585             
    581586            codeEdit.emptyUndoBuffer(); 
     587            codeEdit.setModified(false); 
    582588            setBrowserView(input); 
    583589            setTodos(input); 
     
    749755    bit getModified() 
    750756    { 
    751         return codeEdit.getModify(); 
     757        return codeEdit.getModified(); 
    752758    } 
    753759     
  • trunk/src/leds/Scintilla.d

    r249 r250  
    20462046     * @return true if the file was modified 
    20472047     */ 
    2048     bit getModify() 
     2048    bit getModified() 
    20492049    { 
    20502050        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. 
    20512056    } 
    20522057 
  • trunk/src/leds/SimpleCodeEdit.d

    r230 r250  
    270270     * @return true if the file was modified 
    271271     */ 
    272     bit getModify() 
     272    bit getModified() 
    273273    { 
    274274        return buffer.getModified()!=0; 
     275    } 
     276     
     277    void setModified(bool state) 
     278    { 
     279        buffer.setModified(state); 
    275280    } 
    276281