if (r != E_SUCCESS)
{
- // SysLogExceptionxception( "[E_SYSTEM] UiBuilder::__MakeCheck: Failed to create Group(%s)",buffer);
delete pCheck;
delete pGroup;
return null;
if (checkStyle == CHECK_BUTTON_STYLE_MARK || checkStyle == CHECK_BUTTON_STYLE_MARK_WITH_DIVIDER || checkStyle == CHECK_BUTTON_STYLE_ONOFF
|| checkStyle == CHECK_BUTTON_STYLE_ONOFF_WITH_DIVIDER || checkStyle == CHECK_BUTTON_STYLE_RADIO || checkStyle == CHECK_BUTTON_STYLE_RADIO_WITH_DIVIDER)
{
- if (bounds.width < minDimension.width )
+ if (bounds.width < minDimension.width)
{
bounds.width = minDimension.width;
}
- if (bounds.height < minDimension.height )
+ if (bounds.height < minDimension.height)
{
bounds.height = minDimension.height;
}
}
else
{
- if (bounds.width < minDimensionWithAnnex.width )
+ if (bounds.width < minDimensionWithAnnex.width)
{
bounds.width = minDimensionWithAnnex.width;
}
- if (bounds.height < minDimensionWithAnnex.height )
+ if (bounds.height < minDimensionWithAnnex.height)
{
bounds.height = minDimensionWithAnnex.height;
}
FloatRectangle bounds(0.0f, 0.0f, __pCheckButton->GetBoundsF().width, __pCheckButton->GetBoundsF().height);
- if (bounds.height < minDimension.height )
+ if (bounds.height < minDimension.height)
{
bounds.height = minDimension.height;
}
}
else
{
- if (isInCheckButtonArea == true && __touchMoveHandled == false && isInOnOffHandlerArea == false )
+ if (isInCheckButtonArea == true && __touchMoveHandled == false && isInOnOffHandlerArea == false)
{
__pCheckButton->SetCheckButtonStatus(_CHECK_BUTTON_STATUS_PRESSED);
}
{
__detailedPressed = false;
- if (isInCheckButtonArea == true && __touchMoveHandled == false && isDetailedArea == false )
+ if (isInCheckButtonArea == true && __touchMoveHandled == false && isDetailedArea == false)
{
__pCheckButton->SetCheckButtonStatus(_CHECK_BUTTON_STATUS_PRESSED);
}
if (checkStyle == CHECK_BUTTON_STYLE_MARK || checkStyle == CHECK_BUTTON_STYLE_MARK_WITH_DIVIDER || checkStyle == CHECK_BUTTON_STYLE_ONOFF
|| checkStyle == CHECK_BUTTON_STYLE_ONOFF_WITH_DIVIDER || checkStyle == CHECK_BUTTON_STYLE_RADIO || checkStyle == CHECK_BUTTON_STYLE_RADIO_WITH_DIVIDER)
{
- if (bounds.width < minDimension.width )
+ if (bounds.width < minDimension.width)
{
bounds.width = minDimension.width;
}
- if (bounds.height < minDimension.height )
+ if (bounds.height < minDimension.height)
{
bounds.height = minDimension.height;
}
}
else
{
- if (bounds.width < minDimensionWithAnnex.width )
+ if (bounds.width < minDimensionWithAnnex.width)
{
bounds.width = minDimensionWithAnnex.width;
}
- if (bounds.height < minDimensionWithAnnex.height )
+ if (bounds.height < minDimensionWithAnnex.height)
{
bounds.height = minDimensionWithAnnex.height;
}
if (checkStyle == CHECK_BUTTON_STYLE_MARK || checkStyle == CHECK_BUTTON_STYLE_MARK_WITH_DIVIDER || checkStyle == CHECK_BUTTON_STYLE_ONOFF
|| checkStyle == CHECK_BUTTON_STYLE_ONOFF_WITH_DIVIDER || checkStyle == CHECK_BUTTON_STYLE_RADIO || checkStyle == CHECK_BUTTON_STYLE_RADIO_WITH_DIVIDER)
{
- if (bounds.width < minDimension.width )
+ if (bounds.width < minDimension.width)
{
bounds.width = minDimension.width;
}
- if (bounds.height < minDimension.height )
+ if (bounds.height < minDimension.height)
{
bounds.height = minDimension.height;
}
}
else
{
- if (bounds.width < minDimensionWithAnnex.width )
+ if (bounds.width < minDimensionWithAnnex.width)
{
bounds.width = minDimensionWithAnnex.width;
}
- if (bounds.height < minDimensionWithAnnex.height )
+ if (bounds.height < minDimensionWithAnnex.height)
{
bounds.height = minDimensionWithAnnex.height;
}
if (checkStyle == CHECK_BUTTON_STYLE_MARK || checkStyle == CHECK_BUTTON_STYLE_MARK_WITH_DIVIDER || checkStyle == CHECK_BUTTON_STYLE_ONOFF
|| checkStyle == CHECK_BUTTON_STYLE_ONOFF_WITH_DIVIDER || checkStyle == CHECK_BUTTON_STYLE_RADIO || checkStyle == CHECK_BUTTON_STYLE_RADIO_WITH_DIVIDER)
{
- if (bounds.width < minDimension.width )
+ if (bounds.width < minDimension.width)
{
bounds.width = minDimension.width;
}
- if (bounds.height < minDimension.height )
+ if (bounds.height < minDimension.height)
{
bounds.height = minDimension.height;
}
}
else
{
- if (bounds.width < minDimensionWithAnnex.width )
+ if (bounds.width < minDimensionWithAnnex.width)
{
bounds.width = minDimensionWithAnnex.width;
}
- if (bounds.height < minDimensionWithAnnex.height )
+ if (bounds.height < minDimensionWithAnnex.height)
{
bounds.height = minDimensionWithAnnex.height;
}
void
_ColorPickerImpl::OnColorChanged(const _Control& source, const Color& color)
{
- IEventArg * pColorChangeEventArg = _PublicColorChangeEvent::CreateColorChangeEventArgN(color);
+ IEventArg* pColorChangeEventArg = _PublicColorChangeEvent::CreateColorChangeEventArgN(color);
if (pColorChangeEventArg == null)
{
return;
{
case HUE_HANDLER:
{
- Canvas *pCanvas = __pColorPicker->GetHueHandler()->GetCanvasN();
+ Canvas* pCanvas = __pColorPicker->GetHueHandler()->GetCanvasN();
r = GetLastResult();
SysTryReturnResult(NID_UI_CTRL, pCanvas != null, r, "[%s] Propagating.", GetErrorMessage(r));
r = DrawResourceBitmap(*pCanvas, FloatRectangle(0, 0, __componentBounds[HUE_HANDLER].width, __componentBounds[HUE_HANDLER].height), __pFocusBitmap);
break;
case SAT_HANDLER:
{
- Canvas *pCanvas = __pColorPicker->GetSaturationHandler()->GetCanvasN();
+ Canvas* pCanvas = __pColorPicker->GetSaturationHandler()->GetCanvasN();
r = GetLastResult();
SysTryReturnResult(NID_UI_CTRL, pCanvas != null, r, "[%s] Propagating.", GetErrorMessage(r));
r = DrawResourceBitmap(*pCanvas, FloatRectangle(0, 0, __componentBounds[SAT_HANDLER].width, __componentBounds[SAT_HANDLER].height), __pFocusBitmap);
break;
case LUM_HANDLER:
{
- Canvas *pCanvas = __pColorPicker->GetLuminanceHandler()->GetCanvasN();
+ Canvas* pCanvas = __pColorPicker->GetLuminanceHandler()->GetCanvasN();
r = GetLastResult();
SysTryReturnResult(NID_UI_CTRL, pCanvas != null, r, "[%s] Propagating.", GetErrorMessage(r));
r = DrawResourceBitmap(*pCanvas, FloatRectangle(0, 0, __componentBounds[LUM_HANDLER].width, __componentBounds[LUM_HANDLER].height), __pFocusBitmap);
{
case HUE_HANDLER:
{
- Canvas *pCanvas = __pColorPicker->GetHueHandler()->GetCanvasN();
+ Canvas* pCanvas = __pColorPicker->GetHueHandler()->GetCanvasN();
r = GetLastResult();
SysTryReturnResult(NID_UI_CTRL, pCanvas != null, r, "Propagating.");
pCanvas->SetBackgroundColor(Color());
break;
case SAT_HANDLER:
{
- Canvas *pCanvas = __pColorPicker->GetSaturationHandler()->GetCanvasN();
+ Canvas* pCanvas = __pColorPicker->GetSaturationHandler()->GetCanvasN();
r = GetLastResult();
SysTryReturnResult(NID_UI_CTRL, pCanvas != null, r, "Propagating.");
pCanvas->SetBackgroundColor(Color());
break;
case LUM_HANDLER:
{
- Canvas *pCanvas = __pColorPicker->GetLuminanceHandler()->GetCanvasN();
+ Canvas* pCanvas = __pColorPicker->GetLuminanceHandler()->GetCanvasN();
r = GetLastResult();
SysTryReturnResult(NID_UI_CTRL, pCanvas != null, r, "Propagating.");
pCanvas->SetBackgroundColor(Color());
pLabel->SetBackgroundBitmap(*pNormalBitmap);
pLabel->SetBackgroundColor(Color(0, 0, 0, 0));
- int bitmapY = (__itemHeight - __itemBitmapHeight ) / 2;
+ int bitmapY = (__itemHeight - __itemBitmapHeight) / 2;
pLabel->SetBounds(FloatRectangle(__leftMargin, bitmapY, __itemBitmapWidth, __itemBitmapHeight));
pLabel->SetTouchPressThreshold(TOUCH_PRESS_THRESHOLD_INSENSITIVE);
pItem->AttachChild(*pLabel);
}
result
-_ContextMenuModel::InsertItem( _ContextMenuItem* pItem, int index)
+_ContextMenuModel::InsertItem(_ContextMenuItem* pItem, int index)
{
SysTryReturnResult(NID_UI_CTRL, IsValidItem(pItem), E_SYSTEM, "A system error has occurred. pItem is not valid.");
_DateTimeBar::OnActivated(void)
{
VisualElement* pVisualElement = null;
- VisualElementAnimation *pAnimation = null;
+ VisualElementAnimation* pAnimation = null;
if (GetOwner() == null)
{
void
_DateTimeBar::RemoveAllAnimations(void)
{
- VisualElement *pDateTimeBarElement = GetVisualElement();
+ VisualElement* pDateTimeBarElement = GetVisualElement();
if (pDateTimeBarElement != null)
{
_DateTimeBar::CloseDateTimeBar()
{
VisualElement* pVisualElement = null;
- VisualElementAnimation *pAnimation = null;
+ VisualElementAnimation* pAnimation = null;
pVisualElement = GetVisualElement();
SysTryReturnVoidResult(NID_UI_CTRL, pVisualElement != null, E_SYSTEM, "[E_SYSTEM] A system error has occurred. Failed to get visual element.");
result r = E_SUCCESS;
TextSimple* pSimpleText = null;
- TextObject * pTextObject = new (std::nothrow) TextObject;
+ TextObject* pTextObject = new (std::nothrow) TextObject;
SysTryReturn(NID_UI_CTRL, (pTextObject != null), false, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
__text.Clear();
"Invalid argument(s) is used. The maxYear (%d) must be greater than or equal to minYear (%d).", maxYear, minYear);
r = SetProperty("minYearRange", Variant(minYear));
- if (r != E_SUCCESS )
+ if (r != E_SUCCESS)
{
return r;
}
return;
}
- if (actionId != DATETIME_EVENT_ID_SAVE && actionId != DATETIME_EVENT_ID_CANCEL )
+ if (actionId != DATETIME_EVENT_ID_SAVE && actionId != DATETIME_EVENT_ID_CANCEL)
{
return;
}
EditInputModeCategory tempInputMode = EDIT_INPUTMODE_ALPHA;
for (int i = 0; i < INPUT_MODE_CATEGORY_MAX; i++)
{
- if ( (categories & tempInputMode) && (tempInputMode != EDIT_INPUTMODE_PREDICTIVE))
+ if ((categories & tempInputMode) && (tempInputMode != EDIT_INPUTMODE_PREDICTIVE))
{
newInputMode = tempInputMode;
break;
}
//Both of handlers are located on the top of the Editor.
- if ( ((startRect.y + startRect.height) < editShowAreaAbsRect.y) && ((endRect.y + endRect.height) < editShowAreaAbsRect.y))
+ if (((startRect.y + startRect.height) < editShowAreaAbsRect.y) && ((endRect.y + endRect.height) < editShowAreaAbsRect.y))
{
SysLog(NID_UI_CTRL, "Both of handlers are located on the top of the Editor.\n");
return;
}
//Both of handlers are located on the bottom of the Editor.
- else if( ((startRect.y + startRect.height) > editShowAreaAbsRect.y + editShowAreaAbsRect.height ) && ((endRect.y + endRect.height) > editShowAreaAbsRect.y + editShowAreaAbsRect.height))
+ else if(((startRect.y + startRect.height) > editShowAreaAbsRect.y + editShowAreaAbsRect.height) && ((endRect.y + endRect.height) > editShowAreaAbsRect.y + editShowAreaAbsRect.height))
{
SysLog(NID_UI_CTRL, "Both of handlers are located on the bottom of the Editor.\n");
return;
}
// Left handler is located on the top of the Editor and Right handler is located on the bottom of the Editor.
- else if ( ((startRect.y + startRect.height) < editShowAreaAbsRect.y) && ((endRect.y + endRect.height) > (editShowAreaAbsRect.y + editShowAreaAbsRect.height)))
+ else if (((startRect.y + startRect.height) < editShowAreaAbsRect.y) && ((endRect.y + endRect.height) > (editShowAreaAbsRect.y + editShowAreaAbsRect.height)))
{
copyPastePoint.y = editShowAreaAbsRect.y + editShowAreaAbsRect.height/2;
}
// Left handler is located on the top of the Editor and Right handler is located on the Editor
- else if ( ((startRect.y + startRect.height) < editShowAreaAbsRect.y) && ((endRect.y + endRect.height) <= (editShowAreaAbsRect.y + editShowAreaAbsRect.height)) )
+ else if (((startRect.y + startRect.height) < editShowAreaAbsRect.y) && ((endRect.y + endRect.height) <= (editShowAreaAbsRect.y + editShowAreaAbsRect.height)))
{
- if ( (endRect.y + endRect.height + handlerHeight + __contextMenuHeight) < keypadBounds.y)
+ if ((endRect.y + endRect.height + handlerHeight + __contextMenuHeight) < keypadBounds.y)
{
__contextMenuAlign = CONTEXT_MENU_CORE_ALIGN_DOWN;
copyPastePoint.y = endRect.y + endRect.height + handlerHeight;
}
}
// Left handler is located on the Editor and Right handler is located on the bottom of the Editor
- else if ( ((startRect.y + startRect.height) >= editShowAreaAbsRect.y) && ((endRect.y + endRect.height) > (editShowAreaAbsRect.y + editShowAreaAbsRect.height)) )
+ else if (((startRect.y + startRect.height) >= editShowAreaAbsRect.y) && ((endRect.y + endRect.height) > (editShowAreaAbsRect.y + editShowAreaAbsRect.height)))
{
if (__contextMenuHeight < startRect.y)
{
copyPastePoint.y = startRect.y;
}
// There is a space on the bottom of the Editor.
- else if ( screenSize.height > (endRect.y + endRect.height + handlerHeight + __contextMenuHeight))
+ else if (screenSize.height > (endRect.y + endRect.height + handlerHeight + __contextMenuHeight))
{
__contextMenuAlign = CONTEXT_MENU_CORE_ALIGN_DOWN;
__pCopyPastePopup = _ContextMenu::CreateContextMenuN(copyPastePoint, CONTEXT_MENU_CORE_STYLE_GRID, __contextMenuAlign);
SysTryReturnVoidResult(NID_UI_CTRL, __pCopyPastePopup, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
- if ( __pEdit->GetTextLength() != 0 && !isPasswordStyle)
+ if (__pEdit->GetTextLength() != 0 && !isPasswordStyle)
{
if (__pEdit->IsBlocked())
{
{
int curCursorLine = pTextObject->GetLineIndexAtTextIndex(pTextObject->GetCursorIndex());
- if (curCursorLine !=0 )
+ if (curCursorLine !=0)
{
int offset = rightHandlerPosition - pTextObject->GetFirstTextIndexAt(curCursorLine);
int firstTextIndex = pTextObject->GetFirstTextIndexAt(curCursorLine-1);
EditInputModeCategory tempInputMode = EDIT_INPUTMODE_ALPHA;
for (int i = 0; i < INPUT_MODE_CATEGORY_MAX; i++)
{
- if ( (categories & tempInputMode) && (tempInputMode != EDIT_INPUTMODE_PREDICTIVE))
+ if ((categories & tempInputMode) && (tempInputMode != EDIT_INPUTMODE_PREDICTIVE))
{
newInputMode = tempInputMode;
break;
{
int previousTextSize = 0;
- for( int index = 0; index < __cursorPos; index++)
+ for (int index = 0; index < __cursorPos; index++)
{
previousTextSize++;
- if ( __pTextBuffer[__cursorPos-index-1] != 0x20)
+ if (__pTextBuffer[__cursorPos-index-1] != 0x20)
{
break;
}
{
if (!__isCopyPasteManagerExist)
{
- if ( (keyCode == _KEY_LEFT) || (keyCode == _KEY_UP) || (keyCode == _KEY_DOWN) || (keyCode == _KEY_RIGHT) )
+ if ((keyCode == _KEY_LEFT) || (keyCode == _KEY_UP) || (keyCode == _KEY_DOWN) || (keyCode == _KEY_RIGHT))
{
if (__pEdit->GetEditStyle() & EDIT_STYLE_TOKEN)
{
}
int curCursorLine = __pTextObject->GetLineIndexAtTextIndex(__pTextObject->GetCursorIndex());
- if (curCursorLine !=0 )
+ if (curCursorLine !=0)
{
int offset = __cursorPos - __pTextObject->GetFirstTextIndexAt(curCursorLine);
int firstTextIndex = __pTextObject->GetFirstTextIndexAt(curCursorLine-1);
return;
}
- if (__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE || __pEdit->GetEditStyle() & EDIT_STYLE_TOKEN )
+ if (__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE || __pEdit->GetEditStyle() & EDIT_STYLE_TOKEN)
{
int length = filteredString.GetLength();
for (int i = length-1; i >= 0; i--)
}
TextImage* pImageText = null;
pImageText = dynamic_cast < TextImage* >(pTextElement);
- if ( pImageText == null)
+ if (pImageText == null)
{
continue;
}
delete pClipboardItem;
return E_SUCCESS;
}
- if (__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE || __pEdit->GetEditStyle() & EDIT_STYLE_TOKEN )
+ if (__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE || __pEdit->GetEditStyle() & EDIT_STYLE_TOKEN)
{
int length = filteredString.GetLength();
for (int i = length-1; i >= 0; i--)
if (objectType == TEXT_ELEMENT_TYPE_TEXT || objectType == TEXT_ELEMENT_TYPE_CUTLINK)
{
pSimpleText = dynamic_cast < TextSimple* >(pTextElement);
- if ( pSimpleText == null)
+ if (pSimpleText == null)
{
continue;
}
SysTryReturnResult(NID_UI_CTRL, totalLength <= __limitLength, E_MAX_EXCEEDED, "The Invalid argument is given.");
}
- if (__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE || __pEdit->GetEditStyle() & EDIT_STYLE_TOKEN )
+ if (__pEdit->GetEditStyle() & EDIT_STYLE_SINGLE_LINE || __pEdit->GetEditStyle() & EDIT_STYLE_TOKEN)
{
while (insertText.Contains(String(L"\n")))
{
const TextSimple* pLastSimpleText = dynamic_cast <const TextSimple*>(pLastTextElement);
if (pLastSimpleText != null && pLastSimpleText->GetBitmap() != null)
{
- if( (pLastSimpleText->GetTextOffset() + pLastSimpleText->GetTextLength()) > endCursorPosition)
+ if ((pLastSimpleText->GetTextOffset() + pLastSimpleText->GetTextLength()) > endCursorPosition)
{
endCursorPosition = pLastSimpleText->GetTextOffset() + pLastSimpleText->GetTextLength();
}
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, "A system error has occurred. Failed to draw title text");
}
- Canvas *pTitleTextCanvas = __pTitleTextVisualElement->GetCanvasN();
+ Canvas* pTitleTextCanvas = __pTitleTextVisualElement->GetCanvasN();
SysTryReturnResult(NID_UI_CTRL, pTitleTextCanvas, E_SYSTEM, "A system error has occurred. Failed to get canvas of VisualElement");
if (__isTouchPressed)
{
isSupportedCharacterExist = false;
wchar_t checkChar =0;
- if ( text.GetCharAt(i, checkChar) != E_SUCCESS)
+ if (text.GetCharAt(i, checkChar) != E_SUCCESS)
{
break;
}
if (__isAnimating)
{
- VisualElement *pEditTimeElement = __pEditTime->GetVisualElement();
+ VisualElement* pEditTimeElement = __pEditTime->GetVisualElement();
result r = GetLastResult();
SysTryReturn(NID_UI_CTRL, (pEditTimeElement != null), false, r, "[%s] Propagating.", GetErrorMessage(r));
pEditTimeElement->RemoveAllAnimations();
VisualElement* pEditTimeElement = null;
VisualElementPropertyAnimation* pNewBoundsAnimation = null;
VisualElementPropertyAnimation* pOldBoundsAnimation = null;
- Canvas *pCanvas = null;
- Canvas *pContentCanvas = null;
+ Canvas* pCanvas = null;
+ Canvas* pContentCanvas = null;
Color contentBgColor;
Color textNormalColor;
Color textPressedColor;
_ExpandableListImpl::ProcessItemStateChange(int mainIndex, int subIndex, ItemStatus itemStatus)
{
int itemId = -1;
- if (subIndex == -1 )
+ if (subIndex == -1)
{
itemId = GetItemIdAt(mainIndex);
}
_AccessibilityElement* pAccessibilityElement = null;
result r = E_SUCCESS;
- for (int i = 0; i < omittedChildCount; )
+ for (int i = 0; i < omittedChildCount;)
{
_FastScrollIndex* pChildIndex = __pBaseIndex->GetChildIndex(i, true);
SysTryReturnResult(NID_UI_CTRL, pChildIndex, GetLastResult(), "Failed to get the child index.");
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Failed to set bounds of the popup index ve.");
_FastScrollIndex* pFormerIndex = null;
- if ( i == __focusedIndexLevel )
+ if (i == __focusedIndexLevel)
{
pFormerIndex = pIndexView->GetFormerIndex();
r = __pPopupView->SelectIndex(i, &popupIndex, pFormerIndex);
{
result r = E_SUCCESS;
- _FastScrollIndexView* pNewIndexView = _FastScrollIndexView::CreateFastScrollIndexViewN( *__pCtrlVe, *__pViewConfig);
+ _FastScrollIndexView* pNewIndexView = _FastScrollIndexView::CreateFastScrollIndexViewN(*__pCtrlVe, *__pViewConfig);
SysTryReturnResult(NID_UI_CTRL, pNewIndexView, GetLastResult(), "Propagating.");
r = __fastScroll.SetBounds(CalculateFastScrollBounds(GetIndexViewCount() + 1));
}
FloatDimension
-_Form::TranslateSize(FloatDimension size ) const
+_Form::TranslateSize(FloatDimension size) const
{
FloatDimension returnSize(0.0f, 0.0f);
returnSize = CoordinateSystem::AlignToDevice(size);
return null;
}
- if ( layoutType == UIBUILDER_LAYOUT_GRID)
+ if (layoutType == UIBUILDER_LAYOUT_GRID)
{
for (int i = 0; i < UIBUILDER_ATTRIBUTE_NUM; i++)
{
GridLayout* pGridLayout = null;
pControlProperty = pControl->GetAttribute(i);
- if ( i == UIBUILDER_ATTRIBUTE_PORTRAIT)
+ if (i == UIBUILDER_ATTRIBUTE_PORTRAIT)
{
pGridLayout = dynamic_cast<GridLayout*>(pPortraitLayout);
}
__pTmpFileBitmap = new (std::nothrow) Bitmap();
SysTryCatch(NID_UI_CTRL, __pTmpFileBitmap != null, , E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
- // TODO : need Bitmap::ConstructF(ByteBuffer, )
+ // TODO : need Bitmap::ConstructF(ByteBuffer,)
//FloatDimension bitmapSizeF(bitmapSize.width, bitmapSize.height);
r = __pTmpFileBitmap->Construct(*pBuffer, bitmapSize, pItem->GetGalleryItemImage()->GetInternalBitmap()->GetPixelColorFormat());
SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
stretchableHeight = (controlRect.height - gridRect.height) / stretchableRowCount;
balanceHeightPixels = fmod((controlRect.height - gridRect.height), stretchableRowCount);
- if ( balanceHeightPixels > 0)
+ if (balanceHeightPixels > 0)
{
height = Math::Round((balanceHeightPixels + ROUNDOFF_VALUE) * 10.0);
}
if (__pEmptyText != null)
{
textPos.x = ((_FloatCompare(listDimension.width, emptyText.width)) ? 0.0f : (listDimension.width - emptyText.width) / 2.0f);
- textPos.y = ((listDimension.height <= totalHeight ) ? (bitmapPos.y + emptyBitmap.height + horizontalSpacing) : (listDimension.height - totalHeight) / 2.0f);
+ textPos.y = ((listDimension.height <= totalHeight) ? (bitmapPos.y + emptyBitmap.height + horizontalSpacing) : (listDimension.height - totalHeight) / 2.0f);
}
}
break;
}
- SysTryReturnResult(NID_UI_CTRL, (r == E_SUCCESS), r, "Invalid Icon List style" );
+ SysTryReturnResult(NID_UI_CTRL, (r == E_SUCCESS), r, "Invalid Icon List style");
r = GetCore().SetStyle(__annexStyle);
SysTryReturnResult(NID_UI_CTRL, (r == E_SUCCESS), r, "[%s] Failed to set style", GetErrorMessage(r));
if (__pAccessibilityElement != null)
{
- if (__pAccessibilityElement->GetParent() != null )
+ if (__pAccessibilityElement->GetParent() != null)
{
__pAccessibilityElement->GetParent()->RemoveElement(*__pAccessibilityElement);
}
}
result r = E_SUCCESS;
- _Scroll *pScroll =__pIconListView->GetScroll();
+ _Scroll* pScroll =__pIconListView->GetScroll();
if (pScroll != null)
{
pScroll->SetScrollingEffectVisibility(true);
ResetMagneticScrollTimer();
int lastItemIndex = __pListModel->GetItemCountInGroup(DEFAULT_GROUP_INDEX) - 1;
- if (focusUiIndex < 0 )
+ if (focusUiIndex < 0)
{
__highlightedIndex = 0;
}
r = ChangeCurrentVisualElement(__pLandscapeVisualElement);
}
- Ecore_Evas *pPortraitEe = ecore_evas_object_ecore_evas_get(__pPortraitIndicatorEvasObject);
+ Ecore_Evas* pPortraitEe = ecore_evas_object_ecore_evas_get(__pPortraitIndicatorEvasObject);
SysTryReturn(NID_UI_CTRL, pPortraitEe, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] Unable to get evas.");
- Ecore_Evas *pLandscapeEe = ecore_evas_object_ecore_evas_get(__pLandscapeIndicatorEvasObject);
+ Ecore_Evas* pLandscapeEe = ecore_evas_object_ecore_evas_get(__pLandscapeIndicatorEvasObject);
SysTryReturn(NID_UI_CTRL, pLandscapeEe, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] Unable to get evas.");
ecore_evas_data_set(pPortraitEe, pPortPublicKey, __pPortraitIndicatorEvasObject);
}
}
- Ecore_Evas *pPortraitEe = ecore_evas_object_ecore_evas_get(__pPortraitIndicatorEvasObject);
- Ecore_Evas *pLandscapeEe = ecore_evas_object_ecore_evas_get(__pLandscapeIndicatorEvasObject);
+ Ecore_Evas* pPortraitEe = ecore_evas_object_ecore_evas_get(__pPortraitIndicatorEvasObject);
+ Ecore_Evas* pLandscapeEe = ecore_evas_object_ecore_evas_get(__pLandscapeIndicatorEvasObject);
if (pPortraitEe)
{
}
void
-_Indicator::OnDisconnected(Ecore_Evas *pEe)
+_Indicator::OnDisconnected(Ecore_Evas* pEe)
{
_Indicator* pIndicator = (_Indicator*)ecore_evas_data_get(pEe, pIndicatorKey);
SysTryReturnVoidResult(NID_UI_CTRL, pIndicator, E_SYSTEM, "[E_SYSTEM] Unable to get Indicator Object");
}
void
-_Indicator::OnMessageHandle(Ecore_Evas *pEe, int msgDomain, int msgId, void *data, int size)
+_Indicator::OnMessageHandle(Ecore_Evas* pEe, int msgDomain, int msgId, void *data, int size)
{
if (!data)
{
{
if (msgId == MSG_ID_INDICATOR_REPEAT_EVENT)
{
- int *repeat = (int*)data;
+ int* repeat = (int*)data;
if (1 == *repeat)
{
if (pPortraitIndicatorEvasObject)
SysTryReturnResult(NID_UI_CTRL, pSlideAnimation, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
pSlideAnimation->SetDuration(duration);
- pSlideAnimation->SetPropertyName( L"bounds.position");
+ pSlideAnimation->SetPropertyName(L"bounds.position");
pSlideAnimation->SetVisualElementAnimationStatusEventListener(this);
float indicatorHeight = 0.0f;
SysTryReturnResult(NID_UI_CTRL, pUserData, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
}
pSlideAnimation->SetUserData((void*)(pUserData));
- AddAnimation( L"bounds.position", *pSlideAnimation);
+ AddAnimation(L"bounds.position", *pSlideAnimation);
delete pSlideAnimation;
}
}
- if (pTouchManager->IsListenerOnly(pointId) == true )
+ if (pTouchManager->IsListenerOnly(pointId) == true)
{
return true;
}
__pCallerEdit = null;
}
- if ( __pChildEdit == null)
+ if (__pChildEdit == null)
{
__pChildEdit = _Edit::CreateEditN();
SysTryCatch(NID_UI_CTRL, __pChildEdit, r = E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "Memory allocation failed.");
}
else
{
- if ( isKeypadExist || isClipboardExist)
+ if (isKeypadExist || isClipboardExist)
{
if (isKeypadExist)
{
SysTryReturnResult(NID_UI_CTRL, (index >= 0 && index <= GetItemCount()),
E_OUT_OF_RANGE, "The index(%d) is out of range.", index);
- CustomListItem *pItem = GetNewItemN(pText1, pText2, pBitmap1, pBitmap2, itemId, index);
+ CustomListItem* pItem = GetNewItemN(pText1, pText2, pBitmap1, pBitmap2, itemId, index);
SysTryReturnResult(NID_UI_CTRL, pItem, GetLastResult(),
"A system error has occurred. CustomListItem instance is null.");
__pNumberElements->RemoveAt(index, true);
}
- CustomListItem *pItem = GetNewItemN(pText1, pText2, pBitmap1, pBitmap2, itemId, index);
+ CustomListItem* pItem = GetNewItemN(pText1, pText2, pBitmap1, pBitmap2, itemId, index);
SysTryReturnResult(NID_UI_CTRL, pItem, GetLastResult(),
"A system error has occurred. CustomListItem instance is null.");
SysTryReturnVoidResult(NID_UI_CTRL, (pItem), E_SYSTEM,
"[E_SYSTEM] A system error has occurred. Failed to get item at %d.", itemCount);
- _CustomListItemImpl *pItemImpl = pItem->__pCustomListItemImpl;
+ _CustomListItemImpl* pItemImpl = pItem->__pCustomListItemImpl;
SysTryReturnVoidResult(NID_UI_CTRL, (pItemImpl), E_SYSTEM,
"[E_SYSTEM] A system error has occurred. Failed to get item at %d.", itemCount);
SysTryReturnVoidResult(NID_UI_CTRL, (pItem), E_SYSTEM,
"[E_SYSTEM] A system error has occurred. Failed to get item at %d.", itemCount);
- _CustomListItemImpl *pItemImpl = pItem->__pCustomListItemImpl;
+ _CustomListItemImpl* pItemImpl = pItem->__pCustomListItemImpl;
SysTryReturnVoidResult(NID_UI_CTRL, (pItemImpl), E_SYSTEM,
"[E_SYSTEM] A system error has occurred. Failed to get item at %d.", itemCount);
if (__pEmptyText != null)
{
textPos.x = ((_FloatCompare(listDimension.width, emptyText.width)) ? 0.0f : (listDimension.width - emptyText.width) / 2.0f);
- textPos.y = ((listDimension.height <= totalHeight ) ? (bitmapPos.y + emptyBitmap.height + horizontalSpacing) : (listDimension.height - totalHeight) / 2.0f);
+ textPos.y = ((listDimension.height <= totalHeight) ? (bitmapPos.y + emptyBitmap.height + horizontalSpacing) : (listDimension.height - totalHeight) / 2.0f);
}
}
}
void
-_MessageBox::OnFontChanged(Font * pFont)
+_MessageBox::OnFontChanged(Font* pFont)
{
__pMsgboxPresenter->OnFontChanged(pFont);
}
}
result
-_OptionMenuModel::InsertItemAt( _OptionMenuItem* pItem, int mainIndex, int subIndex)
+_OptionMenuModel::InsertItemAt(_OptionMenuItem* pItem, int mainIndex, int subIndex)
{
result r = E_SUCCESS;
pLabel->SetBackgroundBitmap(*pNormalBitmap);
pLabel->SetBackgroundColor(Color(0, 0, 0, 0));
- int bitmapY = (__itemHeight - __itemBitmapHeight ) / 2;
+ int bitmapY = (__itemHeight - __itemBitmapHeight) / 2;
pLabel->SetBounds(FloatRectangle(__leftMargin, bitmapY, __itemBitmapWidth, __itemBitmapHeight));
pLabel->SetTouchPressThreshold(TOUCH_PRESS_THRESHOLD_INSENSITIVE);
pItem->AttachChild(*pLabel);
SysTryReturnResult(NID_UI_CTRL, pDisplay != null, E_SYSTEM, "The current value of Display is null");
if (__pXvImage == null || __needToRellaocImage)
- //||(__pXvImage && __pXvImage->data_size != currentSourceBufferSize->GetCapacity()) )
+ //||(__pXvImage && __pXvImage->data_size != currentSourceBufferSize->GetCapacity()))
{
if (__xvPort != -1)
{
//Set bounds of rotated renderer
FloatRectangle rendererBounds = __standardRendererBounds;
- if (rotatedZAngle == 90.0f || rotatedZAngle == 270.0f )
+ if (rotatedZAngle == 90.0f || rotatedZAngle == 270.0f)
{
rendererBounds.x = __standardRendererBounds.x - ((__standardRendererBounds.height - __standardRendererBounds.width) / 2.0f);
rendererBounds.y = __standardRendererBounds.y + ((__standardRendererBounds.height - __standardRendererBounds.width) / 2.0f);
E_SYSTEM, "input size (%d, %d) is too small to create a pixmap",pixmapSize.width, pixmapSize.height);
// Create pixmap
- Display *pDisplay = (Display*)ecore_x_display_get();
+ Display* pDisplay = (Display*)ecore_x_display_get();
SysTryReturnResult(NID_UI_CTRL, pDisplay != null, E_SYSTEM, "The current value of Display is null");
__pixmap = XCreatePixmap(pDisplay, DefaultRootWindow(pDisplay), pixmapSize.width, pixmapSize.height, DefaultDepth(pDisplay, DefaultScreen(pDisplay)));
__OverlayAgentBufferPixelFormat[0] = set;
}
- std::unique_ptr< ArrayListT<bool> > pFormatList( new (std::nothrow) ArrayListT<bool>());
+ std::unique_ptr< ArrayListT<bool> > pFormatList(new (std::nothrow) ArrayListT<bool>());
SysTryReturn(NID_UI_CTRL, pFormatList != null, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] failed to create a list instance");
result r = pFormatList->Construct();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
}
- std::unique_ptr< ArrayListT<OverlayPanel::BufferPixelFormat> > pFormatList( new (std::nothrow) ArrayListT<OverlayPanel::BufferPixelFormat>());
+ std::unique_ptr< ArrayListT<OverlayPanel::BufferPixelFormat> > pFormatList(new (std::nothrow) ArrayListT<OverlayPanel::BufferPixelFormat>());
SysTryReturn(NID_UI_CTRL, pFormatList != null, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] failed to create a list instance");
r = pFormatList->Construct();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, r, "[%s] Propagating.", GetErrorMessage(r));
}
- std::unique_ptr< ArrayListT<OverlayRegionBufferPixelFormat> > pFormatList( new (std::nothrow) ArrayListT<OverlayRegionBufferPixelFormat>());
+ std::unique_ptr< ArrayListT<OverlayRegionBufferPixelFormat> > pFormatList(new (std::nothrow) ArrayListT<OverlayRegionBufferPixelFormat>());
SysTryReturn(NID_UI_CTRL, pFormatList != null, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed to create a list instance");
r = pFormatList->Construct();
return null;
}
- if ( layoutType == UIBUILDER_LAYOUT_GRID)
+ if (layoutType == UIBUILDER_LAYOUT_GRID)
{
for (int i = 0; i < UIBUILDER_ATTRIBUTE_NUM; i++)
{
GridLayout* pGridLayout = null;
pControlProperty = pControl->GetAttribute(i);
- if ( i == UIBUILDER_ATTRIBUTE_PORTRAIT)
+ if (i == UIBUILDER_ATTRIBUTE_PORTRAIT)
{
pGridLayout = dynamic_cast<GridLayout*>(pPortraitLayout);
}
return null;
}
- if ( layoutType == UIBUILDER_LAYOUT_GRID)
+ if (layoutType == UIBUILDER_LAYOUT_GRID)
{
for (int i = 0; i < UIBUILDER_ATTRIBUTE_NUM; i++)
{
GridLayout* pGridLayout = null;
pControlProperty = pControl->GetAttribute(i);
- if ( i == UIBUILDER_ATTRIBUTE_PORTRAIT)
+ if (i == UIBUILDER_ATTRIBUTE_PORTRAIT)
{
pGridLayout = dynamic_cast<GridLayout*>(pPortraitLayout);
}
_pTitleTextObject->Draw(*_CanvasImpl::GetInstance(*pCanvas));
}
- if( __cancelButton )
+ if(__cancelButton)
{
const Bitmap* pButtonBitmap = __pProgressPopup->GetButtonBackgroundBitmap();
const Bitmap* pButtonEffectBitmap = __pProgressPopup->GetButtonBackgroundEffectBitmap();
"Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
r = pProgressPresenter->LoadResource();
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[E_SYSTEM] A system error has occurred. The loading of resource failed", GetErrorMessage(E_SYSTEM) );
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[E_SYSTEM] A system error has occurred. The loading of resource failed", GetErrorMessage(E_SYSTEM));
return pProgressPresenter;
}
float touchDistance = touchPosition - __handlerTouchedPosition;
- float scrollDistance = ( __scrollRange * touchDistance) / scrollBoundsRange;
+ float scrollDistance = (__scrollRange * touchDistance) / scrollBoundsRange;
scrollPosition += scrollDistance;
IFocusEventListener* pFocusEventListener = dynamic_cast <IFocusEventListener*>(pListener);
- if (pFocusEventListener != null )
+ if (pFocusEventListener != null)
{
pFocusEventListener->OnFocusGained(GetPublic());
}
IFocusEventListener* pFocusEventListener = dynamic_cast <IFocusEventListener*>(pListener);
- if (pFocusEventListener != null )
+ if (pFocusEventListener != null)
{
pFocusEventListener->OnFocusLost(GetPublic());
}
IKeyEventListener* pKeyEventListener = dynamic_cast <IKeyEventListener*>(pListener);
- if (pKeyEventListener != null )
+ if (pKeyEventListener != null)
{
pKeyEventListener->OnKeyPressed(GetPublic(), keyCode);
}
IKeyEventListener* pKeyEventListener = dynamic_cast <IKeyEventListener*>(pListener);
- if (pKeyEventListener != null )
+ if (pKeyEventListener != null)
{
pKeyEventListener->OnKeyReleased(GetPublic(), keyCode);
}
IKeyEventListener* pKeyEventListener = dynamic_cast <IKeyEventListener*>(pListener);
- if (pKeyEventListener != null )
+ if (pKeyEventListener != null)
{
pKeyEventListener->OnKeyLongPressed(GetPublic(), keyCode);
}
pGroupObject->__pCheckedList->SetAt(*pChecked, indexItem, true);
- _CheckElementModel *pCheckElement = GetCheckElementAt(groupIndex, indexItem);
+ _CheckElementModel* pCheckElement = GetCheckElementAt(groupIndex, indexItem);
if (pCheckElement)
{
if (__pCheckedList)
{
- Boolean *pChecked = new (std::nothrow) Boolean(false);
+ Boolean* pChecked = new (std::nothrow) Boolean(false);
SysTryReturn(NID_UI_CTRL, pChecked, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
__pCheckedList->InsertAt(*pChecked, index);
{
__pSliderPresenter->SetFocusMode(false);
- if ((GetStyle() & _SLIDER_STYLE_OVERLAY) && __isKeyPressed )
+ if ((GetStyle() & _SLIDER_STYLE_OVERLAY) && __isKeyPressed)
{
_SliderOverlay* pSliderOverlay = __pSliderPresenter->GetSliderOverlay();
pSliderOverlay->SetVisibleState(false);
{
IEventArg* pEventArg = _SliderEvent::CreateSliderEventArgN(value);
- if( pEventArg == null)
+ if(pEventArg == null)
{
return;
}
if (__pAdjustmentEvent != null)
{
IEventArg* pEventArg = _AdjustmentEvent::CreateAdjustmentEventArgN(adjustment);
- if( pEventArg == null)
+ if(pEventArg == null)
{
return;
}
titleTextBounds = GetTitleTextBounds();
sliderY = titleTextBounds.y + titleTextBounds.height;
__touchRect = FloatRectangle(barLeftMargin + __barOffset - __handleOffset, sliderY + (__rect.height - (sliderY + __handleRect.height)) / 2.0f,
- __rect.width - (barLeftMargin + barRightMargin) + (2.0f * __handleOffset) - ( 2.0 * __barOffset), __handleRect.height);
+ __rect.width - (barLeftMargin + barRightMargin) + (2.0f * __handleOffset) - (2.0 * __barOffset), __handleRect.height);
}
else
{
__touchRect = FloatRectangle(barLeftMargin + __barOffset - __handleOffset, (__rect.height - __handleRect.height) / 2.0f,
- (__rect.width - (barLeftMargin + barRightMargin ) - ( 2.0 * __barOffset)) + (2.0f * __handleOffset), __handleRect.height);
+ (__rect.width - (barLeftMargin + barRightMargin ) - (2.0 * __barOffset)) + (2.0f * __handleOffset), __handleRect.height);
}
if (__pSlider->GetIcon(ICON_POSITION_LEFT) != null)
__handleRect.x = __touchRect.x + __handleX;
__handleRect.y = __touchRect.y;
- if (__handleRect.x < __touchRect.x )
+ if (__handleRect.x < __touchRect.x)
{
__handleRect.x = __touchRect.x;
}
- if (__handleRect.x + __handleRect.width > __touchRect.x + __touchRect.width )
+ if (__handleRect.x + __handleRect.width > __touchRect.x + __touchRect.width)
{
__handleRect.x = __touchRect.x + __touchRect.width - __handleRect.width;
}
}
DrawBitmap(canvas, __rect, pBgBitmap);
- if ( __groupStyle != GROUP_STYLE_NONE)
+ if (__groupStyle != GROUP_STYLE_NONE)
{
if (!isCustomBitmap)
{
__handleRect.x = __touchRect.x + __handleX;
__handleRect.y = __touchRect.y;
- if (__handleRect.x < __touchRect.x )
+ if (__handleRect.x < __touchRect.x)
{
__handleRect.x = __touchRect.x;
}
- if (__handleRect.x + __handleRect.width > __touchRect.x + __touchRect.width )
+ if (__handleRect.x + __handleRect.width > __touchRect.x + __touchRect.width)
{
__handleRect.x = __touchRect.x + __touchRect.width - __handleRect.width;
}
if (!_BitmapImpl::CheckNinePatchedBitmapStrictly(*pHandleBitmap))
{
// to clip the center portion of the larger bitmap.
- if( bitmapWidth > __handleRect.width )
+ if(bitmapWidth > __handleRect.width)
{
bitmapPositionX = (bitmapWidth / 2.0f) - (__handleRect.width / 2.0f);
bitmapWidth = __handleRect.width;
}
- if( bitmapHeight > __handleRect.height )
+ if(bitmapHeight > __handleRect.height)
{
bitmapPositionY = (bitmapHeight / 2.0f) - (__handleRect.height / 2.0f);
bitmapHeight = __handleRect.height;
_SplitPanelPresenter::LoadBitmap(SplitPanelDividerDirection splitPanelDividerDirection)
{
result r = E_SUCCESS;
- Bitmap *pDividerBackgroundBitmap = null;
+ Bitmap* pDividerBackgroundBitmap = null;
- // Modified - Changeable Color / Resource ( Fixed Style )
+ // Modified - Changeable Color / Resource (Fixed Style)
r = GET_BITMAP_CONFIG_N(SPLITPANEL::DIVIDER_BG_NORMAL, BITMAP_PIXEL_FORMAT_ARGB8888, pDividerBackgroundBitmap);
SysTryReturnResult(NID_UI_CTRL, (r == E_SUCCESS), r, "Failed to load bitmap.");
SysTryReturnResult(NID_UI_CTRL, itemCount < _TAB_ITEM_MAXCOUNT, E_SYSTEM, "A system error has occurred. The tab has maximum number of items.");
- _TabItem *pItem = new (std::nothrow) _TabItem;
+ _TabItem* pItem = new (std::nothrow) _TabItem;
SysTryReturnResult(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
pItem->SetIcon(icon);
SysTryReturnResult(NID_UI_CTRL, itemCount < _TAB_ITEM_MAXCOUNT, E_SYSTEM, "A system error has occurred. The tab has maximum number of items.");
- _TabItem *pItem = new (std::nothrow) _TabItem;
+ _TabItem* pItem = new (std::nothrow) _TabItem;
SysTryReturnResult(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
pItem->SetIcon(icon);
SysTryReturnResult(NID_UI_CTRL, itemCount < _TAB_ITEM_MAXCOUNT, E_SYSTEM, "A system error has occurred. The tab has maximum number of items.");
- _TabItem *pItem = new (std::nothrow) _TabItem;
+ _TabItem* pItem = new (std::nothrow) _TabItem;
SysTryReturnResult(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
pItem->SetText(text);
SysTryReturnResult(NID_UI_CTRL, itemCount < _TAB_ITEM_MAXCOUNT, E_SYSTEM, "A system error has occurred. The tab has maximum number of items.");
- _TabItem *pItem = new (std::nothrow) _TabItem;
+ _TabItem* pItem = new (std::nothrow) _TabItem;
SysTryReturnResult(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
pItem->SetIcon(icon);
if (selectedIndex >= index)
{
- _TabItem *pSelectedItem = null;
+ _TabItem* pSelectedItem = null;
pSelectedItem = GetItemAt(selectedIndex);
if (pSelectedItem != null)
{
SysTryReturnResult(NID_UI_CTRL, itemCount < _TAB_ITEM_MAXCOUNT, E_SYSTEM, "A system error has occurred. The tab has maximum number of items.");
- _TabItem *pItem = new (std::nothrow) _TabItem;
+ _TabItem* pItem = new (std::nothrow) _TabItem;
SysTryReturnResult(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
pItem->SetIcon(icon);
if (selectedIndex >= index)
{
- _TabItem *pSelectedItem = null;
+ _TabItem* pSelectedItem = null;
pSelectedItem = GetItemAt(selectedIndex);
if (pSelectedItem != null)
{
SysTryReturnResult(NID_UI_CTRL, itemCount < _TAB_ITEM_MAXCOUNT, E_SYSTEM, "A system error has occurred. The tab has maximum number of items.");
- _TabItem *pItem = new (std::nothrow) _TabItem;
+ _TabItem* pItem = new (std::nothrow) _TabItem;
SysTryReturnResult(NID_UI_CTRL, pItem != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
pItem->SetText(text);
if (selectedIndex >= index)
{
- _TabItem *pSelectedItem = null;
+ _TabItem* pSelectedItem = null;
pSelectedItem = GetItemAt(selectedIndex);
if (pSelectedItem != null)
{
return E_SYSTEM;
}
- _TabItem *pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
+ _TabItem* pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
result r = GetLastResult();
SysTryReturnResult(NID_UI_CTRL, pItem != null, r, "[%s] Propagating.", GetErrorMessage(r));
return E_SYSTEM;
}
- _TabItem *pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
+ _TabItem* pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
result r = GetLastResult();
SysTryReturnResult(NID_UI_CTRL, pItem != null, r, "[%s] Propagating.", GetErrorMessage(r));
return E_SYSTEM;
}
- _TabItem *pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
+ _TabItem* pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
result r = GetLastResult();
SysTryReturnResult(NID_UI_CTRL, pItem != null, r, "[%s] Propagating.", GetErrorMessage(r));
if (selectedIndex >= index)
{
- _TabItem *pSelectedItem = null;
+ _TabItem* pSelectedItem = null;
pSelectedItem = GetItemAt(selectedIndex);
if (pSelectedItem != null)
{
int itemIndex = GetItemIndexFromActionId(actionId);
- _TabItem *pItem = null;
+ _TabItem* pItem = null;
if (itemIndex < 0)
{
for (index = 0; index < itemCount; index++)
{
- const _TabItem *pItem = dynamic_cast<const _TabItem*>(__tabItems.GetAt(index));
+ const _TabItem* pItem = dynamic_cast<const _TabItem*>(__tabItems.GetAt(index));
if (pItem != null)
{
int
_Tab::GetItemActionIdAt(int index) const
{
- if (__tabItems.GetAt(index) == null )
+ if (__tabItems.GetAt(index) == null)
{
return -1;
}
- const _TabItem *pItem = dynamic_cast<const _TabItem*>(__tabItems.GetAt(index));
+ const _TabItem* pItem = dynamic_cast<const _TabItem*>(__tabItems.GetAt(index));
SysTryReturn(NID_UI_CTRL, pItem != null, E_SYSTEM, E_SYSTEM,"[E_SYSTEM] A system error has occurred. Failed to get an item at index (%d).", index);
return pItem->GetActionId();
_TabItem*
_Tab::GetItemAt(int index)
{
- if (__tabItems.GetAt(index) == null )
+ if (__tabItems.GetAt(index) == null)
{
return null;
}
- _TabItem *pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
+ _TabItem* pItem = static_cast<_TabItem*>(__tabItems.GetAt(index));
result r = GetLastResult();
SysTryReturn(NID_UI_CTRL, pItem != null, null, r, "[%s] Propagating.", GetErrorMessage(r));
}
void
-_TabBar::OnFontChanged(Font * pFont)
+_TabBar::OnFontChanged(Font* pFont)
{
__pTabBarPresenter->OnFontChanged(pFont);
}
result
_TabPresenter::SetItemStatus(int index, _TabItemStatus status)
{
- _TabItem *pItem = GetItemAt(index);
+ _TabItem* pItem = GetItemAt(index);
SysTryReturn(NID_UI_CTRL, pItem, GetLastResult(), GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
pItem->SetUpdateState(true);
_TabPresenter::GetItemStatus(int index) const
{
- _TabItem *pItem = __pTab->GetItemAt(index);
+ _TabItem* pItem = __pTab->GetItemAt(index);
if (pItem == null)
{
__isRecalculateNeeded = false;
CalculateItemBounds();
}
- else if (__isFlickEnabled )
+ else if (__isFlickEnabled)
{
DrawHorizontal();
}
void
_TabPresenter::SetEditItemBounds(const FloatPoint& point)
{
- _TabItem *pTabItem = null;
+ _TabItem* pTabItem = null;
FloatRectangle editRect(0.0f, 0.0f, 0.0f, 0.0f);
pTabItem = GetItemAt(__editItemIndex);
SysTryReturnVoidResult(NID_UI_CTRL, pTabItem, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
return true;
}
- _TabItem *pTabItem = null;
- _TabItem *pNextItem = null;
- _TabItem *pPrevItem = null;
+ _TabItem* pTabItem = null;
+ _TabItem* pNextItem = null;
+ _TabItem* pPrevItem = null;
FloatPoint movedPosition = touchinfo.GetCurrentPosition();
int index = GetNextItemIndexFromPosition(movedPosition, __editItemIndex);
{
if (__isDirectionRight)
{
- _TabItem *pLastItem = GetItemAt(__lastItemIndex);
+ _TabItem* pLastItem = GetItemAt(__lastItemIndex);
SysTryReturn(NID_UI_CTRL, pLastItem, false, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
if ((pLastItem->GetItemBounds().x + pLastItem->GetItemBounds().width) > __width)
bounds = pTabItem->GetItemBounds();
bounds.x = bounds.x + fitDistance;
- if ( i == __firstItemIndex && ( bounds.x ) >= (2.0f * __itemWidth))
+ if (i == __firstItemIndex && ( bounds.x ) >= (2.0f * __itemWidth))
{
return;
}
void
_TabPresenter::SwapItems(int indexDest, float distance)
{
- _TabItem *pItem;
+ _TabItem* pItem;
FloatRectangle itemBounds(0.0f, 0.0f, 0.0f, 0.0f);
pItem = GetItemAt(indexDest);
SysTryReturnVoidResult(NID_UI_CTRL, pItem, GetLastResult(), "[%s] Propagating.", GetErrorMessage(GetLastResult()));
(__scrollStyle == TABLE_VIEW_SCROLL_BAR_STYLE_FAST_SCROLL || __scrollStyle == TABLE_VIEW_SCROLL_BAR_STYLE_FAST_SCROLL_FIXED),
E_INVALID_OPERATION, E_INVALID_OPERATION, "[%s]The style of TableView scroll is not TABLE_VIEW_SCROLL_BAR_STYLE_FAST_SCROLL", GetErrorMessage(E_INVALID_OPERATION));
SysTryReturn(NID_UI_CTRL, __pFastScroll != null, E_OBJ_NOT_FOUND, E_OBJ_NOT_FOUND, "[%s] This instance is not available.", GetErrorMessage(E_OBJ_NOT_FOUND));
- SysTryReturn(NID_UI_CTRL, (useSearchIcon || (!useSearchIcon && text.GetLength() > 0)), E_INVALID_ARG, E_INVALID_ARG,"[%s] Invalid input argument.",GetErrorMessage(E_INVALID_ARG) );
+ SysTryReturn(NID_UI_CTRL, (useSearchIcon || (!useSearchIcon && text.GetLength() > 0)), E_INVALID_ARG, E_INVALID_ARG,"[%s] Invalid input argument.",GetErrorMessage(E_INVALID_ARG));
result r = E_SUCCESS;
r = E_SYSTEM;
}
}
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM) );
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM));
if (__enabledState)
{
if (IS_CUSTOM_BITMAP(TABLEVIEW::SECTIONITEM_SINGLE_BG_PRESSED))
{
r = GET_REPLACED_BITMAP_CONFIG_N(TABLEVIEW::SECTIONITEM_SINGLE_BG_PRESSED, BITMAP_PIXEL_FORMAT_ARGB8888, bgColor, pReplacementSectionPressBg);
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM) );
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM));
}
}
else if (__itemType == TABLE_VIEW_ITEM_TYPE_TOP)
if (IS_CUSTOM_BITMAP(TABLEVIEW::SECTIONITEM_TOP_BG_PRESSED))
{
r = GET_REPLACED_BITMAP_CONFIG_N(TABLEVIEW::SECTIONITEM_TOP_BG_PRESSED, BITMAP_PIXEL_FORMAT_ARGB8888, bgColor, pReplacementSectionPressBg);
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM) );
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM));
}
}
else if (__itemType == TABLE_VIEW_ITEM_TYPE_MIDDLE)
if (IS_CUSTOM_BITMAP(TABLEVIEW::SECTIONITEM_CENTER_BG_PRESSED))
{
r = GET_REPLACED_BITMAP_CONFIG_N(TABLEVIEW::SECTIONITEM_CENTER_BG_PRESSED, BITMAP_PIXEL_FORMAT_ARGB8888, bgColor, pReplacementSectionPressBg);
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM) );
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM));
}
}
else if (__itemType == TABLE_VIEW_ITEM_TYPE_BOTTOM)
if (IS_CUSTOM_BITMAP(TABLEVIEW::SECTIONITEM_BOTTOM_BG_PRESSED))
{
r = GET_REPLACED_BITMAP_CONFIG_N(TABLEVIEW::SECTIONITEM_BOTTOM_BG_PRESSED, BITMAP_PIXEL_FORMAT_ARGB8888, bgColor, pReplacementSectionPressBg);
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM) );
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM));
}
}
if (IS_CUSTOM_BITMAP(TABLEVIEW::SECTIONITEM_SINGLE_BG_DISABLED))
{
r = GET_REPLACED_BITMAP_CONFIG_N(TABLEVIEW::SECTIONITEM_SINGLE_BG_DISABLED, BITMAP_PIXEL_FORMAT_ARGB8888, bgColor, pReplacementSectionDisabledBg);
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM) );
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM));
}
}
else if (__itemType == TABLE_VIEW_ITEM_TYPE_TOP)
if (IS_CUSTOM_BITMAP(TABLEVIEW::SECTIONITEM_TOP_BG_DISABLED))
{
r = GET_REPLACED_BITMAP_CONFIG_N(TABLEVIEW::SECTIONITEM_TOP_BG_DISABLED, BITMAP_PIXEL_FORMAT_ARGB8888, bgColor, pReplacementSectionDisabledBg);
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM) );
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM));
}
}
else if (__itemType == TABLE_VIEW_ITEM_TYPE_MIDDLE)
if (IS_CUSTOM_BITMAP(TABLEVIEW::SECTIONITEM_CENTER_BG_DISABLED))
{
r = GET_REPLACED_BITMAP_CONFIG_N(TABLEVIEW::SECTIONITEM_CENTER_BG_DISABLED, BITMAP_PIXEL_FORMAT_ARGB8888, bgColor, pReplacementSectionDisabledBg);
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM) );
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM));
}
}
else if (__itemType == TABLE_VIEW_ITEM_TYPE_BOTTOM)
if (IS_CUSTOM_BITMAP(TABLEVIEW::SECTIONITEM_BOTTOM_BG_DISABLED))
{
r = GET_REPLACED_BITMAP_CONFIG_N(TABLEVIEW::SECTIONITEM_BOTTOM_BG_DISABLED, BITMAP_PIXEL_FORMAT_ARGB8888, bgColor, pReplacementSectionDisabledBg);
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM) );
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM));
}
}
if (__enabledState)
{
_TableView* pParent = dynamic_cast<_TableView*>(GetParent());
- SysTryCatch(NID_UI_CTRL, pParent != null, , E_SYSTEM, "[%s] A system error has been occurred. SectionTableView load failed", GetErrorMessage(E_SYSTEM) );
+ SysTryCatch(NID_UI_CTRL, pParent != null, , E_SYSTEM, "[%s] A system error has been occurred. SectionTableView load failed", GetErrorMessage(E_SYSTEM));
bgColor = pParent->GetBackgroundColor();
}
{
r = E_SYSTEM;
}
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM) );
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM));
if (__itemType == TABLE_VIEW_ITEM_TYPE_ONE)
{
{
r = E_SYSTEM;
}
- SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM) );
+ SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM, "[%s] A system error has been occurred. SectionStyle image load failed", GetErrorMessage(E_SYSTEM));
__pItemCover->SetBounds(FloatRectangle(0.0f, 0.0f, bounds.width, bounds.height));
if (annexStartPositionX <= __annexOnOffHandlerPositionX
&& annexEndPositionX >= __annexOnOffHandlerPositionX)
{
- if (((annexEndPositionX - annexStartPositionX) / 2) < (__annexOnOffHandlerPositionX + (handlerBounds.width / 2)) - annexStartPositionX )
+ if (((annexEndPositionX - annexStartPositionX) / 2) < (__annexOnOffHandlerPositionX + (handlerBounds.width / 2)) - annexStartPositionX)
{
handlerPositionX = annexEndPositionX;
SetChecked(true);
}
TableViewItemTag itemTag = {groupIndex, itemIndex};
- _TableViewItem *pItem = FindItem(itemTag);
+ _TableViewItem* pItem = FindItem(itemTag);
TableViewItemTag topDrawnItemTag = {-1, -1};
GetTopDrawnItem(topDrawnItemTag);
void
_TableViewPresenter::DetachItem(TableViewItemTag& itemTag)
{
- _TableViewItem *pItem = FindItem(itemTag);
+ _TableViewItem* pItem = FindItem(itemTag);
if (pItem != null && pItem->HasParent())
{
void
_TableViewPresenter::DetachContextItem(TableViewItemTag& itemTag)
{
- _TableViewItem *pItem = FindItem(itemTag);
+ _TableViewItem* pItem = FindItem(itemTag);
if (pItem == null)
{
return;
if (__focusItemTag.groupIndex != -1)
{
- _TableViewItem *pItem = FindItem(__focusItemTag);
+ _TableViewItem* pItem = FindItem(__focusItemTag);
if (pItem)
{
pItem->ResetItemState();
}
else
{
- if (GetGroupCount() <= 0 )
+ if (GetGroupCount() <= 0)
{
return true;
}
if (withAnimation)
{
- _TableViewItem *pItem = FindItem(itemTag);
+ _TableViewItem* pItem = FindItem(itemTag);
if (pItem == null)
{
return E_SUCCESS;
if (withAnimation)
{
- _TableViewItem *pItem = FindItem(itemTag);
+ _TableViewItem* pItem = FindItem(itemTag);
if (pItem == null)
{
return E_SUCCESS;
if (pItem == null)
{
- SysLogException(NID_UI_CTRL, E_SYSTEM, "[%s] A system error has been occurred. Unable to load item.", GetErrorMessage(E_SYSTEM) );
+ SysLogException(NID_UI_CTRL, E_SYSTEM, "[%s] A system error has been occurred. Unable to load item.", GetErrorMessage(E_SYSTEM));
}
}
}
if (pItem == null)
{
- SysLogException(NID_UI_CTRL, E_SYSTEM, "[%s] A system error has been occurred. Unable to load item.", GetErrorMessage(E_SYSTEM) );
+ SysLogException(NID_UI_CTRL, E_SYSTEM, "[%s] A system error has been occurred. Unable to load item.", GetErrorMessage(E_SYSTEM));
}
}
}
TableViewItemTag current;
TableViewItemTag next;
- _TableViewItem *pItem = LoadItem(from.groupIndex, from.itemIndex);
+ _TableViewItem* pItem = LoadItem(from.groupIndex, from.itemIndex);
if (pItem == null)
{
TableViewItemTag current;
TableViewItemTag next;
- _TableViewItem *pItem = FindItem(itemTag);
+ _TableViewItem* pItem = FindItem(itemTag);
if (pItem == null)
{
return;
SysTryReturn(NID_UI_CTRL, groupIndex >= 0 && groupIndex < GetGroupCount(), false, E_OUT_OF_RANGE, "[%s] Group Index (%d) is out of range. ", GetErrorMessage(E_OUT_OF_RANGE), groupIndex);
- if ( __sweptItemTag.groupIndex == -1 && __sweptItemTag.itemIndex == -1)
+ if (__sweptItemTag.groupIndex == -1 && __sweptItemTag.itemIndex == -1)
{
return false;
}
do
{
- _TableViewItem *pItem = FindItem(currentItemTag);
+ _TableViewItem* pItem = FindItem(currentItemTag);
if (pItem != null)
{
pItem->StopAllAnimation();
FloatPoint destinationItemPosition = FloatPoint(destinationItemBounds.x, 0.0f);
- if ( __reorderInfo.itemIndex > destinationItemIndex && __reorderInfo.groupIndex == destinationGroupIndex)
+ if (__reorderInfo.itemIndex > destinationItemIndex && __reorderInfo.groupIndex == destinationGroupIndex)
{
destinationItemPosition.y = __reorderInfo.itemBounds.y + __reorderInfo.itemBounds.height - destinationItemBounds.height;
__reorderInfo.itemBounds.y = destinationItemBounds.y;
r = __itemHeightList.SetCapacity(GetItemCount());
SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
- for (int backUpListIndex = 0, actualListIndex = 0; actualListIndex < GetItemCount() && groupIndex < groupCount; )
+ for (int backUpListIndex = 0, actualListIndex = 0; actualListIndex < GetItemCount() && groupIndex < groupCount;)
{
backupItemHeightList.GetAt(backUpListIndex, backupItem);
if (groupIndex < groupCount)
GetAccessibilityContainer()->AddElement(*__pTitleTextElement);
}
- if( __descriptionText.IsEmpty())
+ if(__descriptionText.IsEmpty())
{
__pTitleTextElement->SetLabel(__titleText);
__pTitleTextElement->SetBounds(FloatRectangle(__pToolbarPresenter->GetTitleTextBoundsF()));
if(__pTitleTextElement)
{
- if( __descriptionText.IsEmpty())
+ if(__descriptionText.IsEmpty())
{
__pTitleTextElement->SetBounds(FloatRectangle(__pToolbarPresenter->GetTitleTextBoundsF()));
}
if(__pTitleTextElement)
{
- if( __descriptionText.IsEmpty())
+ if(__descriptionText.IsEmpty())
{
__pTitleTextElement->SetBounds(FloatRectangle(__pToolbarPresenter->GetTitleTextBoundsF()));
}
GET_SHAPE_CONFIG(HEADER::SEGMENTED_ITEM_FONT_SIZE, GetOrientation(), fontSize);
GET_SHAPE_CONFIG(HEADER::SEGMENTED_ITEM_MULTILINE_FONT_SIZE, GetOrientation(), multilineFontSize);
}
- else if ( __itemCount == 2)
+ else if (__itemCount == 2)
{
if (__pButtonItems[LEFT_BUTTON])
{
}
}
- Canvas * pCanvas = null;
+ Canvas* pCanvas = null;
int Z_ORDER_GROUP_CONTROL = 2001;
if (__pDividerVe == null)
void
_ToolbarPresenter::DrawEditItem(const FloatPoint& point)
{
- if (__pEditItem == null )
+ if (__pEditItem == null)
{
return;
}