{
}
-void DetailsView::setSelectCallback(SelectCallback callback)
-{
- m_OnSelected = std::move(callback);
-}
-
-void DetailsView::setSelectMode(SelectMode mode)
-{
- m_SelectMode = mode;
-
- if (m_BasicInfoItem) {
- m_BasicInfoItem->setSelectMode(mode);
-
- auto item = m_BasicInfoItem->getNextItem();
- for (; item; item = item->getNextItem()) {
- FieldItem *fieldItem = static_cast<FieldItem *>(item);
- fieldItem->setSelectMode(mode);
- }
- }
-
- updatePageMode();
-}
-
Evas_Object *DetailsView::onCreate(Evas_Object *parent)
{
- elm_theme_extension_add(nullptr, App::getResourcePath(DETAILS_ITEM_LAYOUT_EDJ).c_str());
+ elm_theme_extension_add(nullptr, App::getResourcePath(CONTACTS_DETAILS_ITEM_LAYOUT_EDJ).c_str());
m_Genlist = new Ui::Genlist();
m_Genlist->create(parent);