Fixed Nabi Issues N_SE-52525,52761,52458,52443,52423,52179,52389 and third party...
[apps/osp/Internet.git] / src / IntEditHistoryListForm.cpp
index 4c3e04e..79165e1 100644 (file)
@@ -95,7 +95,7 @@ EditHistoryListForm::OnInitializing(void)
        SetFormBackEventListener(this);
 
        AppLogDebug("EditHistoryListForm::OnInitializing");
-       SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
+//     SetFormStyle(FORM_STYLE_NORMAL | FORM_STYLE_INDICATOR | FORM_STYLE_HEADER | FORM_STYLE_FOOTER);
 
        __fontSize = CommonUtil::GetFontSize();
 
@@ -223,7 +223,7 @@ EditHistoryListForm::OnActionPerformed(const Tizen::Ui::Control& source, int act
 
                if(__selectedCount > 0)
                {
-                       GetFooter()->SetItemEnabled(0, true);
+                       GetFooter()->SetItemEnabled(1, true);
                        GetFooter()->Invalidate(true);
                }
 
@@ -253,17 +253,22 @@ EditHistoryListForm::OnActionPerformed(const Tizen::Ui::Control& source, int act
                __selectedCount = 0;
                __pSelectedLabel->Invalidate(true);
 
-               GetFooter()->SetItemEnabled(0, false);
+               GetFooter()->SetItemEnabled(1, false);
                GetFooter()->Invalidate(true);
 
                __pListView->Invalidate(true);
        }
        break;
        case IDA_DELETE_HISTORY:
+               if(__pConfirmationPopup)
+               {
+                       delete __pConfirmationPopup;
+                       __pConfirmationPopup = null;
+               }
 
                if (!__pConfirmationPopup)
                {
-                       String closeWarning = CommonUtil::GetString(L"IDS_BR_SK_DELETE_ABB");
+                       String closeWarning = CommonUtil::GetString(L"IDS_BR_SK3_DELETE");
                        __pConfirmationPopup = new(std::nothrow) ConfirmationPopup();
                        __pConfirmationPopup->Initialize();
 
@@ -347,7 +352,7 @@ EditHistoryListForm::OnActionPerformed(const Tizen::Ui::Control& source, int act
 
                __pSelectAllCheck->SetSelected(false);
 
-               GetFooter()->SetItemEnabled(0,false);
+               GetFooter()->SetItemEnabled(1,false);
                GetFooter()->Invalidate(true);
                //selectedText.Append(L"\x200E"); // LEFT-TO-RIGHT MARK
                //      selectedText.Append(L"(0)");
@@ -402,6 +407,10 @@ EditHistoryListForm::OnFormBackRequested(Tizen::Ui::Controls::Form& source)
                return;
        }
 
+       if( __pTimer != NULL)
+       {
+               __pTimer->Cancel();
+       }
        result r = pSceneManager->GoBackward(BackwardSceneTransition(IDSCN_HISTORY_LIST, SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
        if (IsFailed(r))
        {
@@ -434,6 +443,7 @@ EditHistoryListForm::CreateGroupItem(int groupIndex, int itemWidth)
        if ( pGroupItemClass->__pData == null || pGroupItemClass->__pData->GetCount() == 0)
        {
                r = pItem->Construct(Dimension(itemWidth, 0));
+               __pListView->SetItemEnabled(groupIndex, -1, false);
        }
        else
        {
@@ -506,7 +516,7 @@ EditHistoryListForm::CreateGroupItem(int groupIndex, int itemWidth)
        if (pGroupItemClass->__titleText != L"Older")
        {
                text.Append(pGroupItemClass->__startTime.GetDay());
-               text.Append(L". ");
+               text.Append(L" ");
                strMonth = pGroupItemClass->__startTime.GetMonth();
                month = GetMonth(strMonth);
                text.Append(month);
@@ -520,7 +530,7 @@ EditHistoryListForm::CreateGroupItem(int groupIndex, int itemWidth)
        {
                text.Append(L" - ");
                text.Append(pGroupItemClass->__endTime.GetDay());
-               text.Append(L". ");
+               text.Append(L" ");
                strMonth = pGroupItemClass->__endTime.GetMonth();
                month = GetMonth(strMonth);
                text.Append(month);
@@ -783,7 +793,7 @@ EditHistoryListForm::OnSceneActivatedN(const Tizen::Ui::Scenes::SceneId& previou
        selectedText.Format(25, CommonUtil::GetString(L"IDS_BR_BODY_PD_ITEM_SELECTED").GetPointer() , __selectedCount);
        __pSelectedLabel->SetText(selectedText);
        __pSelectedLabel->Invalidate(true);
-       GetFooter()->SetItemEnabled(0, false);
+       GetFooter()->SetItemEnabled(1, false);
        Invalidate(true);
 }
 
@@ -818,11 +828,11 @@ EditHistoryListForm::OnGroupedListViewItemStateChanged(Tizen::Ui::Controls::Grou
 
        if (__selectedCount == 0)
        {
-               GetFooter()->SetItemEnabled(0,false);
+               GetFooter()->SetItemEnabled(1,false);
        }
        else
        {
-               GetFooter()->SetItemEnabled(0,true);
+               GetFooter()->SetItemEnabled(1,true);
        }
        GetFooter()->Invalidate(true);
 
@@ -891,7 +901,7 @@ EditHistoryListForm::GetMonth(int month)
                monthValue.Append(CommonUtil::GetString(L"IDS_COM_BODY_MAR"));;
                break;
        case 4:
-               monthValue.Append(CommonUtil::GetString(L"IDS_COM_BODY_APR"));;
+               monthValue.Append(CommonUtil::GetString(L"IDS_COM_BODY_APRIL"));;
                break;
        case 5:
                monthValue.Append(CommonUtil::GetString(L"IDS_COM_BODY_MAY"));;