CtxPopup();
virtual ~CtxPopup();
- CtxPopupItem *appendItem(const std::string &text, Evas_Object *icon = nullptr,
+ CtxPopupItem *appendItem(const TText &text, Evas_Object *icon = nullptr,
CtxPopupItemPressedCb cb = nullptr, void *userData = nullptr);
void setDirectionPriority(Elm_Ctxpopup_Direction first, Elm_Ctxpopup_Direction second,
Elm_Ctxpopup_Direction third, Elm_Ctxpopup_Direction fourth);
public:
SelectCtxPopup();
- CtxPopupItem *appendTopItem(const std::string &text, CtxPopupItemPressedCb cb = nullptr, void *userData = nullptr);
- CtxPopupItem *appendBottomItem(const std::string &text, CtxPopupItemPressedCb cb = nullptr, void *userData = nullptr);
+ CtxPopupItem *appendTopItem(const TText &text, CtxPopupItemPressedCb cb = nullptr, void *userData = nullptr);
+ CtxPopupItem *appendBottomItem(const TText &text, CtxPopupItemPressedCb cb = nullptr, void *userData = nullptr);
void go();
private:
setStyle("select_mode");
}
- inline CtxPopupItem *SelectCtxPopup::appendTopItem(const std::string &text, CtxPopupItemPressedCb cb, void *userData)
+ inline CtxPopupItem *SelectCtxPopup::appendTopItem(const TText &text, CtxPopupItemPressedCb cb, void *userData)
{
m_pTopItem = appendItem(text, nullptr, cb, userData);
return m_pTopItem;
}
- inline CtxPopupItem *SelectCtxPopup::appendBottomItem(const std::string &text, CtxPopupItemPressedCb cb, void *userData)
+ inline CtxPopupItem *SelectCtxPopup::appendBottomItem(const TText &text, CtxPopupItemPressedCb cb, void *userData)
{
m_pBottomItem = appendItem(text, nullptr, cb, userData);
return m_pBottomItem;
MSG_LOG("Destructor");
}
-CtxPopupItem *CtxPopup::appendItem(const std::string &text, Evas_Object *icon, CtxPopupItemPressedCb cb, void *userData)
+CtxPopupItem *CtxPopup::appendItem(const TText &text, Evas_Object *icon, CtxPopupItemPressedCb cb, void *userData)
{
auto *newItem = new CtxPopupItem(*this, cb, userData);
- Elm_Object_Item *elmItem = elm_ctxpopup_item_append(getEo(), text.c_str(), icon, on_item_pressed_cb, newItem);
+ Elm_Object_Item *elmItem = elm_ctxpopup_item_append(getEo(), "", icon, on_item_pressed_cb, newItem);
+ ViewItem::setText(elmItem, text);
if (elmItem) {
newItem->setElmObjItem(elmItem);
unsigned checkableCount = m_pList->getCheckableItemsCount();
if (checkedCount < checkableCount)
- ctx->appendTopItem(msg("WDS_MSG_OPT_SELECT_ALL_ABB"), makeCbLast(&ConvFrame::onSelectAllButtonClicked), this);
+ ctx->appendTopItem(msgt("WDS_MSG_OPT_SELECT_ALL_ABB"), makeCbLast(&ConvFrame::onSelectAllButtonClicked), this);
if (checkedCount > 0)
- ctx->appendBottomItem(msg("WDS_MSG_OPT_DESELECT_ALL_ABB"), makeCbLast(&ConvFrame::onDeselectAllButtonClicked), this);
+ ctx->appendBottomItem(msgt("WDS_MSG_OPT_DESELECT_ALL_ABB"), makeCbLast(&ConvFrame::onDeselectAllButtonClicked), this);
if (m_pSelectButton)
ctx->align(m_pSelectButton->getInnerButton());
int checkableCount = m_pThreadList->getCheckableItemsCount();
if (checkedCount < checkableCount)
- ctx->appendTopItem(msg("WDS_MSG_OPT_SELECT_ALL_ABB"), makeCbLast(&MsgThreadFrame::onSelectAllButtonClicked), this);
+ ctx->appendTopItem(msgt("WDS_MSG_OPT_SELECT_ALL_ABB"), makeCbLast(&MsgThreadFrame::onSelectAllButtonClicked), this);
if (checkedCount > 0)
- ctx->appendBottomItem(msg("WDS_MSG_OPT_DESELECT_ALL_ABB"), makeCbLast(&MsgThreadFrame::onDeselectAllButtonClicked), this);
+ ctx->appendBottomItem(msgt("WDS_MSG_OPT_DESELECT_ALL_ABB"), makeCbLast(&MsgThreadFrame::onDeselectAllButtonClicked), this);
if (m_pSelectButton)
ctx->align(m_pSelectButton->getInnerButton());
int checkableCount = m_pList->getCheckableItemsCount();
if (checkedCount < checkableCount)
- ctx->appendTopItem(msg("WDS_MSG_OPT_SELECT_ALL_ABB"), makeCbLast(&SettingsBlockListFrame::onSelectAllButtonClicked), this);
+ ctx->appendTopItem(msgt("WDS_MSG_OPT_SELECT_ALL_ABB"), makeCbLast(&SettingsBlockListFrame::onSelectAllButtonClicked), this);
if (checkedCount > 0)
- ctx->appendBottomItem(msg("WDS_MSG_OPT_DESELECT_ALL_ABB"), makeCbLast(&SettingsBlockListFrame::onDeselectAllButtonClicked), this);
+ ctx->appendBottomItem(msgt("WDS_MSG_OPT_DESELECT_ALL_ABB"), makeCbLast(&SettingsBlockListFrame::onDeselectAllButtonClicked), this);
if (m_pSelectButton)
ctx->align(m_pSelectButton->getInnerButton());