diff --git a/sources/appl/Gui/MainWindows.cpp b/sources/appl/Gui/MainWindows.cpp index e1f7956..321eb97 100644 --- a/sources/appl/Gui/MainWindows.cpp +++ b/sources/appl/Gui/MainWindows.cpp @@ -43,10 +43,6 @@ namespace appl { } - -#undef __class__ -#define __class__ "AboutGui" - #include #include @@ -94,10 +90,6 @@ class ParameterAboutGui : public ewol::widget::Sizer { }; }; - -#undef __class__ -#define __class__ "MainWindows" - MainWindows::MainWindows() { addObjectType("appl::MainWindows"); } @@ -324,12 +316,14 @@ void MainWindows::onCallbackMenuEvent(const std::string& _value) { APPL_TODO("Event from Menu : " << _value); } else if ( _value == "menu:color:color/black/" || _value == "menu:color:color/white/") { - etk::theme::setName("COLOR", std::string(_value, 12)); + etk::theme::setName("COLOR", std::string(_value, 11)); + EWOL_ERROR("Select Shape or Color : 'COLOR'='" << std::string(_value, 11) << "'"); ewol::getContext().getResourcesManager().reLoadResources(); ewol::getContext().forceRedrawAll(); } else if ( _value == "menu:shape:shape/square/" || _value == "menu:shape:shape/round/") { - etk::theme::setName("GUI", std::string(_value, 12)); + EWOL_ERROR("Select Shape or Color : 'GUI'='" << std::string(_value, 11) << "'"); + etk::theme::setName("GUI", std::string(_value, 11)); ewol::getContext().getResourcesManager().reLoadResources(); ewol::getContext().forceRedrawAll(); } else if (_value == "menu:reloadShape") { @@ -347,6 +341,9 @@ void MainWindows::onCallbackMenuEvent(const std::string& _value) { } else if (_value == "menu:split:hori") { propertySetOnWidgetNamed("appl-view-code-sizer", "mode", "hori"); propertySetOnWidgetNamed("appl-text-separator", "expand", "false,true"); + } else if (_value == "menu:reloade-shader") { + ewol::getContext().getResourcesManager().reLoadResources(); + ewol::getContext().forceRedrawAll(); } else { APPL_ERROR("Event from Menu UNKNOW : '" << _value << "'"); } diff --git a/sources/appl/init.cpp b/sources/appl/init.cpp index 4ade3fa..386cb8a 100644 --- a/sources/appl/init.cpp +++ b/sources/appl/init.cpp @@ -28,9 +28,6 @@ #include #include -#undef __class__ -#define __class__ "MainApplication" - class MainApplication : public ewol::context::Application { private: std::shared_ptr m_bufferManager;