diff options
author | nyamatongwe <unknown> | 2001-12-20 02:29:36 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-12-20 02:29:36 +0000 |
commit | 4eefbc39519d93c5c2857ccd61299909d021c640 (patch) | |
tree | 88d99ad316492def0de5e7a72da7916842bebb09 /src/Style.h | |
parent | acfe7e573b8f6d875324ffc4011575200dcd0f47 (diff) | |
download | scintilla-mirror-4eefbc39519d93c5c2857ccd61299909d021c640.tar.gz |
Added changeable attribute to styles that defaults to true. When it is
false, text in this style is read only.
Diffstat (limited to 'src/Style.h')
-rw-r--r-- | src/Style.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Style.h b/src/Style.h index 17d32ac33..63259b1a9 100644 --- a/src/Style.h +++ b/src/Style.h @@ -25,6 +25,7 @@ public: enum ecaseForced {caseMixed, caseUpper, caseLower}; ecaseForced caseForce; bool visible; + bool changeable; Font font; int sizeZoomed; @@ -43,10 +44,12 @@ public: int size_, const char *fontName_, int characterSet_, bool bold_, bool italic_, bool eolFilled_, - bool underline_, ecaseForced caseForce_, bool visible_); + bool underline_, ecaseForced caseForce_, + bool visible_, bool changeable_); void ClearTo(const Style &source); bool EquivalentFontTo(const Style *other) const; void Realise(Surface &surface, int zoomLevel, Style *defaultStyle = 0); + bool IsProtected() { return !(changeable && visible);} ; }; #endif |