pCancelButton->SetActionId(IDA_BUTTON_CANCEL);
delete pCancelButtonBitmap;
}
+
SetControlAlwaysOnTop(*pPanel, true);
Label* pLabel = static_cast<Label*>(pPanel->GetControl(L"IDC_PANEL_LABEL"));
if (pLabel != null)
}
delete pAddressbook;
}
- delete pCropBuffer;
-
- ArrayList* pList = new (std::nothrow) ArrayList(SingleObjectDeleter);
- pList->Add(new (std::nothrow) String(destFilePath));
- pSceneManager->GoBackward(BackwardSceneTransition(), pList);
-
- AppLogDebug("EXIT(%s)1", GetErrorMessage(GetLastResult()));
- return;
}
delete pCropBuffer;
pSceneManager->GoBackward(BackwardSceneTransition());
int prevWidth = __imageBox.width;
int prevImageboxX = __imageBox.x;
int prevImageBoxY = __imageBox.y;
+ Panel* pPanel = null;
+ pPanel = static_cast<Panel*>(GetControl(L"IDC_FOOTER_PANEL"));
if (GetOrientationStatus() == ORIENTATION_STATUS_PORTRAIT)
{
__formWidth = Form::GetBounds().height;
}
- float clientAreaRatio = (GetClientAreaBoundsF().height - H_FOOTER_PANEL) / GetClientAreaBoundsF().width;
+ float clientAreaRatio = (GetClientAreaBoundsF().height - pPanel->GetBounds().height) / GetClientAreaBoundsF().width;
- if (__imageWidth >= GetClientAreaBounds().width || __imageHeight > (GetClientAreaBounds().height - H_FOOTER_PANEL))
+ if (__imageWidth >= GetClientAreaBounds().width || __imageHeight > (GetClientAreaBounds().height - pPanel->GetBounds().height))
{
float imageRatio = __imageHeight / (float) __imageWidth;
if (imageRatio < clientAreaRatio)
__imageBox.width = GetClientAreaBounds().width;
__imageBox.height = (__imageHeight * __imageBox.width) / __imageWidth;
__imageBox.x = GetClientAreaBounds().x;
- __imageBox.y = GetClientAreaBounds().y + ((GetClientAreaBounds().height - H_FOOTER_PANEL) - __imageBox.height) / 2;
+ __imageBox.y = GetClientAreaBounds().y + ((GetClientAreaBounds().height - pPanel->GetBounds().height) - __imageBox.height) / 2;
}
else
{
- __imageBox.height = GetClientAreaBounds().height - H_FOOTER_PANEL;
+ __imageBox.height = GetClientAreaBounds().height - pPanel->GetBounds().height;
__imageBox.width = (__imageWidth * __imageBox.height) / __imageHeight;
__imageBox.x = (GetClientAreaBounds().width - __imageBox.width) / 2;
__imageBox.y = GetClientAreaBounds().y;
Invalidate(true);
}
- if (previousSceneId == IDSCN_IMAGE_CROP && pArgs != null)
- {
- String filePath;
- filePath = *(static_cast<String*>(pArgs->GetAt(0)));
- delete pArgs;
- int count = __pPresentationModel->GetFileCount();
- __pPresentationModel->AddImageCache(filePath);
- __pGallery->UpdateGallery();
- __pGallery->SetCurrentItemIndex(count);
- __pPresentationModel->RequestImage(filePath);
- ShowPanelDetail(false);
- }
-
if (__pGallery->GetCurrentItemIndex() < 0)
{
SetFooterItemState(false);