Removed deprecated APIs of footer control
authorSeema <seema.nagraj@samsung.com>
Fri, 21 Jun 2013 06:56:43 +0000 (12:26 +0530)
committerSeema <seema.nagraj@samsung.com>
Fri, 21 Jun 2013 06:56:43 +0000 (12:26 +0530)
Change-Id: I7f9e3ac8344e2183c0727e20871cbaea395ba92d
Signed-off-by: Seema <seema.nagraj@samsung.com>
res/screen-size-normal/IDL_MEMO_DRAWING_DETAIL.xml
src/MmAddEditCommentForm.cpp
src/MmDrawingDetailForm.cpp
src/MmListForm.cpp
src/MmTextDetailForm.cpp

index c9bdf35..5cbffd5 100644 (file)
@@ -29,7 +29,7 @@
         <layout bottomRelation="" bottomRelationType="" centerHorizontal="false" centerVertical="false" height="61" horizontalFitPolicy="FIT_POLICY_FIXED" leftRelation="" leftRelationType="" marginBottom="0" marginLeft="0" marginRight="0" marginTop="0" mode="Landscape" rightRelation="" rightRelationType="" topRelation="" topRelationType="" type="NONE" verticalFitPolicy="FIT_POLICY_FIXED" width="1280" x="0" y="403"/>
     </Panel>
     <EditArea id="IDC_COMMENT" parent="IDC_PANEL_COMMENT">
-        <property disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" guideText="::IDS_MEMO_BODY_ADD_COMMENT" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16" inputStyle="INPUT_STYLE_FULLSCREEN" keypadAction="" keypadStyle="KEYPAD_STYLE_NORMAL" limitLength="100" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="45" verticalMargin="12" viewMode="false"/>
+        <property disabledBGBitmapPath="" disabledColor="" disabledColorOpacity="100" disabledTextColor="" guideText="::IDS_MEMO_BODY_ADD_COMMENT" guideTextColor="" highlightedBGBitmapPath="" highlightedColor="" highlightedColorOpacity="100" highlightedTextColor="" horizontalMargin="16" inputStyle="INPUT_STYLE_FULLSCREEN" keypadAction="" keypadStyle="KEYPAD_STYLE_NORMAL" limitLength="100" linkTextColor="" lowerCaseMode="false" normalBGBitmapPath="" normalColor="" normalColorOpacity="100" normalTextColor="" pressedBGBitmapPath="" pressedColor="" pressedColorOpacity="100" text="" textHorizontalAlignment="ALIGNMENT_LEFT" textSize="45" verticalMargin="12" viewMode="true"/>
         <layout height="90" mode="Portrait" width="680" x="24" y="8"/>
         <layout height="661" mode="Landscape" width="92" x="3" y="0"/>
     </EditArea>
index a52e4da..c60c31f 100644 (file)
@@ -71,7 +71,7 @@ MemoAddEditCommentForm::OnInitializing(void)
        __pFooter = GetFooter();
        __pFooter->SetStyle(FOOTER_STYLE_BUTTON_TEXT);
        __pFooter->AddActionEventListener(*this);
-       __pFooter->SetBackButton();
+       //__pFooter->SetBackButton();
        SetFormBackEventListener(this);
 
        __footerItemDone.Construct(IDA_FOOTER_DONE);
index e5af6cb..74c94fd 100644 (file)
@@ -134,8 +134,8 @@ MemoDrawingDetailForm::OnInitializing(void)
        {
                pFormFooter->SetStyle(FOOTER_STYLE_BUTTON_TEXT);
                pFormFooter->AddActionEventListener(*this);
-               pFormFooter->SetBackButton();
-               pFormFooter->SetMenuButton();
+               //pFormFooter->SetBackButton();
+               //pFormFooter->SetMenuButton();
                SetFormBackEventListener(this);
                SetFormMenuEventListener(this);
 
index 4b67c16..fe2f2bd 100644 (file)
@@ -94,8 +94,8 @@ MemoListForm::OnInitializing(void)
        __pFormFooter = GetFooter();
        __pFormFooter->SetStyle(FOOTER_STYLE_BUTTON_TEXT);
        __pFormFooter->AddActionEventListener(*this);
-       __pFormFooter->SetBackButton();
-       __pFormFooter->SetMenuButton();
+       //__pFormFooter->SetBackButton();
+//     __pFormFooter->SetMenuButton();
        SetFormBackEventListener(this);
        SetFormMenuEventListener(this);
 
@@ -210,7 +210,7 @@ MemoListForm::DisplayData(RequestId requestId, Tizen::Base::Collection::IList* p
                        //Show the number of memo in header
                        SetListFormTitle(ID_MEMO_LIST);
                        //Enable or disable the edit option depending on the memo count
-                       int memoCount = MemoListPresentationModel::GetInstance()->GetMemoCount(ID_MEMO_LIST);
+                       /*int memoCount = MemoListPresentationModel::GetInstance()->GetMemoCount(ID_MEMO_LIST);
                        if(memoCount == 0)
                        {
                                __pFormFooter->SetMenuButtonEnabled(false);
@@ -218,7 +218,7 @@ MemoListForm::DisplayData(RequestId requestId, Tizen::Base::Collection::IList* p
                        else
                        {
                                __pFormFooter->SetMenuButtonEnabled(true);
-                       }
+                       }*/
                        __pFormFooter->Draw();
                        __pMemoListView->ScrollToItem(0);
                }
@@ -484,7 +484,7 @@ MemoListForm::OnSearchBarModeChanged(SearchBar& source, SearchBarMode mode)
                        __pFormFooter->SetShowState(true);
                }
                //Need to add menu button again as menu button was removed
-               __pFormFooter->SetMenuButton();
+               //__pFormFooter->SetMenuButton();
                SetFormMenuEventListener(this);
 
                DisplayData(ID_MEMO_LIST);
@@ -501,7 +501,7 @@ MemoListForm::OnSearchBarModeChanged(SearchBar& source, SearchBarMode mode)
                        __pMemoListView->ScrollToItem(0);
                }
                __isSearchRegistered = true;
-               __pFormFooter->RemoveMenuButton();
+               //__pFormFooter->RemoveMenuButton();
                __pFormFooter->SetShowState(false);
                __pSearchBar->SetContentAreaSize(FloatDimension(GetClientAreaBoundsF().width, GetClientAreaBoundsF().height - rect.height));
        }
@@ -541,7 +541,7 @@ MemoListForm::DeleteListItem(void)
 
                        SetListFormTitle(ID_MEMO_LIST);
                        //Enable or disable the edit option depending on the memo count
-                       int memoCount = MemoListPresentationModel::GetInstance()->GetMemoCount(ID_MEMO_LIST);
+                       /*int memoCount = MemoListPresentationModel::GetInstance()->GetMemoCount(ID_MEMO_LIST);
                        if (memoCount == 0)
                        {
                                __pFormFooter->SetMenuButtonEnabled(false);
@@ -549,7 +549,7 @@ MemoListForm::DeleteListItem(void)
                        else
                        {
                                __pFormFooter->SetMenuButtonEnabled(true);
-                       }
+                       }*/
                        __pFormFooter->Draw();
                }
                __pMemoData = null;
index 9076070..64f1010 100644 (file)
@@ -127,8 +127,8 @@ MemoTextDetailForm::OnInitializing(void)
        __pFormFooter = GetFooter();
        __pFormFooter->SetStyle(FOOTER_STYLE_BUTTON_TEXT);
        __pFormFooter->AddActionEventListener(*this);
-       __pFormFooter->SetBackButton();
-       __pFormFooter->SetMenuButton();
+       //__pFormFooter->SetBackButton();
+       //__pFormFooter->SetMenuButton();
        SetFormBackEventListener(this);
        SetFormMenuEventListener(this);