Change uncovered API usages for doxygen sample
authorkhee85.lee <khee85.lee@samsung.com>
Thu, 9 May 2013 08:31:16 +0000 (17:31 +0900)
committerkhee85.lee <khee85.lee@samsung.com>
Thu, 9 May 2013 08:31:16 +0000 (17:31 +0900)
Change-Id: I2cfa729fa6544cf4b0521613bf79a25bdb7e3a9b
Signed-off-by: khee85.lee <khee85.lee@samsung.com>
13 files changed:
inc/FUiAnimations.h
inc/FUiCtrlAnimation.h
inc/FUiCtrlButton.h
inc/FUiCtrlGroupedListView.h
inc/FUiCtrlKeypad.h
inc/FUiCtrlLabel.h
inc/FUiCtrlSearchBar.h
inc/FUiCtrlSlidableGroupedList.h
inc/FUiCtrlSlidableList.h
inc/FUiCtrlSlider.h
inc/FUiCtrlSplitPanel.h
inc/FUiCtrlTabBar.h
inc/FUiRelativeLayout.h

index 1223b4e..043ef54 100644 (file)
@@ -134,7 +134,7 @@ AnimationSample::OnInitializing(void)
        __pButton->SetText(L"Start animation");
        __pButton->SetActionId(ID_BUTTON);
        __pButton->AddActionEventListener(*this);
-       AddControl(*__pButton);
+       AddControl(__pButton);
 
        return r;
 }
@@ -193,11 +193,11 @@ FrameAnimatorSample::OnAppInitializing(AppRegistry& appRegistry)
 
        // Adds forms to the frame
        Frame *pFrame = GetAppFrame()->GetFrame();
-       pFrame->AddControl(*pForm1);
-       pFrame->AddControl(*pForm2);
+       pFrame->AddControl(pForm1);
+       pFrame->AddControl(pForm2);
 
        // Sets the current form
-       pFrame->SetCurrentForm(*pForm1);
+       pFrame->SetCurrentForm(pForm1);
 
        // Display the form
        pForm1->Invalidate();
@@ -225,7 +225,7 @@ Form1::OnActionPerformed(const Control& source, int actionId)
                                pFrameAnimator->SetFormTransitionAnimation (FRAME_ANIMATOR_FORM_TRANSITION_ANIMATION_TRANSLATE_LEFT,
                                                                                                                        1000,
                                                                                                                        ANIMATION_INTERPOLATOR_LINEAR );
-                               r = pFrameAnimator->SetCurrentForm (*nextForm);
+                               r = pFrameAnimator->SetCurrentForm (nextForm);
                                if (IsFailed(r))
                                {
                                        AppLog("SetCurrentForm on the Form2 Failed.\n");
@@ -258,7 +258,7 @@ Form2::OnActionPerformed(const Control& source, int actionId)
                                pFrameAnimator->SetFormTransitionAnimation(FRAME_ANIMATOR_FORM_TRANSITION_ANIMATION_TRANSLATE_RIGHT,
                                                                                                                   1000,
                                                                                                                   ANIMATION_INTERPOLATOR_LINEAR );
-                               r = pFrameAnimator->SetCurrentForm (*nextForm);
+                               r = pFrameAnimator->SetCurrentForm (nextForm);
                                if (IsFailed(r))
                                {
                                        AppLog("SetCurrentForm on the Form1 Failed.\n");
@@ -312,7 +312,7 @@ VisualElementSample::OnInitializing(void)
        __pRect->SetShowState(true);
        __pRect->SetContentProvider(this);
 
-       GetVisualElement()->AttachChild(*__pRect);
+       GetVisualElement()->AttachChild(__pRect);
        __pRect->InvalidateRectangle(null);
 
        return E_SUCCESS;
index 033832f..a0ce8db 100644 (file)
@@ -146,7 +146,7 @@ AnimationSample::OnInitializing(void)
        pAnimation->AddAnimationEventListener(*this);
 
        // Adds the animation to the form
-       AddControl(*pAnimation);
+       AddControl(pAnimation);
 
        // Plays the animation
        pAnimation->Play();
index c76acfa..97d959d 100644 (file)
@@ -121,7 +121,7 @@ ButtonSample::OnInitializing(void)
        __pButton->SetActionId(ID_BUTTON);
        __pButton->AddActionEventListener(*this);
 
-       AddControl(*__pButton);
+       AddControl(__pButton);
 
        // Creates an instance of Button for bitmap button
        __pBitmapButton = new Button();
@@ -143,7 +143,7 @@ ButtonSample::OnInitializing(void)
        delete pBitmapPressed;
 
        // Adds the bitmap button to the form
-       AddControl(*__pBitmapButton);
+       AddControl(__pBitmapButton);
 
        return r;
 }
index 1da631f..8ee1530 100644 (file)
@@ -172,7 +172,7 @@ GroupedListViewSample::OnInitializing(void)
        __pGroupedListView->AddGroupedListViewItemEventListener(*this);
 
        // Adds the icon list view to the form
-       AddControl(*__pGroupedListView);
+       AddControl(__pGroupedListView);
 
        // Creates an instance of ListContextItem
        __pItemContext = new ListContextItem();
index cc2a7ca..01fa874 100644 (file)
@@ -121,7 +121,7 @@ KeypadSample::OnInitializing(void)
        pButton->Construct(Rectangle(50, 50, 150, 150), L"Show Keypad");
        pButton->SetActionId(ID_BUTTON);
        pButton->AddActionEventListener(*this);
-       AddControl(*pButton);
+       AddControl(pButton);
 
        // Creates an instance of Keypad
        __pKeypad = new Keypad();
index 55a0840..ad48d38 100644 (file)
@@ -100,7 +100,7 @@ LabelSample::OnInitializing(void)
        __pLabel->SetBackgroundColor(Color::GetColor(COLOR_ID_BLUE));
 
        // Adds the label to the form
-       AddControl(*__pLabel);
+       AddControl(__pLabel);
 
        return r;
 }
index b9bcc15..746bdb2 100644 (file)
@@ -187,7 +187,7 @@ SearchBarSample::OnInitializing(void)
        __pSearchBar->SetContent(__pSearchBarListView);
 
        // Adds controls to the form
-       AddControl(*__pSearchBar);
+       AddControl(__pSearchBar);
 
        return r;
 }
index 5b3984a..678cf2b 100644 (file)
@@ -165,7 +165,7 @@ SlidableGroupedListSample::OnInitializing(void)
        __pSlidableGroupedList->AddGroup(L"Group3", null, ITEM_COUNT_GROUP3, ITEM_COUNT_GROUP3 * ITEM_HEIGHT);
 
        // Adds the slidable grouped list to the form
-       AddControl(*__pSlidableGroupedList);
+       AddControl(__pSlidableGroupedList);
 
        return r;
 }
index 7b9f0f6..bd362c0 100644 (file)
@@ -158,7 +158,7 @@ SlidableListSample::OnInitializing(void)
        __pCustomListItemFormat->AddElement(ID_LIST_BITMAP, Rectangle(220, 10, 70, 80));
 
        // Adds the slidable list to the form
-       AddControl(*__pSlidableList);
+       AddControl(__pSlidableList);
 
        return r;
 }
index 0c28b02..a8d07a4 100644 (file)
@@ -104,7 +104,7 @@ SliderSample::OnInitializing(void)
        __pSlider->AddAdjustmentEventListener(*this);
 
        // Adds the slider to the form
-       AddControl(*__pSlider);
+       AddControl(__pSlider);
 
        return r;
 }
index bc9bbc9..47e564d 100644 (file)
@@ -63,6 +63,7 @@ public:
        , __pFirstPanel(null)
        , __pSecondPanel(null){}
 
+    bool Initialize(void);
        virtual result OnInitializing(void);
        virtual result OnTerminating(void);
 
@@ -113,7 +114,7 @@ SplitPanelSample::OnInitializing(void)
        __pSplitPanel->SetPane(__pSecondPanel, SPLIT_PANEL_PANE_ORDER_SECOND);
 
        // Adds the split panel to the form
-       AddControl(*__pSplitPanel);
+       AddControl(__pSplitPanel);
 
        return E_SUCCESS;
 }
index 0f70048..3994791 100644 (file)
@@ -127,7 +127,7 @@ TabBarSample::OnInitializing()
        __pTabBar->AddActionEventListener(*this);
 
        // Adds the tab bar to the form
-       AddControl(*__pTabBar);
+       AddControl(__pTabBar);
 
        return r;
 }
index 266b2e2..31a2d78 100644 (file)
@@ -98,19 +98,19 @@ RelativeLayoutSample::OnInitializing(void)
                // Creates instances of Button
                Button* pUpButton = new Button();
                pUpButton->Construct(Rectangle(0,0,200,100), "UP");
-               pTopRelativePanel->AddControl(*pUpButton);
+               pTopRelativePanel->AddControl(pUpButton);
 
                Button* pMiddleButton = new Button();
                pMiddleButton->Construct(Rectangle(0,0,200,100), "CENTER");
-               pTopRelativePanel->AddControl(*pMiddleButton);
+               pTopRelativePanel->AddControl(pMiddleButton);
 
                Button* pDownButton = new Button();
                pDownButton->Construct(Rectangle(0,0,200,100), "DOWN");
-               pTopRelativePanel->AddControl(*pDownButton);
+               pTopRelativePanel->AddControl(pDownButton);
 
                // Sets relations between the pUpButton and pMiddleButton
-               topPanelLayout.SetRelation(*pUpButton, *pMiddleButton, RECT_EDGE_RELATION_LEFT_TO_LEFT);
-               topPanelLayout.SetRelation(*pUpButton, *pMiddleButton, RECT_EDGE_RELATION_BOTTOM_TO_TOP);
+               topPanelLayout.SetRelation(*pUpButton, pMiddleButton, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+               topPanelLayout.SetRelation(*pUpButton, pMiddleButton, RECT_EDGE_RELATION_BOTTOM_TO_TOP);
                topPanelLayout.SetMargin(*pUpButton, 0, 0, 0, 10);
 
                // Sets the middle button
@@ -119,13 +119,13 @@ RelativeLayoutSample::OnInitializing(void)
                topPanelLayout.SetMargin(*pMiddleButton, 10, 10, 10, 10);
 
                // Sets relations between the pDownButton and the pMiddleButton
-               topPanelLayout.SetRelation(*pDownButton, *pMiddleButton, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
-               topPanelLayout.SetRelation(*pDownButton, *pMiddleButton, RECT_EDGE_RELATION_TOP_TO_BOTTOM);
+               topPanelLayout.SetRelation(*pDownButton, pMiddleButton, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+               topPanelLayout.SetRelation(*pDownButton, pMiddleButton, RECT_EDGE_RELATION_TOP_TO_BOTTOM);
                topPanelLayout.SetMargin(*pDownButton, 0, 0, 10, 0);
        }
 
        // Adds the top panel to the form
-       AddControl(*pTopRelativePanel);
+       AddControl(pTopRelativePanel);
 
        // Creates an instance of RelativeLayout for the bottom panel
        RelativeLayout bottomPanelLayout;
@@ -140,50 +140,50 @@ RelativeLayoutSample::OnInitializing(void)
                pFixedLabel->Construct(Rectangle(0, 0, 150, 80), L"FIXED");
                pFixedLabel->SetBackgroundColor(Color::GetColor(COLOR_ID_YELLOW));
                pFixedLabel->SetTextColor(Color::GetColor(COLOR_ID_BLACK));
-               pBottomRelativePanel->AddControl(*pFixedLabel);
+               pBottomRelativePanel->AddControl(pFixedLabel);
 
                Label* pScalableLabel = new Label();
                pScalableLabel->Construct(Rectangle(0, 0, 150, 80), L"SCALABLE <=>");
                pScalableLabel->SetBackgroundColor(Color::GetColor(COLOR_ID_BLUE));
                pScalableLabel->SetTextColor(Color::GetColor(COLOR_ID_BLACK));
-               pBottomRelativePanel->AddControl(*pScalableLabel);
+               pBottomRelativePanel->AddControl(pScalableLabel);
 
                // Sets relations between the fixed label and the panel
                bottomPanelLayout.SetCenterAligned(*pFixedLabel, CENTER_ALIGN_VERTICAL);
-               bottomPanelLayout.SetRelation(*pFixedLabel, *pBottomRelativePanel, RECT_EDGE_RELATION_LEFT_TO_LEFT);
-               bottomPanelLayout.SetRelation(*pFixedLabel, *pBottomRelativePanel, RECT_EDGE_RELATION_TOP_TO_TOP);
+               bottomPanelLayout.SetRelation(*pFixedLabel, pBottomRelativePanel, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+               bottomPanelLayout.SetRelation(*pFixedLabel, pBottomRelativePanel, RECT_EDGE_RELATION_TOP_TO_TOP);
                bottomPanelLayout.SetMargin(*pFixedLabel, 30, 30, 30, 30);
 
                // Sets relations between the scalable label and the panel
                bottomPanelLayout.SetCenterAligned(*pScalableLabel, CENTER_ALIGN_VERTICAL);
-               bottomPanelLayout.SetRelation(*pScalableLabel, *pFixedLabel, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
-               bottomPanelLayout.SetRelation(*pScalableLabel, *pFixedLabel, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
-               bottomPanelLayout.SetRelation(*pScalableLabel, *pBottomRelativePanel, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
-               bottomPanelLayout.SetRelation(*pScalableLabel, *pBottomRelativePanel, RECT_EDGE_RELATION_TOP_TO_TOP);
+               bottomPanelLayout.SetRelation(*pScalableLabel, pFixedLabel, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
+               bottomPanelLayout.SetRelation(*pScalableLabel, pFixedLabel, RECT_EDGE_RELATION_LEFT_TO_RIGHT);
+               bottomPanelLayout.SetRelation(*pScalableLabel, pBottomRelativePanel, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+               bottomPanelLayout.SetRelation(*pScalableLabel, pBottomRelativePanel, RECT_EDGE_RELATION_TOP_TO_TOP);
                bottomPanelLayout.SetMargin(*pScalableLabel, 30, 30, 30, 30);
        }
 
        // Adds the bottom panel to the form
-       AddControl(*pBottomRelativePanel);
+       AddControl(pBottomRelativePanel);
 
        //Gets the layout of the form
        RelativeLayout* pFormLayout = dynamic_cast<RelativeLayout*>(this->GetLayoutN());
 
        // Sets relations of the top relative panel
-       pFormLayout->SetRelation(*pTopRelativePanel, *this, RECT_EDGE_RELATION_LEFT_TO_LEFT);
-       pFormLayout->SetRelation(*pTopRelativePanel, *this, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
-       pFormLayout->SetRelation(*pTopRelativePanel, *this, RECT_EDGE_RELATION_TOP_TO_TOP);
+       pFormLayout->SetRelation(*pTopRelativePanel, this, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+       pFormLayout->SetRelation(*pTopRelativePanel, this, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+       pFormLayout->SetRelation(*pTopRelativePanel, this, RECT_EDGE_RELATION_TOP_TO_TOP);
 
        // Sets relations of the bottom relative panel
-       pFormLayout->SetRelation(*pBottomRelativePanel, *this, RECT_EDGE_RELATION_LEFT_TO_LEFT);
-       pFormLayout->SetRelation(*pBottomRelativePanel, *this, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
-       pFormLayout->SetRelation(*pBottomRelativePanel, *this, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
+       pFormLayout->SetRelation(*pBottomRelativePanel, this, RECT_EDGE_RELATION_LEFT_TO_LEFT);
+       pFormLayout->SetRelation(*pBottomRelativePanel, this, RECT_EDGE_RELATION_RIGHT_TO_RIGHT);
+       pFormLayout->SetRelation(*pBottomRelativePanel, this, RECT_EDGE_RELATION_BOTTOM_TO_BOTTOM);
 
        // Sets relations between the top relative panel and the bottom relative panel
        pFormLayout->SetHorizontalFitPolicy(*pTopRelativePanel, FIT_POLICY_PARENT);
        pFormLayout->SetHorizontalFitPolicy(*pBottomRelativePanel, FIT_POLICY_PARENT);
        pFormLayout->SetVerticalFitPolicy(*pBottomRelativePanel, FIT_POLICY_FIXED);
-       pFormLayout->SetRelation(*pTopRelativePanel, *pBottomRelativePanel, RECT_EDGE_RELATION_BOTTOM_TO_TOP);
+       pFormLayout->SetRelation(*pTopRelativePanel, pBottomRelativePanel, RECT_EDGE_RELATION_BOTTOM_TO_TOP);
 
        return r;
 }