diff options
| author | nyamatongwe <devnull@localhost> | 2001-05-22 01:33:04 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2001-05-22 01:33:04 +0000 | 
| commit | 31cf66ea898e6fe8c025f08a7c309321b4784669 (patch) | |
| tree | d1ea38fe6c47b29083918d7429c9d630d6b83c19 /src/ViewStyle.cxx | |
| parent | d44e001616681278b7b8df30b347f10dfaa704d4 (diff) | |
| download | scintilla-mirror-31cf66ea898e6fe8c025f08a7c309321b4784669.tar.gz | |
Support for forced upper and lower case styles.
Diffstat (limited to 'src/ViewStyle.cxx')
| -rw-r--r-- | src/ViewStyle.cxx | 28 | 
1 files changed, 9 insertions, 19 deletions
| diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 9d19c418e..4db7e2508 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -15,7 +15,7 @@  #include "Style.h"  #include "ViewStyle.h" -MarginStyle::MarginStyle() :  +MarginStyle::MarginStyle() :  	symbol(false), width(16), mask(0xffffffff), sensitive(false) {  } @@ -66,7 +66,7 @@ ViewStyle::ViewStyle(const ViewStyle &source) {  	for (int ind=0;ind<=INDIC_MAX;ind++) {  		indicators[ind] = source.indicators[ind];  	} -	 +  	selforeset = source.selforeset;  	selforeground.desired = source.selforeground.desired;  	selbackset = source.selbackset; @@ -92,7 +92,7 @@ ViewStyle::ViewStyle(const ViewStyle &source) {  	viewWhitespace = source.viewWhitespace;  	viewIndentationGuides = source.viewIndentationGuides;  	viewEOL = source.viewEOL; -	showMarkedLines = source.showMarkedLines;		 +	showMarkedLines = source.showMarkedLines;  }  ViewStyle::~ViewStyle() { @@ -101,7 +101,7 @@ ViewStyle::~ViewStyle() {  void ViewStyle::Init() {  	fontNames.Clear();  	ResetDefaultStyle(); -	 +  	indicators[0].style = INDIC_SQUIGGLE;  	indicators[0].fore = Colour(0, 0x7f, 0);  	indicators[1].style = INDIC_TT; @@ -130,7 +130,7 @@ void ViewStyle::Init() {  	edgecolour.desired = Colour(0xc0, 0xc0, 0xc0);  	edgeState = EDGE_NONE;  	caretWidth = 1; -	 +  	leftMarginWidth = 1;  	rightMarginWidth = 1;  	ms[0].symbol = false; @@ -198,7 +198,7 @@ void ViewStyle::Refresh(Surface &surface) {  				maxDescent = styles[i].descent;  		}  	} -	 +  	lineHeight = maxAscent + maxDescent;  	aveCharWidth = styles[STYLE_DEFAULT].aveCharWidth;  	spaceWidth = styles[STYLE_DEFAULT].spaceWidth; @@ -216,26 +216,16 @@ void ViewStyle::Refresh(Surface &surface) {  void ViewStyle::ResetDefaultStyle() {  	styles[STYLE_DEFAULT].Clear(Colour(0,0,0), Colour(0xff,0xff,0xff), -	        Platform::DefaultFontSize(), fontNames.Save(Platform::DefaultFont()),  +	        Platform::DefaultFontSize(), fontNames.Save(Platform::DefaultFont()),  		SC_CHARSET_DEFAULT, -		false, false, false, false, true); +		false, false, false, false, Style::caseMixed, true);  }  void ViewStyle::ClearStyles() {  	// Reset all styles to be like the default style  	for (unsigned int i=0;i<(sizeof(styles)/sizeof(styles[0]));i++) {  		if (i != STYLE_DEFAULT) { -			styles[i].Clear( -				styles[STYLE_DEFAULT].fore.desired,  -				styles[STYLE_DEFAULT].back.desired,  -				styles[STYLE_DEFAULT].size,  -				styles[STYLE_DEFAULT].fontName,  -				styles[STYLE_DEFAULT].characterSet,  -				styles[STYLE_DEFAULT].bold,  -				styles[STYLE_DEFAULT].italic, -				styles[STYLE_DEFAULT].eolFilled, -				styles[STYLE_DEFAULT].underline, -				styles[STYLE_DEFAULT].visible); +			styles[i].ClearTo(styles[STYLE_DEFAULT]);  		}  	}  	styles[STYLE_LINENUMBER].back.desired = Platform::Chrome(); | 
