[DEBUG] correct buid of sample

This commit is contained in:
Edouard DUPIN 2017-11-07 10:18:16 +01:00
parent b41fbb70ac
commit 4a80003857
7 changed files with 268 additions and 268 deletions

View File

@ -17,43 +17,44 @@
#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 {
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)"); APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) { for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
etk::String tmpppp = _context.getCmd().get(iii); etk::String tmpppp = _context.getCmd().get(iii);
if ( tmpppp == "-h" if ( tmpppp == "-h"
|| tmpppp == "--help") { || tmpppp == "--help") {
APPL_INFO(" -h/--help display this help" ); APPL_INFO(" -h/--help display this help" );
exit(0); exit(0);
}
} }
// TODO : Remove this : Move if in the windows properties
_context.setSize(vec2(800, 600));
// select internal data for font ...
_context.getFontDefault().setUseExternal(true);
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
// create the specific windows
_context.setWindows(basicWindows);
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
} }
// TODO : Remove this : Move if in the windows properties
_context.setSize(vec2(800, 600));
// select internal data for font ... void onStart(ewol::Context& _context) override {
_context.getFontDefault().setUseExternal(true); APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19); // nothing to do ...
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create(); }
// create the specific windows void onStop(ewol::Context& _context) override {
_context.setWindows(basicWindows); APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)"); // nothing to do ...
} APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
}
void onStart(ewol::Context& _context) override { };
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)"); }
// nothing to do ...
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
}
void onStop(ewol::Context& _context) override {
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
// 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...). * @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
@ -62,7 +63,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

@ -17,44 +17,44 @@
#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 {
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)"); APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) { for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
etk::String tmpppp = _context.getCmd().get(iii); etk::String tmpppp = _context.getCmd().get(iii);
if ( tmpppp == "-h" if ( tmpppp == "-h"
|| tmpppp == "--help") { || tmpppp == "--help") {
APPL_INFO(" -h/--help display this help" ); APPL_INFO(" -h/--help display this help" );
exit(0); exit(0);
}
} }
// TODO : Remove this : Move if in the windows properties
_context.setSize(vec2(800, 600));
// select internal data for font ...
_context.getFontDefault().setUseExternal(true);
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
// create the specific windows
_context.setWindows(basicWindows);
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
} }
// TODO : Remove this : Move if in the windows properties
_context.setSize(vec2(800, 600));
// select internal data for font ... void onStart(ewol::Context& _context) override {
_context.getFontDefault().setUseExternal(true); APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19); // nothing to do ...
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create(); }
// create the specific windows void onStop(ewol::Context& _context) override {
_context.setWindows(basicWindows); APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)"); // nothing to do ...
} APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
}
void onStart(ewol::Context& _context) override { };
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)"); }
// nothing to do ...
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
}
void onStop(ewol::Context& _context) override {
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
// 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...). * @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
* @param std IO * @param std IO
@ -62,7 +62,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

@ -17,44 +17,44 @@
#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 {
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)"); APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) { for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
etk::String tmpppp = _context.getCmd().get(iii); etk::String tmpppp = _context.getCmd().get(iii);
if ( tmpppp == "-h" if ( tmpppp == "-h"
|| tmpppp == "--help") { || tmpppp == "--help") {
APPL_INFO(" -h/--help display this help" ); APPL_INFO(" -h/--help display this help" );
exit(0); exit(0);
}
} }
// TODO : Remove this : Move if in the windows properties
_context.setSize(vec2(800, 600));
// select internal data for font ...
_context.getFontDefault().setUseExternal(true);
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
// create the specific windows
_context.setWindows(basicWindows);
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
} }
// TODO : Remove this : Move if in the windows properties
_context.setSize(vec2(800, 600));
// select internal data for font ... void onStart(ewol::Context& _context) override {
_context.getFontDefault().setUseExternal(true); APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19); // nothing to do ...
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create(); }
// create the specific windows void onStop(ewol::Context& _context) override {
_context.setWindows(basicWindows); APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)"); // nothing to do ...
} APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
}
void onStart(ewol::Context& _context) override { };
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)"); }
// nothing to do ...
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
}
void onStop(ewol::Context& _context) override {
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
// 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...). * @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
* @param std IO * @param std IO
@ -62,7 +62,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

@ -17,52 +17,51 @@
#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 {
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)"); APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) { for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
etk::String tmpppp = _context.getCmd().get(iii); etk::String tmpppp = _context.getCmd().get(iii);
if ( tmpppp == "-h" if ( tmpppp == "-h"
|| tmpppp == "--help") { || tmpppp == "--help") {
APPL_INFO(" -h/--help display this help" ); APPL_INFO(" -h/--help display this help" );
exit(0); exit(0);
}
} }
// TODO : Remove this : Move if in the windows properties
_context.setSize(vec2(800, 600));
// select internal data for font ...
_context.getFontDefault().setUseExternal(true);
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
// create the specific windows
_context.setWindows(basicWindows);
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
} }
// TODO : Remove this : Move if in the windows properties
_context.setSize(vec2(800, 600));
// select internal data for font ... void onStart(ewol::Context& _context) override {
_context.getFontDefault().setUseExternal(true); APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19); // nothing to do ...
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create(); }
// create the specific windows void onStop(ewol::Context& _context) override {
_context.setWindows(basicWindows); APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)"); // nothing to do ...
} APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
}
void onStart(ewol::Context& _context) override { };
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)"); }
// nothing to do ...
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
}
void onStop(ewol::Context& _context) override {
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
// 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...). * @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
* @param std IO * @param std IO
* @return std IO * @return std IO
*/ */
int main(int _argc, const char *_argv[]) { 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);
} }

View File

@ -17,59 +17,59 @@
#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 {
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)"); APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
// TODO : Remove this : Move if in the windows properties // TODO : Remove this : Move if in the windows properties
_context.setSize(vec2(800, 600)); _context.setSize(vec2(800, 600));
// select internal data for font ... // select internal data for font ...
_context.getFontDefault().setUseExternal(true); _context.getFontDefault().setUseExternal(true);
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19); _context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
ememory::SharedPtr<appl::Windows> basicWindows = appl::Windows::create(); ememory::SharedPtr<appl::Windows> basicWindows = appl::Windows::create();
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) { for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
etk::String tmpppp = _context.getCmd().get(iii); etk::String tmpppp = _context.getCmd().get(iii);
if ( tmpppp == "-h" if ( tmpppp == "-h"
|| tmpppp == "--help") { || tmpppp == "--help") {
APPL_PRINT(" -h/--help display this help"); APPL_PRINT(" -h/--help display this help");
APPL_PRINT(" --mesh=XXX Load this mesh file"); APPL_PRINT(" --mesh=XXX Load this mesh file");
APPL_PRINT(" --debug-normal Display normal"); APPL_PRINT(" --debug-normal Display normal");
APPL_PRINT(" --debug-AABB Display AABB box"); APPL_PRINT(" --debug-AABB Display AABB box");
APPL_PRINT(" --debug-shape Display Shape"); APPL_PRINT(" --debug-shape Display Shape");
exit(0); exit(0);
} else if (etk::start_with(tmpppp, "--mesh=") == true) { } else if (etk::start_with(tmpppp, "--mesh=") == true) {
etk::String fileName = &tmpppp[7]; etk::String fileName = &tmpppp[7];
basicWindows->setMeshName(fileName); basicWindows->setMeshName(fileName);
} else if (tmpppp == "--debug-normal") { } else if (tmpppp == "--debug-normal") {
basicWindows->setDebugNormal(); basicWindows->setDebugNormal();
} else if (tmpppp == "--debug-AABB") { } else if (tmpppp == "--debug-AABB") {
basicWindows->setDebugAABB(); basicWindows->setDebugAABB();
} else if (tmpppp == "--debug-shape") { } else if (tmpppp == "--debug-shape") {
basicWindows->setDebugShape(); basicWindows->setDebugShape();
}
} }
// create the specific windows
_context.setWindows(basicWindows);
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
} }
// create the specific windows
_context.setWindows(basicWindows); void onStart(ewol::Context& _context) override {
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)"); APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
} // nothing to do ...
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
void onStart(ewol::Context& _context) override { }
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)"); void onStop(ewol::Context& _context) override {
// nothing to do ... APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
APPL_INFO("==> START ... " PROJECT_NAME " (END)"); // nothing to do ...
} APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
void onStop(ewol::Context& _context) override { }
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)"); };
// 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...). * @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
* @param std IO * @param std IO
@ -77,7 +77,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

@ -17,44 +17,44 @@
#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 {
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)"); APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) { for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
etk::String tmpppp = _context.getCmd().get(iii); etk::String tmpppp = _context.getCmd().get(iii);
if ( tmpppp == "-h" if ( tmpppp == "-h"
|| tmpppp == "--help") { || tmpppp == "--help") {
APPL_INFO(" -h/--help display this help" ); APPL_INFO(" -h/--help display this help" );
exit(0); exit(0);
}
} }
// TODO : Remove this : Move if in the windows properties
_context.setSize(vec2(800, 600));
// select internal data for font ...
_context.getFontDefault().setUseExternal(true);
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
// create the specific windows
_context.setWindows(basicWindows);
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
} }
// TODO : Remove this : Move if in the windows properties
_context.setSize(vec2(800, 600));
// select internal data for font ... void onStart(ewol::Context& _context) override {
_context.getFontDefault().setUseExternal(true); APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19); // nothing to do ...
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create(); }
// create the specific windows void onStop(ewol::Context& _context) override {
_context.setWindows(basicWindows); APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)"); // nothing to do ...
} APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
}
void onStart(ewol::Context& _context) override { };
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)"); }
// nothing to do ...
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
}
void onStop(ewol::Context& _context) override {
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
// 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...). * @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
* @param std IO * @param std IO
@ -62,7 +62,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

@ -17,44 +17,44 @@
#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 {
APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)"); APPL_INFO(" == > CREATE ... " << PROJECT_NAME << " v" << APPL_VERSION << " (START) [" << gale::getBoardType() << "] (" << gale::getCompilationMode() << ") (BEGIN)");
for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) { for( int32_t iii=0 ; iii<_context.getCmd().size(); iii++) {
etk::String tmpppp = _context.getCmd().get(iii); etk::String tmpppp = _context.getCmd().get(iii);
if ( tmpppp == "-h" if ( tmpppp == "-h"
|| tmpppp == "--help") { || tmpppp == "--help") {
APPL_INFO(" -h/--help display this help" ); APPL_INFO(" -h/--help display this help" );
exit(0); exit(0);
}
} }
// TODO : Remove this : Move if in the windows properties
_context.setSize(vec2(800, 600));
// select internal data for font ...
_context.getFontDefault().setUseExternal(true);
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19);
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create();
// create the specific windows
_context.setWindows(basicWindows);
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)");
} }
// TODO : Remove this : Move if in the windows properties
_context.setSize(vec2(800, 600));
// select internal data for font ... void onStart(ewol::Context& _context) override {
_context.getFontDefault().setUseExternal(true); APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)");
_context.getFontDefault().set("FreeSerif;DejaVuSansMono", 19); // nothing to do ...
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
ememory::SharedPtr<ewol::widget::Windows> basicWindows = appl::Windows::create(); }
// create the specific windows void onStop(ewol::Context& _context) override {
_context.setWindows(basicWindows); APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
APPL_INFO("==> CREATE ... " PROJECT_NAME " (END)"); // nothing to do ...
} APPL_INFO("==> STOP ... " PROJECT_NAME " (END)");
}
void onStart(ewol::Context& _context) override { };
APPL_INFO("==> START ... " PROJECT_NAME " (BEGIN)"); }
// nothing to do ...
APPL_INFO("==> START ... " PROJECT_NAME " (END)");
}
void onStop(ewol::Context& _context) override {
APPL_INFO("==> STOP ... " PROJECT_NAME " (START)");
// 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...). * @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
* @param std IO * @param std IO
@ -62,7 +62,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);
} }