Menu

#195 Add a modification tracker

v1.1.x
closed
None
v1.1.0
New Functionality
2017-05-09
2017-04-18
Erik Hänel
No

The editor should track, which lines were modified after the last save and mark them. After saving again, these lines can be marked in another color. As example consider the highlighting in Code::Blocks.

Analysis:
Two new functions have to be added corresponding to two new marker types:

void NumeReEditor::markModified(int line)
void NumeReEditor::markSaved() // applies to all lines

The first function has to be hooked to the OnChar() function and the second to the SaveFile().

Implementation:
The functionality was implemented as proposed by the analysis. Implementation tests were passed successfully.

Documentation:
The new functionality was added to the documentation article about the editor in both languages.

Tests:
The modification tracker works now as expected. Functionality was implemented successfully.

Discussion

  • Erik Hänel

    Erik Hänel - 2017-04-18
    • status: open --> accepted
     
  • Erik Hänel

    Erik Hänel - 2017-04-18
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1,9 @@
    -The editor should track, which lines were modified after the last save and mark them. After saving again, these lines can be marked in another color. As example use the highlighting in Code::Blocks.
    +The editor should track, which lines were modified after the last save and mark them. After saving again, these lines can be marked in another color. As example consider the highlighting in Code::Blocks.
    +
    +**Analysis:**
    +
    +**Implementation:**
    +
    +**Documentation:**
    +
    +**Tests:**
    
    • status: accepted --> analyzing
     
  • Erik Hänel

    Erik Hänel - 2017-04-18
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,12 @@
     The editor should track, which lines were modified after the last save and mark them. After saving again, these lines can be marked in another color. As example consider the highlighting in Code::Blocks.
    
     **Analysis:**
    +Two new functions have to be added corresponding to two new marker types: 
    +~~~C
    +void NumeReEditor::markModified(int line)
    +void NumeReEditor::markSaved() // applies to all lines
    +~~~
    +The first function has to be hooked to the `OnChar()` function and the second to the `SaveFile()`.
    
     **Implementation:**
    
    • status: analyzing --> implementing
     
  • Erik Hänel

    Erik Hänel - 2017-04-19
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -9,7 +9,9 @@
     The first function has to be hooked to the `OnChar()` function and the second to the `SaveFile()`.
    
     **Implementation:**
    +The functionality was implemented as proposed by the analysis. Implementation tests were passed successfully.
    
     **Documentation:**
    +The new functionality was added to the documentation article about the editor in both languages.
    
     **Tests:**
    
    • status: implementing --> testing
     
  • Erik Hänel

    Erik Hänel - 2017-05-09
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -15,3 +15,4 @@
     The new functionality was added to the documentation article about the editor in both languages.
    
     **Tests:**
    +The modification tracker works now as expected. Functionality was implemented successfully.
    
    • status: testing --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB