try error
This commit is contained in:
parent
102e11b74a
commit
fda95289bd
@ -3,7 +3,8 @@
|
|||||||
package="com.heeroyui.ednpackage"
|
package="com.heeroyui.ednpackage"
|
||||||
android:versionCode="1"
|
android:versionCode="1"
|
||||||
android:versionName="1.0">
|
android:versionName="1.0">
|
||||||
<application android:label="Edn">
|
<application android:label="Edn"
|
||||||
|
android:icon="@drawable/ic_luncher_edn">
|
||||||
<!--android:hasCode="false"-->
|
<!--android:hasCode="false"-->
|
||||||
<!-- classpath-->
|
<!-- classpath-->
|
||||||
<activity android:name=".edn"
|
<activity android:name=".edn"
|
||||||
|
@ -70,32 +70,36 @@ void APP_Init(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
ewol::SetFontFolder("Font");
|
ewol::SetFontFolder("Font");
|
||||||
#ifdef EWOL_USE_FREE_TYPE
|
//ewol::SetDefaultFont("freefont/FreeMono.ttf", 12);
|
||||||
ewol::SetDefaultFont("freefont/FreeMono.ttf", 12);
|
//ewol::SetDefaultFont("freefont/FreeMonoBold.ttf", 12);
|
||||||
//ewol::SetDefaultFont("freefont/FreeMonoBold.ttf", 12);
|
//ewol::SetDefaultFont("ACharmingFont.ttf", 45);
|
||||||
//ewol::SetDefaultFont("ACharmingFont.ttf", 45);
|
//ewol::SetDefaultFont("Monospace/Monospace", 40);
|
||||||
//ewol::SetDefaultFont("Monospace/Monospace", 40);
|
//ewol::SetDefaultFont("unispace.ttf", 12);
|
||||||
//ewol::SetDefaultFont("unispace.ttf", 12);
|
|
||||||
#else
|
|
||||||
//ewol::SetDefaultFont("ebtfont/Monospace", 14);
|
EDN_DEBUG("TEST1");
|
||||||
ewol::SetDefaultFont("ebtfont/Monospace", 22);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// init internal global value
|
// init internal global value
|
||||||
globals::init();
|
globals::init();
|
||||||
|
EDN_DEBUG("TEST2");
|
||||||
ClipBoard::Init();
|
ClipBoard::Init();
|
||||||
|
|
||||||
|
EDN_DEBUG("TEST3");
|
||||||
|
|
||||||
// init ALL Singleton :
|
// init ALL Singleton :
|
||||||
(void)MsgBroadcastCore::getInstance();
|
(void)MsgBroadcastCore::getInstance();
|
||||||
|
EDN_DEBUG("TEST4");
|
||||||
//(void)AccelKey::getInstance();
|
//(void)AccelKey::getInstance();
|
||||||
(void)WindowsManager::getInstance();
|
(void)WindowsManager::getInstance();
|
||||||
|
EDN_DEBUG("TEST5");
|
||||||
(void)CTagsManager::getInstance();
|
(void)CTagsManager::getInstance();
|
||||||
|
EDN_DEBUG("TEST6");
|
||||||
BufferManager *myBufferManager = BufferManager::getInstance();
|
BufferManager *myBufferManager = BufferManager::getInstance();
|
||||||
|
EDN_DEBUG("TEST7");
|
||||||
|
|
||||||
// set color and other trucs...
|
// set color and other trucs...
|
||||||
ColorizeManager *myColorManager = NULL;
|
ColorizeManager *myColorManager = NULL;
|
||||||
myColorManager = ColorizeManager::getInstance();
|
myColorManager = ColorizeManager::getInstance();
|
||||||
|
EDN_DEBUG("TEST8");
|
||||||
etk::String homedir;
|
etk::String homedir;
|
||||||
//homedir = getenv("HOME");
|
//homedir = getenv("HOME");
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
@ -106,14 +110,19 @@ void APP_Init(int argc, char *argv[])
|
|||||||
//homedir += "color_black.xml";
|
//homedir += "color_black.xml";
|
||||||
homedir = "color_white.xml";
|
homedir = "color_white.xml";
|
||||||
myColorManager->LoadFile( homedir.c_str() );
|
myColorManager->LoadFile( homedir.c_str() );
|
||||||
|
EDN_DEBUG("TEST9");
|
||||||
myColorManager->DisplayListOfColor();
|
myColorManager->DisplayListOfColor();
|
||||||
|
EDN_DEBUG("TEST10");
|
||||||
|
|
||||||
HighlightManager *myHighlightManager = NULL;
|
HighlightManager *myHighlightManager = NULL;
|
||||||
myHighlightManager = HighlightManager::getInstance();
|
myHighlightManager = HighlightManager::getInstance();
|
||||||
|
EDN_DEBUG("TEST11");
|
||||||
myHighlightManager->loadLanguages();
|
myHighlightManager->loadLanguages();
|
||||||
|
EDN_DEBUG("TEST12");
|
||||||
|
|
||||||
// open display
|
// open display
|
||||||
MsgBroadcastCore::getInstance()->SendMessage(NULL, EDN_MSG__GUI_SHOW_MAIN_WINDOWS);
|
MsgBroadcastCore::getInstance()->SendMessage(NULL, EDN_MSG__GUI_SHOW_MAIN_WINDOWS);
|
||||||
|
EDN_DEBUG("TEST13");
|
||||||
|
|
||||||
// get the curent program folder
|
// get the curent program folder
|
||||||
char cCurrentPath[FILENAME_MAX];
|
char cCurrentPath[FILENAME_MAX];
|
||||||
@ -123,10 +132,14 @@ void APP_Init(int argc, char *argv[])
|
|||||||
cCurrentPath[FILENAME_MAX - 1] = '\0';
|
cCurrentPath[FILENAME_MAX - 1] = '\0';
|
||||||
//EDN_INFO("The current working directory is " << cCurrentPath);
|
//EDN_INFO("The current working directory is " << cCurrentPath);
|
||||||
|
|
||||||
|
EDN_DEBUG("TEST14");
|
||||||
basicWindows = new MainWindows();
|
basicWindows = new MainWindows();
|
||||||
|
|
||||||
|
EDN_DEBUG("TEST15");
|
||||||
|
|
||||||
// add files
|
// add files
|
||||||
EDN_INFO("show list of files : ");
|
EDN_INFO("show list of files : ");
|
||||||
|
/*
|
||||||
for( int32_t i=1 ; i<argc; i++) {
|
for( int32_t i=1 ; i<argc; i++) {
|
||||||
EDN_INFO("need load file : \"" << argv[i] << "\"" );
|
EDN_INFO("need load file : \"" << argv[i] << "\"" );
|
||||||
etk::File myfile((char *)argv[i], etk::FILE_TYPE_DIRECT);
|
etk::File myfile((char *)argv[i], etk::FILE_TYPE_DIRECT);
|
||||||
@ -136,7 +149,9 @@ void APP_Init(int argc, char *argv[])
|
|||||||
MsgBroadcastCore::getInstance()->SendMessage(NULL, EDN_MSG__CURRENT_CHANGE_BUFFER_ID, idBuffOpened);
|
MsgBroadcastCore::getInstance()->SendMessage(NULL, EDN_MSG__CURRENT_CHANGE_BUFFER_ID, idBuffOpened);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
|
EDN_DEBUG("TEST16");
|
||||||
/*
|
/*
|
||||||
{
|
{
|
||||||
etk::File myfile((char *)"licence.txt", etk::FILE_TYPE_DIRECT);
|
etk::File myfile((char *)"licence.txt", etk::FILE_TYPE_DIRECT);
|
||||||
@ -150,9 +165,11 @@ void APP_Init(int argc, char *argv[])
|
|||||||
EDN_ERROR("Can not allocate the basic windows");
|
EDN_ERROR("Can not allocate the basic windows");
|
||||||
ewol::Stop();
|
ewol::Stop();
|
||||||
}
|
}
|
||||||
|
EDN_DEBUG("TEST17");
|
||||||
|
|
||||||
// create the specific windows
|
// create the specific windows
|
||||||
ewol::DisplayWindows(basicWindows);
|
ewol::DisplayWindows(basicWindows);
|
||||||
|
EDN_DEBUG("TEST18");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user