- DEMO_IMAGE_DIR "gallery-medium-1.jpg",
- DEMO_IMAGE_DIR "gallery-medium-2.jpg",
- DEMO_IMAGE_DIR "gallery-medium-3.jpg",
- DEMO_IMAGE_DIR "gallery-medium-4.jpg",
- DEMO_IMAGE_DIR "gallery-medium-5.jpg",
- DEMO_IMAGE_DIR "gallery-medium-6.jpg",
- DEMO_IMAGE_DIR "gallery-medium-7.jpg",
- DEMO_IMAGE_DIR "gallery-medium-8.jpg",
- DEMO_IMAGE_DIR "gallery-medium-9.jpg",
- DEMO_IMAGE_DIR "gallery-medium-10.jpg",
- DEMO_IMAGE_DIR "gallery-medium-11.jpg",
- DEMO_IMAGE_DIR "gallery-medium-12.jpg",
- DEMO_IMAGE_DIR "gallery-medium-13.jpg",
- DEMO_IMAGE_DIR "gallery-medium-14.jpg",
- DEMO_IMAGE_DIR "gallery-medium-15.jpg",
- DEMO_IMAGE_DIR "gallery-medium-16.jpg",
- DEMO_IMAGE_DIR "gallery-medium-17.jpg",
- DEMO_IMAGE_DIR "gallery-medium-18.jpg",
- DEMO_IMAGE_DIR "gallery-medium-19.jpg",
- DEMO_IMAGE_DIR "gallery-medium-20.jpg",
- DEMO_IMAGE_DIR "gallery-medium-21.jpg",
- DEMO_IMAGE_DIR "gallery-medium-22.jpg",
- DEMO_IMAGE_DIR "gallery-medium-23.jpg",
- DEMO_IMAGE_DIR "gallery-medium-24.jpg",
- DEMO_IMAGE_DIR "gallery-medium-25.jpg",
- DEMO_IMAGE_DIR "gallery-medium-26.jpg",
- DEMO_IMAGE_DIR "gallery-medium-27.jpg",
- DEMO_IMAGE_DIR "gallery-medium-28.jpg",
- DEMO_IMAGE_DIR "gallery-medium-29.jpg",
- DEMO_IMAGE_DIR "gallery-medium-30.jpg",
- DEMO_IMAGE_DIR "gallery-medium-31.jpg",
- DEMO_IMAGE_DIR "gallery-medium-32.jpg",
- DEMO_IMAGE_DIR "gallery-medium-33.jpg",
- DEMO_IMAGE_DIR "gallery-medium-34.jpg",
- DEMO_IMAGE_DIR "gallery-medium-35.jpg",
- DEMO_IMAGE_DIR "gallery-medium-36.jpg",
- DEMO_IMAGE_DIR "gallery-medium-37.jpg",
- DEMO_IMAGE_DIR "gallery-medium-38.jpg",
- DEMO_IMAGE_DIR "gallery-medium-39.jpg",
- DEMO_IMAGE_DIR "gallery-medium-40.jpg",
- DEMO_IMAGE_DIR "gallery-medium-41.jpg",
- DEMO_IMAGE_DIR "gallery-medium-42.jpg",
- DEMO_IMAGE_DIR "gallery-medium-43.jpg",
- DEMO_IMAGE_DIR "gallery-medium-44.jpg",
- DEMO_IMAGE_DIR "gallery-medium-45.jpg",
- DEMO_IMAGE_DIR "gallery-medium-46.jpg",
- DEMO_IMAGE_DIR "gallery-medium-47.jpg",
- DEMO_IMAGE_DIR "gallery-medium-48.jpg",
- DEMO_IMAGE_DIR "gallery-medium-49.jpg",
- DEMO_IMAGE_DIR "gallery-medium-50.jpg",
- DEMO_IMAGE_DIR "gallery-medium-51.jpg",
- DEMO_IMAGE_DIR "gallery-medium-52.jpg",
- DEMO_IMAGE_DIR "gallery-medium-53.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-1.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-2.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-3.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-4.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-5.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-6.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-7.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-8.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-9.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-10.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-11.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-12.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-13.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-14.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-15.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-16.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-17.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-18.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-19.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-20.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-21.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-22.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-23.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-24.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-25.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-26.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-27.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-28.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-29.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-30.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-31.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-32.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-33.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-34.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-35.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-36.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-37.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-38.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-39.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-40.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-41.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-42.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-43.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-44.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-45.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-46.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-47.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-48.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-49.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-50.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-51.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-52.jpg",
+ DEMO_IMAGE_DIR "gallery-medium-53.jpg",
-const char* BACKGROUND_IMAGE( "" );
-const char* TOOLBAR_IMAGE( DEMO_IMAGE_DIR "top-bar.png" );
-const char* EDIT_IMAGE( DEMO_IMAGE_DIR "icon-edit.png" );
-const char* EDIT_IMAGE_SELECTED( DEMO_IMAGE_DIR "icon-edit-selected.png" );
-const char* SPIRAL_LAYOUT_IMAGE( DEMO_IMAGE_DIR "icon-item-view-layout-spiral.png" );
-const char* SPIRAL_LAYOUT_IMAGE_SELECTED( DEMO_IMAGE_DIR "icon-item-view-layout-spiral-selected.png" );
-const char* GRID_LAYOUT_IMAGE( DEMO_IMAGE_DIR "icon-item-view-layout-grid.png" );
-const char* GRID_LAYOUT_IMAGE_SELECTED( DEMO_IMAGE_DIR "icon-item-view-layout-grid-selected.png" );
-const char* DEPTH_LAYOUT_IMAGE( DEMO_IMAGE_DIR "icon-item-view-layout-depth.png" );
-const char* DEPTH_LAYOUT_IMAGE_SELECTED( DEMO_IMAGE_DIR "icon-item-view-layout-depth-selected.png" );
-const char* DELETE_IMAGE( DEMO_IMAGE_DIR "icon-delete.png" );
-const char* DELETE_IMAGE_SELECTED( DEMO_IMAGE_DIR "icon-delete-selected.png" );
-const char* REPLACE_IMAGE( DEMO_IMAGE_DIR "icon-replace.png" );
-const char* REPLACE_IMAGE_SELECTED( DEMO_IMAGE_DIR "icon-replace-selected.png" );
-const char* INSERT_IMAGE( DEMO_IMAGE_DIR "icon-insert.png" );
-const char* INSERT_IMAGE_SELECTED( DEMO_IMAGE_DIR "icon-insert-selected.png" );
-const char* SELECTED_IMAGE( DEMO_IMAGE_DIR "item-select-check.png" );
-const char* APPLICATION_TITLE( "ItemView" );
+const char* BACKGROUND_IMAGE("");
+const char* TOOLBAR_IMAGE(DEMO_IMAGE_DIR "top-bar.png");
+const char* EDIT_IMAGE(DEMO_IMAGE_DIR "icon-edit.png");
+const char* EDIT_IMAGE_SELECTED(DEMO_IMAGE_DIR "icon-edit-selected.png");
+const char* SPIRAL_LAYOUT_IMAGE(DEMO_IMAGE_DIR "icon-item-view-layout-spiral.png");
+const char* SPIRAL_LAYOUT_IMAGE_SELECTED(DEMO_IMAGE_DIR "icon-item-view-layout-spiral-selected.png");
+const char* GRID_LAYOUT_IMAGE(DEMO_IMAGE_DIR "icon-item-view-layout-grid.png");
+const char* GRID_LAYOUT_IMAGE_SELECTED(DEMO_IMAGE_DIR "icon-item-view-layout-grid-selected.png");
+const char* DEPTH_LAYOUT_IMAGE(DEMO_IMAGE_DIR "icon-item-view-layout-depth.png");
+const char* DEPTH_LAYOUT_IMAGE_SELECTED(DEMO_IMAGE_DIR "icon-item-view-layout-depth-selected.png");
+const char* DELETE_IMAGE(DEMO_IMAGE_DIR "icon-delete.png");
+const char* DELETE_IMAGE_SELECTED(DEMO_IMAGE_DIR "icon-delete-selected.png");
+const char* REPLACE_IMAGE(DEMO_IMAGE_DIR "icon-replace.png");
+const char* REPLACE_IMAGE_SELECTED(DEMO_IMAGE_DIR "icon-replace-selected.png");
+const char* INSERT_IMAGE(DEMO_IMAGE_DIR "icon-insert.png");
+const char* INSERT_IMAGE_SELECTED(DEMO_IMAGE_DIR "icon-insert-selected.png");
+const char* SELECTED_IMAGE(DEMO_IMAGE_DIR "item-select-check.png");
+const char* APPLICATION_TITLE("ItemView");
- mDeleteButton.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::BOTTOM_RIGHT);
- mDeleteButton.SetProperty( Actor::Property::ANCHOR_POINT,AnchorPoint::BOTTOM_RIGHT);
- mDeleteButton.SetPosition( BUTTON_BORDER, BUTTON_BORDER );
- mDeleteButton.SetDrawMode( DrawMode::OVERLAY_2D );
- mDeleteButton.SetProperty( Toolkit::Button::Property::UNSELECTED_BACKGROUND_VISUAL, DELETE_IMAGE );
- mDeleteButton.SetProperty( Toolkit::Button::Property::SELECTED_BACKGROUND_VISUAL, DELETE_IMAGE_SELECTED );
- mDeleteButton.SetProperty( Toolkit::Control::Property::BACKGROUND, TOOLBAR_IMAGE );
- mDeleteButton.SetSize( Vector2( stageSize.width * 0.15f, stageSize.width * 0.15f ) );
- mDeleteButton.ClickedSignal().Connect( this, &ItemViewExample::OnDeleteButtonClicked);
- mDeleteButton.SetProperty( Actor::Property::LEAVE_REQUIRED, true );
- mDeleteButton.SetProperty( Actor::Property::VISIBLE, false );
- stage.Add( mDeleteButton );
+ mDeleteButton.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::BOTTOM_RIGHT);
+ mDeleteButton.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::BOTTOM_RIGHT);
+ mDeleteButton.SetProperty(Actor::Property::POSITION, Vector2(BUTTON_BORDER, BUTTON_BORDER));
+ mDeleteButton.SetProperty(Actor::Property::DRAW_MODE, DrawMode::OVERLAY_2D);
+ mDeleteButton.SetProperty(Toolkit::Button::Property::UNSELECTED_BACKGROUND_VISUAL, DELETE_IMAGE);
+ mDeleteButton.SetProperty(Toolkit::Button::Property::SELECTED_BACKGROUND_VISUAL, DELETE_IMAGE_SELECTED);
+ mDeleteButton.SetProperty(Toolkit::Control::Property::BACKGROUND, TOOLBAR_IMAGE);
+ mDeleteButton.SetProperty(Actor::Property::SIZE, Vector2(windowSize.width * 0.15f, windowSize.width * 0.15f));
+ mDeleteButton.ClickedSignal().Connect(this, &ItemViewExample::OnDeleteButtonClicked);
+ mDeleteButton.SetProperty(Actor::Property::LEAVE_REQUIRED, true);
+ mDeleteButton.SetProperty(Actor::Property::VISIBLE, false);
+ window.Add(mDeleteButton);
- mInsertButton.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::BOTTOM_RIGHT);
- mInsertButton.SetProperty( Actor::Property::ANCHOR_POINT,AnchorPoint::BOTTOM_RIGHT);
- mInsertButton.SetPosition( BUTTON_BORDER, BUTTON_BORDER );
- mInsertButton.SetDrawMode( DrawMode::OVERLAY_2D );
- mInsertButton.SetProperty( Toolkit::Button::Property::UNSELECTED_BACKGROUND_VISUAL, INSERT_IMAGE );
- mInsertButton.SetProperty( Toolkit::Button::Property::SELECTED_BACKGROUND_VISUAL, INSERT_IMAGE_SELECTED );
- mInsertButton.SetProperty( Toolkit::Control::Property::BACKGROUND, TOOLBAR_IMAGE );
- mInsertButton.SetSize( stageSize.width * 0.15f, stageSize.width * 0.15f );
- mInsertButton.ClickedSignal().Connect( this, &ItemViewExample::OnInsertButtonClicked);
- mInsertButton.SetProperty( Actor::Property::LEAVE_REQUIRED, true );
- mInsertButton.SetProperty( Actor::Property::VISIBLE, false );
- stage.Add( mInsertButton );
+ mInsertButton.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::BOTTOM_RIGHT);
+ mInsertButton.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::BOTTOM_RIGHT);
+ mInsertButton.SetProperty(Actor::Property::POSITION, Vector2(BUTTON_BORDER, BUTTON_BORDER));
+ mInsertButton.SetProperty(Actor::Property::DRAW_MODE, DrawMode::OVERLAY_2D);
+ mInsertButton.SetProperty(Toolkit::Button::Property::UNSELECTED_BACKGROUND_VISUAL, INSERT_IMAGE);
+ mInsertButton.SetProperty(Toolkit::Button::Property::SELECTED_BACKGROUND_VISUAL, INSERT_IMAGE_SELECTED);
+ mInsertButton.SetProperty(Toolkit::Control::Property::BACKGROUND, TOOLBAR_IMAGE);
+ mInsertButton.SetProperty(Actor::Property::SIZE, Vector2(windowSize.width * 0.15f, windowSize.width * 0.15f));
+ mInsertButton.ClickedSignal().Connect(this, &ItemViewExample::OnInsertButtonClicked);
+ mInsertButton.SetProperty(Actor::Property::LEAVE_REQUIRED, true);
+ mInsertButton.SetProperty(Actor::Property::VISIBLE, false);
+ window.Add(mInsertButton);
- mReplaceButton.SetProperty( Actor::Property::PARENT_ORIGIN,ParentOrigin::BOTTOM_RIGHT);
- mReplaceButton.SetProperty( Actor::Property::ANCHOR_POINT,AnchorPoint::BOTTOM_RIGHT);
- mReplaceButton.SetPosition( BUTTON_BORDER, BUTTON_BORDER );
- mReplaceButton.SetDrawMode( DrawMode::OVERLAY_2D );
- mReplaceButton.SetProperty( Toolkit::Button::Property::UNSELECTED_BACKGROUND_VISUAL, REPLACE_IMAGE );
- mReplaceButton.SetProperty( Toolkit::Button::Property::SELECTED_BACKGROUND_VISUAL, REPLACE_IMAGE_SELECTED );
- mReplaceButton.SetProperty( Toolkit::Control::Property::BACKGROUND, TOOLBAR_IMAGE );
- mReplaceButton.SetSize( stageSize.width * 0.15f, stageSize.width * 0.15f );
- mReplaceButton.ClickedSignal().Connect( this, &ItemViewExample::OnReplaceButtonClicked);
- mReplaceButton.SetProperty( Actor::Property::LEAVE_REQUIRED, true );
- mReplaceButton.SetProperty( Actor::Property::VISIBLE, false );
- stage.Add( mReplaceButton );
+ mReplaceButton.SetProperty(Actor::Property::PARENT_ORIGIN, ParentOrigin::BOTTOM_RIGHT);
+ mReplaceButton.SetProperty(Actor::Property::ANCHOR_POINT, AnchorPoint::BOTTOM_RIGHT);
+ mReplaceButton.SetProperty(Actor::Property::POSITION, Vector2(BUTTON_BORDER, BUTTON_BORDER));
+ mReplaceButton.SetProperty(Actor::Property::DRAW_MODE, DrawMode::OVERLAY_2D);
+ mReplaceButton.SetProperty(Toolkit::Button::Property::UNSELECTED_BACKGROUND_VISUAL, REPLACE_IMAGE);
+ mReplaceButton.SetProperty(Toolkit::Button::Property::SELECTED_BACKGROUND_VISUAL, REPLACE_IMAGE_SELECTED);
+ mReplaceButton.SetProperty(Toolkit::Control::Property::BACKGROUND, TOOLBAR_IMAGE);
+ mReplaceButton.SetProperty(Actor::Property::SIZE, Vector2(windowSize.width * 0.15f, windowSize.width * 0.15f));
+ mReplaceButton.ClickedSignal().Connect(this, &ItemViewExample::OnReplaceButtonClicked);
+ mReplaceButton.SetProperty(Actor::Property::LEAVE_REQUIRED, true);
+ mReplaceButton.SetProperty(Actor::Property::VISIBLE, false);
+ window.Add(mReplaceButton);