Skip to content
Permalink
d87517a20c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
42 lines (34 sloc) 889 Bytes
#include "EditorTextViewCont.h"
using namespace std;
EditorTextViewCont :: EditorTextViewCont(ECTextViewImp *view, FormatterInterface *formatter)
: view(view), formatter(formatter), x(0), y(0)
{
}
EditorTextViewCont :: ~EditorTextViewCont()
{
}
void EditorTextViewCont :: BuildFrame()
{
ClearFrame();
view->InitRows();
formatter->Build();
formatter->GetCursorPosition(y,x);
view->SetCursorX(x);
view->SetCursorY(y);
int renderableLines = formatter->GetRenderableLineCount();
int rows = view->GetRowNumInView()-1;
int limit = (rows < renderableLines) ? rows : renderableLines;
for (int i = 0; i<limit; ++i) {
shared_ptr<string> curLine = formatter->GetLine(i);
view->AddRow(*curLine);
frame.push_back(curLine);
}
}
void EditorTextViewCont :: BuildStatus()
{
// TODO - Implement this
}
void EditorTextViewCont :: ClearFrame()
{
frame.clear();
}