[DEV] update new interface EWOL ewol::constext::Application
This commit is contained in:
parent
173e57342d
commit
55e05d24a3
@ -28,22 +28,11 @@
|
|||||||
#include <appl/ctags/readtags.h>
|
#include <appl/ctags/readtags.h>
|
||||||
#include <appl/globalMsg.h>
|
#include <appl/globalMsg.h>
|
||||||
|
|
||||||
/**
|
ewol::object::Shared<appl::BufferManager> bufferManager;
|
||||||
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
|
||||||
* @param std IO
|
|
||||||
* @return std IO
|
|
||||||
*/
|
|
||||||
int main(int _argc, const char *_argv[]) {
|
|
||||||
// only one things to do:
|
|
||||||
return ewol::run(_argc, _argv);
|
|
||||||
}
|
|
||||||
ewol::object::Shared<appl::BufferManager> bufferManager = NULL;
|
|
||||||
|
|
||||||
/**
|
class MainApplication : public ewol::context::Application {
|
||||||
* @brief main application function initialisation
|
public:
|
||||||
*/
|
bool init(ewol::Context& _context, size_t _initId) {
|
||||||
bool APP_Init(ewol::Context& _context, size_t _initId, size_t& _nbInitStep) {
|
|
||||||
_nbInitStep = 1;
|
|
||||||
APPL_INFO(" == > init APPL v" << APPL_VERSION << " (START) [" << ewol::getBoardType() << "] (" << ewol::getCompilationMode() << ")");
|
APPL_INFO(" == > init APPL v" << APPL_VERSION << " (START) [" << ewol::getBoardType() << "] (" << ewol::getCompilationMode() << ")");
|
||||||
|
|
||||||
etk::theme::setName("COLOR", "color/black/");
|
etk::theme::setName("COLOR", "color/black/");
|
||||||
@ -119,12 +108,7 @@ bool APP_Init(ewol::Context& _context, size_t _initId, size_t& _nbInitStep) {
|
|||||||
APPL_INFO(" == > init " PROJECT_NAME " (END)");
|
APPL_INFO(" == > init " PROJECT_NAME " (END)");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
void unInit(ewol::Context& _context) {
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief main application function Un-Initialisation
|
|
||||||
*/
|
|
||||||
void APP_UnInit(ewol::Context& _context) {
|
|
||||||
APPL_INFO(" == > Un-Init " PROJECT_NAME " (START)");
|
APPL_INFO(" == > Un-Init " PROJECT_NAME " (START)");
|
||||||
appl::textPluginManager::unInit();
|
appl::textPluginManager::unInit();
|
||||||
APPL_INFO("Stop Hightlight");
|
APPL_INFO("Stop Hightlight");
|
||||||
@ -133,4 +117,18 @@ void APP_UnInit(ewol::Context& _context) {
|
|||||||
bufferManager.reset();
|
bufferManager.reset();
|
||||||
APPL_INFO(" == > Un-Init " PROJECT_NAME " (END)");
|
APPL_INFO(" == > Un-Init " PROJECT_NAME " (END)");
|
||||||
}
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Main of the program (This can be set in every case, but it is not used in Andoid...).
|
||||||
|
* @param std IO
|
||||||
|
* @return std IO
|
||||||
|
*/
|
||||||
|
int main(int _argc, const char *_argv[]) {
|
||||||
|
// second possibility
|
||||||
|
return ewol::run(new MainApplication(), _argc, _argv);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user