#include <FBaseErrorDefine.h>
#include <FBaseSysLog.h>
#include <FGrp_BitmapImpl.h>
-#include "FUiAnim_VisualElement.h"
+#include <FSys_SettingInfoImpl.h>
#include "FUi_ResourceManager.h"
+#include "FUi_FocusManagerImpl.h"
+#include "FUi_AccessibilityContainer.h"
+#include "FUi_AccessibilityElement.h"
+#include "FUi_AccessibilityManager.h"
+#include "FUi_CoordinateSystemUtils.h"
+#include "FUiAnim_VisualElement.h"
#include "FUiCtrl_SearchBar.h"
#include "FUiCtrl_SearchBarPresenter.h"
#include "FUiCtrl_Form.h"
#include "FUiCtrl_ActionEvent.h"
#include "FUiCtrl_TextBlockEvent.h"
#include "FUiCtrl_TextEvent.h"
-#include "FUi_AccessibilityContainer.h"
-#include "FUi_AccessibilityElement.h"
-#include "FUi_AccessibilityManager.h"
-#include "FUi_CoordinateSystemUtils.h"
#include "FUiCtrl_SearchBarImpl.h"
#include "FUiCtrl_EditFieldImpl.h"
#include "FUiCtrl_ButtonImpl.h"
-#include "FUi_FocusManagerImpl.h"
-#include <FSys_SettingInfoImpl.h>
using namespace Tizen::Graphics;
_SearchBar*
_SearchBar::CreateSearchBarN(void)
{
- _SearchBar* pSearchBar = new (std::nothrow) _SearchBar;
- SysTryReturn(NID_UI_CTRL, pSearchBar, null, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+ _SearchBar* pSearchBar = new (std::nothrow) _SearchBar();
+ SysTryReturn(NID_UI_CTRL, pSearchBar != null, null, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
if (GetLastResult() != E_SUCCESS)
{
delete pSearchBar;
for (int i = 0; i < SEARCHBAR_COLOR_MAX; i++)
{
- switch(i)
+ switch (i)
{
case SEARCH_FIELD_STATUS_DISABLED:
GET_COLOR_CONFIG(SEARCHBAR::EDIT_BG_DISABLED, __color[i]);
r = CreateClippedGroupControl();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The construction of parent control for clipped group control failed.");
+ "[%s] A system error has occurred. The construction of parent control for clipped group control failed.", GetErrorMessage(E_SYSTEM));
r = CreateSearchField();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit construction failed.");
+ "[%s] A system error has occurred. The edit construction failed.", GetErrorMessage(E_SYSTEM));
r = CreateCancelButton();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button construction failed.");
+ "[%s] A system error has occurred. The cancel button construction failed.", GetErrorMessage(E_SYSTEM));
SetContentsArea();
r = CreateContentsArea();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The construction of parent for content failed.");
+ "[%s] A system error has occurred. The construction of parent for content failed.", GetErrorMessage(E_SYSTEM));
- _SearchBarPresenter* pPresenter = new (std::nothrow) _SearchBarPresenter;
- SysTryReturn(NID_UI_CTRL, pPresenter, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
+ _SearchBarPresenter* pPresenter = new (std::nothrow) _SearchBarPresenter();
+ SysTryReturn(NID_UI_CTRL, pPresenter != null, E_OUT_OF_MEMORY, E_OUT_OF_MEMORY, "[%s] Memory allocation failed.", GetErrorMessage(E_OUT_OF_MEMORY));
r = pPresenter->Construct(*this);
SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
editBounds.height = (editBounds.height > searchFieldMinHeight) ? editBounds.height : searchFieldMinHeight;
_SearchBarImpl* pSearchBarImpl = static_cast<_SearchBarImpl*>(GetUserData());
- __pEdit = &(pSearchBarImpl->GetEditFieldImpl()->GetCore());
+ SysTryReturnResult(NID_UI_CTRL, pSearchBarImpl != null, E_SYSTEM,
+ "A system error has occurred. Failed to get _SearchBarImpl instance.");
+ __pEdit = &(pSearchBarImpl->GetEditFieldImpl()->GetCore());
SysTryReturnResult(NID_UI_CTRL, __pEdit != null, E_SYSTEM,
- "A system error has occured. Failed to get _Edit instance");
+ "A system error has occurred. Failed to get _Edit instance.");
__pEdit->SetKeypadCommandButtonVisible(false);
__pEdit->SetBounds(editBounds);
r = __pClippedGroupControl->AttachChild(*__pEdit);
SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to attach edit as child.");
+ "[%s] A system error has occurred. Failed to attach edit as child.", GetErrorMessage(E_SYSTEM));
return E_SUCCESS;
_ControlOrientation orientation = _ControlManager::GetInstance()->GetOrientation();
_SearchBarImpl* pSearchBarImpl = static_cast<_SearchBarImpl*>(GetUserData());
- __pCancelButton = &(pSearchBarImpl->GetButtonImpl()->GetCore());
+ SysTryReturnResult(NID_UI_CTRL, pSearchBarImpl != null, E_SYSTEM,
+ "A system error has occurred. Failed to get _SearchBarImpl instance.");
+ __pCancelButton = &(pSearchBarImpl->GetButtonImpl()->GetCore());
SysTryReturnResult(NID_UI_CTRL, __pCancelButton != null, E_SYSTEM,
- "A system error has occured. Failed to get _Edit instance");
+ "A system error has occurred. Failed to get _Button instance.");
r = GetLastResult();
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Propagating.");
r = __pClippedGroupControl->AttachChild(*__pCancelButton);
SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to attach button as child.");
+ "[%s] A system error has occurred. Failed to attach button as child.", GetErrorMessage(E_SYSTEM));
return E_SUCCESS;
r = AttachChild(*__pContainer);
SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to attach the parent of content.");
+ "[%s] A system error has occurred. Failed to attach the parent of content.", GetErrorMessage(E_SYSTEM));
return E_SUCCESS;
result
_SearchBar::SetContentAreaVisible(bool visible, bool isCalledByApp)
{
- SysTryReturn(NID_UI_CTRL, __pContainer, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The instance of parent to content is null.");
+ SysTryReturn(NID_UI_CTRL, __pContainer != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The instance of parent to content is null.", GetErrorMessage(E_SYSTEM));
SearchBarMode searchBarMode = GetMode();
if (searchBarMode == SEARCH_BAR_MODE_INPUT)
SearchBarButtonStatus
_SearchBar::GetButtonStatus(void) const
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, SEARCH_BAR_BUTTON_STATUS_NORMAL, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, SEARCH_BAR_BUTTON_STATUS_NORMAL, E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
SearchBarButtonStatus buttonStatus = SEARCH_BAR_BUTTON_STATUS_NORMAL;
result
_SearchBar::SetButtonText(const String& text)
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pCancelButton->SetText(text);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set text.");
+ "[%s] A system error has occurred. Failed to set text.", GetErrorMessage(E_SYSTEM));
__isButtonTextChangedByApp = true;
result
_SearchBar::SetButtonEnabled(bool enabled)
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
__pCancelButton->SetEnableState(enabled);
result
_SearchBar::AppendCharacter(const Character& character)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
SysTryReturn(NID_UI_CTRL, character.CompareTo(null), E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The character is null.");
+ "[%s] A system error has occurred. The character is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pEdit->AppendCharacter(character);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set character.");
+ "[%s] A system error has occurred. Failed to set character.", GetErrorMessage(E_SYSTEM));
return r;
}
result
_SearchBar::AppendText(const String& text)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
SysTryReturn(NID_UI_CTRL, text.IsEmpty() == false, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The text is empty.");
+ "[%s] A system error has occurred. The text is empty.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pEdit->AppendText(text);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set text.");
+ "[%s] A system error has occurred. Failed to set text.", GetErrorMessage(E_SYSTEM));
return r;
}
result
_SearchBar::SetText(const String& text)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
int limitLength = __pEdit->GetTextLimitLength();
int textLength = text.GetLength();
SysTryReturn(NID_UI_CTRL, limitLength >= textLength, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. textLength exceeds the limitLength");
+ "[%s] A system error has occurred. textLength exceeds the limitLength", GetErrorMessage(E_SYSTEM));
r = __pEdit->SetText(text);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set text.");
+ "[%s] A system error has occurred. Failed to set text.", GetErrorMessage(E_SYSTEM));
return r;
}
result
_SearchBar::InsertCharacterAt(int index, const Character& character)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
SysTryReturn(NID_UI_CTRL, index > -1, E_OUT_OF_RANGE, E_OUT_OF_RANGE,
- "[E_OUT_OF_RANGE] index(%d) is out of range.", index);
+ "[%s] index(%d) is out of range.", GetErrorMessage(E_OUT_OF_RANGE), index);
SysTryReturn(NID_UI_CTRL, character.CompareTo(null), E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The character is null.");
+ "[%s] A system error has occurred. The character is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
textLength = __pEdit->GetTextLength() + 1;
SysTryReturn(NID_UI_CTRL, limitLength >= textLength, E_MAX_EXCEEDED, E_MAX_EXCEEDED,
- "[E_MAX_EXCEEDED] limitLength(%d) exceeds the maximum limit textLength(%d).", limitLength, textLength);
+ "[%s] limitLength(%d) exceeds the maximum limit textLength(%d).", GetErrorMessage(E_MAX_EXCEEDED), limitLength, textLength);
SysTryReturn(NID_UI_CTRL, index <= __pEdit->GetTextLength(), E_OUT_OF_RANGE, E_OUT_OF_RANGE,
- "[E_OUT_OF_RANGE] index(%d) is out of range of current textLength(%d).", index, __pEdit->GetTextLength());
+ "[%s] index(%d) is out of range of current textLength(%d).", GetErrorMessage(E_OUT_OF_RANGE), index, __pEdit->GetTextLength());
r = __pEdit->InsertCharacterAt(index, character);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set text.");
+ "[%s] A system error has occurred. Failed to set text.", GetErrorMessage(E_SYSTEM));
return r;
}
result
_SearchBar::InsertTextAt(int index, const String& text)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
SysTryReturn(NID_UI_CTRL, index > -1, E_OUT_OF_RANGE, E_OUT_OF_RANGE,
- "[E_OUT_OF_RANGE] index(%d) is out of range.", index);
+ "[%s] index(%d) is out of range.", GetErrorMessage(E_OUT_OF_RANGE), index);
result r = E_SUCCESS;
textLength = __pEdit->GetTextLength() + text.GetLength();
SysTryReturn(NID_UI_CTRL, limitLength >= textLength, E_MAX_EXCEEDED, E_MAX_EXCEEDED,
- "[E_MAX_EXCEEDED] limitLength(%d) exceeds the maximum limit textLength(%d).", limitLength, textLength);
+ "[%s] limitLength(%d) exceeds the maximum limit textLength(%d).", GetErrorMessage(E_MAX_EXCEEDED), limitLength, textLength);
SysTryReturn(NID_UI_CTRL, index <= __pEdit->GetTextLength(), E_OUT_OF_RANGE, E_OUT_OF_RANGE,
- "[E_OUT_OF_RANGE] index(%d) is out of range of current textLength(%d).", index, __pEdit->GetTextLength());
+ "[%s] index(%d) is out of range of current textLength(%d).", GetErrorMessage(E_OUT_OF_RANGE), index, __pEdit->GetTextLength());
r = __pEdit->InsertTextAt(index, text);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to insert text.");
+ "[%s] A system error has occurred. Failed to insert text.", GetErrorMessage(E_SYSTEM));
return r;
}
result
_SearchBar::DeleteCharacterAt(int index)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
SysTryReturn(NID_UI_CTRL, index > -1, E_INVALID_ARG, E_INVALID_ARG,
- "[E_INVALID_ARG] Invalid argument(s) is used. index = %d", index);
+ "[%s] Invalid argument(s) is used. index = %d", GetErrorMessage(E_INVALID_ARG), index);
result r = E_SUCCESS;
int textLength = 0;
textLength = __pEdit->GetTextLength();
SysTryReturn(NID_UI_CTRL, textLength > index, E_OUT_OF_RANGE, E_OUT_OF_RANGE,
- "[E_OUT_OF_RANGE] index(%d) is out of range. textLength(%d)", index, textLength);
+ "[%s] index(%d) is out of range. textLength(%d)", GetErrorMessage(E_OUT_OF_RANGE), index, textLength);
r = __pEdit->DeleteCharacterAt(index);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM,
- "A system error has occured. Failed to delete character.");
+ "A system error has occurred. Failed to delete character.");
return r;
}
result
_SearchBar::Clear(void)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return __pEdit->ClearText();
}
int
_SearchBar::GetTextLength(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, -1, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, -1, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return __pEdit->GetTextLength();
}
String
_SearchBar::GetText(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, String(), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, String(), E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return __pEdit->GetText();
}
String
_SearchBar::GetText(int start, int end) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, String(), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, String(), E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return __pEdit->GetText(start, end);
}
int
_SearchBar::GetLimitLength(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, -1, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, -1, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return __pEdit->GetTextLimitLength();
}
result
_SearchBar::SetLimitLength(int limitLength)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
SysTryReturn(NID_UI_CTRL, limitLength > 0, E_INVALID_ARG, E_INVALID_ARG,
- "[E_INVALID_ARG] Invalid argument(s) is used.limitLength = %d", limitLength);
+ "[%s] Invalid argument(s) is used.limitLength = %d", GetErrorMessage(E_INVALID_ARG), limitLength);
String tempString = GetText();
int textLength = tempString.GetLength();
SysTryReturn(NID_UI_CTRL, limitLength >= textLength, E_INVALID_ARG, E_INVALID_ARG,
- "[E_INVALID_ARG] Invalid argument(s) is used. limitLength = %d, textLength = %d", limitLength, textLength);
+ "[%s] Invalid argument(s) is used. limitLength = %d, textLength = %d", GetErrorMessage(E_INVALID_ARG), limitLength, textLength);
result r = __pEdit->SetLimitLength(limitLength);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
result
_SearchBar::ShowKeypad(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
SearchBarMode mode = __pSearchBarPresenter->GetMode();
SysTryReturn(NID_UI_CTRL, mode == SEARCH_BAR_MODE_INPUT, E_INVALID_STATE, E_INVALID_STATE,
- "[E_INVALID_STATE] The SearchBar is currently in Normal mode.");
+ "[%s] The SearchBar is currently in Normal mode.", GetErrorMessage(E_INVALID_STATE));
return __pEdit->ShowKeypad();
}
result
_SearchBar::HideKeypad(void)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
SearchBarMode mode = __pSearchBarPresenter->GetMode();
SysTryReturn(NID_UI_CTRL, mode == SEARCH_BAR_MODE_INPUT, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The SearchBar is currently in Normal mode.");
+ "[%s] A system error has occurred. The SearchBar is currently in Normal mode.", GetErrorMessage(E_SYSTEM));
result r = __pEdit->HideKeypad();
float
_SearchBar::GetSearchFieldTextSizeF(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, -1, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, -1, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return __pEdit->GetTextSizeF();
}
result
_SearchBar::SetSearchFieldTextSize(float size)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return __pEdit->SetTextSize(size);
}
result
_SearchBar::GetBlockRange(int& start, int& end) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
int startIndex = -1;
int endIndex = -1;
__pEdit->GetBlockRange(startIndex, endIndex);
SysTryReturn(NID_UI_CTRL, (startIndex > -1 && endIndex > 0), E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to get text block range.");
+ "[%s] A system error has occurred. Failed to get text block range.", GetErrorMessage(E_SYSTEM));
start = startIndex;
end = endIndex - 1;
result
_SearchBar::ReleaseBlock(void)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
result
_SearchBar::SetBlockRange(int start, int end)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
textLength = __pEdit->GetTextLength();
SysTryReturn(NID_UI_CTRL, (start < end && start >= 0 && textLength >= end), E_OUT_OF_RANGE, E_OUT_OF_RANGE,
- "[E_OUT_OF_RANGE] start (%d) and end (%d) is out of range.", start, end - 1);
+ "[%s] start (%d) and end (%d) is out of range.", GetErrorMessage(E_OUT_OF_RANGE), start, end - 1);
r = SetCursorPosition(start);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Propagating.");
r = __pEdit->BeginTextBlock();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set text block range.");
+ "[%s] A system error has occurred. Failed to set text block range.", GetErrorMessage(E_SYSTEM));
r = SetCursorPosition(end);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set cursor position.");
+ "[%s] A system error has occurred. Failed to set cursor position.", GetErrorMessage(E_SYSTEM));
return E_SUCCESS;
}
result
_SearchBar::RemoveTextBlock(void)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
_SearchBar::SetBackgroundBitmap(const Bitmap& bitmap)
{
Bitmap* pNewBitmap = _BitmapImpl::CloneN(bitmap);
- SysTryReturn(NID_UI_CTRL, pNewBitmap, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The creation of bitmap failed.");
+ SysTryReturn(NID_UI_CTRL, pNewBitmap != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The creation of bitmap failed.", GetErrorMessage(E_SYSTEM));
delete __pBackgroundBitmap;
__pBackgroundBitmap = null;
String
_SearchBar::GetGuideText(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, String(), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, String(), E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return __pEdit->GetGuideText();
}
result
_SearchBar::SetGuideText(const String& guideText)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
__pEdit->SetGuideText(guideText);
Color
_SearchBar::GetGuideTextColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return __pEdit->GetGuideTextColor();
}
result
_SearchBar::SetGuideTextColor(const Color& color)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
__isUserGuideTextColor = true;
return __pEdit->SetGuideTextColor(color);
int
_SearchBar::GetCursorPosition(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, -1, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, -1, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return __pEdit->GetCursorPosition();
}
result
_SearchBar::SetCursorPosition(int index)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
SysTryReturn(NID_UI_CTRL, index > -1, E_OUT_OF_RANGE, E_OUT_OF_RANGE,
- "[E_OUT_OF_RANGE] index(%d) is out of range.", GetErrorMessage(E_OUT_OF_RANGE), index);
+ "[%s] index(%d) is out of range.", GetErrorMessage(E_OUT_OF_RANGE), index);
int textLength = -1;
textLength = __pEdit->GetTextLength();
SysTryReturn(NID_UI_CTRL, (index > -1 && index <= textLength), E_OUT_OF_RANGE, E_OUT_OF_RANGE,
- "[E_OUT_OF_RANGE] index(%d) is out of range.", index);
+ "[%s] index(%d) is out of range.", GetErrorMessage(E_OUT_OF_RANGE), index);
return __pEdit->SetCursorPosition(index);
}
bool
_SearchBar::IsLowerCaseModeEnabled(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return __pEdit->IsLowerCaseModeEnabled();
}
void
_SearchBar::SetLowerCaseModeEnabled(bool enable)
{
- SysTryReturnVoidResult(NID_UI_CTRL, __pEdit, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturnVoidResult(NID_UI_CTRL, __pEdit != null, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
__pEdit->SetLowerCaseModeEnabled(enable);
}
EllipsisPosition
_SearchBar::GetEllipsisPosition(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, ELLIPSIS_POSITION_START, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, ELLIPSIS_POSITION_START, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return __pEdit->GetEllipsisPosition();
}
result
_SearchBar::SetEllipsisPosition(EllipsisPosition position)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
__pEdit->SetEllipsisPosition(position);
return E_SUCCESS;
bool
_SearchBar::IsTextPredictionEnabled(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, false, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, false, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return __pEdit->IsTextPredictionEnabled();
}
result
_SearchBar::SetTextPredictionEnabled(bool enable)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return __pEdit->SetTextPredictionEnabled(enable);
}
result
_SearchBar::RemoveActionEventListener(const _IActionEventListener& listener)
{
- SysTryReturn(NID_UI_CTRL, __pActionEvent, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The action event instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pActionEvent != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The action event instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pActionEvent->RemoveListener(listener);
result
_SearchBar::RemoveKeypadEventListener(const _IKeypadEventListener& listener)
{
- SysTryReturn(NID_UI_CTRL, __pKeypadEvent, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The keypad event instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pKeypadEvent != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The keypad event instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pKeypadEvent->RemoveListener(listener);
result
_SearchBar::RemoveTextBlockEventListener(const _ITextBlockEventListener& listener)
{
- SysTryReturn(NID_UI_CTRL, __pTextBlockEvent, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The text block event instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pTextBlockEvent != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The text block event instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pTextBlockEvent->RemoveListener(listener);
result
_SearchBar::RemoveTextEventListener(const _ITextEventListener& listener)
{
- SysTryReturn(NID_UI_CTRL, __pTextEvent, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The text event instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pTextEvent != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The text event instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pTextEvent->RemoveListener(listener);
result
_SearchBar::RemoveSearchBarEventListener(const _ISearchBarEventListener& listener)
{
- SysTryReturn(NID_UI_CTRL, __pSearchBarEvent, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The searchbar event instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pSearchBarEvent != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The searchbar event instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pSearchBarEvent->RemoveListener(listener);
result
_SearchBar::RemoveLanguageEventListener(const _ILanguageEventListener& listener)
{
- SysTryReturn(NID_UI_CTRL, __pLanguageEvent, E_SYSTEM, E_SYSTEM, "[E_SYSTEM] This instance isn't constructed.");
+ SysTryReturn(NID_UI_CTRL, __pLanguageEvent != null, E_SYSTEM, E_SYSTEM, "[%s] This instance isn't constructed.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
__pLanguageEvent->RemoveListener(listener);
{
IEventArg* pEventArg = _ActionEvent::CreateActionEventArgN(__actionId);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pActionEvent->Fire(*pEventArg);
}
{
IEventArg* pEventArg = _KeypadEvent::CreateKeypadEventArgN(CORE_KEYPAD_ACTION_SEARCH, CORE_KEYPAD_EVENT_STATUS_CREATED);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pKeypadEvent->Fire(*pEventArg);
}
{
IEventArg* pEventArg = _KeypadEvent::CreateKeypadEventArgN(CORE_KEYPAD_ACTION_SEARCH, CORE_KEYPAD_EVENT_STATUS_OPEN);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pKeypadEvent->Fire(*pEventArg);
}
{
IEventArg* pEventArg = _KeypadEvent::CreateKeypadEventArgN(CORE_KEYPAD_ACTION_SEARCH, CORE_KEYPAD_EVENT_STATUS_CLOSE);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pKeypadEvent->Fire(*pEventArg);
}
{
IEventArg* pEventArg = _KeypadEvent::CreateKeypadEventArgN(CORE_KEYPAD_ACTION_SEARCH, CORE_KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pKeypadEvent->Fire(*pEventArg);
}
{
IEventArg* pEventArg = _KeypadEvent::CreateKeypadEventArgN(keypadAction, CORE_KEYPAD_EVENT_STATUS_ENTERACTION);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pKeypadEvent->Fire(*pEventArg);
}
{
IEventArg* pEventArg = _TextBlockEvent::CreateTextBlockEventArgN(start, end);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pTextBlockEvent->Fire(*pEventArg);
}
{
IEventArg* pEventArg = _TextEvent::CreateTextEventArgN(CORE_TEXT_EVENT_CHANGED);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pTextEvent->Fire(*pEventArg);
}
{
IEventArg* pEventArg = _TextEvent::CreateTextEventArgN(CORE_TEXT_EVENT_CANCELED);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pTextEvent->Fire(*pEventArg);
}
{
IEventArg* pEventArg = _SearchBarEvent::CreateSearchBarEventArgN(status);
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, pEventArg, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_UI_CTRL, pEventArg != null, r, r, "[%s] Propagating.", GetErrorMessage(r));
if (!IsContentAreaVisible())
{
result
_SearchBar::SetPropertyButtonActionId(const Variant& actionId)
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
SysTryReturn(NID_UI_CTRL, actionId.ToInt() > -1, E_INVALID_ARG, E_INVALID_ARG,
- "[E_INVALID_ARG] Invalid argument(s) is used. actionId.ToInt() = %d", actionId.ToInt());
+ "[%s] Invalid argument(s) is used. actionId.ToInt() = %d", GetErrorMessage(E_INVALID_ARG), actionId.ToInt());
result r = E_SUCCESS;
Variant
_SearchBar::GetPropertyButtonActionId(void) const
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, Variant(-1), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, Variant(-1), E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__actionId);
}
result
_SearchBar::SetPropertyButtonDisabledColor(const Variant& color)
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pCancelButton->SetPropertyDisabledColor(color);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set button color.");
+ "[%s] A system error has occurred. Failed to set button color.", GetErrorMessage(E_SYSTEM));
__buttonColor[SEARCH_BAR_BUTTON_STATUS_DISABLED] = color.ToColor();
Variant
_SearchBar::GetPropertyButtonDisabledColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, Variant(Color()), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, Variant(Color()), E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__buttonColor[SEARCH_BAR_BUTTON_STATUS_DISABLED]);
}
result
_SearchBar::SetPropertyButtonHighlightedColor(const Variant& color)
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pCancelButton->SetPropertyHighlightedColor(color);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set button color.");
+ "[%s] A system error has occurred. Failed to set button color.", GetErrorMessage(E_SYSTEM));
__buttonColor[SEARCH_BAR_BUTTON_STATUS_HIGHLIGHTED] = color.ToColor();
Variant
_SearchBar::GetPropertyButtonHighlightedColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, Variant(Color()), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, Variant(Color()), E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__buttonColor[SEARCH_BAR_BUTTON_STATUS_HIGHLIGHTED]);
}
result
_SearchBar::SetPropertyButtonNormalColor(const Variant& color)
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pCancelButton->SetPropertyNormalColor(color);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set button color.");
+ "[%s] A system error has occurred. Failed to set button color.", GetErrorMessage(E_SYSTEM));
__buttonColor[SEARCH_BAR_BUTTON_STATUS_NORMAL] = color.ToColor();
Variant
_SearchBar::GetPropertyButtonNormalColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, Variant(Color()), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, Variant(Color()), E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__buttonColor[SEARCH_BAR_BUTTON_STATUS_NORMAL]);
}
result
_SearchBar::SetPropertyButtonPressedColor(const Variant& color)
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pCancelButton->SetPropertyPressedColor(color);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set button color.");
+ "[%s] A system error has occurred. Failed to set button color.", GetErrorMessage(E_SYSTEM));
__buttonColor[SEARCH_BAR_BUTTON_STATUS_PRESSED] = color.ToColor();
Variant
_SearchBar::GetPropertyButtonPressedColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, Variant(Color()), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, Variant(Color()), E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__buttonColor[SEARCH_BAR_BUTTON_STATUS_PRESSED]);
}
result
_SearchBar::SetPropertyButtonDisabledTextColor(const Variant& textColor)
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pCancelButton->SetPropertyDisabledTextColor(textColor);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set button text color.");
+ "[%s] A system error has occurred. Failed to set button text color.", GetErrorMessage(E_SYSTEM));
__buttonTextColor[SEARCH_BAR_BUTTON_STATUS_DISABLED] = textColor.ToColor();
Variant
_SearchBar::GetPropertyButtonDisabledTextColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, Variant(Color()), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, Variant(Color()), E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__buttonTextColor[SEARCH_BAR_BUTTON_STATUS_DISABLED]);
}
result
_SearchBar::SetPropertyButtonHighlightedTextColor(const Variant& textColor)
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM]] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pCancelButton->SetPropertyHighlightedTextColor(textColor);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set button text color.");
+ "[%s] A system error has occurred. Failed to set button text color.", GetErrorMessage(E_SYSTEM));
__buttonTextColor[SEARCH_BAR_BUTTON_STATUS_HIGHLIGHTED] = textColor.ToColor();
Variant
_SearchBar::GetPropertyButtonHighlightedTextColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, Variant(Color()), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, Variant(Color()), E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__buttonTextColor[SEARCH_BAR_BUTTON_STATUS_HIGHLIGHTED]);
}
result
_SearchBar::SetPropertyButtonNormalTextColor(const Variant& textColor)
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pCancelButton->SetPropertyNormalTextColor(textColor);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set button text color.");
+ "[%s] A system error has occurred. Failed to set button text color.", GetErrorMessage(E_SYSTEM));
__buttonTextColor[SEARCH_BAR_BUTTON_STATUS_NORMAL] = textColor.ToColor();
Variant
_SearchBar::GetPropertyButtonNormalTextColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, Variant(Color()), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, Variant(Color()), E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__buttonTextColor[SEARCH_BAR_BUTTON_STATUS_NORMAL]);
}
result
_SearchBar::SetPropertyButtonPressedTextColor(const Variant& textColor)
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pCancelButton->SetPropertyPressedTextColor(textColor);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set button text color.");
+ "[%s] A system error has occurred. Failed to set button text color.", GetErrorMessage(E_SYSTEM));
__buttonTextColor[SEARCH_BAR_BUTTON_STATUS_PRESSED] = textColor.ToColor();
Variant
_SearchBar::GetPropertyButtonPressedTextColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pCancelButton, Variant(Color()), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The cancel button instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pCancelButton != null, Variant(Color()), E_SYSTEM,
+ "[%s] A system error has occurred. The _Button instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__buttonTextColor[SEARCH_BAR_BUTTON_STATUS_PRESSED]);
}
result
_SearchBar::SetPropertySearchFieldDisabledColor(const Variant& color)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pEdit->SetPropertyDisabledColor(color);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set the edit disabled color.");
+ "[%s] A system error has occurred. Failed to set the edit disabled color.", GetErrorMessage(E_SYSTEM));
__color[SEARCH_FIELD_STATUS_DISABLED] = color.ToColor();
Variant
_SearchBar::GetPropertySearchFieldDisabledColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, Variant(Color()), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, Variant(Color()), E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__color[SEARCH_FIELD_STATUS_DISABLED]);
}
result
_SearchBar::SetPropertySearchFieldHighlightedColor(const Variant& color)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pEdit->SetPropertyHighlightedColor(color);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set the edit highlighted color.");
+ "[%s] A system error has occurred. Failed to set the edit highlighted color.", GetErrorMessage(E_SYSTEM));
__color[SEARCH_FIELD_STATUS_HIGHLIGHTED] = color.ToColor();
Variant
_SearchBar::GetPropertySearchFieldHighlightedColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, Variant(Color()), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, Variant(Color()), E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__color[SEARCH_FIELD_STATUS_HIGHLIGHTED]);
}
result
_SearchBar::SetPropertySearchFieldNormalColor(const Variant& color)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pEdit->SetPropertyNormalColor(color);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set edit normal color.");
+ "[%s] A system error has occurred. Failed to set edit normal color.", GetErrorMessage(E_SYSTEM));
__color[SEARCH_FIELD_STATUS_NORMAL] = color.ToColor();
Variant
_SearchBar::GetPropertySearchFieldNormalColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, Variant(Color()), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, Variant(Color()), E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__color[SEARCH_FIELD_STATUS_NORMAL]);
}
result
_SearchBar::SetPropertySearchFieldDisabledTextColor(const Variant& textColor)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pEdit->SetPropertyDisabledTextColor(textColor);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set edit disabled text color.");
+ "[%s] A system error has occurred. Failed to set edit disabled text color.", GetErrorMessage(E_SYSTEM));
__textColor[SEARCH_FIELD_STATUS_DISABLED] = textColor.ToColor();
Variant
_SearchBar::GetPropertySearchFieldDisabledTextColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, Variant(Color()), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, Variant(Color()), E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__textColor[SEARCH_FIELD_STATUS_DISABLED]);
}
result
_SearchBar::SetPropertySearchFieldHighlightedTextColor(const Variant& textColor)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pEdit->SetPropertyHighlightedTextColor(textColor);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set edit highlighted text color.");
+ "[%s] A system error has occurred. Failed to set edit highlighted text color.", GetErrorMessage(E_SYSTEM));
__textColor[SEARCH_FIELD_STATUS_HIGHLIGHTED] = textColor.ToColor();
Variant
_SearchBar::GetPropertySearchFieldHighlightedTextColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, Variant(Color()), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, Variant(Color()), E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__textColor[SEARCH_FIELD_STATUS_HIGHLIGHTED]);
}
result
_SearchBar::SetPropertySearchFieldNormalTextColor(const Variant& textColor)
{
- SysTryReturn(NID_UI_CTRL, __pEdit, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
result r = E_SUCCESS;
r = __pEdit->SetPropertyNormalTextColor(textColor);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. Failed to set edit normal text color.");
+ "[%s] A system error has occurred. Failed to set edit normal text color.", GetErrorMessage(E_SYSTEM));
__textColor[SEARCH_FIELD_STATUS_NORMAL] = textColor.ToColor();
Variant
_SearchBar::GetPropertySearchFieldNormalTextColor(void) const
{
- SysTryReturn(NID_UI_CTRL, __pEdit, Variant(Color()), E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturn(NID_UI_CTRL, __pEdit != null, Variant(Color()), E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
return Variant(__textColor[SEARCH_FIELD_STATUS_NORMAL]);
}
{
FloatDimension contentAreaSize = size.ToFloatDimension();
SysTryReturn(NID_UI_CTRL, contentAreaSize.width >= 0 && contentAreaSize.height >= 0, E_INVALID_ARG, E_INVALID_ARG,
- "[E_INVALID_ARG] Invalid argument(s) is used. contentAreaSize.width = %f, contenAreaSize.height = %f",
- contentAreaSize.width, contentAreaSize.height);
+ "[%s] Invalid argument(s) is used. contentAreaSize.width = %f, contenAreaSize.height = %f",
+ GetErrorMessage(E_INVALID_ARG), contentAreaSize.width, contentAreaSize.height);
result r = E_SUCCESS;
void
_SearchBar::SetEditTextFilter(IEditTextFilter* pFilter)
{
- SysTryReturnVoidResult(NID_UI_CTRL, __pEdit, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturnVoidResult(NID_UI_CTRL, __pEdit != null, E_SYSTEM,
+ "[%s] A system error has occurred. The _Edit instance is null.", GetErrorMessage(E_SYSTEM));
__pEdit->SetEditTextFilter(pFilter);
void
_SearchBar::SendOpaqueCommand(const String& command)
{
- SysTryReturnVoidResult(NID_UI_CTRL, __pEdit, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred. The edit instance is null.");
+ SysTryReturnVoidResult(NID_UI_CTRL, __pEdit != null, E_SYSTEM,
+ "[E_SYSTEM] A system error has occurred. The _Edit instance is null.");
__pEdit->SendOpaqueCommand(command);
* @brief This is the implementation file for _SearchBarImpl class.
*/
-#include <FApp_AppInfo.h>
#include <FBaseSysLog.h>
-#include <FBase_LocalizedNumParser.h>
#include <FLclLocale.h>
#include <FUiAccessibilityContainer.h>
#include <FUiAccessibilityElement.h>
+#include <FBase_LocalizedNumParser.h>
+#include <FApp_AppInfo.h>
#include "FUi_ResourceSizeInfo.h"
#include "FUi_ResourceManager.h"
#include "FUi_UiBuilder.h"
+#include "FUi_CoordinateSystemUtils.h"
#include "FUiCtrl_PublicActionEvent.h"
#include "FUiCtrl_PublicTextBlockEvent.h"
#include "FUiCtrl_PublicTextEvent.h"
#include "FUiCtrl_SearchBarImpl.h"
-#include "FUi_CoordinateSystemUtils.h"
#include "FUiCtrl_EditFieldImpl.h"
#include "FUiCtrl_ButtonImpl.h"
r = GET_SIZE_INFO(SearchBar).CheckInitialSizeValid(Dimension(bounds.width, bounds.height), _CONTROL_ORIENTATION_PORTRAIT);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, E_INVALID_ARG,
- "[E_INVALID_ARG] Invalid argument(s) is used. The given size is not valid.");
+ "[%s] Invalid argument(s) is used. The given size is not valid.", GetErrorMessage(E_INVALID_ARG));
_SearchBar* pCore = _SearchBar::CreateSearchBarN();
r = GetLastResult();
r = GET_SIZE_INFO(SearchBar).CheckInitialSizeValidF(FloatDimension(bounds.width, bounds.height), _CONTROL_ORIENTATION_PORTRAIT);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, null, E_INVALID_ARG,
- "[E_INVALID_ARG] Invalid argument(s) is used. The given size is not valid.");
+ "[%s] Invalid argument(s) is used. The given size is not valid.", GetErrorMessage(E_INVALID_ARG));
_SearchBar* pCore = _SearchBar::CreateSearchBarN();
r = GetLastResult();
}
__pEditField = new (std::nothrow) EditField();
- SysTryReturnResult(NID_UI_CTRL, __pEditField, E_OUT_OF_MEMORY, "Memory allocation failed.");
+ SysTryReturnResult(NID_UI_CTRL, __pEditField != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
r = __pEditField->Construct(GetBoundsF(), EDIT_FIELD_STYLE_NORMAL, INPUT_STYLE_OVERLAY, EDIT_FIELD_TITLE_STYLE_NONE, true);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Propagating.");
__pEditFieldImpl = _EditFieldImpl::GetInstance(*__pEditField);
SysTryReturnResult(NID_UI_CTRL, __pEditFieldImpl != null, E_SYSTEM,
- "A system error has occured. Failed to EditFieldImpl instance");
+ "A system error has occurred. Failed to get _EditFieldImpl instance.");
String cancelButtonText;
GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_CANCEL_ABB, cancelButtonText);
__pButton = new (std::nothrow) Button();
- SysTryReturnResult(NID_UI_CTRL, __pButton, E_OUT_OF_MEMORY, "Memory allocation failed.");
+ SysTryReturnResult(NID_UI_CTRL, __pButton != null, E_OUT_OF_MEMORY, "Memory allocation failed.");
r = __pButton->Construct(GetBoundsF(), cancelButtonText);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Propagating.");
__pButtonImpl = _ButtonImpl::GetInstance(*__pButton);
SysTryReturnResult(NID_UI_CTRL, __pButtonImpl != null, E_SYSTEM,
- "A system error has occured. Failed to ButtonImpl instance");
+ "A system error has occurred. Failed to get _ButtonImpl instance.");
r = __pSearchBar->Initialize(enableSearchBarButton, coreKeypadAction);
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, r, "Propagating.");
__pPublicActionEvent = _PublicActionEvent::CreateInstanceN(GetPublic());
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicActionEvent, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_UI_CTRL, __pPublicActionEvent != null, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = __pSearchBar->AddActionEventListener(*this);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicKeypadEvent = _PublicKeypadEvent::CreateInstanceN(GetPublic());
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicKeypadEvent, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_UI_CTRL, __pPublicKeypadEvent != null, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = __pSearchBar->AddKeypadEventListener(*this);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicTextBlockEvent = _PublicTextBlockEvent::CreateInstanceN(GetPublic());
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicTextBlockEvent, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_UI_CTRL, __pPublicTextBlockEvent != null, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = __pSearchBar->AddTextBlockEventListener(*this);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicTextEvent = _PublicTextEvent::CreateInstanceN(GetPublic());
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicTextEvent, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_UI_CTRL, __pPublicTextEvent != null, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = __pSearchBar->AddTextEventListener(*this);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicSearchBarEvent = _PublicSearchBarEvent::CreateInstanceN(GetPublic());
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicSearchBarEvent, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_UI_CTRL, __pPublicSearchBarEvent != null, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = __pSearchBar->AddSearchBarEventListener(*this);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicLanguageEvent = _PublicLanguageEvent::CreateInstanceN(GetPublic());
r = GetLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicLanguageEvent, r, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturn(NID_UI_CTRL, __pPublicLanguageEvent != null, r, r, "[%s] Propagating.", GetErrorMessage(r));
r = __pSearchBar->AddLanguageEventListener(*this);
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));
const _Control& content = _ControlImpl::GetInstance(*pContent)->GetCore();
bool isContentAttachable = __pSearchBar->IsContentAttachable(&content);
SysTryReturn(NID_UI_CTRL, isContentAttachable, E_INVALID_ARG, E_INVALID_ARG,
- "[E_INVALID_ARG] Invalid argument(s) is used. The content cannot be set.");
+ "[%s] Invalid argument(s) is used. The content cannot be set.", GetErrorMessage(E_INVALID_ARG));
}
if (pContent != null && __pContentControl == null)
r = __pSearchBar->Clear();
SysTryReturnResult(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM,
- "A system error has occured. Failed to clear the text.");
+ "A system error has occurred. Failed to clear the text.");
return r;
}
ClearLastResult();
result r = __pSearchBar->RemoveTextBlock();
SysTryReturn(NID_UI_CTRL, r == E_SUCCESS, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occured. Unable to remove the text block.");
+ "[%s] A system error has occurred. Unable to remove the text block.", GetErrorMessage(E_SYSTEM));
return r;
}
{
ClearLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicActionEvent, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred.");
+ SysTryReturn(NID_UI_CTRL, __pPublicActionEvent != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred.", GetErrorMessage(E_SYSTEM));
result r = __pPublicActionEvent->AddListener(listener);
SysTryReturnResult(NID_UI_CTRL, r != E_OBJ_ALREADY_EXIST, E_SYSTEM,
{
ClearLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicActionEvent, E_SYSTEM, E_SYSTEM,
+ SysTryReturn(NID_UI_CTRL, __pPublicActionEvent != null, E_SYSTEM, E_SYSTEM,
"[E_SYSTEM] A system error has occurred.");
result r = __pPublicActionEvent->RemoveListener(listener);
{
ClearLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicKeypadEvent, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred.");
+ SysTryReturn(NID_UI_CTRL, __pPublicKeypadEvent != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred.", GetErrorMessage(E_SYSTEM));
result r = __pPublicKeypadEvent->AddListener(listener);
SysTryReturnResult(NID_UI_CTRL, r != E_OBJ_ALREADY_EXIST, E_SYSTEM,
{
ClearLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicKeypadEvent, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred.");
+ SysTryReturn(NID_UI_CTRL, __pPublicKeypadEvent != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred.", GetErrorMessage(E_SYSTEM));
result r = __pPublicKeypadEvent->RemoveListener(listener);
SysTryReturnResult(NID_UI_CTRL, r != E_OBJ_NOT_FOUND, E_SYSTEM,
{
ClearLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicTextBlockEvent, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred.");
+ SysTryReturn(NID_UI_CTRL, __pPublicTextBlockEvent != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred.", GetErrorMessage(E_SYSTEM));
result r = __pPublicTextBlockEvent->AddListener(listener);
SysTryReturnResult(NID_UI_CTRL, r != E_OBJ_ALREADY_EXIST, E_SYSTEM,
{
ClearLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicTextBlockEvent, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred.");
+ SysTryReturn(NID_UI_CTRL, __pPublicTextBlockEvent != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred.", GetErrorMessage(E_SYSTEM));
result r = __pPublicTextBlockEvent->RemoveListener(listener);
SysTryReturnResult(NID_UI_CTRL, r != E_OBJ_NOT_FOUND, E_SYSTEM,
{
ClearLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicTextEvent, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred.");
+ SysTryReturn(NID_UI_CTRL, __pPublicTextEvent != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred.", GetErrorMessage(E_SYSTEM));
result r = __pPublicTextEvent->AddListener(listener);
SysTryReturnResult(NID_UI_CTRL, r != E_OBJ_ALREADY_EXIST, E_SYSTEM,
{
ClearLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicTextEvent, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred.");
+ SysTryReturn(NID_UI_CTRL, __pPublicTextEvent != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred.", GetErrorMessage(E_SYSTEM));
result r = __pPublicTextEvent->RemoveListener(listener);
SysTryReturnResult(NID_UI_CTRL, r != E_OBJ_NOT_FOUND, E_SYSTEM,
{
ClearLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicSearchBarEvent, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred.");
+ SysTryReturn(NID_UI_CTRL, __pPublicSearchBarEvent != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred.", GetErrorMessage(E_SYSTEM));
result r = __pPublicSearchBarEvent->AddListener(listener);
SysTryReturnResult(NID_UI_CTRL, r != E_OBJ_ALREADY_EXIST, E_SYSTEM,
{
ClearLastResult();
- SysTryReturn(NID_UI_CTRL, __pPublicSearchBarEvent, E_SYSTEM, E_SYSTEM,
- "[E_SYSTEM] A system error has occurred.");
+ SysTryReturn(NID_UI_CTRL, __pPublicSearchBarEvent != null, E_SYSTEM, E_SYSTEM,
+ "[%s] A system error has occurred.", GetErrorMessage(E_SYSTEM));
result r = __pPublicSearchBarEvent->RemoveListener(listener);
SysTryReturnResult(NID_UI_CTRL, r != E_OBJ_NOT_FOUND, E_SYSTEM,
{
IEventArg* pEventArg = _PublicActionEvent::CreateActionEventArgN(actionId);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicActionEvent->Fire(*pEventArg);
}
IEventArg* pEventArg = _PublicKeypadEvent::CreateKeypadEventArgN(
GetPublic(), KEYPAD_ACTION_SEARCH, KEYPAD_EVENT_STATUS_CREATED);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicKeypadEvent->Fire(*pEventArg);
}
IEventArg* pEventArg = _PublicKeypadEvent::CreateKeypadEventArgN(
GetPublic(), KEYPAD_ACTION_SEARCH, KEYPAD_EVENT_STATUS_OPEN);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicKeypadEvent->Fire(*pEventArg);
}
IEventArg* pEventArg = _PublicKeypadEvent::CreateKeypadEventArgN(
GetPublic(), KEYPAD_ACTION_SEARCH, KEYPAD_EVENT_STATUS_CLOSE);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicKeypadEvent->Fire(*pEventArg);
}
IEventArg* pEventArg = _PublicKeypadEvent::CreateKeypadEventArgN(
GetPublic(), KEYPAD_ACTION_SEARCH, KEYPAD_EVENT_STATUS_BOUNDS_CHANGED);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicKeypadEvent->Fire(*pEventArg);
}
IEventArg* pEventArg = _PublicKeypadEvent::CreateKeypadEventArgN(
GetPublic(), publicKeypadAction, KEYPAD_EVENT_STATUS_ENTERACTION);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicKeypadEvent->Fire(*pEventArg);
}
{
IEventArg* pEventArg = _PublicTextBlockEvent::CreateTextBlockEventArgN(start, end);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicTextBlockEvent->Fire(*pEventArg);
}
{
IEventArg* pEventArg = _PublicTextEvent::CreateTextEventArgN(TEXT_EVENT_CHANGED);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicTextEvent->Fire(*pEventArg);
}
{
IEventArg* pEventArg = _PublicTextEvent::CreateTextEventArgN(TEXT_EVENT_CANCELED);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicTextEvent->Fire(*pEventArg);
}
{
IEventArg* pEventArg = _PublicSearchBarEvent::CreateSearchBarEventArgN(SEARCH_BAR_EVENT_MODE_CHANGE);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicSearchBarEvent->Fire(*pEventArg);
}
{
IEventArg* pKLanguageEventArg = _PublicLanguageEvent::CreateLanguageEventArgN(GetPublic(), oldLanguage, newLanguage);
result r = GetLastResult();
- SysTryReturnVoidResult(NID_UI_CTRL, pKLanguageEventArg, r, "[%s] Propagating.", GetErrorMessage(r));
+ SysTryReturnVoidResult(NID_UI_CTRL, pKLanguageEventArg != null, r, "[%s] Propagating.", GetErrorMessage(r));
__pPublicLanguageEvent->Fire(*pKLanguageEventArg);
}
ClearLastResult();
SysTryReturnVoidResult(NID_UI,
__pPublicFocusEventListeners->Add(const_cast <IFocusEventListener*>(&listener)) == E_SUCCESS, E_SYSTEM,
- "[E_SYSTEM] A system error has occured. Failed to add listener.");
+ "[E_SYSTEM] A system error has occurred. Failed to add listener.");
}
void
ClearLastResult();
SysTryReturnVoidResult(NID_UI,
__pPublicFocusEventListeners->Remove(&listener) == E_SUCCESS, E_SYSTEM,
- "[E_SYSTEM] A system error has occured. Failed to remove listener.");
+ "[E_SYSTEM] A system error has occurred. Failed to remove listener.");
}
void
return null;
}
- pSearchBar = new (std::nothrow) SearchBar;
+ pSearchBar = new (std::nothrow) SearchBar();
if (pSearchBar == null)
{
return null;