//
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
-// Licensed under the Flora License, Version 1.0 (the License);
+// Licensed under the Flora License, Version 1.1 (the License);
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
*/
#include "GlDropDownCustomItem.h"
+#include "GlFileListPresentationModel.h"
#include "GlGalleryApp.h"
#include "GlRadioCustomItem.h"
#include "GlResourceManager.h"
else
{
SceneManager* pSceneManager = SceneManager::GetInstance();
- pSceneManager->GoBackward(BackwardSceneTransition());
+ if (__contentUpdated)
+ {
+ pSceneManager->GoForward(ForwardSceneTransition(IDSCN_ALBUM_LIST));
+ }
+ else
+ {
+ pSceneManager->GoBackward(BackwardSceneTransition());
+ }
}
}
}
void
+SettingMainForm::OnContentUpdated(void)
+{
+ AppLogDebug("ENTER");
+ __contentUpdated = true;
+ AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
+}
+
+void
SettingMainForm::OnSceneActivatedN(const SceneId& previousSceneId,
const SceneId& currentSceneId, IList* pArgs)
{
AppLogDebug("ENTER");
+ FileListPresentationModel::GetInstance()->AddContentEventListener(this);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
const SceneId& nextSceneId)
{
AppLogDebug("ENTER");
+ FileListPresentationModel::GetInstance()->RemoveContentEventListener(this);
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
int effectiveIndex = 0;
const Color ITEM_BACKGROUND_COLOR = CUSTOM_COLOR_SETTINGS_LISTITEM_BACKGROUND;
const Color ITEM_RADIO_ITEM_BACKGROUND_COLOR = CUSTOM_COLOR_SETTINGS_LISTITEM_RADIO_BACKGROUND;
+ const Color ITEM_BACKGROUND_COLOR_HIGHLIGHTED = CUSTOM_BACKGROUND_COLOR_LISTVIEW_PRESSED_HIGHLIGHTED;
effectiveIndex = effectiveIndex + itemIndex;
AppLogDebug("SettingMainForm::CreateItem --> groupIndex : %d, itemIndex: %d itemWidth: %d effectiveIndex %d", groupIndex, itemIndex, itemWidth, effectiveIndex);
}
pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, ITEM_BACKGROUND_COLOR);
- pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, ITEM_BACKGROUND_COLOR);
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, ITEM_BACKGROUND_COLOR_HIGHLIGHTED);
if (__pList != null)
{
}
pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, ITEM_BACKGROUND_COLOR);
- pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, ITEM_BACKGROUND_COLOR);
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, ITEM_BACKGROUND_COLOR_HIGHLIGHTED);
pItem->SetMainText(settingInfo[effectiveIndex].titleText);
pItem->SetSubText(settingInfo[effectiveIndex].subText);
}
pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_NORMAL, ITEM_RADIO_ITEM_BACKGROUND_COLOR);
- pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, ITEM_RADIO_ITEM_BACKGROUND_COLOR);
+ pItem->SetBackgroundColor(LIST_ITEM_DRAWING_STATUS_PRESSED, ITEM_BACKGROUND_COLOR_HIGHLIGHTED);
pItem->SetText(settingInfo[effectiveIndex].titleText);
AppLogDebug("effectiveIndex %d SettingInfo[effectiveIndex].isSelected %d", effectiveIndex, settingInfo[effectiveIndex].isSelected);