textdomain(DALI_DEMO_DOMAIN_LOCAL);
setlocale(LC_ALL, DALI_LANG);
- Application app = Application::New(&argc, &argv);
+ Application app = Application::New(&argc, &argv, DALI_DEMO_THEME_PATH);
// Create the demo launcher
DaliTableView demo(app);
void DaliTableView::Initialize( Application& application )
{
- DemoHelper::RequestThemeChange();
-
Stage::GetCurrent().KeyEventSignal().Connect( this, &DaliTableView::OnKeyEvent );
const Vector2 stageSize = Stage::GetCurrent().GetSize();
// The Init signal is received once (only) during the Application lifetime
void Create( Application& application )
{
- DemoHelper::RequestThemeChange();
-
// Get a handle to the stage
Stage stage = Stage::GetCurrent();
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
RunTest( application );
return 0;
//
int main( int argc, char **argv )
{
- gApplication = Application::New( &argc, &argv );
+ gApplication = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
RunTest( gApplication );
*/
void Create(Application& application)
{
- DemoHelper::RequestThemeChange();
-
Stage::GetCurrent().KeyEventSignal().Connect(this, &ExampleController::OnKeyEvent);
// Creates a default view with a default tool bar.
int main(int argc, char **argv)
{
- Application app = Application::New(&argc, &argv);
+ Application app = Application::New(&argc, &argv, DALI_DEMO_THEME_PATH);
RunTest(app);
// The Init signal is received once (only) during the Application lifetime
void Create(Application& app)
{
- DemoHelper::RequestThemeChange();
-
Stage stage = Stage::GetCurrent();
Vector2 stageSize = stage.GetSize();
int
main(int argc, char **argv)
{
- Application app = Application::New(&argc, &argv);
+ Application app = Application::New(&argc, &argv, DALI_DEMO_THEME_PATH);
RunTest(app);
void Create(Application& app)
{
- DemoHelper::RequestThemeChange();
-
Stage stage = Stage::GetCurrent();
Stage::GetCurrent().KeyEventSignal().Connect(this, &ExampleApp::OnKeyEvent);
}
}
- Application app = Application::New(&argc, &argv);
+ Application app = Application::New(&argc, &argv, DALI_DEMO_THEME_PATH);
ExampleApp dali_app(app);
{
// The Init signal is received once (only) during the Application lifetime
- DemoHelper::RequestThemeChange();
-
// Respond to key events
Stage::GetCurrent().KeyEventSignal().Connect(this, &ButtonsController::OnKeyEvent);
//
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
RunTest( application );
*/
void Create(Application& application)
{
- DemoHelper::RequestThemeChange();
-
Stage::GetCurrent().KeyEventSignal().Connect(this, &ClusterController::OnKeyEvent);
// The Init signal is received once (only) during the Application lifetime
//
int main(int argc, char **argv)
{
- Application app = Application::New(&argc, &argv);
+ Application app = Application::New(&argc, &argv, DALI_DEMO_THEME_PATH);
RunTest(app);
void CubeTransitionApp::OnInit( Application& application )
{
- DemoHelper::RequestThemeChange();
-
Stage::GetCurrent().KeyEventSignal().Connect(this, &CubeTransitionApp::OnKeyEvent);
// Creates a default view with a default tool bar, the view is added to the stage.
// Entry point for Linux & Tizen applications
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
CubeTransitionApp test( application );
application.MainLoop();
void DissolveEffectApp::OnInit( Application& application )
{
- DemoHelper::RequestThemeChange();
-
Stage::GetCurrent().KeyEventSignal().Connect(this, &DissolveEffectApp::OnKeyEvent);
// Creates a default view with a default tool bar, the view is added to the stage.
// Entry point for Linux & Tizen applications
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
DissolveEffectApp test( application );
application.MainLoop();
// The Init signal is received once (only) during the Application lifetime
void Create( Application& application )
{
- // Apply the default theme:
- DemoHelper::RequestThemeChange();
-
// Get a handle to the stage
Stage stage = Stage::GetCurrent();
// Entry point for Linux & Tizen applications
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
RunTest( application );
{
std::cout << "ImageScalingIrregularGridController::Create" << std::endl;
- DemoHelper::RequestThemeChange();
-
// Get a handle to the stage:
Stage stage = Stage::GetCurrent();
/** Entry point for Linux & Tizen applications */
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
RunTest( application );
*/
void OnInit(Application& app)
{
- DemoHelper::RequestThemeChange();
-
Stage stage = Dali::Stage::GetCurrent();
stage.KeyEventSignal().Connect(this, &ItemViewExample::OnKeyEvent);
int main(int argc, char **argv)
{
- Application app = Application::New(&argc, &argv);
+ Application app = Application::New(&argc, &argv, DALI_DEMO_THEME_PATH);
RunTest(app);
{
// The Init signal is received once (only) during the Application lifetime
- DemoHelper::RequestThemeChange();
-
mCurrentLogger = 0;
mPerformanceLoggers.reserve( NUM_LOGGERS );
mPerformanceLoggers.resize( NUM_LOGGERS );
//
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
RunTest( application );
*/
void Create( Application& application )
{
- DemoHelper::RequestThemeChange();
-
Stage::GetCurrent().KeyEventSignal().Connect(this, &ExampleController::OnKeyEvent);
mStageSize = Stage::GetCurrent().GetSize();
//
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
RunTest( application );
//
int main(int argc, char **argv)
{
- Application app = Application::New(&argc, &argv);
+ Application app = Application::New(&argc, &argv, DALI_DEMO_THEME_PATH);
RunTest(app);
{
// The Init signal is received once (only) during the Application lifetime
- DemoHelper::RequestThemeChange();
-
Stage::GetCurrent().KeyEventSignal().Connect(this, &MotionStretchExampleApp::OnKeyEvent);
// Creates a default view with a default tool bar.
//
int main(int argc, char **argv)
{
- Application app = Application::New(&argc, &argv);
+ Application app = Application::New(&argc, &argv, DALI_DEMO_THEME_PATH);
RunTest(app);
void NewWindowController::Create( Application& app )
{
- DemoHelper::RequestThemeChange();
-
Stage stage = Stage::GetCurrent();
stage.SetBackgroundColor(Color::YELLOW);
int main(int argc, char **argv)
{
- gApplication = Application::New(&argc, &argv);
+ gApplication = Application::New(&argc, &argv, DALI_DEMO_THEME_PATH);
RunTest(gApplication);
return 0;
{
// The Init signal is received once ( only ) during the Application lifetime
- DemoHelper::RequestThemeChange();
-
Stage::GetCurrent().KeyEventSignal().Connect(this, &PageTurnController::OnKeyEvent);
Stage stage = Stage::GetCurrent();
// Entry point for applications
int main( int argc, char **argv )
{
- Application app = Application::New(&argc, &argv);
+ Application app = Application::New(&argc, &argv, DALI_DEMO_THEME_PATH);
PageTurnController test ( app );
app.MainLoop();
*/
void Create( Application& application )
{
- DemoHelper::RequestThemeChange();
-
// Get a handle to the stage:
Stage stage = Stage::GetCurrent();
/** Entry point for Linux & Tizen applications */
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
RunTest( application );
void RadialMenuExample::OnInit(Application& app)
{
- DemoHelper::RequestThemeChange();
-
Stage stage = Dali::Stage::GetCurrent();
// The Init signal is received once (only) during the Application lifetime
// Entry point for Linux & Tizen applications
int main(int argc, char **argv)
{
- Application app = Application::New(&argc, &argv);
+ Application app = Application::New(&argc, &argv, DALI_DEMO_THEME_PATH);
RunTest(app);
// The Init signal is received once (only) during the Application lifetime
void Create(Application& application)
{
- DemoHelper::RequestThemeChange();
-
Stage stage = Stage::GetCurrent();
mStageHalfSize = stage.GetSize() * 0.5f;
int
main(int argc, char **argv)
{
- Application app = Application::New(&argc, &argv);
+ Application app = Application::New(&argc, &argv, DALI_DEMO_THEME_PATH);
RunTest(app);
mJSONFileName(layoutFileName ),
mJavaScriptFileName( scriptFileName )
{
-
mApplication.InitSignal().Connect( this, &Launcher::Create );
}
void Launcher::Create( Dali::Application& application )
{
- DemoHelper::RequestThemeChange();
-
TextLabel textActor = TextLabel::New( "JSON & JavaScript Launcher..." );
// Reposition the actor
}
- Launcher daliApplication( Dali::Application::New( &argc, &argv ), jSONFileName, javaScriptFileName );
+ Launcher daliApplication( Dali::Application::New( &argc, &argv, DALI_DEMO_THEME_PATH ), jSONFileName, javaScriptFileName );
daliApplication.MainLoop();
*/
void OnInit(Application& app)
{
- DemoHelper::RequestThemeChange();
-
Stage stage = Dali::Stage::GetCurrent();
stage.KeyEventSignal().Connect(this, &ExampleController::OnKeyEvent);
int main(int argc, char **argv)
{
- Application app = Application::New(&argc, &argv);
+ Application app = Application::New(&argc, &argv, DALI_DEMO_THEME_PATH);
ExampleController test(app);
app.MainLoop();
return 0;
*/
void Create(Application& app)
{
- DemoHelper::RequestThemeChange();
-
srand(0); // Want repeatable path
Stage::GetCurrent().KeyEventSignal().Connect(this, &TestApp::OnKeyEvent);
int
main(int argc, char **argv)
{
- Application app = Application::New(&argc, &argv);
+ Application app = Application::New(&argc, &argv, DALI_DEMO_THEME_PATH);
RunTest(app);
{
// The Init signal is received once (only) during the Application lifetime
- DemoHelper::RequestThemeChange();
-
Stage stage = Stage::GetCurrent();
// Respond to key events
//
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
RunTest( application );
*/
void Create( Application& application )
{
- DemoHelper::RequestThemeChange();
-
Stage stage = Stage::GetCurrent();
mTapGestureDetector = TapGestureDetector::New();
/** Entry point for Linux & Tizen applications */
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
RunTest( application );
//
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
RunTest( application );
*/
void Create( Application& application )
{
- DemoHelper::RequestThemeChange();
-
Stage stage = Stage::GetCurrent();
stage.KeyEventSignal().Connect(this, &TextLabelMultiLanguageExample::OnKeyEvent);
/** Entry point for Linux & Tizen applications */
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
RunTest( application );
*/
void Create( Application& application )
{
- DemoHelper::RequestThemeChange();
-
Stage stage = Stage::GetCurrent();
stage.KeyEventSignal().Connect(this, &TextLabelExample::OnKeyEvent);
/** Entry point for Linux & Tizen applications */
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
RunTest( application );
/** Entry point for Linux & Tizen applications */
int main( int argc, char **argv )
{
- Application application = Application::New( &argc, &argv );
+ Application application = Application::New( &argc, &argv, DALI_DEMO_THEME_PATH );
RunTest( application );
const Dali::Toolkit::Alignment::Padding DEFAULT_PLAY_PADDING(12.0f, 12.0f, 12.0f, 12.0f);
const Dali::Toolkit::Alignment::Padding DEFAULT_MODE_SWITCH_PADDING(8.0f, 8.0f, 8.0f, 8.0f);
-void RequestThemeChange()
-{
- // Provide the stylesheet
- Dali::Toolkit::StyleManager styleManager = Dali::Toolkit::StyleManager::Get();
- styleManager.RequestThemeChange( DALI_DEMO_THEME_PATH );
-}
-
float ScalePointSize(int pointSize)
{
Dali::Vector2 dpi = Dali::Stage::GetCurrent().GetDpi();