void onMsgSendErrorButtonClicked(Popup &popup, int buttonId);
void onNoRecipCancelButtonClicked(Popup &popup, int buttonId);
void onNoRecipDiscardButtonClicked(Popup &popup, int buttonId);
-
- // ContextPopup callbacks:
- void onDeleteItemPressed(ContextPopupItem &item);
- void onAddRecipientsItemPressed(ContextPopupItem &item);
-
+ void onDeleteItemPressed(PopupListItem &item);
+ void onAddRecipientsItemPressed(PopupListItem &item);
void onMakeVoiceItemPressed(PopupListItem &item);
void onCreateContactItemPressed(PopupListItem &item);
void onUpdateContactItemPressed(PopupListItem &item);
void checkAndSetMsgType();
void navigateToSlideShow(MsgId id);
- void showMainCtxPopup();
+ void showMainPopup();
void showNoRecipPopup();
void showAddRecipPopup();
PopupList &createPopupList(const std::string &title);
popup.show();
}
-void Conversation::showMainCtxPopup()
+void Conversation::showMainPopup()
{
- auto &ctxPopup = getApp().getPopupManager().getCtxPopup();
-
- ctxPopup.appendItem(msg("IDS_MSG_OPT_DELETE"), nullptr, CTXPOPUP_ITEM_PRESSED_CB(Conversation, onDeleteItemPressed), this);
- ctxPopup.appendItem(msg("IDS_MSG_OPT_ADD_RECIPIENTS_ABB"), nullptr, CTXPOPUP_ITEM_PRESSED_CB(Conversation, onAddRecipientsItemPressed), this);
- ctxPopup.align(getApp().getWindow());
- ctxPopup.show();
+ PopupList &popup = getApp().getPopupManager().getPopupList();
+ popup.appendItem(msg("IDS_MSG_OPT_DELETE"), POPUPLIST_ITEM_PRESSED_CB(Conversation, onDeleteItemPressed), this);
+ popup.appendItem(msg("IDS_MSG_OPT_ADD_RECIPIENTS_ABB"), POPUPLIST_ITEM_PRESSED_CB(Conversation, onAddRecipientsItemPressed), this);
+ popup.show();
}
void Conversation::onKeyDown(ConvRecipientsPanel &panel, Evas_Event_Key_Down &ev)
{
MSG_LOG("");
if(m_Mode == ConversationMode && m_pConvList->getMode() == ConvList::NormalMode)
- showMainCtxPopup();
+ showMainPopup();
}
void Conversation::onNaviOkButtonClicked()
popup.destroy();
}
-void Conversation::onDeleteItemPressed(ContextPopupItem &item)
+void Conversation::onDeleteItemPressed(PopupListItem &item)
{
MSG_LOG("");
item.getParent().destroy();
updateNavibar();
}
-void Conversation::onAddRecipientsItemPressed(ContextPopupItem &item)
+void Conversation::onAddRecipientsItemPressed(PopupListItem &item)
{
MSG_LOG("");
item.getParent().destroy();
void composeNewMessage();
void navigateToSettings();
void navigateToConversation(ThreadId threadId, MsgId msgId = MsgId(), const std::string &searchWord = std::string());
- void showMainCtxPopup();
+ void showMainPopup();
void setMode(Mode mode);
void setDeleteMode(bool value);
void setNormalMode();
setContent(*m_pLayout);
}
-void MsgThread::showMainCtxPopup()
+void MsgThread::showMainPopup()
{
PopupList &popup = getApp().getPopupManager().getPopupList();
if (!m_pThreadList->isEmpty())
{
MSG_LOG("");
if(m_Mode == NormalMode)
- showMainCtxPopup();
+ showMainPopup();
}
void MsgThread::onSettingsItemPressed(PopupListItem &item)