3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://floralicense.org/license/
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 /*@file: EditBookmarkListForm
20 *@brief: This class defines EditBookmarkListForm used to edit the bookmark
24 #include <FAppUiApp.h>
27 #include "IntBookmarkData.h"
28 #include "IntBookmarkPresentationModel.h"
29 #include "IntCommonLib.h"
30 #include "IntEditBookmarkListForm.h"
31 #include "IntFaviconManager.h"
32 #include "IntNotificationPanel.h"
33 #include "IntSceneRegister.h"
36 using namespace Tizen::App;
37 using namespace Tizen::Base;
38 using namespace Tizen::Base::Collection;
39 using namespace Tizen::Base::Runtime;
40 using namespace Tizen::Graphics;
41 using namespace Tizen::Ui;
42 using namespace Tizen::Ui::Controls;
43 using namespace Tizen::Ui::Scenes;
45 static const wchar_t* IDB_ICON_FOLDER_OPEN = L"I01_icon_folder_open.png";
46 static const wchar_t* IDB_ITEM = L"edit_item.png";
47 static const wchar_t* IDB_RIGHT_ARROW = L"I01_right_arrow.png";
50 const int EditBookmarkListForm::IDA_BUTTON_CHECKED = 101;
51 const int EditBookmarkListForm::IDA_TABBAR_ITEM_1 = 102;
52 const int EditBookmarkListForm::IDA_TABBAR_ITEM_2 = 103;
53 const int EditBookmarkListForm::IDA_DELETEITEM_CLICKED = 104;
54 const int EditBookmarkListForm::IDA_SHAREITEM_CLICKED = 105;
55 const int EditBookmarkListForm::IDA_CANCELITEM_CLICKED = 106;
56 const int EditBookmarkListForm::IDA_FORMAT_FOLDER = 107;
57 const int EditBookmarkListForm::IDA_FORMAT_SITE = 108;
58 const int EditBookmarkListForm::IDA_FORMAT_ICON = 109;
59 const int EditBookmarkListForm::IDA_FORMAT_BITMAP = 110;
60 const int EditBookmarkListForm::IDA_BUTTON_UNCHECKED = 111;
61 const int EditBookmarkListForm::IDA_FORMAT_URL = 112;
64 EditBookmarkListForm::EditBookmarkListForm(void)
72 __selectedItemCount = 0;
73 __pCheckButton = null;
74 __pConfirmationPopup = null;
75 __pSelectedList = null;
78 EditBookmarkListForm::~EditBookmarkListForm(void)
82 __pData->RemoveAll(false);
85 if(__pSelectedList != null)
87 __pSelectedList->RemoveAll(false);
88 delete __pSelectedList;
93 EditBookmarkListForm::Initialize(void)
95 Construct(L"IDL_EDIT_BOOKMARK_LIST");
100 EditBookmarkListForm::OnInitializing(void)
102 result r = E_SUCCESS;
104 Rectangle rc = GetClientAreaBounds();
105 String selected = CommonUtil::GetString(L"IDS_COM_OPT_SELECTED");
107 // Setup back event listener
108 SetFormBackEventListener(this);
109 AddOrientationEventListener(*this);
111 SceneManager* pSceneManager = SceneManager::GetInstance();
113 if (pSceneManager != null)
115 pSceneManager->AddSceneEventListener(IDSCN_EDIT_BOOKMARK_LIST, *this);
118 Header* pHeader = GetHeader();
124 pHeader->SetTitleText(CommonUtil::GetString(L"IDS_BR_HEADER_EDIT_BOOKMARK"));
126 __pCheckButton = static_cast< CheckButton* >(GetControl(
127 L"IDC_SELECT_CHECKBUTTON", true));
129 if (__pCheckButton == null)
134 __pCheckButton->SetActionId(IDA_BUTTON_CHECKED, IDA_BUTTON_UNCHECKED);
135 __pCheckButton->AddActionEventListener(*this);
137 __pListview = static_cast< ListView* >(GetControl("IDC_LISTVIEW1"));
139 if (__pListview == null)
144 // __pListview->SetBounds(__pListview->GetX(), __pListview->GetY(), __pListview->GetWidth(), rc.height - 112 - 48);
145 __pListview->AddFastScrollListener(*this);
146 __pListview->AddListViewItemEventListener(*this);
147 __pListview->SetItemProvider(*this);
150 __pInfoPanel = static_cast< Panel* >(GetControl(
151 L"IDC_INFO_PANEL", true));
153 if (__pInfoPanel == null)
158 // __pInfoPanel->SetBounds(Rectangle(0,rc.height - 48, rc.width, 48));
160 //SetControlAlwaysOnTop(*__pInfoPanel, true);
162 __pInfoLabel = static_cast< Label* >(GetControl(
163 L"IDC_INFO_LABEL", true));
165 if (__pInfoLabel == null)
170 // __pInfoLabel->SetBounds(Rectangle(0,0,rc.width, 48));
171 selected.Append(L"(0)");
172 __pInfoLabel->SetText(selected);
174 __pInfoLabel->SetTextConfig(32,LABEL_TEXT_STYLE_BOLD);
175 //__pInfoLabel->SetBackgroundColor(CUSTOM_COLOR_INFO_LABEL);
176 __pInfoLabel->SetTextVerticalAlignment(ALIGNMENT_MIDDLE);
177 __pInfoLabel->SetTextHorizontalAlignment(ALIGNMENT_CENTER);
178 GetFooter()->SetItemEnabled(0,false);
179 GetFooter()->AddActionEventListener(*this);
180 __pTimer = new (std::nothrow) Timer();
181 __pTimer->Construct(*this);
183 __pSelectedList = new(std::nothrow) ArrayList();
184 __pSelectedList->Construct();
189 EditBookmarkListForm::OnActionPerformed(const Tizen::Ui::Control& source, int actionId)
191 result r = E_SUCCESS;
193 SceneManager* pSceneManager = SceneManager::GetInstance();
197 case IDA_DELETEITEM_CLICKED:
201 if(__pListview == null)
205 int totalCount = __pListview->GetItemCount();
206 for (int count = 0;count < totalCount;count++)
208 if (__pListview->IsItemChecked(count))
212 BookmarkData* pBookMark = dynamic_cast< BookmarkData* >(__pData->GetAt(count));
213 if (pBookMark == null)
217 bookmarkId = pBookMark->GetBookmarkId();
218 Integer::Parse(bookmarkId,id);
220 if (pBookMark->GetBookmarkType() == BOOKMARK_TYPE_URL)
222 r = BookmarkPresentationModel::GetInstance()->DeleteBookmark(id);
223 TryCatch( r == E_SUCCESS,,"EditBookmarkListForm::OnActionPerformed BookmarkPresentationModel::GetInstance()->DeleteBookmark failed %s",GetErrorMessage(r));
227 r = BookmarkPresentationModel::GetInstance()->DeleteFolder(id);
228 TryCatch( r == E_SUCCESS,,"EditBookmarkListForm::OnActionPerformed BookmarkPresentationModel::GetInstance()->DeleteBookmark failed %s",GetErrorMessage(r));
233 if (__pListview != null)
235 count = __pListview->GetItemCount();
237 for(int index = 0; index < count ; index ++)
239 if(__pListview->IsItemChecked(index) == true )
241 __pListview->SetItemChecked(index,false);
245 __pCheckButton->SetSelected(false);
246 __pListview->UpdateList();
248 if ( __pListview->GetItemCount() == 0)
250 __pCheckButton->SetShowState(false);
251 __pCheckButton->Invalidate(true);
252 if (__pInfoPanel != null)
254 __pInfoPanel->SetShowState(false);
256 r = __pListview->SetBounds(__pListview->GetX(), 0, __pListview->GetWidth(), GetClientAreaBounds().height);
265 GetFooter()->SetItemEnabled(0,false);
266 GetFooter()->Invalidate(true);
267 labelString.Append(CommonUtil::GetString(L"IDS_COM_OPT_SELECTED"));
268 labelString.Append(L"(0)");
270 if (__pInfoPanel != null)
272 __pInfoLabel->SetText(labelString);
273 __pInfoPanel->Draw();
274 __pInfoPanel->Show();
277 NotificationPanel* pNotification = new (std::nothrow) NotificationPanel(*this);
278 String notification = CommonUtil::GetString(L"IDS_BR_POP_DELETED");
279 pNotification->SetText(notification);
280 pNotification->ShowNotification();
283 if( __pListview->GetItemCount() == 0)
285 __pTimer->Start(1000);
289 case IDA_CANCELITEM_CLICKED:
291 if ( __pTimer != NULL)
295 if(pSceneManager != NULL)
297 r = pSceneManager->GoBackward(BackwardSceneTransition());
301 AppLogDebug("EditBookmarkListForm::OnActionPerformed Failed to GoBackward %s",GetErrorMessage(r));
306 case IDA_BUTTON_CHECKED:
311 for (int count = 0;count < __pListview->GetItemCount();count++)
313 __pListview->SetItemChecked(count,true);
316 GetFooter()->SetItemEnabled(0,true);
317 GetFooter()->Invalidate(true);
319 labelString.Append(CommonUtil::GetString(L"IDS_COM_OPT_SELECTED"));
320 labelString.Append(L"(");
321 labelString.Append(__pListview->GetItemCount());
322 labelString.Append(L")");
324 __pInfoLabel->SetText(labelString);
325 __pInfoPanel->Draw();
326 __pInfoPanel->Show();
328 int totalCount = __pData->GetCount();
329 for(int index = 0; index < totalCount; index++)
331 BookmarkData* pBookMark = dynamic_cast< BookmarkData* >(__pData->GetAt(index));
332 if (pBookMark == null)
336 String *pBookmarkId = new(std::nothrow) String();
337 if(pBookMark->GetBookmarkType() == BOOKMARK_TYPE_FOLDER)
339 pBookmarkId->Append("F");
343 pBookmarkId->Append("U");
345 pBookmarkId->Append(pBookMark->GetBookmarkId());
347 __pListview->SetItemChecked(index, true);
348 __pSelectedList->Add(pBookmarkId);
350 __pListview->Invalidate(true);
353 case IDA_BUTTON_UNCHECKED:
355 String labelString = L"";
357 for (int count = 0;count < __pListview->GetItemCount();count++)
359 __pListview->SetItemChecked(count,false);
362 labelString.Append(CommonUtil::GetString(L"IDS_COM_OPT_SELECTED"));
363 labelString.Append(L"(0)");
364 __pInfoLabel->SetText(labelString);
365 __pInfoPanel->Draw();
366 __pInfoPanel->Show();
367 __pSelectedList->RemoveAll(true);
368 __pListview->Invalidate(true);
370 GetFooter()->SetItemEnabled(0,false);
371 GetFooter()->Invalidate(true);
382 EditBookmarkListForm::CreateItem(int index, int itemWidth)
384 result r = E_SUCCESS;
385 ListAnnexStyle style = LIST_ANNEX_STYLE_MARK;
386 CustomItem* pItem = null;
387 BookmarkData* pBookMark = null;
388 Bitmap* pBitmap = null;
390 const int x_Margin_Url = 104;
391 const int y_Margin_Url = 70;
392 const int height_Url = 40;
393 const int width_Url = GetClientAreaBounds().width - 104 - 120 - 16;
394 const int itemHeight = 112;
395 const int textSize = 32;
396 const int width_Title = GetClientAreaBounds().width - 104 - 120 - 16;
398 pItem = new(std::nothrow) CustomItem();
403 pBookMark = dynamic_cast< BookmarkData* >(__pData->GetAt(index));
404 if (pBookMark == null)
410 if (pBookMark->GetBookmarkType() == BOOKMARK_TYPE_FOLDER)
412 r = pItem->Construct(Tizen::Graphics::Dimension(itemWidth, 112), style);
413 TryCatch( r == E_SUCCESS,,"EditBookmarkListForm::CreateItem contruct item failed %s",GetErrorMessage(r));
415 pBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ICON_FOLDER_OPEN);
419 pItem->AddElement(Rectangle(16, 26, 60, 60), IDA_FORMAT_ICON, *pBitmap, null);
423 pItem->AddElement(Rectangle(92, 8, width_Title/*__pListview->GetWidth() - 92 - 80*/, 112), IDA_FORMAT_FOLDER, pBookMark->GetBookmarkTitle(), true);
426 pBitmap = AppResource::GetInstance()->GetBitmapN(IDB_ITEM);
430 pItem->AddElement(Rectangle(GetClientAreaBounds().width - 92 - 80, 20, 60, 60), IDA_FORMAT_BITMAP, *pBitmap, null, null);
431 pItem->SetElementSelectionEnabled(IDA_FORMAT_BITMAP, true);
437 r = pItem->Construct(Tizen::Graphics::Dimension(itemWidth, 128), style);
438 TryCatch( r == E_SUCCESS,,"EditBookmarkListForm::CreateItem contruct item failed %s",GetErrorMessage(r));
440 pBitmap = pBookMark->GetFavIconBitmap();
444 pBitmap = FaviconManager::GetInstance()->GetDefaultFaviconN();
447 pItem->AddElement(Rectangle(16, 28, 72, 72), IDA_FORMAT_ICON, *pBitmap, null);
450 pItem->AddElement(Rectangle(104, 10, width_Title, itemHeight - height_Url), IDA_FORMAT_SITE, pBookMark->GetBookmarkTitle(), true);
451 pItem->AddElement(Rectangle(x_Margin_Url, y_Margin_Url, width_Url, height_Url), IDA_FORMAT_URL, pBookMark->GetUrl(),textSize,CUSTOM_COLOR_GREY,CUSTOM_COLOR_GREY,CUSTOM_COLOR_GREY,true);
453 //pBitmap = AppResource::GetInstance()->GetBitmapN("I01_picker_arrow_right.png");
454 pBitmap = AppResource::GetInstance()->GetBitmapN(IDB_RIGHT_ARROW);
457 pItem->AddElement(Rectangle(GetClientAreaBounds().width - 92 - 84, 32, 64, 64), IDA_FORMAT_BITMAP, *pBitmap, null, null);
458 pItem->SetElementSelectionEnabled(IDA_FORMAT_BITMAP, true);
471 EditBookmarkListForm::DeleteItem(int index, Tizen::Ui::Controls::ListItemBase* pItem, int itemWidth)
479 EditBookmarkListForm::GetItemCount(void)
482 result r = E_SUCCESS;
484 BookmarkPresentationModel::GetInstance()->GetFolderBookmarkCount(__parentID, count);
488 __pData->RemoveAll(true);
493 __pData = new(std::nothrow) ArrayList();
500 r = __pData->Construct();
502 TryCatch( r == E_SUCCESS,,"EditBookmarkListForm::GetItemCount __pData->Construct() failed %s",GetErrorMessage(r));
504 BookmarkPresentationModel::GetInstance()->GetFoldersBookmarks(__parentID, 0, count, *__pData);
509 if(__pCheckButton != null)
511 __pCheckButton->SetShowState(false);
513 if(__pInfoPanel != null)
515 __pInfoPanel->SetShowState(false);
517 __pListview->SetBounds(__pListview->GetX(), 0, __pListview->GetWidth(), GetClientAreaBounds().height);
522 if(__pCheckButton != null)
524 __pCheckButton->SetShowState(true);
526 if(__pInfoPanel != null)
528 __pInfoPanel->SetShowState(true);
530 if(__pCheckButton != null && __pInfoPanel != null)
531 __pListview->SetBounds(__pListview->GetX(), __pListview->GetY(), __pListview->GetWidth(), GetClientAreaBounds().height - __pCheckButton->GetHeight() - __pInfoPanel->GetHeight());
534 if(__pCheckButton != null)
536 __pCheckButton->Invalidate(true);
538 if(__pInfoPanel != null)
540 __pInfoPanel->Invalidate(false);
546 __pData->RemoveAll(true);
553 EditBookmarkListForm::OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status)
559 EditBookmarkListForm::OnListViewItemLongPressed(Tizen::Ui::Controls::ListView& listView, int index, int elementId, bool& invokeListViewItemCallback)
565 EditBookmarkListForm::OnListViewItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListItemStatus status)
568 __selectedItemCount = 0;
569 result r = E_SUCCESS;
573 case IDA_FORMAT_BITMAP:
575 ArrayList* pArgList = null;
576 SceneManager* pSceneManager = SceneManager::GetInstance();
577 BookmarkData* pBookMark = dynamic_cast< BookmarkData* >(__pData->GetAt(index));
580 if(pBookMark == NULL)
584 String *pBookmarkId = new(std::nothrow) String();
585 if(pBookMark->GetBookmarkType() == BOOKMARK_TYPE_FOLDER)
587 pBookmarkId->Append("F");
591 pBookmarkId->Append("U");
593 pBookmarkId->Append(pBookMark->GetBookmarkId());
595 // if (__pListview->IsItemChecked(index) == true)
597 // __pListview->SetItemChecked(index, false);
598 // __pSelectedList->Remove(*pBookmarkId);
602 // __pListview->SetItemChecked(index, true);
603 // __pSelectedList->Add(pBookmarkId);
606 if (pBookMark->GetBookmarkType() == BOOKMARK_TYPE_FOLDER)
608 pArgList = new(std::nothrow) ArrayList();
610 if (pArgList != null)
612 pArgList->Construct();
613 pArgList->Add(*new(std::nothrow) BookmarkData(*pBookMark));
614 if ( pSceneManager != null)
616 result r = pSceneManager->GoForward(ForwardSceneTransition(IDSCN_CREATE_BOOKMARK_FOLDER, SCENE_TRANSITION_ANIMATION_TYPE_NONE),pArgList);
619 if (pArgList != null)
621 pArgList->RemoveAll(false);
627 AppLogDebug("BookmarkListForm::CreateItem Construct failed %s",GetErrorMessage(r));
634 pArgList = new(std::nothrow) ArrayList();
636 if (pArgList != null)
638 pArgList->Construct();
639 pArgList->Add(*new(std::nothrow) String(L"1"));
640 pArgList->Add(*new(std::nothrow) BookmarkData(*pBookMark));
641 if ( pSceneManager != null)
643 result r = pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ADD_BOOKMARK, SCENE_TRANSITION_ANIMATION_TYPE_NONE), pArgList);
645 if (pArgList != null)
647 pArgList->RemoveAll(false);
653 AppLogDebug("BookmarkListForm::CreateItem Construct failed %s",GetErrorMessage(r));
665 BookmarkData* pBookMark = dynamic_cast< BookmarkData* >(__pData->GetAt(index));
668 if(pBookMark == NULL)
672 String *pBookmarkId = new(std::nothrow) String();
673 if(pBookMark->GetBookmarkType() == BOOKMARK_TYPE_FOLDER)
675 pBookmarkId->Append("F");
679 pBookmarkId->Append("U");
681 pBookmarkId->Append(pBookMark->GetBookmarkId());
683 if (__pListview->IsItemChecked(index) == false)
685 __pSelectedList->Remove(*pBookmarkId);
689 __pSelectedList->Add(pBookmarkId);
693 int itemCount = __pListview->GetItemCount();
694 for (int count = 0;count < itemCount ; count++)
696 if (__pListview->IsItemChecked(count))
698 __selectedItemCount++;
702 //labelString.Append(__selectedItemCount);
703 labelString.Append(CommonUtil::GetString(L"IDS_COM_OPT_SELECTED"));
704 labelString.Append(L"(");
705 labelString.Append(__selectedItemCount);
706 labelString.Append(L")");
707 __pInfoLabel->SetText(labelString);
708 __pInfoPanel->Draw();
709 __pInfoPanel->Show();
710 BookmarkPresentationModel::GetInstance()->GetFolderBookmarkCount(__parentID,count);
711 if (__selectedItemCount == count)
713 __pCheckButton->SetSelected(true);
717 __pCheckButton->SetSelected(false);
720 itemCount = __pListview->GetItemCount();
721 for (int count = 0;count < itemCount ;count++)
723 if (__pListview->IsItemChecked(count))
732 GetFooter()->SetItemEnabled(0,true);
736 GetFooter()->SetItemEnabled(0,false);
739 GetFooter()->Invalidate(true);
747 EditBookmarkListForm::OnListViewItemSwept(Tizen::Ui::Controls::ListView& listView, int index, Tizen::Ui::Controls::SweepDirection direction)
753 EditBookmarkListForm::OnFastScrollIndexSelected(Tizen::Ui::Control& source, Tizen::Base::String& index)
758 EditBookmarkListForm::OnListViewItemReordered(Tizen::Ui::Controls::ListView& listView, int indexFrom, int indexTo)
764 EditBookmarkListForm::OnSceneActivatedN(const SceneId& previousSceneId, const SceneId& currentSceneId, IList* pArgs)
766 result r = E_FAILURE;
769 BookmarkData* pBookMark = null;
774 String* pStr = dynamic_cast<String*>(pArgs->GetAt(0));
779 __parentID.Append(pStr->GetPointer());
782 __selectedItemCount = 0;
784 labelString.Append(CommonUtil::GetString(L"IDS_COM_OPT_SELECTED"));
785 labelString.Append(L"(");
786 labelString.Append(__pSelectedList->GetCount());
787 labelString.Append(L")");
788 __pInfoLabel->SetText(labelString);
789 __pListview->UpdateList();
791 count = __pListview->GetItemCount();
793 for(int index = 0 ; index < count ; index++)
795 pBookMark = dynamic_cast< BookmarkData* >(__pData->GetAt(index));
797 if(pBookMark == NULL)
801 String *pBookmarkId = new(std::nothrow) String();
802 if(pBookMark->GetBookmarkType() == BOOKMARK_TYPE_FOLDER)
804 pBookmarkId->Append("F");
808 pBookmarkId->Append("U");
810 pBookmarkId->Append(pBookMark->GetBookmarkId());
812 AppLog("BookmarkId: %ls", pBookmarkId->GetPointer());
814 if(__pSelectedList->Contains(*pBookmarkId))
816 __pListview->SetItemChecked(index,true);
817 __selectedItemCount++;
821 __pListview->SetItemChecked(index,false);
824 if(__selectedItemCount < __pListview->GetItemCount())
826 __pCheckButton->SetSelected(false);
827 GetFooter()->SetItemEnabled(0, false);
828 GetFooter()->Invalidate(true);
832 __pCheckButton->SetSelected(true);
833 GetFooter()->SetItemEnabled(0, true);
834 GetFooter()->Invalidate(true);
838 __pInfoPanel->Draw();
839 __pInfoPanel->Show();
846 EditBookmarkListForm::OnSceneDeactivated(const SceneId& currentSceneId, const SceneId& nextSceneId)
852 EditBookmarkListForm::OnFormBackRequested(Form& source)
854 SceneManager* pSceneManager = SceneManager::GetInstance();
856 if ( __pTimer != NULL)
861 if (pSceneManager != null)
863 //pSceneManager->GoBackward(BackwardSceneTransition(IDSCN_BOOKMARK_VIEW, SCENE_TRANSITION_ANIMATION_TYPE_RIGHT));
864 result r = pSceneManager->GoBackward(BackwardSceneTransition());
867 AppLogDebug("BookmarkListForm::CreateItem Construct failed %s",GetErrorMessage(r));
872 GetFooter()->Invalidate(true);
876 void EditBookmarkListForm::OnOrientationChanged(const Tizen::Ui::Control &source, Tizen::Ui::OrientationStatus orientationStatus)
879 ArrayList* pCheckedItems = NULL ;
881 if (__pListview != null)
883 AppLog("the list Y axis is %d", __pListview->GetY());
884 pCheckedItems = new(std::nothrow) ArrayList();
885 pCheckedItems->Construct();
886 if ( __pListview->GetItemCount() == 0)
888 __pCheckButton->SetShowState(false);
889 __pInfoPanel->SetShowState(false);
890 __pListview->SetBounds(0, __pListview->GetY(), GetClientAreaBounds().width, GetClientAreaBounds().height -__pListview->GetY());
895 __pCheckButton->SetShowState(true);
896 __pInfoPanel->SetShowState(true);
897 __pListview->SetBounds(__pListview->GetX(), __pListview->GetY(), __pListview->GetWidth(), GetClientAreaBounds().height - __pCheckButton->GetHeight() - __pInfoPanel->GetHeight());
900 __pCheckButton->Invalidate(true);
902 itemCount = __pListview->GetItemCount();
904 for (int count = 0;count < itemCount ; count++)
907 if (__pListview->IsItemChecked(count))
909 pCheckedItems->Add(* new Integer(count));
913 __pListview->UpdateList();
915 for (int count = 0;count < itemCount ;count++)
917 if (pCheckedItems->Contains(* new Integer(count)) == true)
919 __pListview->SetItemChecked(count, true);
922 if ( pCheckedItems != NULL )
924 pCheckedItems->RemoveAll(true);
925 delete pCheckedItems;
932 EditBookmarkListForm::OnTimerExpired(Timer& timer)
934 SceneManager* pSceneManager = SceneManager::GetInstance();
936 if ( pSceneManager != NULL)
938 result r = pSceneManager->GoBackward(BackwardSceneTransition());
941 AppLogDebug("EditBookmarkListForm::OnTimerExpired GoBackward failed %s",GetErrorMessage(r));