[DEBUG] build back tools & sample
This commit is contained in:
parent
dd8daa7e3d
commit
7eb68dfa72
@ -16,8 +16,8 @@
|
||||
#include <ewol/context/Context.hpp>
|
||||
#include <appl/widget/VectorDisplay.hpp>
|
||||
|
||||
|
||||
class MainApplication : public ewol::context::Application {
|
||||
namespace appl {
|
||||
class MainApplication : public ewol::context::Application {
|
||||
public:
|
||||
void onCreate(ewol::Context& _context) override {
|
||||
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
||||
@ -54,7 +54,8 @@ class MainApplication : public ewol::context::Application {
|
||||
// nothing to do ...
|
||||
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...).
|
||||
@ -63,5 +64,5 @@ class MainApplication : public ewol::context::Application {
|
||||
*/
|
||||
int main(int _argc, const char *_argv[]) {
|
||||
// second possibility
|
||||
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv);
|
||||
return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
|
||||
}
|
@ -19,7 +19,7 @@ namespace appl {
|
||||
protected:
|
||||
//! @brief constructor
|
||||
VectorDisplay();
|
||||
void init();
|
||||
void init() override;
|
||||
public:
|
||||
DECLARE_WIDGET_FACTORY(VectorDisplay, "VectorDisplay");
|
||||
//! @brief destructor
|
||||
|
@ -95,7 +95,7 @@ namespace appl {
|
||||
*/
|
||||
int main(int _argc, const char *_argv[]) {
|
||||
// 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]
|
||||
|
||||
|
@ -15,8 +15,8 @@
|
||||
#include <ewol/widget/Manager.hpp>
|
||||
#include <ewol/context/Context.hpp>
|
||||
|
||||
|
||||
class MainApplication : public ewol::context::Application {
|
||||
namespace appl {
|
||||
class MainApplication : public ewol::context::Application {
|
||||
public:
|
||||
void onCreate(ewol::Context& _context) override {
|
||||
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
||||
@ -51,8 +51,8 @@ class MainApplication : public ewol::context::Application {
|
||||
// nothing to do ...
|
||||
APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
@ -62,5 +62,5 @@ class MainApplication : public ewol::context::Application {
|
||||
*/
|
||||
int main(int _argc, const char *_argv[]) {
|
||||
// second possibility
|
||||
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv);
|
||||
return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
|
||||
}
|
@ -30,14 +30,14 @@ namespace appl {
|
||||
};
|
||||
protected:
|
||||
WidgetDisplay();
|
||||
void init();
|
||||
void init() override;
|
||||
public:
|
||||
DECLARE_FACTORY(WidgetDisplay);
|
||||
virtual ~WidgetDisplay();
|
||||
ewol::compositing::Image m_compositing;
|
||||
etk::Vector<Element> m_elements;
|
||||
public: // Derived function
|
||||
void onRegenerateDisplay();
|
||||
void onRegenerateDisplay() override;
|
||||
void periodicCall(const ewol::event::Time& _event);
|
||||
bool onEventInput(const ewol::event::Input& _event) override;
|
||||
void onDraw() override;
|
||||
|
@ -38,7 +38,7 @@ namespace appl {
|
||||
bool onEventInput(const ewol::event::Input& _event) override;
|
||||
bool onEventEntry(const ewol::event::Entry& _event) override;
|
||||
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);
|
||||
if (wid != nullptr) {
|
||||
return wid;
|
||||
|
@ -15,8 +15,8 @@
|
||||
#include <appl/debug.hpp>
|
||||
#include <appl/MainWindows.hpp>
|
||||
#include <appl/widget/SizerColor.hpp>
|
||||
|
||||
class MainApplication : public ewol::context::Application {
|
||||
namespace appl {
|
||||
class MainApplication : public ewol::context::Application {
|
||||
public:
|
||||
virtual void onCreate(ewol::Context& _context) {
|
||||
APPL_INFO(" == > CREATE ... (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
||||
@ -79,8 +79,8 @@ class MainApplication : public ewol::context::Application {
|
||||
APPL_INFO("==> STOP ... (START)");
|
||||
APPL_INFO("==> STOP ... (END)");
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
@ -90,7 +90,7 @@ class MainApplication : public ewol::context::Application {
|
||||
*/
|
||||
int main(int _argc, const char *_argv[]) {
|
||||
// second possibility
|
||||
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv);
|
||||
return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
|
||||
}
|
||||
|
||||
|
||||
|
@ -15,8 +15,8 @@
|
||||
#include <appl/debug.hpp>
|
||||
#include <appl/MainWindows.hpp>
|
||||
#include <appl/widget/SizerColor.hpp>
|
||||
|
||||
class MainApplication : public ewol::context::Application {
|
||||
namespace appl {
|
||||
class MainApplication : public ewol::context::Application {
|
||||
public:
|
||||
virtual void onCreate(ewol::Context& _context) {
|
||||
APPL_INFO(" == > CREATE ... (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
|
||||
@ -79,8 +79,8 @@ class MainApplication : public ewol::context::Application {
|
||||
APPL_INFO("==> STOP ... (START)");
|
||||
APPL_INFO("==> STOP ... (END)");
|
||||
}
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
@ -90,7 +90,7 @@ class MainApplication : public ewol::context::Application {
|
||||
*/
|
||||
int main(int _argc, const char *_argv[]) {
|
||||
// second possibility
|
||||
return ewol::run(ETK_NEW(appl::MainApplication)(), _argc, _argv);
|
||||
return ewol::run(ETK_NEW(appl::MainApplication), _argc, _argv);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user