mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
ide: Fixed issue with font change and line numbers #929
git-svn-id: svn://ultimatepp.org/upp/trunk@7922 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8a712075e8
commit
822f228350
3 changed files with 10 additions and 4 deletions
|
|
@ -53,6 +53,7 @@ void CodeEditor::Highlight(const String& h)
|
|||
SetColor(LineEdit::PAPER_READONLY, hl_style[HighlightSetup::PAPER_READONLY].color);
|
||||
SetColor(LineEdit::PAPER_SELECTED, hl_style[HighlightSetup::PAPER_SELECTED].color);
|
||||
Refresh();
|
||||
EditorBarLayout();
|
||||
}
|
||||
|
||||
void CodeEditor::DirtyFrom(int line) {
|
||||
|
|
|
|||
|
|
@ -85,7 +85,6 @@ private:
|
|||
|
||||
String& PointBreak(int& y);
|
||||
void sPaintImage(Draw& w, int y, int fy, const Image& img);
|
||||
void SyncWidth();
|
||||
|
||||
public:
|
||||
Callback1<int> WhenBreakpoint;
|
||||
|
|
@ -99,6 +98,8 @@ public:
|
|||
|
||||
void Scroll() { Refresh(); }
|
||||
|
||||
void SyncWidth();
|
||||
|
||||
void Renumber(int linecount);
|
||||
void ClearBreakpoints();
|
||||
void ValidateBreakpoints();
|
||||
|
|
@ -188,9 +189,6 @@ public:
|
|||
virtual void Serialize(Stream& s);
|
||||
virtual void MouseLeave();
|
||||
|
||||
void CheckEdited(bool e = true) { check_edited = e; }
|
||||
bool GetCheckEdited() { return check_edited; }
|
||||
|
||||
protected:
|
||||
virtual void HighlightLine(int line, Vector<LineEdit::Highlight>& h, int pos);
|
||||
virtual void PreInsert(int pos, const WString& s);
|
||||
|
|
@ -412,6 +410,12 @@ public:
|
|||
|
||||
Callback1<int> WhenBreakpoint;
|
||||
|
||||
|
||||
void CheckEdited(bool e = true) { check_edited = e; }
|
||||
bool GetCheckEdited() { return check_edited; }
|
||||
|
||||
void EditorBarLayout() { bar.SyncWidth(); }
|
||||
|
||||
LineInfo GetLineInfo() const { return bar.GetLineInfo(); }
|
||||
void SetLineInfo(const LineInfo& lf);
|
||||
LineInfoRem GetLineInfoRem() { return LineInfoRem(bar.GetLineInfoRem(), 0); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue