+ Toolkit::TableView elementCountTableView = Toolkit::TableView::New( 1, 3 );
+ elementCountTableView.SetCellPadding( Vector2( 6.0f, 0.0f ) );
+ elementCountTableView.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::BOTTOM_LEFT );
+ elementCountTableView.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::BOTTOM_LEFT );
+ elementCountTableView.SetFitHeight( 0 );
+ elementCountTableView.SetFitWidth( 0 );
+ elementCountTableView.SetFitWidth( 1 );
+ elementCountTableView.SetFitWidth( 2 );
+ mMinusButton = Toolkit::PushButton::New();
+ mMinusButton.SetProperty( Toolkit::Button::Property::LABEL, "<<" );
+ mMinusButton.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
+ mMinusButton.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER_LEFT );
+
+ Toolkit::PushButton mPlusButton = Toolkit::PushButton::New();
+ mPlusButton.SetProperty( Toolkit::Button::Property::LABEL, ">>" );
+ mPlusButton.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::TOP_LEFT );
+ mPlusButton.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::CENTER_RIGHT );
+
+ mMinusButton.ClickedSignal().Connect( this, &ExampleController::OnButtonClicked );
+ mPlusButton.ClickedSignal().Connect( this, &ExampleController::OnButtonClicked );
+
+ mIndicesCountLabel = Toolkit::TextLabel::New();
+ mIndicesCountLabel.SetProperty( Actor::Property::PARENT_ORIGIN, ParentOrigin::CENTER );
+ mIndicesCountLabel.SetProperty( Actor::Property::ANCHOR_POINT, AnchorPoint::TOP_LEFT );
+
+ std::stringstream str;
+ str << mCurrentIndexCount;
+ mIndicesCountLabel.SetProperty( Toolkit::TextLabel::Property::TEXT, str.str() );
+ mIndicesCountLabel.SetProperty( Toolkit::TextLabel::Property::TEXT_COLOR, Vector4( 1.0, 1.0, 1.0, 1.0 ) );
+ mIndicesCountLabel.SetProperty( Toolkit::TextLabel::Property::VERTICAL_ALIGNMENT, "BOTTOM");
+ mIndicesCountLabel.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::WIDTH );
+ mIndicesCountLabel.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT );
+
+ elementCountTableView.AddChild( mMinusButton, Toolkit::TableView::CellPosition( 0, 0 ) );
+ elementCountTableView.AddChild( mIndicesCountLabel, Toolkit::TableView::CellPosition( 0, 1 ) );
+ elementCountTableView.AddChild( mPlusButton, Toolkit::TableView::CellPosition( 0, 2 ) );
+
+ window.Add(modeSelectTableView);
+ window.Add(elementCountTableView);