namespace
{
- const char * alignAsString(TextAlign align)
+ const char *alignAsString(TextAlign align)
{
switch(align)
{
return "left";
case TextAlign::Right:
return "right";
+ case TextAlign::None:
+ default:
+ break;
}
assert(false);
const NaviFrameView &getOwner() const;
protected:
- virtual void onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId) {};
+ virtual void onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId) {};
//ViewItem
virtual void onAttached(ViewItem &item);
private:
// NaviFrameItem:
virtual void onAttached(ViewItem &item);
- virtual void onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId);
+ virtual void onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId);
// IMsgStorageListener:
virtual void onMsgStorageChange();
MSG_LOG("");
}
-void Conversation::onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId)
+void Conversation::onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId)
{
//TODO: Handle other buttons
switch(buttonId)
private:
// NaviFrameItem:
virtual void onAttached(ViewItem &item);
- virtual void onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId);
+ virtual void onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId);
// IHwButtonListener:
virtual void onHwBackButtonClicked();
}
}
-void MsgThread::onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId)
+void MsgThread::onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId)
{
MSG_LOG("NaviButton id:", buttonId);
if(buttonId == NaviOkButtonId)
void onClearButtonClicked(Evas_Object *obj, void *eventInfo);
private:
- Evas_Object *m_pLayout;
Evas_Object *m_pEntry;
Evas_Object *m_pClearButton;
IMsgThreadSearchPanelListener *m_pListener;
using namespace Msg;
MsgThreadSearchPanel::MsgThreadSearchPanel(Evas_Object *parent)
- : m_pLayout(nullptr)
- , m_pEntry(nullptr)
+ : m_pEntry(nullptr)
, m_pClearButton(nullptr)
, m_pListener(nullptr)
{
private:
// NaviFrameItem:
virtual void onAttached(ViewItem &item);
- virtual void onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId);
+ virtual void onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId);
void calcChecked(int &check, int &total) const;
int getItemsCount() const;
private:
// NaviFrameItem:
virtual void onAttached(ViewItem &item);
- virtual void onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId);
+ virtual void onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId);
// IListViewListener:
virtual void onListItemSelected(ListItem &listItem, void *funcData);
}*/
}
-void MsgOnSimCard::onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId)
+void MsgOnSimCard::onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId)
{
if(buttonId == NaviOkButtonId)
{
m_pSoundItem->update();
}
-void Settings::onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId)
+void Settings::onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId)
{
if(buttonId == NaviPrevButtonId)
{
// NaviFrameItem:
virtual void onAttached(ViewItem &item);
- virtual void onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId);
+ virtual void onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId);
// IHwButtonListener:
virtual void onHwBackButtonClicked();
}
-void Viewer::onButtonClicked(const NaviFrameItem &item, NaviButtonId buttonId)
+void Viewer::onButtonClicked(NaviFrameItem &item, NaviButtonId buttonId)
{
if(buttonId == NaviPrevButtonId)
{