ide: Now shows misplaced whitespaces #1201

git-svn-id: svn://ultimatepp.org/upp/trunk@8763 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2015-07-28 18:37:43 +00:00
parent d86b9e74f5
commit 4f06ee391d
12 changed files with 106 additions and 21 deletions

View file

@ -30,6 +30,8 @@ public:
PAPER_NORMAL,
PAPER_READONLY,
PAPER_SELECTED,
WHITESPACE,
WARN_WHITESPACE,
COLOR_COUNT,
};
@ -288,6 +290,7 @@ protected:
bool showspaces;
bool showlines;
bool showreadonly;
bool warnwhitespace;
bool dorectsel; // TODO: Refactor this ugly hack!
void Paint0(Draw& w);
@ -390,6 +393,8 @@ public:
bool IsShowSpaces() const { return showspaces; }
LineEdit& ShowLineEndings(bool sl = true) { showlines = sl; Refresh(); return *this; }
bool IsShowLineEndings() const { return showlines; }
LineEdit& WarnWhiteSpace(bool b = true) { warnwhitespace = b; Refresh(); return *this; }
bool IsWantWhiteSpace() const { return warnwhitespace; }
LineEdit& WithCutLine(bool b) { cutline = b; return *this; }
LineEdit& NoCutLine() { return WithCutLine(false); }
bool IsWithCutLine() const { return cutline; }