virtual void OnTimerExpired(Tizen::Base::Runtime::Timer& timer);
- virtual void OnChangedContentList(Tizen::Base::Collection::IList* pArgs);
+ virtual void OnChangedContentListByAppControlN(Tizen::Base::Collection::IList* pArgs);
virtual void OnUserEventReceivedN(RequestId requestId, Tizen::Base::Collection::IList* pArgs);
virtual void OnThumbnailInfoReveivedN(ThumbnailInfo* pThumbnailInfo);
if (activated == true)
{
__itemIndex = itemIndex;
-
- pContextItem->SetSize(GetWidth(), ITEM_HEIGHT);
- (pContextItem->GetControl(0))->SetSize(pContextItem->GetSize());
- pContextItem->Invalidate(true);
}
AppLogDebug("EXIT");
}
if (activated == true)
{
__itemIndex = itemIndex;
-
- pContextItem->SetSize(GetWidth(), ITEM_HEIGHT);
- (pContextItem->GetControl(0))->SetSize(pContextItem->GetSize());
- pContextItem->Invalidate(true);
}
AppLogDebug("EXIT");
}
{
__activatedStateContextItem.__groupIndex = groupIndex;
__activatedStateContextItem.__itemIndex = itemIndex;
-
- pContextItem->SetSize(GetWidth(), ITEM_HEIGHT);
- (pContextItem->GetControl(0))->SetSize(pContextItem->GetSize());
- pContextItem->Invalidate(true);
}
AppLogDebug("EXIT");
}
if (activated == true)
{
__itemIndex = itemIndex;
-
- pContextItem->SetSize(GetWidth(), ITEM_HEIGHT);
- (pContextItem->GetControl(0))->SetSize(pContextItem->GetSize());
- pContextItem->Invalidate(true);
}
AppLogDebug("EXIT");
}
pTableViewContextItem->AddControl(*pItem);
pTableViewContextItem->SetIndividualSelectionEnabled(pItem, true);
-// int controlCount = pItem->GetControlCount();
-// if (controlCount != INIT_VALUE)
-// {
-// Tizen::Ui::GridLayout* pGridLayout = dynamic_cast<Tizen::Ui::GridLayout*>(pItem->GetLandscapeLayoutN());
-// if (pGridLayout != null)
-// {
-// int margin = 80;
-// if (controlCount == 1)
-// {
-// margin = 106;
-// }
-//
-// pGridLayout->SetColumnSpacing(controlCount, margin);
-// pGridLayout->Update();
-// delete pGridLayout;
-// }
-// }
+ Form* pForm = dynamic_cast<Form*>(UiApp::GetInstance()->GetAppFrame()->GetFrame()->GetCurrentForm());
+ if (pForm != null)
+ {
+ if (pForm->GetBounds().width == 1200 || pForm->GetBounds().height == 1200)
+ {
+ int controlCount = pItem->GetControlCount();
+ if (controlCount != INIT_VALUE)
+ {
+ Tizen::Ui::GridLayout* pGridLayout = dynamic_cast<Tizen::Ui::GridLayout*>(pItem->GetLandscapeLayoutN());
+ if (pGridLayout != null)
+ {
+ int margin = 80;
+ if (controlCount == 1)
+ {
+ margin = 106;
+ }
+
+ pGridLayout->SetColumnSpacing(controlCount, margin);
+ pGridLayout->Update();
+ delete pGridLayout;
+ }
+ }
+ }
+ }
+
AppLogDebug("EXIT");
return pTableViewContextItem;
}
if (activated == true)
{
__itemIndex = itemIndex;
-
- pContextItem->SetSize(GetWidth(), ITEM_HEIGHT);
- (pContextItem->GetControl(0))->SetSize(pContextItem->GetSize());
- pContextItem->Invalidate(true);
}
AppLogDebug("EXIT");
}
Frame* pFrame = GetFrameAt(0);
AppAssert(pFrame);
- SceneManager* pSceneManager = SceneManager::GetInstance();
- AppAssert(pSceneManager);
-
- SceneId currentSceneId = pSceneManager->GetCurrentSceneId();
- if (currentSceneId.Equals(__sceneId, false) && __sceneId.Equals(IDSCN_PLAYER, false) == true)
- {
- Scene* pScene = pSceneManager->GetCurrentScene();
- PlayerForm* pPlayerForm = dynamic_cast<PlayerForm*>(pScene->GetForm());
- if (pPlayerForm != null)
- {
- pPlayerForm->OnChangedContentList(__pDataList);
- }
- }
-
if (pFrame->IsEnabled() == false)
{
pFrame->SetEnabled(true);
if (__pMainFrame != null)
{
- result r = __pMainFrame->GoToInitialScene(__sceneId, __pDataList);
+ SceneManager* pSceneManager = SceneManager::GetInstance();
+ AppAssert(pSceneManager);
+
+ result r = E_FAILURE;
+ SceneId currentSceneId = pSceneManager->GetCurrentSceneId();
+ if (currentSceneId.Equals(__sceneId, false) && __sceneId.Equals(IDSCN_PLAYER, false) == true)
+ {
+ Scene* pScene = pSceneManager->GetCurrentScene();
+ PlayerForm* pPlayerForm = dynamic_cast<PlayerForm*>(pScene->GetForm());
+ if (pPlayerForm != null)
+ {
+ pPlayerForm->OnChangedContentListByAppControlN(__pDataList);
+ r = E_SUCCESS;
+ }
+ }
+ else
+ {
+ r = __pMainFrame->GoToInitialScene(__sceneId, __pDataList);
+ }
+
if (r == E_SUCCESS)
{
__pDataList = null;
{
AppLogDebug("__pPlayerPresentationModel->SetContentList failed(%s)", GetErrorMessage(GetLastResult()));
SetPlayerScreenState(PLAYER_SCREEN_STATE_NO_CONTENT_LIST);
+
+ pArgs->RemoveAll();
+ delete pArgs;
return;
}
}
void
-PlayerForm::OnChangedContentList(Tizen::Base::Collection::IList* pArgs)
+PlayerForm::OnChangedContentListByAppControlN(Tizen::Base::Collection::IList* pArgs)
{
AppLogDebug("ENTER");
MusicPlayerApp* pMusicPlayerApp = static_cast<MusicPlayerApp*>(MusicPlayerApp::GetInstance());
TryReturnVoid(pMusicPlayerApp != null, "Unable to cast UiApp to MusicPlayerApp");
- if (pArgs != null)
+ SetPlayerScreenState(PLAYER_SCREEN_STATE_APP_CONTROL);
+ if (pArgs == null || static_cast<String*>(pArgs->GetAt(0))->Equals(MUSIC, false))
{
- AppLogDebug("%d", pArgs->GetCount());
- __pPlayerPresentationModel->SetContentList(pArgs);
-
- int playIndex = (static_cast<Integer*>(pArgs->GetAt(1)))->ToInt();
- __pPlayerPresentationModel->Play(playIndex, MIN_PLAY_STATE_SLIDER_COUNT);
+ AppLogDebug("EXIT(E_FAILURE)");
+ if (pArgs != null)
+ {
+ pArgs->RemoveAll();
+ delete pArgs;
+ }
+ return;
}
- if (__pContentsListViewPanel->GetShowState() == true)
+ result r = __pPlayerPresentationModel->SetContentList(pArgs);
+ if (IsFailed(r))
{
- TableView* pContentsTableView = static_cast<TableView*>(__pContentsListViewPanel->GetControl(IDC_CONTENTS_TABLEVIEW));
- pContentsTableView->UpdateTableView();
- }
+ AppLogDebug("EXIT(%s)", GetErrorMessage(r));
+ SetPlayerScreenState(PLAYER_SCREEN_STATE_NO_CONTENT_LIST);
+ pArgs->RemoveAll();
+ delete pArgs;
- if (__pPlayerPresentationModel->IsFileExist(__pPlayerPresentationModel->GetCurrentContentIndex()) != true)
- {
- SetFileNotExistState(false);
+ return;
}
+
+ int playIndex = (static_cast<Integer*>(pArgs->GetAt(1)))->ToInt();
+ __pPlayerPresentationModel->Play(playIndex, MIN_PLAY_STATE_SLIDER_COUNT);
+
+ pArgs->RemoveAll();
+ delete pArgs;
+
Invalidate(true);
AppLogDebug("EXIT");
}
__prevRepeatStateRunByAppControl = __pPlayerPresentationModel->GetRepeatState();
SetRepeatButtonImage(IDA_TYPE_REPEAT_A);
+ playerScreenState = PLAYER_SCREEN_STATE_APP_CONTROL;
__isRunByAppControl = true;
}
break;
AppLogDebug("EXIT");
return;
}
- else
- {
- pContextItem->SetSize(GetWidth(), ITEM_HEIGHT);
- (pContextItem->GetControl(0))->SetSize(pContextItem->GetSize());
- pContextItem->Invalidate(true);
- }
__selectedItemIndex = itemIndex;
AppLogDebug("EXIT");
}