mMenu.Add( mForwardButton );
mPauseButton.SetVisible( false );
- mPauseButton.SetDisabled( true );
+ mPauseButton.SetProperty( Button::Property::DISABLED, true );
mPlayButton.SetVisible( true );
- mPlayButton.SetDisabled( false );
+ mPlayButton.SetProperty( Button::Property::DISABLED, false );
mStopButton.SetVisible( true );
- mStopButton.SetDisabled( false );
+ mStopButton.SetProperty( Button::Property::DISABLED, false );
mResetButton.SetVisible( false );
- mResetButton.SetDisabled( true );
+ mResetButton.SetProperty( Button::Property::DISABLED, true );
mPlayButton.SetProperty( Toolkit::DevelButton::Property::UNSELECTED_BACKGROUND_VISUAL, PLAY_IMAGE );
mPlayButton.SetProperty( Toolkit::DevelButton::Property::SELECTED_BACKGROUND_VISUAL, PLAY_IMAGE );
if( mIsPlay )
{
mPauseButton.SetVisible( false );
- mPauseButton.SetDisabled( true );
+ mPauseButton.SetProperty( Button::Property::DISABLED, true );
mPlayButton.SetVisible( true );
- mPlayButton.SetDisabled( false );
+ mPlayButton.SetProperty( Button::Property::DISABLED, false );
mIsPlay = false;
mVideoView.Pause();
}
mPauseButton.SetVisible( true );
- mPauseButton.SetDisabled( false );
+ mPauseButton.SetProperty( Button::Property::DISABLED, false );
mPlayButton.SetVisible( false );
- mPlayButton.SetDisabled( true );
+ mPlayButton.SetProperty( Button::Property::DISABLED, true );
mIsPlay = true;
mVideoView.Play();
if( mIsStop )
{
mPauseButton.SetVisible( true );
- mPauseButton.SetDisabled( false );
+ mPauseButton.SetProperty( Button::Property::DISABLED, false );
mPlayButton.SetVisible( false );
- mPlayButton.SetDisabled( true );
+ mPlayButton.SetProperty( Button::Property::DISABLED, true );
mResetButton.SetVisible( false );
- mResetButton.SetDisabled( true );
+ mResetButton.SetProperty( Button::Property::DISABLED, true );
mStopButton.SetVisible( true );
- mStopButton.SetDisabled( false );
+ mStopButton.SetProperty( Button::Property::DISABLED, false );
mIsStop = false;
mIsPlay = true;
else if( mStopButton.GetId() == button.GetId())
{
mPauseButton.SetVisible( false );
- mPauseButton.SetDisabled( true );
+ mPauseButton.SetProperty( Button::Property::DISABLED, true );
mPlayButton.SetVisible( true );
- mPlayButton.SetDisabled( false );
+ mPlayButton.SetProperty( Button::Property::DISABLED, false );
mResetButton.SetVisible( true );
- mResetButton.SetDisabled( false );
+ mPlayButton.SetProperty( Button::Property::DISABLED, false );
mStopButton.SetVisible( false );
- mStopButton.SetDisabled( true );
+ mStopButton.SetProperty( Button::Property::DISABLED, true );
mIsStop = true;
mVideoView.Stop();
using namespace Dali;
using namespace Dali::Toolkit;
+namespace
+{
+
+void SetLabelText( Button button, const char* label )
+{
+ button.SetProperty( Toolkit::Button::Property::LABEL, label );
+}
+
+}
+
namespace Demo
{
const char* DALI_ROBOT_MODEL_PATH( DEMO_MODEL_DIR "ToyRobot-Metal.obj" );
const char* DALI_ROBOT_MATERIAL_PATH( DEMO_MODEL_DIR "ToyRobot-Metal.mtl" );
-
TransitionApplication::TransitionApplication( Application& application )
: mApplication( application ),
mTitle(),
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[3].SetLabelText( "Fade" );
+
+ SetLabelText( mActionButtons[0], "Bounce" );
+ SetLabelText( mActionButtons[1], "X" );
+ SetLabelText( mActionButtons[2], "Y" );
+ SetLabelText( mActionButtons[3], "Fade" );
contentLayout.Add( actionButtonLayout );
contentLayout.SetFitHeight(3);