~ubuntu-branches/ubuntu/raring/geany/raring-proposed

« back to all changes in this revision

Viewing changes to scintilla/WindowAccessor.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Damián Viano
  • Date: 2008-05-02 11:37:45 UTC
  • mfrom: (1.2.1 upstream) (9 hardy)
  • mto: (3.2.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20080502113745-xzp4g6dmovrpoj17
Tags: 0.14-1
New upstream release (Closes: #478126)

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
#include "WindowAccessor.h"
18
18
#include "Scintilla.h"
19
19
 
 
20
#ifdef SCI_NAMESPACE
 
21
using namespace Scintilla;
 
22
#endif
 
23
 
20
24
WindowAccessor::~WindowAccessor() {
21
25
}
22
26
 
176
180
                return indent;
177
181
}
178
182
 
 
183
void WindowAccessor::IndicatorFill(int start, int end, int indicator, int value) {
 
184
        Platform::SendScintilla(id, SCI_SETINDICATORCURRENT, indicator);
 
185
        if (value) {
 
186
                Platform::SendScintilla(id, SCI_SETINDICATORVALUE, value);
 
187
                Platform::SendScintilla(id, SCI_INDICATORFILLRANGE, start, end - start);
 
188
        } else {
 
189
                Platform::SendScintilla(id, SCI_INDICATORCLEARRANGE, start, end - start);
 
190
        }
 
191
}