void createMsgInputPanel(Evas_Object *parent);
void updateMsgInputPanel();
void updateNavibar();
+ void updateSelectMsgTitle();
void createMainLayout(Evas_Object *parent);
void createConvList(Evas_Object *parent);
void destroyConvList();
{
if(m_pConvList->getMode() == ConvList::SelectMode)
{
- naviBar.setTitle(msgt("IDS_MSG_OPT_DELETE"));
+ updateSelectMsgTitle();
naviBar.showButton(NaviCancelButtonId, true);
naviBar.showButton(NaviOkButtonId, true);
naviBar.disabledButton(NaviOkButtonId, true);
}
}
+void Conversation::updateSelectMsgTitle()
+{
+ if(m_pConvList && m_pConvList->getMode() == ConvList::SelectMode)
+ {
+ int checked = m_pConvList->getMessageCheckedCount();
+ if(checked > 0)
+ getNaviBar().setTitle(msgArgs("IDS_MSG_HEADER_PD_SELECTED_ABB3", checked));
+ else
+ getNaviBar().setTitle(msgt("IDS_MSGF_HEADER_SELECT_MESSAGES"));
+ }
+}
+
void Conversation::onButtonClicked(MessageInputPanel &obj, MessageInputPanel::ButtonId id)
{
MSG_LOG("MessageInputPanel: button clicked: id = ", id);
void Conversation::onConvListItemChecked()
{
getNaviBar().disabledButton(NaviOkButtonId, m_pConvList->getMessageCheckedCount() == 0);
+ updateSelectMsgTitle();
}
void Conversation::onFileSelected(AttachPanel &panel, const AttachPanel::FileList &files)
{
MSG_LOG("");
updateMsgInputPanel();
+ updateSelectMsgTitle();
}