[DEBUG] build back tools & sample

This commit is contained in:
Edouard DUPIN 2017-11-07 10:19:06 +01:00
parent dd8daa7e3d
commit 7eb68dfa72
8 changed files with 203 additions and 202 deletions

View File

@ -16,7 +16,7 @@
#include <ewol/context/Context.hpp> #include <ewol/context/Context.hpp>
#include <appl/widget/VectorDisplay.hpp> #include <appl/widget/VectorDisplay.hpp>
namespace appl {
class MainApplication : public ewol::context::Application { class MainApplication : public ewol::context::Application {
public: public:
void onCreate(ewol::Context& _context) override { void onCreate(ewol::Context& _context) override {
@ -55,6 +55,7 @@ class MainApplication : public ewol::context::Application {
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)"); APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
} }
}; };
}
/** /**
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...). * @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
@ -63,5 +64,5 @@ class MainApplication : public ewol::context::Application {
*/ */
int main(int _argc, const char *_argv[]) { int main(int _argc, const char *_argv[]) {
// second possibility // second possibility
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv); return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
} }

View File

@ -19,7 +19,7 @@ namespace appl {
protected: protected:
//! @brief constructor //! @brief constructor
VectorDisplay(); VectorDisplay();
void init(); void init() override;
public: public:
DECLARE_WIDGET_FACTORY(VectorDisplay, "VectorDisplay"); DECLARE_WIDGET_FACTORY(VectorDisplay, "VectorDisplay");
//! @brief destructor //! @brief destructor

View File

@ -95,7 +95,7 @@ namespace appl {
*/ */
int main(int _argc, const char *_argv[]) { int main(int _argc, const char *_argv[]) {
// second possibility // second possibility
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv); return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
} }
//! [ewol_sample_HW_main_main] //! [ewol_sample_HW_main_main]

View File

@ -15,7 +15,7 @@
#include <ewol/widget/Manager.hpp> #include <ewol/widget/Manager.hpp>
#include <ewol/context/Context.hpp> #include <ewol/context/Context.hpp>
namespace appl {
class MainApplication : public ewol::context::Application { class MainApplication : public ewol::context::Application {
public: public:
void onCreate(ewol::Context& _context) override { void onCreate(ewol::Context& _context) override {
@ -52,7 +52,7 @@ class MainApplication : public ewol::context::Application {
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)"); APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
} }
}; };
}
/** /**
@ -62,5 +62,5 @@ class MainApplication : public ewol::context::Application {
*/ */
int main(int _argc, const char *_argv[]) { int main(int _argc, const char *_argv[]) {
// second possibility // second possibility
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv); return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
} }

View File

@ -30,14 +30,14 @@ namespace appl {
}; };
protected: protected:
WidgetDisplay(); WidgetDisplay();
void init(); void init() override;
public: public:
DECLARE_FACTORY(WidgetDisplay); DECLARE_FACTORY(WidgetDisplay);
virtual ~WidgetDisplay(); virtual ~WidgetDisplay();
ewol::compositing::Image m_compositing; ewol::compositing::Image m_compositing;
etk::Vector<Element> m_elements; etk::Vector<Element> m_elements;
public: // Derived function public: // Derived function
void onRegenerateDisplay(); void onRegenerateDisplay() override;
void periodicCall(const ewol::event::Time& _event); void periodicCall(const ewol::event::Time& _event);
bool onEventInput(const ewol::event::Input& _event) override; bool onEventInput(const ewol::event::Input& _event) override;
void onDraw() override; void onDraw() override;

View File

@ -38,7 +38,7 @@ namespace appl {
bool onEventInput(const ewol::event::Input& _event) override; bool onEventInput(const ewol::event::Input& _event) override;
bool onEventEntry(const ewol::event::Entry& _event) override; bool onEventEntry(const ewol::event::Entry& _event) override;
void forceFocusCall(const ewol::event::Time& _event); void forceFocusCall(const ewol::event::Time& _event);
virtual ewol::WidgetShared getWidgetAtPos(const vec2& _pos) { virtual ewol::WidgetShared getWidgetAtPos(const vec2& _pos) override {
ewol::WidgetShared wid = ewol::widget::Windows::getWidgetAtPos(_pos); ewol::WidgetShared wid = ewol::widget::Windows::getWidgetAtPos(_pos);
if (wid != nullptr) { if (wid != nullptr) {
return wid; return wid;

View File

@ -15,7 +15,7 @@
#include <appl/debug.hpp> #include <appl/debug.hpp>
#include <appl/MainWindows.hpp> #include <appl/MainWindows.hpp>
#include <appl/widget/SizerColor.hpp> #include <appl/widget/SizerColor.hpp>
namespace appl {
class MainApplication : public ewol::context::Application { class MainApplication : public ewol::context::Application {
public: public:
virtual void onCreate(ewol::Context& _context) { virtual void onCreate(ewol::Context& _context) {
@ -80,7 +80,7 @@ class MainApplication : public ewol::context::Application {
APPL_INFO("==> STOP ... (END)"); APPL_INFO("==> STOP ... (END)");
} }
}; };
}
/** /**
@ -90,7 +90,7 @@ class MainApplication : public ewol::context::Application {
*/ */
int main(int _argc, const char *_argv[]) { int main(int _argc, const char *_argv[]) {
// second possibility // second possibility
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv); return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
} }

View File

@ -15,7 +15,7 @@
#include <appl/debug.hpp> #include <appl/debug.hpp>
#include <appl/MainWindows.hpp> #include <appl/MainWindows.hpp>
#include <appl/widget/SizerColor.hpp> #include <appl/widget/SizerColor.hpp>
namespace appl {
class MainApplication : public ewol::context::Application { class MainApplication : public ewol::context::Application {
public: public:
virtual void onCreate(ewol::Context& _context) { virtual void onCreate(ewol::Context& _context) {
@ -80,7 +80,7 @@ class MainApplication : public ewol::context::Application {
APPL_INFO("==> STOP ... (END)"); APPL_INFO("==> STOP ... (END)");
} }
}; };
}
/** /**
@ -90,7 +90,7 @@ class MainApplication : public ewol::context::Application {
*/ */
int main(int _argc, const char *_argv[]) { int main(int _argc, const char *_argv[]) {
// second possibility // second possibility
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv); return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
} }