#include <sys/stat.h>
#include <dali/integration-api/debug.h>
+// INTERNAL INCLUDES
+#include "shared/view.h"
using namespace Dali;
+using namespace Dali::Toolkit;
#define TOKEN_STRING(x) #x
mJSONFileName(layoutFileName ),
mJavaScriptFileName( scriptFileName )
{
-
mApplication.InitSignal().Connect( this, &Launcher::Create );
}
void Launcher::Create( Dali::Application& application )
{
- TextActor textActor = TextActor::New( "JSON & JavaScript Launcher..." );
+ TextLabel textActor = TextLabel::New( "JSON & JavaScript Launcher..." );
// Reposition the actor
textActor.SetParentOrigin( ParentOrigin::TOP_LEFT );
mBuilder = Toolkit::Builder::New();
Property::Map defaultDirs;
- defaultDirs[ TOKEN_STRING(DALI_IMAGE_DIR) ] = DALI_IMAGE_DIR;
- defaultDirs[ TOKEN_STRING(DALI_MODEL_DIR) ] = DALI_MODEL_DIR;
- defaultDirs[ TOKEN_STRING(DALI_SCRIPT_DIR) ] = DALI_SCRIPT_DIR;
+ defaultDirs[ TOKEN_STRING(DEMO_IMAGE_DIR) ] = DEMO_IMAGE_DIR;
+ defaultDirs[ TOKEN_STRING(DEMO_MODEL_DIR) ] = DEMO_MODEL_DIR;
+ defaultDirs[ TOKEN_STRING(DEMO_SCRIPT_DIR) ] = DEMO_SCRIPT_DIR;
mBuilder.AddConstants( defaultDirs );
std::string json_data(GetFileContents( mJSONFileName ));