Cleaning for mesh addition.
This commit is contained in:
parent
8e0ce22b57
commit
402f381d10
67 changed files with 655 additions and 456 deletions
|
@ -19,7 +19,7 @@ void TextEditorView::Initialize()
|
|||
{
|
||||
auto label = Label::Create();
|
||||
label->setLabel("Text Editor");
|
||||
label->setBackgroundColor(Color::Create(181, 189, 200));
|
||||
label->setBackgroundColor(Color(181, 189, 200));
|
||||
label->setMargin(1);
|
||||
|
||||
auto textBox = TextBox::Create();
|
||||
|
@ -27,12 +27,12 @@ void TextEditorView::Initialize()
|
|||
|
||||
auto saveButton = Button::Create();
|
||||
saveButton->setLabel("Save");
|
||||
saveButton->setBackgroundColor(Color::Create(200, 200, 200));
|
||||
saveButton->setBackgroundColor(Color(200, 200, 200));
|
||||
saveButton->setMargin(2);
|
||||
auto onSave = [this](Widget* self){
|
||||
if(this && mController && mTextBox)
|
||||
{
|
||||
mController->SetContent(mTextBox->GetContent());
|
||||
mController->SetContent(mTextBox->getContent());
|
||||
mController->OnSave();
|
||||
};
|
||||
};
|
||||
|
@ -40,26 +40,26 @@ void TextEditorView::Initialize()
|
|||
|
||||
auto clearButton = Button::Create();
|
||||
clearButton->setLabel("Clear");
|
||||
clearButton->setBackgroundColor(Color::Create(200, 200, 200));
|
||||
clearButton->setBackgroundColor(Color(200, 200, 200));
|
||||
clearButton->setMargin(2);
|
||||
auto onClear = [this](Widget* self){
|
||||
if(this && mController && mTextBox)
|
||||
{
|
||||
mController->OnClear();
|
||||
mTextBox->SetContent("");
|
||||
mTextBox->setContent("");
|
||||
};
|
||||
};
|
||||
clearButton->setOnClickFunction(onClear);
|
||||
|
||||
auto loadButton = Button::Create();
|
||||
loadButton->setLabel("Load");
|
||||
loadButton->setBackgroundColor(Color::Create(200, 200, 200));
|
||||
loadButton->setBackgroundColor(Color(200, 200, 200));
|
||||
loadButton->setMargin(2);
|
||||
auto onLoad = [this](Widget* self){
|
||||
if(this && mController && mTextBox)
|
||||
{
|
||||
mController->OnLoad();
|
||||
mTextBox->SetContent(mController->GetContent());
|
||||
mTextBox->setContent(mController->GetContent());
|
||||
};
|
||||
};
|
||||
loadButton->setOnClickFunction(onLoad);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue