2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
\r
4 // Licensed under the Flora License, Version 1.0 (the License);
\r
5 // you may not use this file except in compliance with the License.
\r
6 // You may obtain a copy of the License at
\r
8 // http://floralicense.org/license/
\r
10 // Unless required by applicable law or agreed to in writing, software
\r
11 // distributed under the License is distributed on an AS IS BASIS,
\r
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 // See the License for the specific language governing permissions and
\r
14 // limitations under the License.
\r
18 * @file: MfSubBaseFolderEntryForm.cpp
\r
19 * @brief: This file contains the implementation of SubBaseFolderEntryForm class, which acts as a base form for
\r
20 * the TopMostFileFolderListForm and SubFileFolderListForm.
\r
23 #include "MfSubBaseFolderEntryForm.h"
\r
25 using namespace Tizen::App;
\r
26 using namespace Tizen::App::Package;
\r
27 using namespace Tizen::Base;
\r
28 using namespace Tizen::Base::Collection;
\r
29 using namespace Tizen::Base::Utility;
\r
30 using namespace Tizen::Content;
\r
31 using namespace Tizen::Graphics;
\r
32 using namespace Tizen::Io;
\r
33 using namespace Tizen::Locales;
\r
34 using namespace Tizen::Media;
\r
35 using namespace Tizen::System;
\r
36 using namespace Tizen::Ui;
\r
37 using namespace Tizen::Ui::Controls;
\r
38 using namespace Tizen::Ui::Scenes;
\r
40 SubBaseFolderEntryForm::SubBaseFolderEntryForm(void)
\r
41 : _pFileEventManager(null)
\r
42 , _pPackageManager(null)
\r
44 , _pCancelDeletion(null)
\r
45 , _pCancelSortBy(null)
\r
46 , _pCancelViewAs(null)
\r
47 , _pDeleteFile(null)
\r
48 , _pFileProgressingCancelButton(null)
\r
49 , _pIconListViewContextMenu(null)
\r
50 , _pMoreContextMenu(null)
\r
57 , _pIconListView(null)
\r
58 , _pFileProgressingHeaderLabel(null)
\r
59 , _pFileProgressingLabel(null)
\r
60 , _pLabelDisplayPath(null)
\r
61 , _pItemContext(null)
\r
63 , _pSortByListView(null)
\r
64 , _pViewAsListView(null)
\r
65 , _pDeleteConfirmationPopUp(null)
\r
66 , _pFileProgressingPopup(null)
\r
67 , _pSortByPopup(null)
\r
68 , _pViewAsPopup(null)
\r
69 , _pBaseItemProvider(null)
\r
70 , _pCustomListViewForPopup(null)
\r
71 , _pFileManager(null)
\r
72 , _pFolderEntryPM(null)
\r
73 , _pMediaMetaData(null)
\r
74 , _pThumbnailItemProvider(null)
\r
75 , _pThumbnailManager(null)
\r
78 _flagViewAsStatus = 0;
\r
83 _renameOrCreate = 0;
\r
87 SubBaseFolderEntryForm::~SubBaseFolderEntryForm(void)
\r
89 AppLogDebug("Entry");
\r
91 if (_pFolderEntryPM != null)
\r
93 delete _pFolderEntryPM;
\r
96 if (_pMoreContextMenu != null)
\r
98 delete _pMoreContextMenu;
\r
101 if (_pViewAsPopup != null)
\r
103 delete _pViewAsPopup;
\r
106 if (_pDeleteConfirmationPopUp != null)
\r
108 delete _pDeleteConfirmationPopUp;
\r
111 if (_pCustomListViewForPopup != null)
\r
113 delete _pCustomListViewForPopup;
\r
116 if (_pMediaMetaData != null)
\r
118 delete _pMediaMetaData;
\r
121 if (_pSortByPopup != null)
\r
123 delete _pSortByPopup;
\r
126 if (_pFileProgressingPopup != null)
\r
128 delete _pFileProgressingPopup;
\r
131 if (_pThumbnailItemProvider != null)
\r
133 delete _pThumbnailItemProvider;
\r
136 if (_pBaseItemProvider != null)
\r
138 delete _pBaseItemProvider;
\r
141 if (_pEdit != null)
\r
146 if (_pSortBy != null)
\r
151 if (_pSearch != null)
\r
156 if (_pMore != null)
\r
161 if (_pFileEventManager != null)
\r
163 delete _pFileEventManager;
\r
167 SubBaseFolderEntryForm&
\r
168 SubBaseFolderEntryForm::operator =(const SubBaseFolderEntryForm& pSubBaseFolderEntryForm)
\r
173 SubBaseFolderEntryForm::SubBaseFolderEntryForm(const SubBaseFolderEntryForm& pSubBaseFolderEntryForm)
\r
179 SubBaseFolderEntryForm::CreateFooterControls(void)
\r
181 AppLogDebug("ENTER");
\r
182 //Create Footer and controls contained within the footer
\r
183 result r = E_SUCCESS;
\r
186 String buttonShare;
\r
187 ButtonItem footerItemMenu;
\r
189 AppResource* pAppResource = null;
\r
190 pAppResource = Application::GetInstance()->GetAppResource();
\r
192 if (pAppResource != null)
\r
194 pAppResource->GetString(L"IDS_MF_SK3_EDIT", buttonEdit);
\r
195 pAppResource->GetString(L"IDS_COM_BUTTON_SHARE", buttonShare);
\r
198 footerItemMenu.Construct(BUTTON_ITEM_STYLE_ICON, IDA_BTN_MORE);
\r
199 //Construct the 4 FooterItems Copy, Create , Sort By and More
\r
203 _pEdit = new (std::nothrow) FooterItem();
\r
204 _pEdit->Construct(IDA_BTN_EDIT);
\r
205 _pEdit->SetText(buttonEdit);
\r
208 if (_pShare == null)
\r
210 _pShare = new (std::nothrow) FooterItem();
\r
211 _pShare->Construct(IDA_BTN_SHARE);
\r
212 _pShare->SetText(buttonShare);
\r
216 /* if (CheckSearchHistory() == false)
\r
218 if(_pSearch == null)
\r
220 _pSearch = new (std::nothrow) FooterItem();
\r
221 _pSearch->Construct(IDA_BTN_SEARCH);
\r
222 _pSearch->SetText(buttonSearch);
\r
226 Bitmap* pBitmap = pAppResource->GetBitmapN(IDB_MORE, BITMAP_PIXEL_FORMAT_ARGB8888);
\r
227 Bitmap* pBitmapPress = pAppResource->GetBitmapN(IDB_MORE_PRESS, BITMAP_PIXEL_FORMAT_ARGB8888);
\r
228 if (pBitmap != null)
\r
230 pBitmap->Scale(Dimension(H_FOOTER_BUTTON_MORE, W_FOOTER_BUTTON_MORE));
\r
231 footerItemMenu.SetIcon(BUTTON_ITEM_STATUS_NORMAL, pBitmap);
\r
233 if (pBitmapPress != null)
\r
235 pBitmapPress->Scale(Dimension(H_FOOTER_BUTTON_MORE, W_FOOTER_BUTTON_MORE));
\r
236 footerItemMenu.SetIcon(BUTTON_ITEM_STATUS_PRESSED, pBitmapPress);
\r
239 //Get the Footer and set the FooterItems.
\r
240 _pFooter = GetFooter();
\r
241 if (_pFooter != null)
\r
243 _pFooter->RemoveAllButtons();
\r
244 _pFooter->RemoveAllItems();
\r
246 _pFooter->SetStyle(FOOTER_STYLE_BUTTON_TEXT);
\r
247 _pFooter->AddItem(*_pEdit);
\r
248 _pFooter->AddItem(*_pShare);
\r
249 _pFooter->SetButton(BUTTON_POSITION_LEFT, footerItemMenu);
\r
251 /* if (CheckSearchHistory() == false)
\r
253 _pFooter->AddItem(*_pSearch);
\r
256 //Set am ActionEventListener to the Footer
\r
257 _pFooter->AddActionEventListener(*this);
\r
258 _pFooter->SetBackButton();
\r
259 _pFooter->SetBackButtonEnabled(true);
\r
260 _pFooter->Invalidate(true);
\r
264 delete pBitmapPress;
\r
269 SubBaseFolderEntryForm::CreateDeleteConfirmationPopUp(void)
\r
271 result r = E_SUCCESS;
\r
272 Rectangle popupBounds;
\r
274 // Label* pPanelLabel = null;
\r
275 Label* pPopupLabel = null;
\r
277 // Bitmap* pPanelBackground = null;
\r
278 // Bitmap* pPopUpBackground = null;
\r
280 String deleteLabel = L"";
\r
282 // pPanelBackground = UiApp::App::GetInstance()->GetAppResource()->GetBitmapN(IDB_BACKGROUND_POPUP_BOTTOM, BITMAP_PIXEL_FORMAT_ARGB8888);
\r
283 // pPopUpBackground = UiApp::App::GetInstance()->GetAppResource()->GetBitmapN(IDB_BACKGROUND_POPUP_CENTER, BITMAP_PIXEL_FORMAT_ARGB8888);
\r
285 //Create a new popup control
\r
286 _pDeleteConfirmationPopUp = new (std::nothrow) Popup();
\r
287 _pDeleteConfirmationPopUp->Construct(L"IDL_DELETE_POPUP");
\r
289 // pPanelLabel = static_cast< Label* >(_pDeleteConfirmationPopUp->GetControl(L"IDC_LABEL_BOTTOM_BACKGROUND", true));
\r
290 // TryCatch(pPanelLabel != null, , "MfMyFilesApp::pPanelLabel For Popup not created!");
\r
292 pPopupLabel = static_cast< Label* >(_pDeleteConfirmationPopUp->GetControl(L"IDC_LABEL_DELETE", true));
\r
293 TryCatch(pPopupLabel != null, , "MfMyFilesApp::pPanelLabel For Popup not created!");
\r
295 // pPanelBackground = MfUtility::GetNinepatchedBitmapN(IDB_BACKGROUND_POPUP_BOTTOM, pPanelLabel->GetWidth(), pPanelLabel->GetHeight());
\r
296 // pPopUpBackground = MfUtility::GetNinepatchedBitmapN(IDB_BACKGROUND_POPUP_CENTER, pPopupLabel->GetWidth(), pPopupLabel->GetHeight());
\r
298 // if (pPanelBackground != null)
\r
300 // pPanelLabel->SetBackgroundBitmap(*pPanelBackground);
\r
302 // if (pPopUpBackground != null)
\r
304 // pPopupLabel->SetBackgroundBitmap(*pPopUpBackground);
\r
307 AppResource::GetInstance()->GetString(L"IDS_MF_SK3_DELETE", deleteLabel);
\r
309 if(deleteLabel.IsEmpty() == false)
\r
311 deleteLabel.Append("?");
\r
312 pPopupLabel->SetText(deleteLabel);
\r
315 _pDeleteFile = static_cast< Button* >(_pDeleteConfirmationPopUp->GetControl(L"IDC_BUTTON_DELETE", true));
\r
316 TryCatch(_pDeleteFile != null, , "MfMyFilesApp::Button For Popup not created!");
\r
318 _pDeleteFile->SetActionId(IDA_DELETE_FILE);
\r
319 _pDeleteFile->AddActionEventListener(*this);
\r
320 _pDeleteFile->SetShowState(true);
\r
322 _pCancelDeletion = static_cast< Button* >(_pDeleteConfirmationPopUp->GetControl(L"IDC_BUTTON_CANCEL", true));
\r
323 TryCatch(_pCancelDeletion != null, , "MfMyFilesApp::Button For Popup not created!");
\r
325 _pCancelDeletion->SetActionId(IDA_CANCEL_DELETION);
\r
326 _pCancelDeletion->AddActionEventListener(*this);
\r
327 _pCancelDeletion->SetShowState(true);
\r
329 // if (pPopUpBackground != null)
\r
331 // delete pPopUpBackground;
\r
332 // pPopUpBackground = null;
\r
334 // if (pPanelBackground != null)
\r
336 // delete pPanelBackground;
\r
337 // pPanelBackground = null;
\r
342 // if (pPopUpBackground != null)
\r
344 // delete pPopUpBackground;
\r
345 // pPopUpBackground = null;
\r
347 // if (pPanelBackground != null)
\r
349 // delete pPanelBackground;
\r
350 // pPanelBackground = null;
\r
352 if (_pDeleteConfirmationPopUp != null)
\r
354 delete _pDeleteConfirmationPopUp;
\r
355 _pDeleteConfirmationPopUp = null;
\r
362 SubBaseFolderEntryForm::ShowSortByPopup(void)
\r
365 CreateSortByPopup();
\r
367 //Set the showstate of the popup to true. so that it's displayed on the form.
\r
368 if (_pSortByPopup != null)
\r
370 _pSortByPopup->SetShowState(true);
\r
371 _pSortByPopup->Invalidate(true);
\r
372 _pSortByPopup->Show();
\r
375 SetDefaultSelectionForSortByPopUp();
\r
380 SubBaseFolderEntryForm::HideSortByPopup(void)
\r
382 //Set the showstate of the popup to false. so that it's hidden on the form.
\r
383 if (_pSortByPopup != null && _pSortByPopup->IsVisible())
\r
385 _pSortByPopup->SetShowState(false);
\r
391 SubBaseFolderEntryForm::LoadRenameForm(int index)
\r
393 result r = E_SUCCESS;
\r
394 _renameOrCreate = SELECT_RENAME;
\r
395 ArrayList* pArg = null;
\r
396 Integer* pSourceSelected = null;
\r
397 SceneManager* pSceneManager = null;
\r
398 DirectoryEntry* pDirectory = null;
\r
400 pDirectory = static_cast< DirectoryEntry* >(_pFilenames->GetAt(index));
\r
401 TryCatch(pDirectory != null, , "failed to allocate memeory to cast to DirectoryEntry");
\r
403 pArg = new (std::nothrow) ArrayList();
\r
404 r = pArg->Construct();
\r
406 pSourceSelected = new (std::nothrow) Integer(_renameOrCreate);
\r
408 pArg->Add(pSourceSelected);
\r
409 TryCatch(r == E_SUCCESS, , "failed to construct parg");
\r
411 //pArg->Add(__rootMediaPath);
\r
412 pArg->Add(pDirectory);
\r
413 TryCatch(r == E_SUCCESS, , "failed to construct parg");
\r
415 pSceneManager = SceneManager::GetInstance();
\r
416 TryCatch(pSceneManager != null, , "failed to Get SceneManager instance");
\r
418 //pSceneManager->GoForward(SCENE_RENAME_FORM, pArg, SCENE_TRANSITION_ANIMATION_TYPE_LEFT);
\r
419 r = pSceneManager->GoForward(ForwardSceneTransition(IDSCN_CREATE_FOLDER_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArg);
\r
421 AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
\r
425 if (pSourceSelected != null)
\r
427 delete pSourceSelected;
\r
428 pSourceSelected = null;
\r
430 if (pDirectory != null)
\r
443 SubBaseFolderEntryForm::LoadSearchForm(void)
\r
445 ArrayList* pTopLevelDirectoryList = new (std::nothrow) ArrayList();
\r
447 //String* pDirectoryPath = null;
\r
448 //String* pTabSelected = null;
\r
449 ArrayList* pFilepathList = null;
\r
450 SceneManager* pSceneManager = null;
\r
452 //pDirectoryPath = new (std::nothrow) String();
\r
453 //pDirectoryPath->Append(FolderNavigationPresentationModel::GetCurrentPath());
\r
455 //pTabSelected = new (std::nothrow) String();
\r
456 //pTabSelected->Append(tabSelected);
\r
458 if (pTopLevelDirectoryList != null && _pFilenames != null)
\r
460 //pTopLevelDirectoryList->Add(*pDirectoryPath);
\r
461 pFilepathList = new (std::nothrow) ArrayList();
\r
462 if (pFilepathList != null)
\r
464 pFilepathList->Construct();
\r
465 pFilepathList->AddItems(*_pFilenames);
\r
466 pTopLevelDirectoryList->Add(pFilepathList);
\r
468 //pTopLevelDirectoryList->Add(*pTabSelected);
\r
471 TryCatch(pTopLevelDirectoryList != null, , "failed to Get SceneManager instance");
\r
473 pSceneManager = SceneManager::GetInstance();
\r
474 TryCatch(pSceneManager != null, , "failed to Get SceneManager instance");
\r
476 //pSceneManager->GoForward(SCENE_SEARCH_FORM, pTopLevelDirectoryList, SCENE_TRANSITION_ANIMATION_TYPE_LEFT);
\r
477 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_SEARCH_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pTopLevelDirectoryList);
\r
482 /*if (pDirectoryPath != null)
\r
484 delete pDirectoryPath;
\r
485 pDirectoryPath = null;
\r
488 if (pTabSelected != null)
\r
490 delete pTabSelected;
\r
491 pTabSelected = null;
\r
493 if (pFilepathList != null)
\r
495 delete pFilepathList;
\r
496 pFilepathList = null;
\r
499 if (pTopLevelDirectoryList != null)
\r
501 delete pTopLevelDirectoryList;
\r
502 pTopLevelDirectoryList = null;
\r
507 SubBaseFolderEntryForm::ShowViewAsPopup(void)
\r
509 //Call functions to create the popups.
\r
510 CreateViewAsPopupControl();
\r
512 //Set the showstate of the popup to true. so that it's displayed on the form.
\r
513 if (_pViewAsPopup != null)
\r
515 _pViewAsPopup->SetShowState(true);
\r
516 _pViewAsPopup->Show();
\r
519 SetDefaultSelectionForViewAsPopUp();
\r
523 SubBaseFolderEntryForm::HideViewAsPopup(void)
\r
525 //Set the showstate of the popup to false. so that it's hidden on the form.
\r
526 if (_pViewAsPopup != null && _pViewAsPopup->IsVisible())
\r
528 _pViewAsPopup->SetShowState(false);
\r
533 SubBaseFolderEntryForm::LoadCreateFolderForm(void)
\r
535 //Load the CreateFolder view in the current directory.
\r
536 result r = E_SUCCESS;
\r
537 Integer* pSourceSelected = null;
\r
538 SceneManager* pSceneManager = null;
\r
539 ArrayList* pArg = null;
\r
541 pSourceSelected = new (std::nothrow) Integer(SELECT_CREATE_FOLDER);
\r
543 pArg = new (std::nothrow) ArrayList();
\r
544 r = pArg->Construct();
\r
546 pArg->Add(pSourceSelected);
\r
547 TryCatch(r == E_SUCCESS, , "failed to construct parg");
\r
549 pSceneManager = SceneManager::GetInstance();
\r
550 TryCatch(pSceneManager != null, , "failed to construct parg");
\r
552 //pSceneManager->GoForward(SCENE_CREATE_FOLDER_FORM, pArg, SCENE_TRANSITION_ANIMATION_TYPE_LEFT);
\r
553 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_CREATE_FOLDER_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArg);
\r
558 if (pSourceSelected != null)
\r
560 delete pSourceSelected;
\r
570 SubBaseFolderEntryForm::LoadDetailForm(Tizen::Base::String& Fullpath)
\r
572 result r = E_SUCCESS;
\r
574 SceneManager* pSceneManager = null;
\r
575 ArrayList* pList = null;
\r
576 String* pFullFilePath = null;
\r
578 pList = new (std::nothrow) ArrayList();
\r
579 r = pList->Construct();
\r
581 pFullFilePath = new (std::nothrow) String(Fullpath);
\r
582 pList->Add(pFullFilePath);
\r
584 pSceneManager = SceneManager::GetInstance();
\r
585 TryCatch(pSceneManager != null, , "Failed to allocate Memory to pSceneManager");
\r
587 //pSceneManager->GoForward(SCENE_FILE_DETAIL_FORM, pList, SCENE_TRANSITION_ANIMATION_TYPE_LEFT);
\r
588 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_FILE_DETAIL_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pList);
\r
589 AppLogDebug("Exit: %s", GetErrorMessage(r));
\r
593 AppLogDebug("Exit: %s", GetErrorMessage(r));
\r
594 if (pFullFilePath != null)
\r
596 delete pFullFilePath;
\r
597 pFullFilePath = null;
\r
602 pList->RemoveAll();
\r
609 SubBaseFolderEntryForm::LoadEditForm(void)
\r
611 //__pFileListPM->SetFileEventListener(null);
\r
612 SceneManager* pSceneManager = SceneManager::GetInstance();
\r
613 ArrayList* pArgs = null;
\r
615 pArgs = new (std::nothrow) ArrayList();
\r
616 pArgs->Construct();
\r
618 pArgs->Add(* new (std::nothrow) Integer(_editOrShare));
\r
620 if (_pFolderEntryPM->GetSourceForm() == CREATE_ITEM_SOURCE_CATEGORY_SEARCH_FORM)
\r
622 pArgs->Add(*_pFolderEntryPM);
\r
625 if (pSceneManager != null)
\r
627 //pSceneManager->GoForward(SCENE_EDIT_FORM, pArg, SCENE_TRANSITION_ANIMATION_TYPE_LEFT);
\r
628 pSceneManager->GoForward(ForwardSceneTransition(IDSCN_EDIT_FORM, SCENE_TRANSITION_ANIMATION_TYPE_LEFT), pArgs);
\r
633 pArgs->RemoveAll();
\r
641 SubBaseFolderEntryForm::ShowFileProgressingPopup(void)
\r
643 CreateFileProgressingPopup();
\r
645 if (_pFileProgressingPopup != null)
\r
647 _pFileProgressingPopup->SetShowState(true);
\r
648 _pFileProgressingPopup->Show();
\r
653 SubBaseFolderEntryForm::HideFileProgressingPopup(void)
\r
655 if (_pFileProgressingPopup != null)
\r
657 _pFileProgressingPopup->SetShowState(false);
\r
659 if (_pFileProgressingPopup != null)
\r
661 delete _pFileProgressingPopup;
\r
662 _pFileProgressingPopup = null;
\r
668 SubBaseFolderEntryForm::CreateFileProgressingPopup(void)
\r
670 AppLogDebug("Enter");
\r
671 result r = E_SUCCESS;
\r
672 //String popUpTitle;
\r
674 //String fileProgress;
\r
676 if (_pFileProgressingPopup != null)
\r
678 AppLogDebug("_pFileProgressingPopup is not null");
\r
682 AppResource* pAppResource = null;
\r
683 pAppResource = UiApp::GetInstance()->GetAppResource();
\r
684 TryCatch(pAppResource != null, , "Failed to fetch AppResource");
\r
686 //pAppResource->GetString(L"IDS_FILE_PROCESSING", popUpTitle);
\r
687 pAppResource->GetString(L"IDS_COM_POP_DELETING", deleting);
\r
688 //pAppResource->GetString(L"IDS_FILE_PROGRESS", fileProgress);
\r
690 _pFileProgressingPopup = new (std::nothrow) Popup();
\r
691 _pFileProgressingPopup->Construct(L"IDL_FILE_PROGRESSING_POPUP");
\r
692 TryCatch(_pFileProgressingPopup != null, , "Failed to allocate memory to FileProgressing Popup.");
\r
694 //_pFileProgressingPopup->SetTitleText(popUpTitle); //Not in UI
\r
697 _pFileProgressingCancelButton = static_cast< Button* >(_pFileProgressingPopup->GetControl(L"IDC_CANCEL_BUTTON", true));
\r
698 TryCatch(_pFileProgressingCancelButton != null, , "Failed to fetch _pFileProgressingCancelButton.");
\r
700 _pFileProgressingCancelButton->SetActionId(IDA_BTN_ANIMATION_POPUP_CANCEL);
\r
701 _pFileProgressingCancelButton->AddActionEventListener(*this);
\r
702 _pFileProgressingCancelButton->SetShowState(true);
\r
704 _pFileProgressingProgress = static_cast< Progress* >(_pFileProgressingPopup->GetControl(L"IDC_PROGRESS_BAR", true));
\r
705 TryCatch(_pFileProgressingProgress != null, , "Failed to fetch _pFileProgressingProgress.");
\r
707 _pFileProgressingProgress->SetName(L"IDC_ANIMATION_PROGRESS");
\r
708 _pFileProgressingProgress->SetValue(0);
\r
710 _pFileProgressingHeaderLabel = static_cast< Label* >(_pFileProgressingPopup->GetControl(L"IDC_ANIMATION_HEADER", true));
\r
711 TryCatch(_pFileProgressingHeaderLabel != null, , "Failed to fetch _pFileProgressingHeaderLabel.");
\r
713 _pFileProgressingHeaderLabel->SetName(L"IDC_ANIMATION_HEADER");
\r
714 _pFileProgressingHeaderLabel->SetText(deleting);
\r
715 _pFileProgressingHeaderLabel->SetShowState(true);
\r
716 _pFileProgressingHeaderLabel->Invalidate(true);
\r
719 _pFileProgressingLabel = static_cast< Label* >(_pFileProgressingPopup->GetControl(L"IDC_ANIMATION_LABEL", true));
\r
720 TryCatch(_pFileProgressingLabel != null, , "Failed to fetch _pFileProgressingLabel.");
\r
722 _pFileProgressingLabel->SetName(L"IDC_FILE_COUNT_LABEL");
\r
723 //_pFileProgressingLabel->SetText(fileProgress);
\r
724 _pFileProgressingLabel->SetShowState(true);
\r
731 if (_pFileProgressingPopup != null)
\r
733 delete _pFileProgressingPopup;
\r
734 _pFileProgressingPopup = null;
\r
741 SubBaseFolderEntryForm::OnOrientationChanged(const Tizen::Ui::Control& source, Tizen::Ui::OrientationStatus orientationStatus)
\r
743 int x_FooterPosition = 0;
\r
744 int y_FooterPosition = 0;
\r
745 int x_ContextMenu = 0;
\r
746 int y_ContextMenu = 0;
\r
748 Rectangle listViewBounds(GetClientAreaBounds().x, H_DISPLAY_PATH_LABEL, GetClientAreaBounds().width, GetClientAreaBounds().height);
\r
749 Rectangle labelBounds(GetClientAreaBounds().x, 0, GetClientAreaBounds().width, H_DISPLAY_PATH_LABEL);
\r
751 _pFooter = GetFooter();
\r
752 if (_pFooter != null)
\r
754 _pFooter->GetPosition(x_FooterPosition, y_FooterPosition);
\r
757 x_ContextMenu = x_FooterPosition + 3 * (listViewBounds.width / 4);
\r
758 y_ContextMenu = y_FooterPosition;
\r
760 switch (orientationStatus)
\r
762 case ORIENTATION_STATUS_PORTRAIT:
\r
764 if (_pListView != null)
\r
766 _pListView->SetBounds(listViewBounds);
\r
768 if (_pIconListView != null)
\r
770 _pIconListView->SetBounds(listViewBounds);
\r
772 if (_pMoreContextMenu != null)
\r
774 _pMoreContextMenu->SetAnchorPosition(Point(x_ContextMenu, y_ContextMenu));
\r
776 /* if (__pLabelDisplayPath != null)
\r
778 __pLabelDisplayPath->SetBounds(labelBounds);
\r
783 case ORIENTATION_STATUS_LANDSCAPE:
\r
785 if (_pListView != null)
\r
787 _pListView->SetBounds(listViewBounds);
\r
789 if (_pIconListView != null)
\r
791 _pIconListView->SetBounds(listViewBounds);
\r
793 if (_pMoreContextMenu != null)
\r
795 _pMoreContextMenu->SetAnchorPosition(Point(x_ContextMenu, y_ContextMenu));
\r
797 /* if (__pLabelDisplayPath != null)
\r
799 __pLabelDisplayPath->SetBounds(labelBounds);
\r
815 SubBaseFolderEntryForm::OnFileManagingStart(void)
\r
817 ShowFileProgressingPopup();
\r
821 SubBaseFolderEntryForm::OnFileManagingStop(FileManagingResult fileManagingResult)
\r
823 //Empty Implementation.
\r
827 SubBaseFolderEntryForm::HideFileExtension(void)
\r
829 int listViewDisplayType = VIEW_TYPE_AS_NORMAL_LIST;
\r
830 String viewStyleKeyName(L"ListDisplayType");
\r
832 result r = E_SUCCESS;
\r
834 AppRegistry* pAppRegistry = null;
\r
835 pAppRegistry = UiApp::App::GetInstance()->GetAppRegistry();
\r
838 if (pAppRegistry != null)
\r
840 r = pAppRegistry->Set(_extensionKeyName, _hideExtension);
\r
841 r = pAppRegistry->Save();
\r
843 r = pAppRegistry->Get(viewStyleKeyName, listViewDisplayType);
\r
845 if (_pMoreContextMenu != null)
\r
847 r = _pMoreContextMenu->SetItemAt(2, _showExtension, IDA_CONTEXT_MENU_SHOW_EXTENSION);
\r
848 AppLogDebug("error %s", GetErrorMessage(r));
\r
851 //Update the corresponding List.
\r
852 if (listViewDisplayType == VIEW_TYPE_AS_THUMBNAILS)
\r
854 if (_pListView != null && _pListView->IsVisible())
\r
856 _pListView->SetShowState(false);
\r
858 if (_pIconListView != null)
\r
860 _pIconListView->SetShowState(true);
\r
861 _pIconListView->UpdateList();
\r
866 if (_pIconListView != null && _pIconListView->IsVisible())
\r
868 _pIconListView->SetShowState(false);
\r
870 if (_pListView != null)
\r
872 _pListView->UpdateList();
\r
873 _pListView->SetShowState(true);
\r
877 if (_pMoreContextMenu != null)
\r
879 delete _pMoreContextMenu;
\r
880 _pMoreContextMenu = null;
\r
885 AppLogDebug("Exit : %s", GetErrorMessage(r));
\r
889 SubBaseFolderEntryForm::ShowFileExtension(void)
\r
891 int listViewDisplayType = VIEW_TYPE_AS_NORMAL_LIST;
\r
892 String viewStyleKeyName(L"ListDisplayType");
\r
894 result r = E_SUCCESS;
\r
896 AppRegistry* pAppRegistry = null;
\r
897 pAppRegistry = UiApp::App::GetInstance()->GetAppRegistry();
\r
899 if (pAppRegistry != null)
\r
901 r = pAppRegistry->Set(_extensionKeyName, _showExtension);
\r
902 r = pAppRegistry->Save();
\r
904 r = pAppRegistry->Get(viewStyleKeyName, listViewDisplayType);
\r
907 if (_pMoreContextMenu != null)
\r
909 r = _pMoreContextMenu->SetItemAt(2, _hideExtension, IDA_CONTEXT_MENU_HIDE_EXTENSION);
\r
910 AppLogDebug("error %s", GetErrorMessage(r));
\r
913 if (listViewDisplayType == VIEW_TYPE_AS_THUMBNAILS)
\r
915 if (_pListView != null && _pListView->IsVisible())
\r
917 _pListView->SetShowState(false);
\r
919 if (_pIconListView != null)
\r
921 _pIconListView->UpdateList();
\r
922 _pIconListView->SetShowState(true);
\r
927 if (_pIconListView != null && _pIconListView->IsVisible())
\r
929 _pIconListView->SetShowState(false);
\r
931 if (_pListView != null)
\r
933 _pListView->UpdateList();
\r
934 _pListView->SetShowState(true);
\r
938 if (_pMoreContextMenu != null)
\r
940 delete _pMoreContextMenu;
\r
941 _pMoreContextMenu = null;
\r
945 AppLogDebug("Exit: %s", GetErrorMessage(r));
\r
950 SubBaseFolderEntryForm::HideDeleteConfirmationPopup(void)
\r
952 if (_pDeleteConfirmationPopUp != null && _pDeleteConfirmationPopUp->IsVisible())
\r
954 _pDeleteConfirmationPopUp->SetShowState(false);
\r
959 SubBaseFolderEntryForm::ShowDeleteConfirmationPopup(void)
\r
961 CreateDeleteConfirmationPopUp();
\r
963 if (_pDeleteConfirmationPopUp != null)
\r
965 _pDeleteConfirmationPopUp->SetShowState(true);
\r
966 _pDeleteConfirmationPopUp->Show();
\r
971 SubBaseFolderEntryForm::CreateViewAsPopupControl(void)
\r
973 AppLogDebug("ENTER");
\r
974 //Creates a popup control for the ViewAs context item asking which view is to be shown
\r
976 result r = E_SUCCESS;
\r
978 if (_pViewAsPopup != null)
\r
980 AppLogDebug("_pViewAsPopup is not null");
\r
984 String viewAsPopupTitle;
\r
985 String cancelButton;
\r
986 String sortByPopupTitle;
\r
988 // Label* pViewAsPanelLabel = null;
\r
990 // Label* pViewAsPopupLabel = null;
\r
992 // Bitmap* pPanelBackground = null;
\r
993 // Bitmap* pPopUpBackground = null;
\r
995 // pPanelBackground = UiApp::App::GetInstance()->GetAppResource()->GetBitmapN(IDB_BACKGROUND_POPUP_BOTTOM, BITMAP_PIXEL_FORMAT_ARGB8888);
\r
996 // pPopUpBackground = UiApp::App::GetInstance()->GetAppResource()->GetBitmapN(IDB_BACKGROUND_POPUP_CENTER, BITMAP_PIXEL_FORMAT_ARGB8888);
\r
998 //Create a new popup control
\r
999 _pViewAsPopup = new (std::nothrow) Popup();
\r
1000 _pViewAsPopup->Construct(L"IDL_VIEW_AS_POPUP");
\r
1002 //The cancel button inside the popup, hides the popup when clicked.
\r
1003 _pCancelViewAs = static_cast< Button* >(_pViewAsPopup->GetControl(L"IDC_CANCEL_BUTTON", true));
\r
1004 TryCatch(_pCancelViewAs != null, , "MfMyFilesApp::Button For Popup not created!");
\r
1006 _pCancelViewAs->SetActionId(IDA_BTN_POPUP_CANCEL);
\r
1007 _pCancelViewAs->AddActionEventListener(*this);
\r
1008 _pCancelViewAs->SetShowState(true);
\r
1010 // pViewAsPanelLabel = static_cast< Label* >(_pViewAsPopup->GetControl(L"IDC_LABEL_BOTTOM_BACKGROUND", true));
\r
1011 // TryCatch(pViewAsPanelLabel != null, , "MfMyFilesApp::pLabel For Popup not created!");
\r
1013 // pViewAsPopupLabel = static_cast< Label* >(_pViewAsPopup->GetControl(L"IDC_LABEL_POPUP_BACKGROUND", true));
\r
1014 // TryCatch(pViewAsPopupLabel != null, , "MfMyFilesApp::pLabel For Popup not created!");
\r
1016 // pPanelBackground = MfUtility::GetNinepatchedBitmapN(IDB_BACKGROUND_POPUP_BOTTOM, pViewAsPanelLabel->GetWidth(), pViewAsPanelLabel->GetHeight());
\r
1017 // pPopUpBackground = MfUtility::GetNinepatchedBitmapN(IDB_BACKGROUND_POPUP_CENTER, pViewAsPopupLabel->GetWidth(), pViewAsPopupLabel->GetHeight());
\r
1019 // if (pPanelBackground != null)
\r
1021 // pViewAsPanelLabel->SetBackgroundBitmap(*pPanelBackground);
\r
1024 // if (pPopUpBackground != null)
\r
1026 // pViewAsPopupLabel->SetBackgroundBitmap(*pPopUpBackground);
\r
1029 //The listview control which is to be added inside the popup. The itemprovider and listener are
\r
1030 //implemented in another class because this class already contains an instance of Listview control
\r
1031 //attached to an ItemProvider.
\r
1033 _pViewAsPopup->SetControlAlwaysOnTop(*_pCancelViewAs, true);
\r
1036 _pViewAsListView = static_cast< ListView* >(_pViewAsPopup->GetControl(L"IDC_LISTVIEW_VIEW_AS", true));
\r
1037 TryCatch(_pViewAsListView != null, , "MfMyFilesApp::ListView Control For Popup not created!");
\r
1039 _pViewAsListView->SetShowState(true);
\r
1040 _pViewAsListView->AddListViewItemEventListener(*_pCustomListViewForPopup);
\r
1041 _pViewAsListView->SetItemProvider(*_pCustomListViewForPopup);
\r
1042 _pViewAsListView->SetName(L"VIEW_AS_LISTVIEW");
\r
1043 _pViewAsListView->SetItemDividerColor(Color::GetColor(COLOR_ID_GREY));
\r
1045 AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
\r
1047 // if (pPanelBackground != null)
\r
1049 // delete pPanelBackground;
\r
1050 // pPanelBackground = null;
\r
1052 // if (pPopUpBackground != null)
\r
1054 // delete pPopUpBackground;
\r
1055 // pPopUpBackground = null;
\r
1060 if (_pViewAsPopup != null)
\r
1062 delete _pViewAsPopup;
\r
1063 _pViewAsPopup = null;
\r
1066 if (_pCustomListViewForPopup != null)
\r
1068 delete _pCustomListViewForPopup;
\r
1069 _pCustomListViewForPopup = null;
\r
1072 // if (pPanelBackground != null)
\r
1074 // delete pPanelBackground;
\r
1075 // pPanelBackground = null;
\r
1078 // if (pPopUpBackground != null)
\r
1080 // delete pPopUpBackground;
\r
1081 // pPopUpBackground = null;
\r
1087 SubBaseFolderEntryForm::ShowMoreContextMenu(void)
\r
1089 String extensionStatus;
\r
1091 AppRegistry* pAppRegistry = null;
\r
1092 result r = E_SUCCESS;
\r
1093 pAppRegistry = UiApp::App::GetInstance()->GetAppRegistry();
\r
1095 //Show ContextMenu with More Options
\r
1096 if (pAppRegistry != null)
\r
1098 r = pAppRegistry->Get(_extensionKeyName, extensionStatus);
\r
1101 if (_pMoreContextMenu != null)
\r
1103 if (extensionStatus == _hideExtension)
\r
1105 r = _pMoreContextMenu->SetItemAt(2, _showExtension, IDA_CONTEXT_MENU_SHOW_EXTENSION);
\r
1109 r = _pMoreContextMenu->SetItemAt(2, _hideExtension, IDA_CONTEXT_MENU_HIDE_EXTENSION);
\r
1112 _pMoreContextMenu->SetShowState(true);
\r
1113 _pMoreContextMenu->Show();
\r
1115 AppLogDebug("Exit: %s", GetErrorMessage(r));
\r
1119 SubBaseFolderEntryForm::OnListViewItemStateChangedNotify(ViewType listViewStyle)
\r
1121 AppLogDebug("ENTER");
\r
1123 int popupSource = POP_UP_VIEW_AS;
\r
1124 int sortType = SORT_BY_TYPE_NAME_ASCENDING;
\r
1125 int thumbnailRequestId = 0;
\r
1127 AppRegistry* pAppRegistry = null;
\r
1128 String sortByKeyName(L"SortBy");
\r
1130 pAppRegistry = UiApp::App::GetInstance()->GetAppRegistry();
\r
1132 if (_pCustomListViewForPopup != null)
\r
1134 popupSource = _pCustomListViewForPopup->GetSelectionPopup();
\r
1137 pAppRegistry->Get(sortByKeyName, sortType);
\r
1139 if (popupSource == POP_UP_VIEW_AS)
\r
1141 _flagViewAsStatus = listViewStyle;
\r
1147 HideViewAsPopup();
\r
1151 thumbnailRequestId = _pFolderEntryPM->GetCurrentReqId() + 1;
\r
1152 _pFolderEntryPM->SetCurrentReqId(thumbnailRequestId);
\r
1153 if (_pFolderEntryPM != null && _pFolderEntryPM->GetSourceForm() != CREATE_ITEM_SOURCE_SPLIT_PANEL_DIR_TREE)
\r
1155 _pFolderEntryPM->SortFolderEntries();
\r
1157 HideSortByPopup();
\r
1158 if (_pListView != null && _pListView->IsVisible())
\r
1160 _pListView->UpdateList();
\r
1164 if (_pIconListView != null && _pIconListView->IsVisible())
\r
1166 _pIconListView->UpdateList();
\r
1170 if (_pFolderEntryPM != null)
\r
1172 _pFolderEntryPM->InitThumbnailManager();
\r
1177 if (_pMoreContextMenu != null)
\r
1179 delete _pMoreContextMenu;
\r
1180 _pMoreContextMenu = null;
\r
1184 SubBaseFolderEntryForm::OnIconListViewItemStateChangeNotify()
\r
1186 if (_pIconListView != null && _pIconListView->IsVisible())
\r
1188 _pIconListView->UpdateList();
\r
1192 SubBaseFolderEntryForm::OnFooterStateChangeNotify(void)
\r
1194 SetFooterVisibility(DISABLE_FOOTER_ITEM);
\r
1196 _pFooter = GetFooter();
\r
1197 if (_pFooter != null)
\r
1199 _pFooter->Invalidate(true);
\r
1204 SubBaseFolderEntryForm::OnAppControlCompleteResponseReceived(const Tizen::App::AppId& appId, const Tizen::Base::String& operationId, Tizen::App::AppCtrlResult appControlResult, const Tizen::Base::Collection::IMap* pExtraData)
\r
1206 AppLogDebug("OnAppControlCompleteResponseReceived");
\r
1207 result r = E_SUCCESS;
\r
1208 CustomAppControl::GetInstance()->SetAppControlInUse(null);
\r
1210 ContentType contentType = CONTENT_TYPE_UNKNOWN;
\r
1211 contentType = ContentManagerUtil::CheckContentType(_pathOfSelectedFile);
\r
1212 AppLogDebug("OnAppControlCompleteResponseReceived:%d", contentType);
\r
1214 if (GetLastResult() == E_FILE_NOT_FOUND)
\r
1216 _pFolderEntryPM->RefreshFolderEntries();
\r
1217 if (_pListView != null && _pListView->IsVisible())
\r
1219 r = _pListView->UpdateList();
\r
1222 if (_pIconListView != null && _pIconListView->IsVisible())
\r
1224 r = _pIconListView->UpdateList();
\r
1226 _pFolderEntryPM->InitThumbnailManager();
\r
1231 SubBaseFolderEntryForm::SetDefaultSelectionForSortByPopUp(void)
\r
1233 result r = E_SUCCESS;
\r
1235 int defaultSortPopUpSelect = 0;
\r
1237 int sortType = SORT_BY_TYPE_NAME_ASCENDING;
\r
1239 int uncheckItem1 = 0;
\r
1240 int uncheckItem2 = 0;
\r
1241 int uncheckItem3 = 0;
\r
1242 int uncheckItem4 = 0;
\r
1243 int uncheckItem5 = 0;
\r
1245 String sortByKeyName(L"SortBy");
\r
1247 AppRegistry* pAppRegistry = null;
\r
1249 pAppRegistry = UiApp::App::GetInstance()->GetAppRegistry();
\r
1251 r = pAppRegistry->Get(sortByKeyName, sortType);
\r
1252 TryCatch(r == E_SUCCESS, , "Failed To Get Value From AppRegistry");
\r
1257 case SORT_BY_TYPE_NAME_ASCENDING:
\r
1259 defaultSortPopUpSelect = 0;
\r
1268 case SORT_BY_TYPE_NAME_DESCENDING:
\r
1270 defaultSortPopUpSelect = 1;
\r
1279 case SORT_BY_TYPE_DATE_RECENT:
\r
1281 defaultSortPopUpSelect = 2;
\r
1291 case SORT_BY_TYPE_DATE_OLDEST:
\r
1293 defaultSortPopUpSelect = 3;
\r
1302 case SORT_BY_TYPE_SIZE_ASCENDING:
\r
1304 defaultSortPopUpSelect = 4;
\r
1313 case SORT_BY_TYPE_SIZE_DESCENDING:
\r
1315 defaultSortPopUpSelect = 4;
\r
1324 case SORT_BY_TYPE_ASCENDING:
\r
1326 defaultSortPopUpSelect = 5;
\r
1336 case SORT_BY_TYPE_DESCENDING:
\r
1338 defaultSortPopUpSelect = 5;
\r
1350 defaultSortPopUpSelect = 0;
\r
1351 AppLogDebug("UnSupported case reached");
\r
1356 if (_pCustomListViewForPopup != null)
\r
1358 _pCustomListViewForPopup->SetSelectionPopup(POP_UP_SORT_BY);
\r
1361 if (_pSortByPopup != null && _pSortByListView != null)
\r
1363 _pSortByListView->UpdateList();
\r
1364 _pSortByListView->SetItemChecked(defaultSortPopUpSelect, true);
\r
1365 _pSortByListView->SetItemChecked(uncheckItem1, false);
\r
1366 _pSortByListView->SetItemChecked(uncheckItem2, false);
\r
1367 _pSortByListView->SetItemChecked(uncheckItem3, false);
\r
1368 _pSortByListView->SetItemChecked(uncheckItem4, false);
\r
1369 _pSortByListView->SetItemChecked(uncheckItem5, false);
\r
1371 _pSortByListView->Invalidate(true);
\r
1380 SubBaseFolderEntryForm::SwitchViewType(void)
\r
1382 String viewStyleKeyName(L"ListDisplayType");
\r
1384 switch (_flagViewAsStatus)
\r
1387 case VIEW_TYPE_AS_DETAILED_LIST:
\r
1389 if (_pIconListView != null && _pIconListView->IsVisible())
\r
1391 _pIconListView->SetShowState(false);
\r
1393 if (_pListView != null)
\r
1395 _pListView->UpdateList();
\r
1396 _pListView->ScrollToItem(0);
\r
1397 _pListView->SetShowState(true);
\r
1403 case VIEW_TYPE_AS_NORMAL_LIST:
\r
1405 if (_pIconListView != null && _pIconListView->IsVisible())
\r
1407 _pIconListView->SetShowState(false);
\r
1410 if (_pListView != null)
\r
1412 _pListView->UpdateList();
\r
1413 _pListView->ScrollToItem(0);
\r
1414 _pListView->SetShowState(true);
\r
1419 case VIEW_TYPE_AS_THUMBNAILS:
\r
1421 if (_pListView != null && _pListView->IsVisible())
\r
1423 _pListView->SetShowState(false);
\r
1425 if (_pIconListView != null)
\r
1427 _pIconListView->UpdateList();
\r
1428 _pIconListView->ScrollToItem(0);
\r
1429 _pIconListView->SetShowState(true);
\r
1436 if (_pListView != null)
\r
1438 _pListView->UpdateList();
\r
1445 FolderEntryPresentationModel*
\r
1446 SubBaseFolderEntryForm::GetFoldeEntryPresentationModel(void)
\r
1448 return _pFolderEntryPM;
\r
1452 SubBaseFolderEntryForm::DeleteFile(String& filePath)
\r
1454 AppLogDebug("ENTER");
\r
1455 result r = E_SUCCESS;
\r
1457 //_pFolderEntryPM->SetFileEventListener(null);
\r
1458 ((MyFilesApp*) Application::GetInstance())->SetNotifyListener(this);
\r
1459 _pFileManager->DeleteFolderEntries(&filePath);
\r
1461 AppLogDebug("EXIT: r = %s", GetErrorMessage(GetLastResult()));
\r
1466 SubBaseFolderEntryForm::SubBaseOnActionPerformed(const Tizen::Ui::Control& source, int actionId)
\r
1468 DirectoryEntry* pDirStr = null;
\r
1473 case IDA_BTN_EDIT:
\r
1475 _editOrShare = FILE_MANAGE_EDIT;
\r
1476 //If filenames is not empty then Load the edit form.
\r
1477 if (_pFilenames->GetCount() != 0)
\r
1479 //_pFolderEntryPM->SetFileEventListener(null);
\r
1486 case IDA_BTN_SHARE:
\r
1488 AppLogDebug("Share Button Clicked!");
\r
1490 _editOrShare = FILE_MANAGE_SHARE;
\r
1491 if (_pFilenames->GetCount() != 0)
\r
1493 //_pFolderEntryPM->SetFileEventListener(null);
\r
1497 //todo: Goto Share Form.
\r
1501 case IDA_BTN_MORE:
\r
1503 CreateMoreContextMenu();
\r
1505 ShowMoreContextMenu();
\r
1509 case IDA_CONTEXT_MENU_BTN_SORT_BY:
\r
1511 //Show the SortBy PopUp.
\r
1512 if (_pCustomListViewForPopup != null)
\r
1514 _pCustomListViewForPopup->SetSelectionPopup(POP_UP_SORT_BY);
\r
1516 ShowSortByPopup();
\r
1520 case IDA_CONTEXT_MENU_CREATE_FOLDER:
\r
1522 //Load the CreateFolder Form.
\r
1523 //_pFolderEntryPM->SetFileEventListener(null);
\r
1524 _renameOrCreate = SELECT_CREATE_FOLDER;
\r
1526 if (_pMoreContextMenu != null)
\r
1528 delete _pMoreContextMenu;
\r
1529 _pMoreContextMenu = null;
\r
1532 LoadCreateFolderForm();
\r
1536 case IDA_CONTEXT_MENU_VIEW_AS:
\r
1538 //Show the ViewAs Popup
\r
1539 if (_pCustomListViewForPopup != null)
\r
1541 _pCustomListViewForPopup->SetSelectionPopup(POP_UP_VIEW_AS);
\r
1544 ShowViewAsPopup();
\r
1548 case IDA_BTN_POPUP_CANCEL:
\r
1550 //Hide the ViewAs PopUp and redraw the form.
\r
1551 HideViewAsPopup();
\r
1555 case IDA_BTN_SORT_POPUP_CANCEL:
\r
1557 //Hide the SortBy PopUp and redraw the form.
\r
1558 HideSortByPopup();
\r
1562 case IDA_CONTEXT_MENU_BTN_SEARCH:
\r
1564 //Load the SearchForm
\r
1569 case IDA_DELETE_FILE:
\r
1571 HideDeleteConfirmationPopup();
\r
1573 if (_pDeleteConfirmationPopUp != null)
\r
1575 delete _pDeleteConfirmationPopUp;
\r
1576 _pDeleteConfirmationPopUp = null;
\r
1578 _filePath.Clear();
\r
1580 if (_pFilenames != null)
\r
1582 pDirStr = static_cast< DirectoryEntry* >(_pFilenames->GetAt(_indexToDelete));
\r
1584 if (pDirStr != null)
\r
1586 _filePath = pDirStr->GetFullFilePath();
\r
1588 _indexTracker = _indexToDelete;
\r
1589 //Call the DeleteFile Function.
\r
1590 DeleteFile(_filePath);
\r
1594 case IDA_CANCEL_DELETION:
\r
1596 HideDeleteConfirmationPopup();
\r
1598 if (_pDeleteConfirmationPopUp != null)
\r
1600 delete _pDeleteConfirmationPopUp;
\r
1601 _pDeleteConfirmationPopUp = null;
\r
1606 case IDA_BTN_ANIMATION_POPUP_CANCEL:
\r
1608 AppLogDebug("IDA_BTN_ANIMATION_POPUP_CANCEL");
\r
1609 HideFileProgressingPopup();
\r
1610 _pFileManager->ForceStopWorkerThread();
\r
1614 case IDA_ICONLISTVIEW_DETAILS:
\r
1616 if (_pIconListViewContextMenu != null)
\r
1618 delete _pIconListViewContextMenu;
\r
1619 _pIconListViewContextMenu = null;
\r
1622 if (_currentIndex != INVALID_LIST_INDEX && _pFilenames != null)
\r
1624 pDirStr = static_cast <DirectoryEntry*>(_pFilenames->GetAt(_currentIndex));
\r
1626 if (pDirStr != null)
\r
1628 fullPath = pDirStr->GetFullFilePath();
\r
1631 LoadDetailForm(fullPath);
\r
1637 case IDA_ICONLISTVIEW_DELETE:
\r
1639 if (_pIconListViewContextMenu != null)
\r
1641 delete _pIconListViewContextMenu;
\r
1642 _pIconListViewContextMenu = null;
\r
1645 HideDeleteConfirmationPopup();
\r
1647 if (_pDeleteConfirmationPopUp != null)
\r
1649 delete _pDeleteConfirmationPopUp;
\r
1650 _pDeleteConfirmationPopUp = null;
\r
1653 _filePath.Clear();
\r
1655 if (_pFilenames != null)
\r
1657 pDirStr = static_cast< DirectoryEntry* >(_pFilenames->GetAt(_currentIndex));
\r
1660 if (pDirStr != null)
\r
1662 _filePath = pDirStr->GetFullFilePath();
\r
1665 _indexTracker = _currentIndex;
\r
1667 //Call the DeleteFile Function.
\r
1668 DeleteFile(_filePath);
\r
1673 case IDA_ICONLISTVIEW_RENAME:
\r
1675 if (_pIconListViewContextMenu != null)
\r
1677 delete _pIconListViewContextMenu;
\r
1678 _pIconListViewContextMenu = null;
\r
1681 if (_currentIndex != INVALID_LIST_INDEX && _pFilenames != null)
\r
1683 pDirStr = static_cast <DirectoryEntry*>(_pFilenames->GetAt(_currentIndex));
\r
1685 if (pDirStr != null)
\r
1687 _currentFileName.Clear();
\r
1688 _currentFileName = pDirStr->GetFileName();
\r
1692 _renameIndex = _currentIndex;
\r
1693 _renameOrCreate = SELECT_RENAME;
\r
1695 //Load the Rename View of the item selected.
\r
1696 LoadRenameForm(_currentIndex);
\r
1709 SubBaseFolderEntryForm::OnListViewContextItemStateChanged(Tizen::Ui::Controls::ListView& listView, int index, int elementId, Tizen::Ui::Controls::ListContextItemStatus status)
\r
1711 DirectoryEntry* pDirStr = null;
\r
1713 if (_pFilenames != null)
\r
1715 pDirStr = static_cast< DirectoryEntry* >(_pFilenames->GetAt(index));
\r
1717 if (pDirStr != null)
\r
1719 switch (elementId)
\r
1721 case IDA_CONTEXT_DETAIL:
\r
1723 _filePath.Clear();
\r
1724 _filePath = pDirStr->GetFullFilePath();
\r
1725 LoadDetailForm(_filePath);
\r
1729 case IDA_CONTEXT_RENAME:
\r
1731 _currentFileName.Clear();
\r
1732 _currentFileName = pDirStr->GetFileName();
\r
1733 _renameIndex = index;
\r
1734 _renameOrCreate = SELECT_RENAME;
\r
1735 //Load the Rename View of the item selected.
\r
1736 LoadRenameForm(index);
\r
1740 case IDA_CONTEXT_DELETE:
\r
1742 _indexToDelete = index;
\r
1744 ShowDeleteConfirmationPopup();
\r
1750 //Empty Implementation.
\r
1759 SubBaseFolderEntryForm::OnThumbnailReceived(ThumbRequest* pThumbReq)
\r
1761 result res = E_SUCCESS;
\r
1762 AppLogDebug("Enter");
\r
1764 if (_pFolderEntryPM)
\r
1766 if (pThumbReq != null)
\r
1768 if (pThumbReq->GetCurrentSourceForm() != _pFolderEntryPM->GetSourceForm())
\r
1770 if (pThumbReq->pBitmap != null)
\r
1772 delete pThumbReq->pBitmap;
\r
1778 if (pThumbReq != null)
\r
1780 if (pThumbReq->GetCurrentRequestId() != _pFolderEntryPM->GetCurrentReqId())
\r
1782 if (pThumbReq->pBitmap != null)
\r
1784 delete pThumbReq->pBitmap;
\r
1786 AppLogDebug("mismatch in id so returning");
\r
1792 if (pThumbReq->iRquestId < _pFilenames->GetCount())
\r
1794 _pFolderEntryPM->OnThumbnailResponseReceived(pThumbReq->pBitmap, pThumbReq->iRquestId);
\r
1795 if (_pListView && _pListView->IsVisible())
\r
1797 res = _pListView->RefreshList(pThumbReq->iRquestId, LIST_REFRESH_TYPE_ITEM_MODIFY);
\r
1799 else if (_pIconListView && _pIconListView->IsVisible())
\r
1801 res = _pIconListView->RefreshList(pThumbReq->iRquestId, LIST_REFRESH_TYPE_ITEM_MODIFY);
\r
1805 AppLogDebug("Thumbnail Request is not valid");
\r
1809 _pFolderEntryPM->OnThumbnailResponseFailed();
\r
1812 AppLogDebug("Exit %s", GetErrorMessage(res));
\r
1817 SubBaseFolderEntryForm::CreateSortByPopup(void)
\r
1819 result r = E_SUCCESS;
\r
1821 if (_pSortByPopup != null)
\r
1823 AppLogDebug("_pSortByPopup is not null");
\r
1827 String cancelButton;
\r
1828 String sortByPopupTitle;
\r
1830 // Label* pSortByPanelLabel = null;
\r
1831 // Label* pSortByPopupLabel = null;
\r
1833 // Bitmap* pPanelBackground = null;
\r
1834 // Bitmap* pPopUpBackground = null;
\r
1836 // pPanelBackground = UiApp::App::GetInstance()->GetAppResource()->GetBitmapN(IDB_BACKGROUND_POPUP_BOTTOM, BITMAP_PIXEL_FORMAT_ARGB8888);
\r
1837 //pPopUpBackground = UiApp::App::GetInstance()->GetAppResource()->GetBitmapN(IDB_BACKGROUND_POPUP_CENTER, BITMAP_PIXEL_FORMAT_ARGB8888);
\r
1838 // pPopUpBackground = MfUtility::GetNinepatchedBitmapN(IDB_BACKGROUND_POPUP_CENTER, 512, 632);
\r
1839 // pPanelBackground = MfUtility::GetNinepatchedBitmapN(IDB_BACKGROUND_POPUP_BOTTOM, 612, 96);
\r
1841 _pSortByPopup = new (std::nothrow) Popup();
\r
1842 _pSortByPopup->Construct(L"IDL_SORT_BY_POPUP");
\r
1844 _pCancelSortBy = static_cast< Button* >(_pSortByPopup->GetControl(L"IDC_CANCEL_BUTTON", true));
\r
1845 TryCatch(_pCancelSortBy != null, , "MfMyFilesApp::Button For Popup not created!");
\r
1847 _pCancelSortBy->SetActionId(IDA_BTN_SORT_POPUP_CANCEL);
\r
1848 _pCancelSortBy->AddActionEventListener(*this);
\r
1849 _pCancelSortBy->SetShowState(true);
\r
1851 // pSortByPanelLabel = static_cast< Label* >(_pSortByPopup->GetControl(L"IDC_LABEL_PANEL_BACKGROUND", true));
\r
1852 // TryCatch(pSortByPanelLabel != null, , "MfMyFilesApp::pLabel For Popup not created!");
\r
1854 // pSortByPopupLabel = static_cast< Label* >(_pSortByPopup->GetControl(L"IDC_LABEL_POPUP_BACKGROUND", true));
\r
1855 // TryCatch(pSortByPopupLabel != null, , "MfMyFilesApp::pLabel For Popup not created!");
\r
1857 // if (pPanelBackground != null)
\r
1859 // pSortByPanelLabel->SetBackgroundBitmap(*pPanelBackground);
\r
1862 // if (pPopUpBackground != null)
\r
1864 // pSortByPopupLabel->SetBackgroundBitmap(*pPopUpBackground);
\r
1868 _pSortByListView = static_cast< ListView* >(_pSortByPopup->GetControl(L"IDC_LISTVIEW_SORT_BY", true));
\r
1869 TryCatch(_pSortByListView != null, , "MfMyFilesApp::ListView Control For Popup not created!");
\r
1871 _pSortByListView->SetShowState(true);
\r
1872 _pSortByListView->AddListViewItemEventListener(*_pCustomListViewForPopup);
\r
1873 _pSortByListView->SetItemProvider(*_pCustomListViewForPopup);
\r
1874 _pSortByListView->SetName(L"SORT_BY_LISTVIEW");
\r
1875 _pSortByListView->SetItemDividerColor(Color::GetColor(COLOR_ID_GREY));
\r
1877 AppLogDebug("EXIT: r = %s", GetErrorMessage(r));
\r
1879 // _pSortByPopup->SetControlAlwaysAtBottom(*pSortByPanelLabel, true);
\r
1880 // _pSortByPopup->SetControlAlwaysAtBottom(*pSortByPopupLabel, true);
\r
1881 _pSortByPopup->SetControlAlwaysOnTop(*_pSortByListView, true);
\r
1882 _pSortByPopup->SetControlAlwaysOnTop(*_pCancelSortBy, true);
\r
1884 // if (pPanelBackground != null)
\r
1886 // delete pPanelBackground;
\r
1887 // pPanelBackground = null;
\r
1889 // if (pPopUpBackground != null)
\r
1891 // delete pPopUpBackground;
\r
1892 // pPopUpBackground = null;
\r
1897 if (_pCustomListViewForPopup != null)
\r
1899 delete _pCustomListViewForPopup;
\r
1900 _pCustomListViewForPopup = null;
\r
1903 if (_pSortByPopup != null)
\r
1905 delete _pSortByPopup;
\r
1906 _pSortByPopup = null;
\r
1909 // if (pPanelBackground != null)
\r
1911 // delete pPanelBackground;
\r
1912 // pPanelBackground = null;
\r
1915 // if (pPopUpBackground != null)
\r
1917 // delete pPopUpBackground;
\r
1918 // pPopUpBackground = null;
\r
1925 SubBaseFolderEntryForm::CreateMoreContextMenu(void)
\r
1927 result r = E_SUCCESS;
\r
1929 int xPosition = 0;
\r
1930 int yPosition = 0;
\r
1932 String extensionVisibility;
\r
1935 String buttonCreateFolder;
\r
1937 AppResource* pAppResource = null;
\r
1938 AppRegistry* pAppRegistry = null;
\r
1939 pAppResource = Application::GetInstance()->GetAppResource();
\r
1941 pAppRegistry = UiApp::App::GetInstance()->GetAppRegistry();
\r
1942 Bitmap* pBitmapSortbyContextItem = pAppResource->GetBitmapN(IDB_POPUP_SORTBY_ICON, BITMAP_PIXEL_FORMAT_ARGB8888);
\r
1943 Bitmap* pBitmapSearchContextItem = pAppResource->GetBitmapN(IDB_POPUP_SEARCH_ICON, BITMAP_PIXEL_FORMAT_ARGB8888);
\r
1944 Bitmap* pBitmapCreateFolderContextItem = pAppResource->GetBitmapN(IDB_POPUP_CREATE_FOLDER_ICON, BITMAP_PIXEL_FORMAT_ARGB8888);
\r
1946 if (pAppResource != null)
\r
1948 pAppResource->GetString(L"IDS_MF_OPT_VIEW_AS", viewAs);
\r
1949 pAppResource->GetString(L"IDS_MF_SK3_SORT_BY", sortBy);
\r
1950 pAppResource->GetString(L"IDS_MF_SK3_SEARCH", search);
\r
1951 pAppResource->GetString(L"IDS_MF_OPT_CREATE_FOLDER", buttonCreateFolder);
\r
1952 pAppResource->GetString(L"IDS_MF_OPT_HIDE_FILE_EXTENSION_ABB", _hideExtension);
\r
1953 pAppResource->GetString(L"IDS_MF_OPT_SHOW_FILE_EXTENSION", _showExtension);
\r
1956 _pFooter = GetFooter();
\r
1957 if (_pFooter != null)
\r
1959 _pFooter->GetPosition(xPosition, yPosition);
\r
1962 xPosition += 3 * (GetClientAreaBounds().width / 4);
\r
1964 //Create the ContextMenu
\r
1965 _pMoreContextMenu = new (std::nothrow) ContextMenu();
\r
1966 _pMoreContextMenu->Construct(Point(0, yPosition), CONTEXT_MENU_STYLE_LIST, CONTEXT_MENU_ANCHOR_DIRECTION_UPWARD);
\r
1967 _pMoreContextMenu->SetItemTextColor(CONTEXT_MENU_ITEM_STATUS_NORMAL, Color::GetColor(COLOR_ID_WHITE));
\r
1968 _pMoreContextMenu->SetItemTextColor(CONTEXT_MENU_ITEM_STATUS_PRESSED, Color::GetColor(COLOR_ID_WHITE));
\r
1970 if (SceneManager::GetInstance()->GetCurrentSceneId() == IDSCN_TEMP_FORM)
\r
1972 _pMoreContextMenu->AddItem(viewAs, IDA_CONTEXT_MENU_VIEW_AS);
\r
1973 _pMoreContextMenu->AddItem(sortBy, IDA_CONTEXT_MENU_BTN_SORT_BY, *pBitmapSortbyContextItem, null, null);
\r
1977 if (CheckSearchHistory() == false)
\r
1979 _pMoreContextMenu->AddItem(search, IDA_CONTEXT_MENU_BTN_SEARCH, *pBitmapSearchContextItem, null, null);
\r
1982 if (SceneManager::GetInstance()->GetCurrentSceneId() != IDSCN_CATEGORY_SEARCH_FORM)
\r
1984 _pMoreContextMenu->AddItem(buttonCreateFolder, IDA_CONTEXT_MENU_CREATE_FOLDER, *pBitmapCreateFolderContextItem, null, null);
\r
1986 _pMoreContextMenu->AddItem(viewAs, IDA_CONTEXT_MENU_VIEW_AS);
\r
1987 _pMoreContextMenu->AddItem(sortBy, IDA_CONTEXT_MENU_BTN_SORT_BY, *pBitmapSortbyContextItem, null, null);
\r
1989 pAppRegistry->Get(_extensionKeyName, extensionVisibility);
\r
1991 if (extensionVisibility == _hideExtension)
\r
1993 _pMoreContextMenu->AddItem(_showExtension, IDA_CONTEXT_MENU_SHOW_EXTENSION);
\r
1997 _pMoreContextMenu->AddItem(_hideExtension, IDA_CONTEXT_MENU_HIDE_EXTENSION);
\r
2001 //Set the ContextMenu's ActionEventListener
\r
2002 _pMoreContextMenu->AddActionEventListener(*this);
\r
2003 //_pMoreContextMenu->SetAnchorPosition(Point(xPosition, yPosition));
\r
2004 _pMoreContextMenu->SetShowState(true);
\r
2006 delete pBitmapSortbyContextItem;
\r
2007 delete pBitmapSearchContextItem;
\r
2008 delete pBitmapCreateFolderContextItem;
\r
2013 SubBaseFolderEntryForm::SetDefaultSelectionForViewAsPopUp(void)
\r
2015 result r = E_SUCCESS;
\r
2017 int defaultViewAsPopUpSelect = 0;
\r
2018 int uncheckItem1 = 0;
\r
2019 int uncheckItem2 = 0;
\r
2021 int viewType = VIEW_TYPE_AS_NONE;
\r
2022 String viewStyleKeyName(L"ListDisplayType");
\r
2024 AppRegistry* pAppRegistry = null;
\r
2026 pAppRegistry = UiApp::App::GetInstance()->GetAppRegistry();
\r
2028 r = pAppRegistry->Get(viewStyleKeyName, viewType);
\r
2033 case VIEW_TYPE_AS_DETAILED_LIST:
\r
2035 defaultViewAsPopUpSelect = 1;
\r
2041 case VIEW_TYPE_AS_NORMAL_LIST:
\r
2043 defaultViewAsPopUpSelect = 0;
\r
2049 case VIEW_TYPE_AS_THUMBNAILS:
\r
2051 defaultViewAsPopUpSelect = 2;
\r
2059 //Empty Implementation.
\r
2065 if (_pCustomListViewForPopup != null)
\r
2067 _pCustomListViewForPopup->SetSelectionPopup(POP_UP_VIEW_AS);
\r
2070 if (_pViewAsPopup != null && _pViewAsListView != null)
\r
2072 _pViewAsListView->UpdateList();
\r
2073 _pViewAsListView->SetItemChecked(defaultViewAsPopUpSelect, true);
\r
2074 _pViewAsListView->SetItemChecked(uncheckItem1, false);
\r
2075 _pViewAsListView->SetItemChecked(uncheckItem2, false);
\r
2076 _pViewAsListView->Invalidate(true);
\r
2083 SubBaseFolderEntryForm::SetFooterVisibility(int mode)
\r
2085 AppLogDebug("Entry");
\r
2086 _pFooter = GetFooter();
\r
2090 _pFooter->SetItemEnabled(0, false);
\r
2091 _pFooter->SetItemEnabled(1, false);
\r
2092 if (CheckSearchHistory() == false)
\r
2094 _pFooter->SetItemEnabled(2, false);
\r
2099 _pFooter->SetItemEnabled(0, true);
\r
2100 _pFooter->SetItemEnabled(1, true);
\r
2101 _pFooter->SetItemEnabled(2, true);
\r
2104 _pFooter->Invalidate(true);
\r
2108 SubBaseFolderEntryForm::CheckSearchHistory(void)
\r
2110 bool searchHistoryStatus = false;
\r
2111 int itemCount = 0;
\r
2112 String searchScene;
\r
2113 SceneManager* pSceneManager = SceneManager::GetInstance();
\r
2114 IListT< SceneId >* pSceneList = pSceneManager->GetSceneHistoryN();
\r
2116 if (pSceneList != null)
\r
2118 itemCount = pSceneList->GetCount() - 1;
\r
2119 pSceneList->GetAt(itemCount, searchScene);
\r
2120 while (searchScene != IDSCN_SEARCH_FORM && itemCount >= 0)
\r
2123 pSceneList->GetAt(itemCount, searchScene);
\r
2127 if (searchScene == IDSCN_SEARCH_FORM)
\r
2129 AppLogDebug("Search scene present");
\r
2130 searchHistoryStatus = true;
\r
2134 AppLogDebug("Search scene not present");
\r
2135 searchHistoryStatus = false;
\r
2140 pSceneList->RemoveAll();
\r
2141 delete pSceneList;
\r
2142 pSceneList = null;
\r
2144 return searchHistoryStatus;
\r
2149 SubBaseFolderEntryForm::OnFileEventOccured(const unsigned long events,const Tizen::Base::String & path, const unsigned int eventId)
\r
2151 //Empty Implementation
\r
2155 SubBaseFolderEntryForm::OnLongPressGestureDetected(Tizen::Ui::TouchLongPressGestureDetector& gestureDetector)
\r
2157 //Show Context Menu
\r
2158 ShowIconListViewContextMenu();
\r
2162 SubBaseFolderEntryForm::OnLongPressGestureCanceled(Tizen::Ui::TouchLongPressGestureDetector& gestureDetector)
\r
2164 //Empty Implementation.
\r
2168 SubBaseFolderEntryForm::CreateIconListViewContextMenu(void)
\r
2170 if (_pIconListViewContextMenu != null)
\r
2175 result r = E_SUCCESS;
\r
2181 String buttonCreateFolder;
\r
2183 AppResource* pAppResource = null;
\r
2184 AppRegistry* pAppRegistry = null;
\r
2185 pAppResource = Application::GetInstance()->GetAppResource();
\r
2187 pAppRegistry = UiApp::App::GetInstance()->GetAppRegistry();
\r
2189 if (pAppResource != null)
\r
2191 pAppResource->GetString(L"IDS_MF_SK_DETAILS", Details);
\r
2192 pAppResource->GetString(L"IDS_MF_SK3_DELETE", Delete);
\r
2193 pAppResource->GetString(L"IDS_MF_BODY_RENAME_ABB", Rename);
\r
2196 //Create the ContextMenu
\r
2197 _pIconListViewContextMenu = new (std::nothrow) ContextMenu();
\r
2199 _pIconListViewContextMenu->Construct(Point(0, 0), CONTEXT_MENU_STYLE_LIST, CONTEXT_MENU_ANCHOR_DIRECTION_DOWNWARD);
\r
2200 _pIconListViewContextMenu->SetItemTextColor(CONTEXT_MENU_ITEM_STATUS_NORMAL, Color::GetColor(COLOR_ID_WHITE));
\r
2201 _pIconListViewContextMenu->SetItemTextColor(CONTEXT_MENU_ITEM_STATUS_PRESSED, Color::GetColor(COLOR_ID_WHITE));
\r
2204 _pIconListViewContextMenu->AddItem(Details, IDA_ICONLISTVIEW_DETAILS);
\r
2205 _pIconListViewContextMenu->AddItem(Rename, IDA_ICONLISTVIEW_RENAME);
\r
2206 _pIconListViewContextMenu->AddItem(Delete, IDA_ICONLISTVIEW_DELETE);
\r
2208 //Set the ContextMenu's ActionEventListener
\r
2209 _pIconListViewContextMenu->AddActionEventListener(*this);
\r
2210 _pIconListViewContextMenu->SetShowState(true);
\r
2216 SubBaseFolderEntryForm::ShowIconListViewContextMenu(void)
\r
2219 CreateIconListViewContextMenu();
\r
2220 int headerHeight = 0;
\r
2222 int y_Anchor_Position = 0;
\r
2224 Header* pHeader = GetHeader();
\r
2225 headerHeight = pHeader->GetHeight();
\r
2227 y_Anchor_Position = _currentPosition.y + headerHeight + H_DISPLAY_PATH_LABEL;
\r
2229 if (_pIconListViewContextMenu != null)
\r
2231 _pIconListViewContextMenu->SetAnchorPosition(Point(_currentPosition.x, y_Anchor_Position));
\r
2232 _pIconListViewContextMenu->SetShowState(true);
\r
2233 _pIconListViewContextMenu->Show();
\r
2238 SubBaseFolderEntryForm::OnTouchPressed(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo & touchInfo)
\r
2240 _currentPosition.x = currentPosition.x;
\r
2241 _currentPosition.y = currentPosition.y;
\r
2243 if (_pIconListView != null)
\r
2245 _currentIndex = _pIconListView->GetItemIndexFromPosition(_currentPosition);
\r
2250 SubBaseFolderEntryForm::OnTouchReleased(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo)
\r
2252 //Empty Implementation
\r
2256 SubBaseFolderEntryForm::OnTouchMoved(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo)
\r
2258 //Empty Implementation
\r
2262 SubBaseFolderEntryForm::OnTouchFocusIn(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo)
\r
2264 //Empty Implementation
\r
2267 SubBaseFolderEntryForm::OnTouchFocusOut(const Tizen::Ui::Control& source, const Tizen::Graphics::Point& currentPosition, const Tizen::Ui::TouchEventInfo& touchInfo)
\r
2269 //Empty Implementation
\r