// More option:
void onNewMessageClicked(MoreOption &obj);
void onDeleteClicked(MoreOption &obj);
- void onSettingsClicked(MoreOption &obj);
// IThreadListListener:
void onItemSelected(ThreadId id) override;
#include "Resource.h"
#include "RecipFrame.h"
#include "ConvFrame.h"
-#include "SettingsFrame.h"
#include "ThreadListItem.h"
#include "DefaultLayout.h"
#include "BottomButton.h"
m_pMoreOption->setDirection(EEXT_MORE_OPTION_DIRECTION_RIGHT);
m_pMoreOption->appendItem(msgt("WDS_MSG_OPT_NEW_MESSAGE_ABB"), NEW_MSG_MORE_ICON, makeCbLast(&MsgThreadFrame::onNewMessageClicked), this);
m_pMoreOption->appendItem(msgt("WDS_MSG_OPT_DELETE_ABB"), DELETEG_MORE_ICON, makeCbLast(&MsgThreadFrame::onDeleteClicked), this);
- m_pMoreOption->appendItem("Settings", nullptr, makeCbLast(&MsgThreadFrame::onSettingsClicked), this); // TODO: only for test
m_pLayout->setMoreOption(*m_pMoreOption);
}
}
setMode(DeleteMode);
}
-void MsgThreadFrame::onSettingsClicked(MoreOption &obj)
-{
- MSG_LOG("");
- getParent().push(*new SettingsFrame(getParent()));
-}
-
void MsgThreadFrame::onItemSelected(ThreadId id)
{
MSG_LOG("");