~haaaad/geany/master

« back to all changes in this revision

Viewing changes to scintilla/src/EditModel.h

  • Committer: elextr
  • Author(s): Colomban Wendling
  • Date: 2017-07-24 23:24:05 UTC
  • Revision ID: git-v1:18360460abb4f4bec23dff127031ecf4e9120f7f
Update Scintilla to version 3.7.5 (#1503)

* Update Scintilla to version 3.7.5

This now requires a C++11-capable compiler.

Closes #1308.

* Test using newer dist on Travis

Since Scintilla needs C++11

* Add debugging code for when configure fails

* Workaround a pkg-config-corsswrapper bug on Ubuntu 14.04

See https://bugs.launchpad.net/ubuntu/+source/mingw-w64/+bug/1327242

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
};
25
25
 
26
26
class EditModel {
27
 
        // Private so EditModel objects can not be copied
28
 
        explicit EditModel(const EditModel &);
29
 
        EditModel &operator=(const EditModel &);
30
 
 
31
27
public:
32
28
        bool inOverstrike;
33
29
        int xOffset;            ///< Horizontal scrolled amount in pixels
36
32
        SpecialRepresentations reprs;
37
33
        Caret caret;
38
34
        SelectionPosition posDrag;
39
 
        Position braces[2];
 
35
        Sci::Position braces[2];
40
36
        int bracesMatchStyle;
41
37
        int highlightGuideColumn;
42
38
        Selection sel;
49
45
        ContractionState cs;
50
46
        // Hotspot support
51
47
        Range hotspot;
52
 
        int hoverIndicatorPos;
 
48
        Sci::Position hoverIndicatorPos;
53
49
 
54
50
        // Wrapping support
55
51
        int wrapWidth;
57
53
        Document *pdoc;
58
54
 
59
55
        EditModel();
 
56
        // Deleted so EditModel objects can not be copied.
 
57
        explicit EditModel(const EditModel &) = delete;
 
58
        EditModel &operator=(const EditModel &) = delete;
60
59
        virtual ~EditModel();
61
 
        virtual int TopLineOfMain() const = 0;
 
60
        virtual Sci::Line TopLineOfMain() const = 0;
62
61
        virtual Point GetVisibleOriginInMain() const = 0;
63
 
        virtual int LinesOnScreen() const = 0;
 
62
        virtual Sci::Line LinesOnScreen() const = 0;
64
63
        virtual Range GetHotSpotRange() const = 0;
65
64
};
66
65