equal
deleted
inserted
replaced
701 // Returns the number of controls owned |
701 // Returns the number of controls owned |
702 // --------------------------------------------------------- |
702 // --------------------------------------------------------- |
703 // |
703 // |
704 TInt CCamSceneSettingContainer::CountComponentControls() const |
704 TInt CCamSceneSettingContainer::CountComponentControls() const |
705 { |
705 { |
706 TInt count = 0; // Return the number of controls inside this container |
706 TInt count = CCamContainerBase::CountComponentControls(); // Return the number of controls inside this container |
707 if ( iScrollFrame ) |
707 if ( iScrollFrame ) |
708 { |
708 { |
709 count = iScrollFrame->CountComponentControls(); |
709 count += iScrollFrame->CountComponentControls(); |
710 } |
710 } |
711 return count; |
711 return count; |
712 } |
712 } |
713 |
713 |
714 // --------------------------------------------------------- |
714 // --------------------------------------------------------- |
716 // Returns the requested component control |
716 // Returns the requested component control |
717 // --------------------------------------------------------- |
717 // --------------------------------------------------------- |
718 // |
718 // |
719 CCoeControl* CCamSceneSettingContainer::ComponentControl( TInt aIndex ) const |
719 CCoeControl* CCamSceneSettingContainer::ComponentControl( TInt aIndex ) const |
720 { |
720 { |
721 if ( iScrollFrame ) |
721 CCoeControl* control = NULL; |
722 { |
722 if( aIndex == 0 ) |
723 return iScrollFrame->ComponentControl( aIndex ); |
723 control = CCamContainerBase::ComponentControl( aIndex ); |
724 } |
|
725 else |
724 else |
726 { |
725 { |
727 return NULL; |
726 if ( iScrollFrame ) |
728 } |
727 { |
|
728 return iScrollFrame->ComponentControl( aIndex - 1 ); |
|
729 } |
|
730 } |
|
731 return control; |
729 } |
732 } |
730 |
733 |
731 // --------------------------------------------------------- |
734 // --------------------------------------------------------- |
732 // CCamSceneSettingContainer::Draw |
735 // CCamSceneSettingContainer::Draw |
733 // Draw control |
736 // Draw control |