}
result
-_ResourceManager::GetString(const String& stringId, String& string)
+_ResourceManager::GetString(const char* stringId, String& string)
{
return __pStringLoader->GetString(stringId, string);
}
String copyText;
String cutText;
- GET_STRING_CONFIG(IDS_COM_BODY_COPY, copyText);
- GET_STRING_CONFIG(IDS_COM_BODY_CUT, cutText);
+ GET_STRING_CONFIG(IDS_TPLATFORM_OPT_COPY, copyText);
+ GET_STRING_CONFIG(IDS_TPLATFORM_OPT_CUT, cutText);
__pCopyPastePopup->AddItem(copyText, COPY_PASTE_COPY_ID, null, null, null);
if (!__pEdit->IsViewModeEnabled())
String selectText;
String selectAllText;
- GET_STRING_CONFIG(IDS_COM_SK_SELECT, selectText);
- GET_STRING_CONFIG(IDS_COM_BODY_SELECT_ALL, selectAllText);
+ GET_STRING_CONFIG(IDS_TPLATFORM_OPT_SELECT, selectText);
+ GET_STRING_CONFIG(IDS_TPLATFORM_OPT_SELECT_ALL, selectAllText);
__pCopyPastePopup->AddItem(selectText, COPY_PASTE_SELECT_ID, null, null, null);
__pCopyPastePopup->AddItem(selectAllText, COPY_PASTE_SELECT_ALL_ID, null, null, null);
String pasteText;
String clipboardText;
- GET_STRING_CONFIG(IDS_COM_BODY_PASTE, pasteText);
- GET_STRING_CONFIG(IDS_COM_BODY_CLIPBOARD, clipboardText);
+ GET_STRING_CONFIG(IDS_TPLATFORM_OPT_PASTE, pasteText);
+ GET_STRING_CONFIG(IDS_TPLATFORM_OPT_CLIPBOARD, clipboardText);
__pCopyPastePopup->AddItem(pasteText, COPY_PASTE_PASTE_ID, null, null, null);
if (!isPasswordStyle && __pEdit->IsKeypadEnabled())
r = __galleryRenderer.EnableEmptyView();
SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
- GET_STRING_CONFIG(IDS_COM_BODY_NO_IMAGES, __emptyText);
+ GET_STRING_CONFIG(IDS_TPLATFORM_BODY_NO_IMAGES, __emptyText);
r = __galleryRenderer.SetEmptyText(__emptyText);
SysTryCatch(NID_UI_CTRL, r == E_SUCCESS, , r, "[%s] Propagating.", GetErrorMessage(r));
{
if (__userSetEmptyText == false)
{
- GET_STRING_CONFIG(IDS_COM_BODY_NO_IMAGES, __emptyText);
+ GET_STRING_CONFIG(IDS_TPLATFORM_BODY_NO_IMAGES, __emptyText);
result r = __galleryRenderer.SetEmptyText(__emptyText);
SysTryReturnVoidResult(NID_UI_CTRL, r == E_SUCCESS, r, "[%s] Propagating.", GetErrorMessage(r));
case MSGBOX_STYLE_OK:
__buttonNum = 1;
- GET_STRING_CONFIG(IDS_COM_SK_OK, __buttonText[0]);
+ GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_OK, __buttonText[0]);
break;
case MSGBOX_STYLE_CANCEL:
case MSGBOX_STYLE_OKCANCEL:
__buttonNum = 2;
- GET_STRING_CONFIG(IDS_COM_SK_OK, __buttonText[0]);
+ GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_OK, __buttonText[0]);
GET_STRING_CONFIG(IDS_COM_SK_CANCEL, __buttonText[1]);
break;
case MSGBOX_STYLE_YESNO:
__buttonNum = 2;
- GET_STRING_CONFIG(IDS_COM_SK_YES, __buttonText[0]);
- GET_STRING_CONFIG(IDS_COM_SK_NO, __buttonText[1]);
+ GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_YES, __buttonText[0]);
+ GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_NO, __buttonText[1]);
break;
case MSGBOX_STYLE_YESNOCANCEL:
__buttonNum = 3;
- GET_STRING_CONFIG(IDS_COM_SK_YES, __buttonText[0]);
- GET_STRING_CONFIG(IDS_COM_SK_NO, __buttonText[1]);
+ GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_YES, __buttonText[0]);
+ GET_STRING_CONFIG(IDS_TPLATFORM_BUTTON_NO, __buttonText[1]);
GET_STRING_CONFIG(IDS_COM_SK_CANCEL, __buttonText[2]);
break;
public:
static _ResourceManager* GetInstance(void);
result GetBitmapN(int bitmapId, Tizen::Graphics::BitmapPixelFormat pixelFormat, _ControlOrientation orientation, Tizen::Graphics::Bitmap*& pBitmap);
- result GetString(const Tizen::Base::String& stringId, Tizen::Base::String& string);
+ result GetString(const char* stringId, Tizen::Base::String& string);
result GetColor(int colorId, Tizen::Graphics::Color& color);
result GetShape(int shapeId, _ControlOrientation orientation, int& value);
result GetFixedValue(int shapeId, _ControlOrientation orientation, int& value);
StringLoader(void);
virtual ~StringLoader(void);
- result GetString(const Tizen::Base::String& stringId, Tizen::Base::String& string);
+ result GetString(const char* stringId, Tizen::Base::String& string);
private:
//coding idiom.
namespace
{
const char* const SLP_SYSTEM_DOMAIN ="sys_string";
+const char* const OSP_DOMAIN ="osp";
}
namespace Tizen { namespace Ui { namespace _Resource
{
}
result
-StringLoader::GetString(const String& stringId, String& string)
+StringLoader::GetString(const char* stringId, String& string)
{
- char* pString = null;
- char* pStringId = _StringConverter::CopyToCharArrayN(stringId);
- pString = dgettext(::SLP_SYSTEM_DOMAIN, pStringId);
- string = pString;
- delete[] pStringId;
+ string = dgettext(OSP_DOMAIN, stringId);
return E_SUCCESS;
}
}}}//Tizen::Ui::_Resource