X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=examples%2Fbuttons%2Fbuttons-example.cpp;h=a658fa1c620f773a288b6470a89c6803592b8ac2;hb=8a61f04a9bf4241761bda7742918967f34de2891;hp=4279fee5d52d2a0af477be02eac663bc19d23994;hpb=b074eb7536d4774fa7bc13277c5b0edfea52fefd;p=platform%2Fcore%2Fuifw%2Fdali-demo.git diff --git a/examples/buttons/buttons-example.cpp b/examples/buttons/buttons-example.cpp index 4279fee..a658fa1 100644 --- a/examples/buttons/buttons-example.cpp +++ b/examples/buttons/buttons-example.cpp @@ -234,11 +234,6 @@ class ButtonsController: public ConnectionTracker Toolkit::TableView tableView = Toolkit::TableView::New( 1, 2 ); tableView.SetSize( DP(260), DP(RADIO_LABEL_THUMBNAIL_SIZE) ); - Toolkit::TextView textView = Toolkit::TextView::New( "Select enabled" ); - Toolkit::Alignment alignment = Toolkit::Alignment::New( Toolkit::Alignment::HorizontalLeft ); - alignment.Add( textView ); - tableView.AddChild( alignment, Toolkit::TableView::CellPosition( 0, 0 ) ); - ImageActor imageActor = ImageActor::New( ResourceImage::New( ENABLED_IMAGE ) ); imageActor.SetSize( DP(RADIO_LABEL_THUMBNAIL_SIZE), DP(RADIO_LABEL_THUMBNAIL_SIZE) ); tableView.AddChild( imageActor, Toolkit::TableView::CellPosition( 0, 1 ) ); @@ -419,42 +414,6 @@ class ButtonsController: public ConnectionTracker bool OnCheckBoxesSelected( Toolkit::Button button ) { - if( button.GetName() == "checkbox1" ) - { - if( button.IsSelected() ) - { - button.SetLabel("CheckBox1 is selected"); - } - else - { - button.SetLabel("CheckBox1 is unselected"); - } - } - - if( button.GetName() == "checkbox2" ) - { - if( button.IsSelected() ) - { - button.SetLabel("CheckBox2 is selected"); - } - else - { - button.SetLabel("CheckBox2 is unselected"); - } - } - - if( button.GetName() == "checkbox3" ) - { - if( button.IsSelected() ) - { - button.SetLabel("CheckBox3 is selected"); - } - else - { - button.SetLabel("CheckBox3 is unselected"); - } - } - return true; }