add widget draw e2d

This commit is contained in:
Edouard Dupin 2012-03-13 18:20:25 +01:00
parent 491d8cf16c
commit 64019419d6

View File

@ -38,6 +38,7 @@
#include <ewol/widget/Spacer.h>
#include <ewol/widget/ColorBar.h>
#include <ewol/widget/Menu.h>
#include <ewol/widget/widgetE2D.h>
#include <ewol/widgetMeta/FileChooser.h>
#include <ewol/WidgetManager.h>
#include <globalMsg.h>
@ -177,6 +178,7 @@ class MainWindows :public ewol::Windows
myList->SetFillY(true);
mySizerVert2->SubWidgetAdd(myList);
ewol::ButtonColor * mybtColor = new ewol::ButtonColor();
mybtColor->SetFillX(true);
color_ts tmpColor;
@ -188,6 +190,15 @@ class MainWindows :public ewol::Windows
mybtColor->RegisterOnEvent(this, ewolEventButtonColorChange, drawerEventColorHasChange);
mySizerVert2->SubWidgetAdd(mybtColor);
etk::File fileE2D("/home/edupin/progperso/ewolDrawer/Exemple.xml");
ewol::widgetE2D * myE2Dwidget = new ewol::widgetE2D();
myE2Dwidget->SetElement(fileE2D);
myE2Dwidget->SetMinSize(120,120);
myE2Dwidget->SetFillX(true);
mySizerVert2->SubWidgetAdd(myE2Dwidget);
mybtColor = new ewol::ButtonColor();
mybtColor->SetFillX(true);
tmpColor.red = 0.0;