-#ifndef __DALI_DEMO_GRID_FLAGS_H_
-#define __DALI_DEMO_GRID_FLAGS_H_
+#ifndef DALI_DEMO_GRID_FLAGS_H
+#define DALI_DEMO_GRID_FLAGS_H
/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
*
unsigned mHighestUsedRow;
};
-} /* namespace Demo */
-} /* namespace Dali */
+} // namespace Demo
-#endif /* __DALI_DEMO_GRID_FLAGS_H_ */
+} // namespace Dali
+
+#endif // DALI_DEMO_GRID_FLAGS_H
class ImageViewUrlApp : public ConnectionTracker
{
public:
- ImageViewUrlApp( Application& application )
+ ImageViewUrlApp( Application& application, std::string url )
: mApplication( application ),
+ mUrl( url ),
mDeltaPropertyIndex( Property::INVALID_INDEX )
{
// Connect to the Application's Init signal
Toolkit::Alignment::HorizontalRight,
DemoHelper::DEFAULT_MODE_SWITCH_PADDING );
- CreateRenderTask( );
+ std::string url = mUrl;
+ if( url.empty() )
+ {
+ url = BIG_TEST_IMAGE;
+ }
+
+ CreateRenderTask( url );
CreateScene( );
}
- void CreateRenderTask()
+ void CreateRenderTask( const std::string& url )
{
auto rootActor = Stage::GetCurrent().GetRootLayer();
{
// create actor to render input with applied shader
- mActorForInput = Toolkit::ImageView::New(BIG_TEST_IMAGE);
+ mActorForInput = Toolkit::ImageView::New( url );
mActorForInput.SetParentOrigin(ParentOrigin::CENTER);
mActorForInput.SetSize(TARGET_SIZE);
Property::Map customShader;
private:
Application& mApplication;
+ std::string mUrl;
Layer mContent;
Toolkit::ImageView mImageView;
Animation mAnimation;
int DALI_EXPORT_API main( int argc, char **argv )
{
Application application = Application::New( &argc, &argv );
- ImageViewUrlApp test( application );
+
+ std::string url;
+ if( argc > 1 )
+ {
+ url = argv[1];
+ }
+
+ ImageViewUrlApp test( application, url );
application.MainLoop();
return 0;
}
-#ifndef __DALI_DEMO_EMOJI_STRINGS_H__
-#define __DALI_DEMO_EMOJI_STRINGS_H__
+#ifndef DALI_DEMO_EMOJI_STRINGS_H
+#define DALI_DEMO_EMOJI_STRINGS_H
/*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
} // EmojiStrings
-#endif // __DALI_DEMO_EMOJI_STRINGS_H__
+#endif // DALI_DEMO_EMOJI_STRINGS_H
Name: com.samsung.dali-demo
Summary: The OpenGLES Canvas Core Demo
-Version: 1.4.19
+Version: 1.4.22
Release: 1
Group: System/Libraries
License: Apache-2.0
-#ifndef __DALI_DEMO_MULTI_LANGUAGE_STRINGS_H__
-#define __DALI_DEMO_MULTI_LANGUAGE_STRINGS_H__
+#ifndef DALI_DEMO_MULTI_LANGUAGE_STRINGS_H
+#define DALI_DEMO_MULTI_LANGUAGE_STRINGS_H
/*
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
} // MultiLanguageStrings
-#endif // __DALI_DEMO_MULTI_LANGUAGE_STRINGS_H__
+#endif // DALI_DEMO_MULTI_LANGUAGE_STRINGS_H
-#ifndef __DALI_DEMO_HELPER_VIEW_H__
-#define __DALI_DEMO_HELPER_VIEW_H__
+#ifndef DALI_DEMO_HELPER_VIEW_H
+#define DALI_DEMO_HELPER_VIEW_H
/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd.
} // DemoHelper
-#endif // __DALI_DEMO_HELPER_VIEW_H__
+#endif // DALI_DEMO_HELPER_VIEW_H