[DEV] base rework
This commit is contained in:
parent
46969e15b1
commit
aabc92f309
@ -51,8 +51,7 @@ class ParameterAboutGui : public widget::Sizer
|
||||
if (NULL == mySpacer) {
|
||||
APPL_ERROR("Can not allocate widget ==> display might be in error");
|
||||
} else {
|
||||
mySpacer->SetExpendX(true);
|
||||
mySpacer->SetExpendY(true);
|
||||
mySpacer->SetExpand(bvec2(true,true));
|
||||
SubWidgetAdd(mySpacer);
|
||||
}
|
||||
etk::UString tmpLabel = "<left>";
|
||||
@ -74,7 +73,7 @@ class ParameterAboutGui : public widget::Sizer
|
||||
if (NULL == myLabel) {
|
||||
APPL_ERROR("Can not allocate widget ==> display might be in error");
|
||||
} else {
|
||||
myLabel->SetExpendX(true);
|
||||
myLabel->SetExpand(bvec2(true,false));
|
||||
SubWidgetAdd(myLabel);
|
||||
}
|
||||
};
|
||||
@ -107,10 +106,8 @@ MainWindows::MainWindows(void)
|
||||
mySizerHori = new widget::Sizer(widget::Sizer::modeHori);
|
||||
mySizerVert->SubWidgetAdd(mySizerHori);
|
||||
myBufferView = new BufferView();
|
||||
myBufferView->SetExpendX(false);
|
||||
myBufferView->SetExpendY(true);
|
||||
myBufferView->SetFillX(true);
|
||||
myBufferView->SetFillY(true);
|
||||
myBufferView->SetExpand(bvec2(false,true));
|
||||
myBufferView->SetFill(bvec2(true,true));
|
||||
mySizerHori->SubWidgetAdd(myBufferView);
|
||||
|
||||
mySizerVert2 = new widget::Sizer(widget::Sizer::modeVert);
|
||||
@ -118,10 +115,8 @@ MainWindows::MainWindows(void)
|
||||
|
||||
// main buffer Area :
|
||||
myCodeView = new CodeView("FreeMono", 11);
|
||||
myCodeView->SetExpendX(true);
|
||||
myCodeView->SetExpendY(true);
|
||||
myCodeView->SetFillX(true);
|
||||
myCodeView->SetFillY(true);
|
||||
myCodeView->SetExpand(bvec2(true,true));
|
||||
myCodeView->SetFill(bvec2(true,true));
|
||||
mySizerVert2->SubWidgetAdd(myCodeView);
|
||||
|
||||
// search area :
|
||||
@ -139,7 +134,7 @@ MainWindows::MainWindows(void)
|
||||
widget::Slider* tmpSlider = new widget::Slider();
|
||||
mySizerHori2->SubWidgetAdd(tmpSlider);
|
||||
tmpSlider->RegisterOnEvent(this, ewolEventSliderChange, l_smoothMin);
|
||||
tmpSlider->SetExpendX(true);
|
||||
tmpSlider->SetExpand(bvec2(true,false));
|
||||
tmpSlider->SetMin(0);
|
||||
tmpSlider->SetMax(1000);
|
||||
tmpSlider->SetValue(0450);
|
||||
@ -148,7 +143,7 @@ MainWindows::MainWindows(void)
|
||||
tmpSlider = new widget::Slider();
|
||||
mySizerHori2->SubWidgetAdd(tmpSlider);
|
||||
tmpSlider->RegisterOnEvent(this, ewolEventSliderChange, l_smoothMax);
|
||||
tmpSlider->SetExpendX(true);
|
||||
tmpSlider->SetExpand(bvec2(true,false));
|
||||
tmpSlider->SetMin(0);
|
||||
tmpSlider->SetMax(1000);
|
||||
tmpSlider->SetValue(0550);
|
||||
@ -209,8 +204,8 @@ MainWindows::MainWindows(void)
|
||||
(void)myMenu->Add(idMenugDisplay, "Reload OpenGl Shader", "", ednMsgGuiReloadShader);
|
||||
|
||||
m_widgetLabelFileName = new widget::Label("<left>FileName</left>");
|
||||
m_widgetLabelFileName->SetExpendX(true);
|
||||
m_widgetLabelFileName->SetFillY(true);
|
||||
m_widgetLabelFileName->SetExpand(bvec2(true,false));
|
||||
m_widgetLabelFileName->SetFill(bvec2(false,true));;
|
||||
mySizerHori->SubWidgetAdd(m_widgetLabelFileName);
|
||||
|
||||
|
||||
|
@ -38,7 +38,7 @@ Search::Search(void) :
|
||||
m_forward = false;
|
||||
|
||||
widget::Button * myButtonImage = NULL;
|
||||
myButtonImage = new widget::Button("", "");
|
||||
myButtonImage = new widget::Button("");
|
||||
if (NULL == myButtonImage) {
|
||||
APPL_ERROR("Widget allocation error ==> it will missing in the display");
|
||||
} else {
|
||||
@ -59,7 +59,7 @@ Search::Search(void) :
|
||||
SubWidgetAdd(m_searchEntry);
|
||||
}
|
||||
|
||||
myButtonImage = new widget::Button("","");
|
||||
myButtonImage = new widget::Button("");
|
||||
if (NULL == myButtonImage) {
|
||||
APPL_ERROR("Widget allocation error ==> it will missing in the display");
|
||||
} else {
|
||||
@ -80,7 +80,7 @@ Search::Search(void) :
|
||||
SubWidgetAdd(m_replaceEntry);
|
||||
}
|
||||
|
||||
myButtonImage = new widget::Button("","");
|
||||
myButtonImage = new widget::Button("");
|
||||
if (NULL == myButtonImage) {
|
||||
APPL_ERROR("Widget allocation error ==> it will missing in the display");
|
||||
} else {
|
||||
@ -90,7 +90,7 @@ Search::Search(void) :
|
||||
SubWidgetAdd(myButtonImage);
|
||||
}
|
||||
|
||||
myButtonImage = new widget::Button("","");
|
||||
myButtonImage = new widget::Button("");
|
||||
if (NULL == myButtonImage) {
|
||||
APPL_ERROR("Widget allocation error ==> it will missing in the display");
|
||||
} else {
|
||||
@ -103,7 +103,7 @@ Search::Search(void) :
|
||||
SubWidgetAdd(myButtonImage);
|
||||
}
|
||||
|
||||
myButtonImage = new widget::Button("","");
|
||||
myButtonImage = new widget::Button("");
|
||||
if (NULL == myButtonImage) {
|
||||
APPL_ERROR("Widget allocation error ==> it will missing in the display");
|
||||
} else {
|
||||
@ -116,7 +116,7 @@ Search::Search(void) :
|
||||
SubWidgetAdd(myButtonImage);
|
||||
}
|
||||
|
||||
myButtonImage = new widget::Button("","");
|
||||
myButtonImage = new widget::Button("");
|
||||
if (NULL == myButtonImage) {
|
||||
APPL_ERROR("Widget allocation error ==> it will missing in the display");
|
||||
} else {
|
||||
|
@ -123,15 +123,14 @@ globals::ParameterGlobalsGui::ParameterGlobalsGui(void) :
|
||||
if (NULL == mySpacer) {
|
||||
APPL_ERROR("Can not allocate widget ==> display might be in error");
|
||||
} else {
|
||||
mySpacer->SetExpendX(true);
|
||||
mySpacer->SetExpendY(true);
|
||||
mySpacer->SetExpand(bvec2(true,true));
|
||||
SubWidgetAdd(mySpacer);
|
||||
}
|
||||
myCheckbox = new widget::CheckBox("Automatic Indentation");
|
||||
if (NULL == myCheckbox) {
|
||||
APPL_ERROR("Can not allocate widget ==> display might be in error");
|
||||
} else {
|
||||
myCheckbox->SetExpendX(true);
|
||||
myCheckbox->SetExpand(bvec2(true,false));
|
||||
myCheckbox->SetValue(IsSetAutoIndent());
|
||||
myCheckbox->RegisterOnEvent(this, ewolEventCheckBoxClicked, l_changeIndentation);
|
||||
SubWidgetAdd(myCheckbox);
|
||||
@ -140,7 +139,7 @@ globals::ParameterGlobalsGui::ParameterGlobalsGui(void) :
|
||||
if (NULL == myCheckbox) {
|
||||
APPL_ERROR("Can not allocate widget ==> display might be in error");
|
||||
} else {
|
||||
myCheckbox->SetExpendX(true);
|
||||
myCheckbox->SetExpand(bvec2(true,false));
|
||||
myCheckbox->SetValue(IsSetDisplaySpaceChar());
|
||||
myCheckbox->RegisterOnEvent(this, ewolEventCheckBoxClicked, l_changeSpace);
|
||||
SubWidgetAdd(myCheckbox);
|
||||
@ -149,7 +148,7 @@ globals::ParameterGlobalsGui::ParameterGlobalsGui(void) :
|
||||
if (NULL == myCheckbox) {
|
||||
APPL_ERROR("Can not allocate widget ==> display might be in error");
|
||||
} else {
|
||||
myCheckbox->SetExpendX(true);
|
||||
myCheckbox->SetExpand(bvec2(true,false));
|
||||
myCheckbox->SetValue(IsSetDisplayTabChar());
|
||||
myCheckbox->RegisterOnEvent(this, ewolEventCheckBoxClicked, l_changeTabulation);
|
||||
SubWidgetAdd(myCheckbox);
|
||||
@ -158,7 +157,7 @@ globals::ParameterGlobalsGui::ParameterGlobalsGui(void) :
|
||||
if (NULL == myCheckbox) {
|
||||
APPL_ERROR("Can not allocate widget ==> display might be in error");
|
||||
} else {
|
||||
myCheckbox->SetExpendX(true);
|
||||
myCheckbox->SetExpand(bvec2(true,false));
|
||||
myCheckbox->SetValue(IsSetDisplayEndOfLine());
|
||||
myCheckbox->RegisterOnEvent(this, ewolEventCheckBoxClicked, l_changeEndOfLine);
|
||||
SubWidgetAdd(myCheckbox);
|
||||
@ -167,7 +166,7 @@ globals::ParameterGlobalsGui::ParameterGlobalsGui(void) :
|
||||
if (NULL == myCheckbox) {
|
||||
APPL_ERROR("Can not allocate widget ==> display might be in error");
|
||||
} else {
|
||||
myCheckbox->SetExpendX(true);
|
||||
myCheckbox->SetExpand(bvec2(true,false));
|
||||
myCheckbox->SetValue(IsSetDisplayEndOfLine());
|
||||
myCheckbox->RegisterOnEvent(this, ewolEventCheckBoxClicked, l_changeRounded);
|
||||
SubWidgetAdd(myCheckbox);
|
||||
|
Loading…
x
Reference in New Issue
Block a user