pFooter->GetBounds(x, y, width, height);
y = (y-height);
- __pIconList = new IconListView;
+ __pIconList = new (std:: nothrow) IconListView;
TryReturn(__pIconList != null, E_OUT_OF_MEMORY, "Could not create IconListView, no memory");
r = __pIconList->Construct(Rectangle(0, (y-(ICON_HEIGHT*2)), GetClientAreaBounds().width, (ICON_HEIGHT*2)), itemSizes, ICON_LIST_VIEW_STYLE_NORMAL,
r = __pIconList->SetItemBorderStyle(ICON_LIST_VIEW_ITEM_BORDER_STYLE_OUTLINE);
TryReturn(r == E_SUCCESS, r, "[%s] __pIconList->SetItemBorderStyle", GetErrorMessage(r));
+ r = __pIconList->SetTouchAnimationEnabled(true);
+ TryReturn(r == E_SUCCESS, r, "[%s] __pIconList->SetTouchAnimationEnabled", GetErrorMessage(r));
+
__pIconList->AddIconListViewItemEventListener(*this);
AddControl(*__pIconList);
IconListViewItem* pIconListViewItemObj = null;
result r = E_SUCCESS;
Bitmap* pCapturedBitmap = null;
+ Footer* pFotter = null;
AppLog("IconListViewItem's CreateItem called index is %d", index);
- pIconListViewItemObj = new IconListViewItem();
+ pIconListViewItemObj = new (std::nothrow) IconListViewItem();
TryReturn(pIconListViewItemObj != null, null, "could not create IconListViewItem, no memory");
pCapturedBitmap = (Bitmap*)__pCapturedBitmapList->GetAt(index);
r = pIconListViewItemObj->Construct(*pCapturedBitmap);
TryReturn(r == E_SUCCESS, null, "[%s] pIconListViewItemObj->Construct",GetErrorMessage(r));
+ EnableFooterItem(ID_BUTTON_SETTING, true);
+ EnableFooterItem(ID_BUTTON_CAPTURE, true);
+
+ pFotter = GetFooter();
+ if (pFotter != null)
+ {
+ pFotter->SetBackButtonEnabled(true);
+ pFotter->Draw();
+ }
+
return pIconListViewItemObj;
}
void
CameraCaptureForm::OnIconListViewItemStateChanged (Tizen::Ui::Controls::IconListView &view, int index, Tizen::Ui::Controls::IconListViewItemStatus status)
{
- FreeResources();
- LaunchImageViewer(index);
- __background = true;
+ AppLog("OnIconListViewItemStateChanged for index %d", index);
+ FreeResources();
+ LaunchImageViewer(index);
+ __background = true;
}
result
result r = E_SUCCESS;
int deviceOrientation = 0;
- pCapturedFilePath = new String;
+ pCapturedFilePath = new (std::nothrow) String;
TryReturn(pCapturedFilePath != null, ShowErrorVoid(r, METHOD_FILE_LINENO),"pCapturedFilePath failed, no memory");
pCapturedFilePath->Clear();
else
{
ShowCapturedImageThumbnail(&__filePath);
-
- EnableFooterItem(ID_BUTTON_SETTING, true);
- EnableFooterItem(ID_BUTTON_CAPTURE, true);
-
- pFotter = GetFooter();
- if (pFotter != null)
- {
- pFotter->SetBackButtonEnabled(true);
- pFotter->Draw();
- }
}
return;
AppLog("MediaPlayerForm's LaunchImageViewer invoked file path is %ls", pFile->GetPointer());
- pMediaType = new String;
+ pMediaType = new (std::nothrow) String;
TryReturnVoid(pMediaType != null, "pMediaType string is null, no memory");
pMediaType->Clear();
pMediaType->Append(L"IMAGE");
- pFilePath = new String;
+ pFilePath = new (std::nothrow) String;
TryReturnVoid(pFilePath != null, "pFilePath string is null, no memory");
pFilePath->Clear();
pFilePath->Append(*pFile);
- pDeviceOrientation = new Integer(__deviceOrientation);
+ pDeviceOrientation = new (std::nothrow) Integer(__deviceOrientation);
TryReturnVoid(pDeviceOrientation != null, "pDeviceOrientation string is null, no memory");
pArg = new (std::nothrow) ArrayList;
AppLog("MediaPlayerForm's LaunchImageViewer invoked file path at index is %d is %ls", index, ((String*)__pCapturedFileNameList->GetAt(index))->GetPointer());
- pMediaType = new String;
+ pMediaType = new (std::nothrow) String;
TryReturnVoid(pMediaType != null, "pMediaType string is null, no memory");
pMediaType->Clear();
pMediaType->Append(L"IMAGE");
- pFilePath = new String;
+ pFilePath = new (std::nothrow) String;
TryReturnVoid(pFilePath != null, "pFilePath string is null, no memory");
pFilePath->Clear();
pFilePath->Append(*(String*)__pCapturedFileNameList->GetAt(index));
- pDeviceOrientation = new Integer(__deviceOrientation);
+ pDeviceOrientation = new (std::nothrow) Integer(__deviceOrientation);
TryReturnVoid(pDeviceOrientation != null, "pDeviceOrientation string is null, no memory");
pArg = new (std::nothrow) ArrayList;
if (effectType <= 6 && effectType != -1)
{
- SettingListData* pItemData = new (std::nothrow) SettingListData(new String(EffectMap[effectType]), effectType);
+ SettingListData* pItemData = new (std::nothrow) SettingListData(new (std::nothrow) String(EffectMap[effectType]), effectType);
__pSettingItemArrayList->Add(*pItemData);
__pEffectList->Add(effectType);
AppLog("effect return is = %d VALUE = %ls", effectType, EffectMap[effectType]);
if (meteringModeType <= meteringModeCount && meteringModeType != -1)
{
- SettingListData* pItemData = new (std::nothrow) SettingListData(new String(pMeteringModeMap[meteringModeType]), meteringModeType);
+ SettingListData* pItemData = new (std::nothrow) SettingListData(new (std::nothrow) String(pMeteringModeMap[meteringModeType]), meteringModeType);
__pSettingItemArrayList->Add(*pItemData);
__pMeteringModeList->Add(meteringModeType);
AppLog("metering mode return is = %d VALUE = %ls", meteringModeType, pMeteringModeMap[meteringModeType]);
if (focusModeType <= 4 && focusModeType != -1)
{
- SettingListData* pItemData = new (std::nothrow) SettingListData(new String(pFocusModeMap[focusModeType]), focusModeType);
+ SettingListData* pItemData = new (std::nothrow) SettingListData(new (std::nothrow) String(pFocusModeMap[focusModeType]), focusModeType);
__pSettingItemArrayList->Add(*pItemData);
__pFocusModeList->Add(focusModeType);
AppLog("focus mode return is = %d VALUE = %ls", focusModeType, pFocusModeMap[focusModeType]);
if (sceneModeType <= 15 && sceneModeType != -1)
{
- SettingListData* pItemData = new (std::nothrow) SettingListData(new String(pSceneModeMap[sceneModeType]), sceneModeType);
+ SettingListData* pItemData = new (std::nothrow) SettingListData(new (std::nothrow) String(pSceneModeMap[sceneModeType]), sceneModeType);
TryCatch(pItemData != null, ," CreatePopUp Scene Mode failed");
__pSettingItemArrayList->Add(*pItemData);
if (flashModeType <= 4 && flashModeType != -1)
{
- pItemData = new (std::nothrow) SettingListData(new String(pFlashModeMap[flashModeType]), flashModeType);
+ pItemData = new (std::nothrow) SettingListData(new (std::nothrow) String(pFlashModeMap[flashModeType]), flashModeType);
__pSettingItemArrayList->Add(*pItemData);
__pFlashModeList->Add(flashModeType);
AppLog("flash mode return is = %d VALUE = %ls", flashModeType, pFlashModeMap[flashModeType]);
AppLog("MediaPlayerForm's LaunchMediaPlayer invoked file path %ls", __filePath.GetPointer());
- pMediaType = new String;
+ pMediaType = new (std::nothrow) String;
TryReturnVoid(pMediaType != null, "pMediaType string is null, no memory");
pMediaType->Clear();
pMediaType->Append(L"VIDEO");
- pFilePath = new String;
+ pFilePath = new (std::nothrow) String;
TryReturnVoid(pFilePath != null, "pFilePath string is null, no memory");
pFilePath->Clear();
pFilePath->Append(__filePath);
- pDeviceOrientation = new Integer(0);
+ pDeviceOrientation = new (std::nothrow) Integer(0);
TryReturnVoid(pDeviceOrientation != null, "pDeviceOrientation string is null, no memory");
pArg = new (std::nothrow) ArrayList;
CallStatus callStatus = CALL_STATUS_UNDEFINED;
CallManager* pCallManager = null;
- pCallManager = new CallManager();
+ pCallManager = new (std::nothrow) CallManager();
TryReturn(pCallManager != null, false, "pCallManager could not be created");
r = pCallManager->Construct(*this);
AppLog("MediaPlayerForm's LaunchMediaPlayer invoked file path %ls", filePath.GetPointer());
- pMediaType = new String;
+ pMediaType = new (std::nothrow) String;
TryReturnVoid(pMediaType != null, "pMediaType string is null, no memory");
pMediaType->Clear();
pMediaType->Append(L"AUDIO");
- pFilePath = new String;
+ pFilePath = new (std::nothrow) String;
TryReturnVoid(pFilePath != null, "pFilePath string is null, no memory");
pFilePath->Clear();
pFilePath->Append(filePath);
- pDeviceOrientation = new Integer(0);
+ pDeviceOrientation = new (std::nothrow) Integer(0);
TryReturnVoid(pDeviceOrientation != null, "pDeviceOrientation string is null, no memory");
pArg = new (std::nothrow) ArrayList;
SAFE_DELETE(__pPreAudioFile);
- __pPreAudioFile = new File;
+ __pPreAudioFile = new (std::nothrow) File;
TryReturnVoid(__pPreAudioFile != null, "[%s] Reading pre processed audio file failed", GetErrorMessage(r));
r = __pPreAudioFile->Construct(audioStreamFilePath, L"r");
if (effectType <= 6 && effectType != -1)
{
- SettingListData* pItemData = new (std::nothrow) SettingListData(new String(EffectMap[effectType]), effectType);
+ SettingListData* pItemData = new (std::nothrow) SettingListData(new (std::nothrow) String(EffectMap[effectType]), effectType);
__pSettingItemArrayList->Add(*pItemData);
__pEffectList->Add(effectType);
AppLog("effect return is = %d VALUE = %ls", effectType, EffectMap[effectType]);
if (focusModeType <= 4 && focusModeType != -1)
{
- SettingListData* pItemData = new (std::nothrow) SettingListData(new String(pFocusModeMap[focusModeType]), focusModeType);
+ SettingListData* pItemData = new (std::nothrow) SettingListData(new (std::nothrow) String(pFocusModeMap[focusModeType]), focusModeType);
__pSettingItemArrayList->Add(*pItemData);
__pFocusModeList->Add(focusModeType);
AppLog("focus mode return is = %d VALUE = %ls", focusModeType, pFocusModeMap[focusModeType]);
if (value == true && r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"Brightness"), (int) ID_MENU_BRIGHTNESS);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"Brightness"), (int) ID_MENU_BRIGHTNESS);
__pSettingItemArrayList->Add(*pData);
}
if (r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"Focus Mode"), (int) ID_MENU_FOCUSMODE);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"Focus Mode"), (int) ID_MENU_FOCUSMODE);
__pSettingItemArrayList->Add(*pData);
}
}
if (r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"IsoLevel"), (int) ID_MENU_ISOLEVEL);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"IsoLevel"), (int) ID_MENU_ISOLEVEL);
__pSettingItemArrayList->Add(*pData);
}
}
if (r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"WhiteBalance"), (int) ID_MENU_WHITEBALANCE);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"WhiteBalance"), (int) ID_MENU_WHITEBALANCE);
__pSettingItemArrayList->Add(*pData);
}
if (r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"Scene Mode"), (int) ID_MENU_SCENE_MODE);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"Scene Mode"), (int) ID_MENU_SCENE_MODE);
__pSettingItemArrayList->Add(*pData);
}
if (value == true && r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"Exposure"), (int) ID_MENU_EXPOSURE);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"Exposure"), (int) ID_MENU_EXPOSURE);
__pSettingItemArrayList->Add(*pData);
}
}
if (value == true && r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"Contrast"), (int) ID_MENU_CONTRAST);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"Contrast"), (int) ID_MENU_CONTRAST);
__pSettingItemArrayList->Add(*pData);
}
if (r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"Effect"), (int) ID_MENU_EFFECT);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"Effect"), (int) ID_MENU_EFFECT);
__pSettingItemArrayList->Add(*pData);
}
}
if (value == true && r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"ZoomLevel"), (int) ID_MENU_ZOOMLEVEL);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"ZoomLevel"), (int) ID_MENU_ZOOMLEVEL);
__pSettingItemArrayList->Add(*pData);
}
}
if (r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"Frame Rate"), (int) ID_MENU_FRAME_RATE);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"Frame Rate"), (int) ID_MENU_FRAME_RATE);
__pSettingItemArrayList->Add(*pData);
}
}
if (r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"Flip Type"), (int) ID_MENU_FLIP_TYPE);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"Flip Type"), (int) ID_MENU_FLIP_TYPE);
__pSettingItemArrayList->Add(*pData);
}
}
if (r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"Recording Resolution"), (int) ID_MENU_RECORDING_RESOLUTION);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"Recording Resolution"), (int) ID_MENU_RECORDING_RESOLUTION);
__pSettingItemArrayList->Add(*pData);
}
- pData = new (std::nothrow) SettingListData(new String(L"Recording Quality"), (int) ID_MENU_RECORDING_QUALITY);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"Recording Quality"), (int) ID_MENU_RECORDING_QUALITY);
__pSettingItemArrayList->Add(*pData);
r = GetMediaCapability(VIDEORECORDER_VIDEO_CODEC);
if (r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"Video Codec"), (int) ID_MENU_VIDEO_CODEC);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"Video Codec"), (int) ID_MENU_VIDEO_CODEC);
__pSettingItemArrayList->Add(*pData);
}
r = GetMediaCapability(VIDEORECORDER_AUDIO_CODEC);
if (r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"Audio Codec"), (int) ID_MENU_AUDIO_CODEC);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"Audio Codec"), (int) ID_MENU_AUDIO_CODEC);
__pSettingItemArrayList->Add(*pData);
}
r = GetMediaCapability(VIDEORECORDER_FORMAT);
if (r == E_SUCCESS)
{
- pData = new (std::nothrow) SettingListData(new String(L"File Format"), (int) ID_MENU_FILE_FORMAT);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"File Format"), (int) ID_MENU_FILE_FORMAT);
__pSettingItemArrayList->Add(*pData);
}
}
//Add stream callback
- pData = new (std::nothrow) SettingListData(new String(L"Audio Pre-Processing"), (int) ID_MENU_AUDIO_STREAM_CALLBACK);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"Audio Pre-Processing"), (int) ID_MENU_AUDIO_STREAM_CALLBACK);
__pSettingItemArrayList->Add(*pData);
//Add stream callback
- pData = new (std::nothrow) SettingListData(new String(L"Video Pre-Processing"), (int) ID_MENU_VIDEO_STREAM_CALLBACK);
+ pData = new (std::nothrow) SettingListData(new (std::nothrow) String(L"Video Pre-Processing"), (int) ID_MENU_VIDEO_STREAM_CALLBACK);
__pSettingItemArrayList->Add(*pData);
r = AddListView(&__pListViewSetting, __pPopupSetting, ID_BUTTON_SETTING_OK);
AppLog("MediaPlayerForm's LaunchMediaPlayer invoked file path %ls", __filePath.GetPointer());
- pMediaType = new String;
+ pMediaType = new (std::nothrow) String;
TryReturnVoid(pMediaType != null, "pMediaType string is null, no memory");
pMediaType->Clear();
pMediaType->Append(L"VIDEO");
- pFilePath = new String;
+ pFilePath = new (std::nothrow) String;
TryReturnVoid(pFilePath != null, "pFilePath string is null, no memory");
pFilePath->Clear();
pFilePath->Append(__filePath);
- pDeviceOrientation = new Integer(0);
+ pDeviceOrientation = new (std::nothrow) Integer(0);
TryReturnVoid(pDeviceOrientation != null, "pDeviceOrientation string is null, no memory");
pArg = new (std::nothrow) ArrayList;