Change-Id: I00f7d809e7f0b409813420e0fda539a64d0659de
Stage stage = Stage::GetCurrent();
builder = Builder::New();
+ builder.QuitSignal().Connect( this, &ExampleApp::OnBuilderQuit );
PropertyValueMap defaultDirs;
defaultDirs[ TOKEN_STRING(DALI_IMAGE_DIR) ] = DALI_IMAGE_DIR;
}
}
+ void OnBuilderQuit()
+ {
+ mApp.Quit();
+ }
+
Builder mBuilder;
};
Stage stage = Stage::GetCurrent();
builder = Builder::New();
+ builder.QuitSignal().Connect( this, &ExampleApp::OnBuilderQuit );
PropertyValueMap defaultDirs;
defaultDirs[ TOKEN_STRING(DALI_IMAGE_DIR) ] = DALI_IMAGE_DIR;
}
}
+ /**
+ * Event handler when Builder wants to quit (we only want to close the shown json unless we're at the top-level)
+ */
+ void OnBuilderQuit()
+ {
+ if ( mItemView.IsVisible() )
+ {
+ mApp.Quit();
+ }
+ else
+ {
+ EnterSelection();
+ }
+ }
+
private:
Application& mApp;