static const int PORTRAIT_MODE = 0;
static const int PORTRAIT_REVERSE_MODE = 1;
static const int LANDSCAPE_MODE = 3;
-static const int POPUP_X_DISPLACEMENT = 10;
+static const int POPUP_X_DISPLACEMENT = 5;
static const String FORM_ID = L"CameraCaptureForm";
}
//As Client area bounds gives us area from the margin of the popup.
- r = pCtrl->Construct(Rectangle(POPUP_X_DISPLACEMENT, 0, popupRect.width, popupRect.height), true, false);
+ r = pCtrl->Construct(Rectangle(0, 0, popupRect.width, popupRect.height), true, false);
TryCatch(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO), "[%s] pCtrl->Construct",GetErrorMessage(r));
SetCurrentListViewType(id);
if (pItemValue != null)
{
AppLog("item name at %d = %ls", index, pItemValue->pItemName->GetPointer());
- r = pItem->AddElement(Rectangle(0, 0, itemWidth, LISTVIEW_ITEM_HEIGHT), pItemValue->elementId, *(pItemValue->pItemName), true);
+ r = pItem->AddElement(Rectangle(POPUP_X_DISPLACEMENT, 0, itemWidth, LISTVIEW_ITEM_HEIGHT), pItemValue->elementId, *(pItemValue->pItemName), true);
TryCatch(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO),"[%s] pItem->AddElement", GetErrorMessage(r));
}
static const int MIN_THREAD_SLEEP_TIME = 200;
static const int ENABLE_AUDIO_STREAM = 0;
static const int DISABLE_AUDIO_STREAM = 1;
-static const int POPUP_X_DISPLACEMENT = 10;
+static const int POPUP_X_DISPLACEMENT = 5;
static const String FORM_ID = L"VideoRecorderForm";
extern const Tizen::Ui::Scenes::SceneId VIDEO_RECORDER_SCENE_ID = L"VideoRecorderScene";
popupRect.height = VR_FORM_LISTVIEW_H;
}
- popupRect.x = POPUP_X_DISPLACEMENT; //As Client area bounds gives us area from the margin of the popup.
+ popupRect.x = 0;
popupRect.y = 0;
r = pCtrl->Construct(popupRect, true, false);
if (pItemValue != null)
{
AppLog("item name at %d = %ls", index, pItemValue->pItemName->GetPointer());
- r = pItem->AddElement(Rectangle(0, 0, itemWidth, LISTVIEW_ITEM_HEIGHT), pItemValue->elementId, *(pItemValue->pItemName), true);
+ r = pItem->AddElement(Rectangle(POPUP_X_DISPLACEMENT, 0, itemWidth, LISTVIEW_ITEM_HEIGHT), pItemValue->elementId, *(pItemValue->pItemName), true);
TryCatch(r == E_SUCCESS, ShowError(r, METHOD_FILE_LINENO), "[%s] pItem->AddElement", GetErrorMessage(r));
}
void
VideoRecorderForm::OnVideoRecorderCanceled(result r)
{
- AppLog("RECORDER_STATE_RECORDING");
+ AppLog("OnVideoRecorderCanceled");
__pTimer->Cancel();
FreeResources();
}
void
VideoRecorderForm::OnVideoRecorderClosed(result r)
{
- AppLog("VideoRecorderForm::OnVideoRecorderClosed");
+ AppLog("OnVideoRecorderClosed");
switch(__cameraError)
{
void
VideoRecorderForm::OnVideoRecorderEndReached(Tizen::Media::RecordingEndCondition endCondition)
{
- AppLog("VideoRecorderForm::OnVideoRecorderEndReached ");
+ AppLog("OnVideoRecorderEndReached ");
__pVideoRecorder->Close();
__pTimer->Cancel();
SetFooterItem(2, L"Start", ID_START);
void
VideoRecorderForm::OnVideoRecorderErrorOccurred(Tizen::Media::RecorderErrorReason r)
{
- AppLog("VideoRecorderForm::OnVideoRecorderErrorOccurred");
+ AppLog("OnVideoRecorderErrorOccurred");
__pVideoRecorder->Close();
__pTimer->Cancel();
void
VideoRecorderForm::OnVideoRecorderPaused(result r)
{
- AppLog("VideoRecorderForm::OnVideoRecorderPaused");
+ AppLog("OnVideoRecorderPaused");
}
void
VideoRecorderForm::OnVideoRecorderStopped(result r)
{
Footer* pFotter = null;
- AppLog("VideoRecorderForm::OnVideoRecorderStopped ");
+ AppLog("OnVideoRecorderStopped ");
SendUserEvent(RECORDER_ON_STOP, null);
ShowFooterItem(0, true);
if (__cameraCount > 1) //if camera count is 2 then only use secondary camera.