// Create select button
mUpdateButton = Toolkit::PushButton::New();
- mUpdateButton.SetLabelText( "Select" );
+ mUpdateButton.SetProperty( Toolkit::Button::Property::LABEL, "Select" );
mUpdateButton.SetName( "selectButton" );
mUpdateButton.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS );
{
mCheckboxButton1 = Toolkit::CheckBoxButton::New();
mCheckboxButton1.SetName( "checkbox1" );
- mCheckboxButton1.SetLabelText( "CheckBox1 is unselected" );
+ mCheckboxButton1.SetProperty( Toolkit::Button::Property::LABEL, "CheckBox1 is unselected" );
mCheckboxButton1.StateChangedSignal().Connect( this, &ButtonsController::OnCheckBoxesSelected );
mCheckboxButton1.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
{
mCheckboxButton2 = Toolkit::CheckBoxButton::New();
mCheckboxButton2.SetName( "checkbox2" );
- mCheckboxButton2.SetLabelText( "CheckBox2 is selected" );
+ mCheckboxButton2.SetProperty( Toolkit::Button::Property::LABEL, "CheckBox2 is selected" );
mCheckboxButton2.SetProperty( Toolkit::Button::Property::SELECTED, true );
-
mCheckboxButton2.StateChangedSignal().Connect( this, &ButtonsController::OnCheckBoxesSelected );
mCheckboxButton2.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
{
mCheckboxButton3 = Toolkit::CheckBoxButton::New();
mCheckboxButton3.SetName( "checkbox3" );
- mCheckboxButton3.SetLabelText( "CheckBox3 is unselected" );
+ mCheckboxButton3.SetProperty( Toolkit::Button::Property::LABEL, "CheckBox3 is unselected" );
mCheckboxButton3.StateChangedSignal().Connect( this, &ButtonsController::OnCheckBoxesSelected );
mCheckboxButton3.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
mToggleButton = Toolkit::PushButton::New();
mToggleButton.SetProperty( Toolkit::Button::Property::TOGGLABLE, true );
- mToggleButton.SetLabelText( "Unselected" );
+ mToggleButton.SetProperty( Toolkit::Button::Property::LABEL, "Unselected" );
mToggleButton.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
mToggleButton.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT );
mToggleButton.StateChangedSignal().Connect( this, &ButtonsController::OnButtonSelected );
bool isSelected = button.GetProperty( Toolkit::Button::Property::SELECTED ).Get<bool>();
if( isSelected )
{
- pushButton.SetLabelText( "Selected" );
+ pushButton.SetProperty( Toolkit::Button::Property::LABEL, "Selected" );
}
else
{
- pushButton.SetLabelText( "Unselected" );
+ pushButton.SetProperty( Toolkit::Button::Property::LABEL, "Unselected" );
}
}
{
if( isSelected )
{
- button.SetLabelText("CheckBox1 is selected");
+ button.SetProperty( Toolkit::Button::Property::LABEL, "CheckBox1 is selected");
}
else
{
- button.SetLabelText("CheckBox1 is unselected");
+ button.SetProperty( Toolkit::Button::Property::LABEL, "CheckBox1 is unselected");
}
}
{
if( isSelected )
{
- button.SetLabelText("CheckBox2 is selected");
+ button.SetProperty( Toolkit::Button::Property::LABEL, "CheckBox2 is selected");
}
else
{
- button.SetLabelText("CheckBox2 is unselected");
+ button.SetProperty( Toolkit::Button::Property::LABEL, "CheckBox2 is unselected");
}
}
{
if( isSelected )
{
- button.SetLabelText("CheckBox3 is selected");
+ button.SetProperty( Toolkit::Button::Property::LABEL, "CheckBox3 is selected");
}
else
{
- button.SetLabelText("CheckBox3 is unselected");
+ button.SetProperty( Toolkit::Button::Property::LABEL, "CheckBox3 is unselected");
}
}
// Add a label to the button so that we can identify each item more easily
std::ostringstream index;
index << i + 1;
- flexItem.SetLabelText(index.str());
+ flexItem.SetProperty( Toolkit::Button::Property::LABEL, index.str() );
flexItem.SetName("FlexItem " + index.str());
// Set a fixed size to the items so that we can wrap the line and test these
Toolkit::PushButton button = Toolkit::PushButton::New();
button.SetStyleName( STYLE_BUTTON_TEXT );
button.SetName( id );
- button.SetLabelText( label );
+ button.SetProperty( Toolkit::Button::Property::LABEL, label );
button.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
button.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT );
button.ClickedSignal().Connect( this, &ImageScalingAndFilteringController::OnButtonClicked );
{
Toolkit::PushButton button = Toolkit::PushButton::New();
button.SetName( id );
- button.SetLabelText( id );
+ button.SetProperty( Toolkit::Button::Property::LABEL, id );
button.SetAnchorPoint( AnchorPoint::TOP_LEFT );
button.SetParentOrigin( ParentOrigin::BOTTOM_LEFT );
if( button.GetName() == modeName )
{
mFittingMode = mode;
- mFittingModeButton.SetLabelText( modeName );
+ mFittingModeButton.SetProperty( Toolkit::Button::Property::LABEL, modeName );
ResizeImage();
mPopup.SetDisplayState( Toolkit::Popup::HIDDEN );
mPopup.Reset();
if( button.GetName() == modeName )
{
mSamplingMode = mode;
- mSamplingModeButton.SetLabelText( modeName );
+ mSamplingModeButton.SetProperty( Toolkit::Button::Property::LABEL, modeName );
ResizeImage();
mPopup.SetDisplayState( Toolkit::Popup::HIDDEN );
mPopup.Reset();
else if ( event.keyPressedName == "f" )
{
mSamplingMode = NextFilterMode( mSamplingMode );
- mSamplingModeButton.SetLabelText( StringFromFilterMode( mSamplingMode ) );
+ mSamplingModeButton.SetProperty( Toolkit::Button::Property::LABEL, StringFromFilterMode( mSamplingMode ) );
}
// Cycle filter and scaling modes:
else if ( event.keyPressedName == "s" )
{
mFittingMode = NextScalingMode( mFittingMode );
- mFittingModeButton.SetLabelText( StringFromScalingMode( mFittingMode ) );
+ mFittingModeButton.SetProperty( Toolkit::Button::Property::LABEL, StringFromScalingMode( mFittingMode ) );
}
else
{
// Push button, for changing the image set for displaying
Toolkit::PushButton changeButton = Toolkit::PushButton::New();
- changeButton.SetLabelText( "Next" );
+ changeButton.SetProperty( Toolkit::Button::Property::LABEL, "Next" );
changeButton.SetAnchorPoint( AnchorPoint::TOP_RIGHT );
changeButton.SetParentOrigin( ParentOrigin::TOP_RIGHT );
stage.Add( changeButton );
// Push button, for resetting the actor size and position
Toolkit::PushButton resetButton = Toolkit::PushButton::New();
- resetButton.SetLabelText( "Reset" );
+ resetButton.SetProperty( Toolkit::Button::Property::LABEL, "Reset" );
resetButton.SetAnchorPoint( AnchorPoint::TOP_LEFT );
resetButton.SetParentOrigin( ParentOrigin::TOP_LEFT );
stage.Add( resetButton );
buttonsTable.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
Toolkit::PushButton button = Toolkit::PushButton::New();
- button.SetLabelText( "Toggle on/off stage" );
+ button.SetProperty( Toolkit::Button::Property::LABEL, "Toggle on/off stage" );
button.SetParentOrigin( ParentOrigin::CENTER );
button.SetAnchorPoint( AnchorPoint::CENTER );
button.ClickedSignal().Connect( this, &ImageViewController::ToggleImageOnStage );
buttonsTable.AddChild( button, Toolkit::TableView::CellPosition( 0, 0 ) );
Toolkit::PushButton button2 = Toolkit::PushButton::New();
- button2.SetLabelText( "Change Image" );
+ button2.SetProperty( Toolkit::Button::Property::LABEL, "Change Image" );
button2.SetParentOrigin( ParentOrigin::CENTER );
button2.SetAnchorPoint( AnchorPoint::CENTER );
button2.ClickedSignal().Connect( this, &ImageViewController::ChangeImageClicked );
elementCountTableView.SetFitWidth( 1 );
elementCountTableView.SetFitWidth( 2 );
mMinusButton = Toolkit::PushButton::New();
- mMinusButton.SetLabelText( "<<" );
+ mMinusButton.SetProperty( Toolkit::Button::Property::LABEL, "<<" );
mMinusButton.SetParentOrigin( ParentOrigin::TOP_LEFT );
mMinusButton.SetAnchorPoint( AnchorPoint::CENTER_LEFT );
Toolkit::PushButton mPlusButton = Toolkit::PushButton::New();
- mPlusButton.SetLabelText( ">>" );
+ mPlusButton.SetProperty( Toolkit::Button::Property::LABEL, ">>" );
mPlusButton.SetParentOrigin( ParentOrigin::TOP_LEFT );
mPlusButton.SetAnchorPoint( AnchorPoint::CENTER_RIGHT );
{
Toolkit::PushButton button = Toolkit::PushButton::New();
button.SetName( CREATE_BUTTON_ID );
- button.SetLabelText( CREATE_BUTTON_TEXT );
+ button.SetProperty( Toolkit::Button::Property::LABEL, CREATE_BUTTON_TEXT);
button.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
button.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT );
button.ClickedSignal().Connect( this, &LoggingController::OnButtonClicked );
{
Toolkit::PushButton button = Toolkit::PushButton::New();
button.SetName( DELETE_BUTTON_ID );
- button.SetLabelText( DELETE_BUTTON_TEXT );
+ button.SetProperty( Toolkit::Button::Property::LABEL, DELETE_BUTTON_TEXT);
button.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
button.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT );
button.ClickedSignal().Connect( this, &LoggingController::OnButtonClicked );
{
Toolkit::PushButton button = Toolkit::PushButton::New();
button.SetName( START_BUTTON_ID );
- button.SetLabelText( START_BUTTON_TEXT );
+ button.SetProperty( Toolkit::Button::Property::LABEL, START_BUTTON_TEXT);
button.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
button.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT );
button.ClickedSignal().Connect( this, &LoggingController::OnButtonClicked );
{
Toolkit::PushButton button = Toolkit::PushButton::New();
button.SetName( STOP_BUTTON_ID );
- button.SetLabelText( STOP_BUTTON_TEXT );
+ button.SetProperty( Toolkit::Button::Property::LABEL, STOP_BUTTON_TEXT);
button.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
button.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT );
button.ClickedSignal().Connect( this, &LoggingController::OnButtonClicked );
{
Toolkit::PushButton button = Toolkit::PushButton::New();
button.SetName( ENABLE_BUTTON_ID );
- button.SetLabelText( ENABLE_BUTTON_TEXT );
+ button.SetProperty( Toolkit::Button::Property::LABEL, ENABLE_BUTTON_TEXT);
button.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
button.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT );
button.ClickedSignal().Connect( this, &LoggingController::OnButtonClicked );
{
Toolkit::PushButton button = Toolkit::PushButton::New();
button.SetName( DISABLE_BUTTON_ID );
- button.SetLabelText( DISABLE_BUTTON_TEXT );
+ button.SetProperty( Toolkit::Button::Property::LABEL, DISABLE_BUTTON_TEXT);
button.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
button.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT );
button.ClickedSignal().Connect( this, &LoggingController::OnButtonClicked );
{
Toolkit::PushButton button = Toolkit::PushButton::New();
button.SetName( VSYNC_BUTTON_ID );
- button.SetLabelText( VSYNC_BUTTON_TEXT );
+ button.SetProperty( Toolkit::Button::Property::LABEL, VSYNC_BUTTON_TEXT);
button.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
button.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT );
button.ClickedSignal().Connect( this, &LoggingController::OnButtonClicked );
<< ", " << ((mLoggerStates[i].isTiming) ? "Started" : "Stopped")
<< ", " << ((mLoggerStates[i].isEnabled) ? "Enabled" : "Disabled");
- mLogRadioButtons[i].SetLabelText( ss.str() );
+ mLogRadioButtons[i].SetProperty( Toolkit::Button::Property::LABEL, ss.str() );
}
}
modelButton.ClickedSignal().Connect( this, &MeshVisualController::OnChangeModelClicked );
modelButton.SetParentOrigin( ParentOrigin::TOP_CENTER );
modelButton.SetAnchorPoint( AnchorPoint::BOTTOM_CENTER );
- modelButton.SetLabelText( "Model" );
+ modelButton.SetProperty( Toolkit::Button::Property::LABEL, "Model" );
positionActorModel.Add( modelButton );
//Create button for shading mode changing.
shadingModeButton.ClickedSignal().Connect( this, &MeshVisualController::OnChangeShadingModeClicked );
shadingModeButton.SetParentOrigin( ParentOrigin::BOTTOM_CENTER );
shadingModeButton.SetAnchorPoint( AnchorPoint::TOP_CENTER );
- shadingModeButton.SetLabelText( "Shading Mode" );
+ shadingModeButton.SetProperty( Toolkit::Button::Property::LABEL, "Shading Mode" );
positionActorModel.Add( shadingModeButton );
//Text label title for changing model or shading mode.
pauseButton.ClickedSignal().Connect( this, &MeshVisualController::OnPauseClicked );
pauseButton.SetParentOrigin( Vector3( 0.5, 1.0 - BUTTONS_OFFSET_BOTTOM, 0.5 ) );
pauseButton.SetAnchorPoint( AnchorPoint::CENTER );
- pauseButton.SetLabelText( PAUSE );
+ pauseButton.SetProperty( Toolkit::Button::Property::LABEL, PAUSE );
layer.Add( pauseButton );
//Actor for positioning light position buttons.
lightModeButton.ClickedSignal().Connect( this, &MeshVisualController::OnChangeLightModeClicked );
lightModeButton.SetParentOrigin( ParentOrigin::TOP_CENTER );
lightModeButton.SetAnchorPoint( AnchorPoint::BOTTOM_CENTER );
- lightModeButton.SetLabelText( FIXED );
+ lightModeButton.SetProperty( Toolkit::Button::Property::LABEL, FIXED );
positionActorLight.Add( lightModeButton );
//Create button for switching between front and back light position.
lightSideButton.ClickedSignal().Connect( this, &MeshVisualController::OnChangeLightSideClicked );
lightSideButton.SetParentOrigin( ParentOrigin::BOTTOM_CENTER );
lightSideButton.SetAnchorPoint( AnchorPoint::TOP_CENTER );
- lightSideButton.SetLabelText( FRONT );
+ lightSideButton.SetProperty( Toolkit::Button::Property::LABEL, FRONT );
positionActorLight.Add( lightSideButton );
//Text label title for light position mode.
mModels[i].rotationAnimation.Pause();
}
- button.SetLabelText( PLAY );
+ button.SetProperty( Toolkit::Button::Property::LABEL, PLAY );
}
else //Unpause all animations again.
{
mModels[i].rotationAnimation.Play();
}
- button.SetLabelText( PAUSE );
+ button.SetProperty( Toolkit::Button::Property::LABEL, PAUSE );
}
return true;
if( mLightFixed )
{
- button.SetLabelText( FIXED );
+ button.SetProperty( Toolkit::Button::Property::LABEL, FIXED );
}
else
{
- button.SetLabelText( MANUAL );
+ button.SetProperty( Toolkit::Button::Property::LABEL, MANUAL );
}
SetLightMode();
if( mLightFront )
{
- button.SetLabelText( FRONT );
+ button.SetProperty( Toolkit::Button::Property::LABEL, FRONT );
}
else
{
- button.SetLabelText( BACK );
+ button.SetProperty( Toolkit::Button::Property::LABEL, BACK );
}
//Change light image.
editButton.ClickedSignal().Connect( this, &Model3dViewController::OnChangeModelClicked);
editButton.SetParentOrigin( ParentOrigin::TOP_LEFT );
editButton.SetAnchorPoint( AnchorPoint::TOP_LEFT );
- editButton.SetLabelText( "Change Model" );
+ editButton.SetProperty( Toolkit::Button::Property::LABEL, "Change Model" );
mButtonLayer.Add( editButton );
// Create button for shader changing
editButton.ClickedSignal().Connect( this, &Model3dViewController::OnChangeLightingClicked);
editButton.SetParentOrigin( ParentOrigin::TOP_RIGHT );
editButton.SetAnchorPoint( AnchorPoint::TOP_RIGHT );
- editButton.SetLabelText( "Change Shader" );
+ editButton.SetProperty( Toolkit::Button::Property::LABEL, "Change Shader" );
mButtonLayer.Add( editButton );
// Create button for pause/resume animation
editButton.ClickedSignal().Connect( this, &Model3dViewController::OnPauseAnimationsClicked);
editButton.SetParentOrigin( ParentOrigin::BOTTOM_CENTER );
editButton.SetAnchorPoint( AnchorPoint::BOTTOM_CENTER );
- editButton.SetLabelText( "Pause Animations" );
+ editButton.SetProperty( Toolkit::Button::Property::LABEL, "Pause Animations" );
mButtonLayer.Add( editButton );
//Create animations
mButtonRefreshAlways = PushButton::New();
mButtonRefreshAlways.SetProperty( Button::Property::TOGGLABLE, true );
mButtonRefreshAlways.SetProperty( Button::Property::SELECTED, true );
- mButtonRefreshAlways.SetLabelText( "Refresh ALWAYS" );
+ mButtonRefreshAlways.SetProperty( Toolkit::Button::Property::LABEL, "Refresh ALWAYS" );
mButtonRefreshAlways.SetParentOrigin( ParentOrigin::TOP_LEFT );
mButtonRefreshAlways.SetAnchorPoint( AnchorPoint::TOP_LEFT );
mButtonRefreshAlways.StateChangedSignal().Connect( this, &NativeImageSourceController::OnButtonSelected );
stage.Add( mButtonRefreshAlways );
mButtonRefreshOnce = PushButton::New();
- mButtonRefreshOnce.SetLabelText( "Refresh ONCE" );
+ mButtonRefreshOnce.SetProperty( Toolkit::Button::Property::LABEL, "Refresh ONCE" );
mButtonRefreshOnce.SetParentOrigin( ParentOrigin::TOP_RIGHT );
mButtonRefreshOnce.SetAnchorPoint( AnchorPoint::TOP_RIGHT );
mButtonRefreshOnce.ClickedSignal().Connect( this, &NativeImageSourceController::OnButtonSelected );
{
Toolkit::PushButton okayButton = Toolkit::PushButton::New();
okayButton.SetName( POPUP_CONTROL_OK_NAME );
- okayButton.SetLabelText( "OK!" );
+ okayButton.SetProperty( Toolkit::Button::Property::LABEL, "OK!" );
okayButton.ClickedSignal().Connect( this, &PopupExample::OnPopupButtonClicked );
{
Toolkit::PushButton cancelButton = Toolkit::PushButton::New();
cancelButton.SetName( POPUP_CONTROL_CANCEL_NAME );
- cancelButton.SetLabelText( "Cancel" );
+ cancelButton.SetProperty( Toolkit::Button::Property::LABEL, "Cancel" );
cancelButton.ClickedSignal().Connect( this, &PopupExample::OnPopupButtonClicked );
{
Toolkit::PushButton popupButton = Toolkit::PushButton::New();
popupButton.SetName( POPUP_BUTTON_ITEMS[ itemId ].name );
- popupButton.SetLabelText( POPUP_BUTTON_ITEMS[ itemId ].text );
+ popupButton.SetProperty( Toolkit::Button::Property::LABEL, POPUP_BUTTON_ITEMS[ itemId ].text );
popupButton.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS );
popupButton.ClickedSignal().Connect( this, &PopupExample::OnButtonClicked );
contentTable.Add( buttonBackground );
mResetProgressButton = Toolkit::PushButton::New();
- mResetProgressButton.SetLabelText( "Reset" );
+ mResetProgressButton.SetProperty( Toolkit::Button::Property::LABEL, "Reset" );
mResetProgressButton.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::WIDTH );
mResetProgressButton.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::HEIGHT );
mResetProgressButton.ClickedSignal().Connect( this, &ProgressBarExample::OnResetProgressButtonSelected );
{
Toolkit::PushButton popupButton = Toolkit::PushButton::New();
popupButton.SetName( TABLEVIEW_BUTTON_ITEMS[ itemId ].name );
- popupButton.SetLabelText( TABLEVIEW_BUTTON_ITEMS[ itemId ].text );
+ popupButton.SetProperty( Toolkit::Button::Property::LABEL, TABLEVIEW_BUTTON_ITEMS[ itemId ].text );
popupButton.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS );
popupButton.ClickedSignal().Connect( this, &SizeNegotiationController::OnButtonClicked );
}
mResetButton = PushButton::New();
- mResetButton.SetLabelText( "Reset" );
+ mResetButton.SetProperty( Toolkit::Button::Property::LABEL, "Reset" );
mResetButton.SetName("ResetButton");
mResetButton.SetResizePolicy( ResizePolicy::USE_NATURAL_SIZE, Dimension::ALL_DIMENSIONS );
mResetButton.ClickedSignal().Connect( this, &StylingApplication::OnResetClicked );
mThemeButtons[i].ClickedSignal().Connect( this, &StylingApplication::OnThemeButtonClicked );
themeButtonLayout.AddChild( mThemeButtons[i], TableView::CellPosition( 0, 1+i ) );
}
- mThemeButtons[0].SetLabelText( "Lite" ); // Lightweight changes on top of Dali
- mThemeButtons[1].SetLabelText( "App1" ); // Different application style
- mThemeButtons[2].SetLabelText( "App2" );
+ mThemeButtons[0].SetProperty( Toolkit::Button::Property::LABEL, "Lite" ); // Lightweight changes on top of Dali
+ mThemeButtons[1].SetProperty( Toolkit::Button::Property::LABEL, "App1" ); // Different application style
+ mThemeButtons[2].SetProperty( Toolkit::Button::Property::LABEL, "App2" );
contentLayout.Add( themeButtonLayout );
}
PushButton okayButton = PushButton::New();
okayButton.SetName( POPUP_CONTROL_OK_NAME );
okayButton.SetStyleName( POPUP_CONTROL_OK_NAME );
- okayButton.SetLabelText( "Ok!" );
+ okayButton.SetProperty( Toolkit::Button::Property::LABEL, "Ok!" );
okayButton.ClickedSignal().Connect( this, &StylingApplication::OnReset );
okayButton.SetParentOrigin( ParentOrigin::CENTER );
okayButton.SetAnchorPoint( AnchorPoint::CENTER );
PushButton cancelButton = PushButton::New();
cancelButton.SetName( POPUP_CONTROL_CANCEL_NAME );
cancelButton.SetStyleName( POPUP_CONTROL_CANCEL_NAME );
- cancelButton.SetLabelText( "Cancel" );
+ cancelButton.SetProperty( Toolkit::Button::Property::LABEL, "Cancel" );
cancelButton.ClickedSignal().Connect( this, &StylingApplication::OnResetCancelled );
cancelButton.SetParentOrigin( ParentOrigin::CENTER );
cancelButton.SetAnchorPoint( AnchorPoint::CENTER );
{
Property::Value text = mField.GetProperty( TextField::Property::TEXT );
mButtonLabel = text.Get< std::string >();
- mButton.SetLabelText( mButtonLabel );
+ mButton.SetProperty( Toolkit::Button::Property::LABEL, mButtonLabel );
}
// Hide & discard the pop-up
{
Property::Value text = mField.GetProperty( TextField::Property::TEXT );
mButtonLabel = text.Get< std::string >();
- mButton.SetLabelText( mButtonLabel );
+ mButton.SetProperty( Toolkit::Button::Property::LABEL, mButtonLabel );
mField.ClearKeyInputFocus();
}
break;
mActionButtons[i].ClickedSignal().Connect( this, &TransitionApplication::OnActionButtonClicked );
actionButtonLayout.AddChild( mActionButtons[i], TableView::CellPosition( 0, 1+i ) );
}
- mActionButtons[0].SetLabelText( "Bounce" );
- mActionButtons[1].SetLabelText( "X" );
- mActionButtons[2].SetLabelText( "Y" );
+ mActionButtons[0].SetProperty( Toolkit::Button::Property::LABEL, "Bounce" );
+ mActionButtons[1].SetProperty( Toolkit::Button::Property::LABEL, "X" );
+ mActionButtons[2].SetProperty( Toolkit::Button::Property::LABEL, "Y" );
contentLayout.Add( actionButtonLayout );
contentLayout.SetFitHeight(2);