// External includes
#include <dali-toolkit/dali-toolkit.h>
+#include <dali-toolkit/devel-api/controls/control-devel.h>
#include <dali-toolkit/devel-api/visuals/visual-properties-devel.h>
#include <dali-toolkit/devel-api/visuals/text-visual-properties.h>
#include "shadow-button.h"
mTitle(),
mShadowButton(),
mActionButtons(),
+ mVisualIndex( Property::INVALID_INDEX ),
mActionIndex( Property::INVALID_INDEX )
{
application.InitSignal().Connect( this, &TransitionApplication::Create );
mShadowButton.SetAnchorPoint( AnchorPoint::CENTER );
mShadowButton.SetParentOrigin( ParentOrigin::CENTER );
mShadowButton.SetResizePolicy( ResizePolicy::FILL_TO_PARENT, Dimension::ALL_DIMENSIONS );
+ mShadowButton.SetProperty( DevelControl::Property::STATE, DevelControl::DISABLED );
+ mShadowButton.SetProperty( DevelControl::Property::SUB_STATE, "UNCHECKED" );
+
buttonLayout.AddChild( mShadowButton, TableView::CellPosition(1, 1) );
TableView actionButtonLayout = TableView::New( 1, NUMBER_OF_ACTION_BUTTONS+1 );
mActionButtons[i].ClickedSignal().Connect( this, &TransitionApplication::OnActionButtonClicked );
actionButtonLayout.AddChild( mActionButtons[i], TableView::CellPosition( 0, 1+i ) );
}
- SetLabelText( mActionButtons[0], "Activate" );
+ SetLabelText( mActionButtons[0], "Enable" );
SetLabelText( mActionButtons[1], "Check" );
mActionButtons[1].SetProperty( Button::Property::DISABLED, true );
mShadowButton.SetActiveState( ! activeState );
if( activeState )
{
- SetLabelText( button, "Activate" );
+ SetLabelText( button, "Enable" );
+ mShadowButton.SetProperty( DevelControl::Property::STATE, DevelControl::DISABLED );
}
else
{
- SetLabelText( button, "Deactivate" );
+ SetLabelText( button, "Disable" );
+ mShadowButton.SetProperty( DevelControl::Property::STATE, DevelControl::NORMAL );
}
mActionButtons[1].SetProperty( Button::Property::DISABLED, activeState );
break;
if( checkState )
{
SetLabelText( button, "Check" );
+ mShadowButton.SetProperty( DevelControl::Property::SUB_STATE, "UNCHECKED" );
}
else
{
SetLabelText( button, "Uncheck" );
+ mShadowButton.SetProperty( DevelControl::Property::SUB_STATE, "CHECKED" );
}
break;
}