diff options
Diffstat (limited to 'lib/common/Ui/Genlist/Genlist.cpp')
-rw-r--r-- | lib/common/Ui/Genlist/Genlist.cpp | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/lib/common/Ui/Genlist/Genlist.cpp b/lib/common/Ui/Genlist/Genlist.cpp deleted file mode 100644 index 5a9b779..0000000 --- a/lib/common/Ui/Genlist/Genlist.cpp +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2012-2013 Samsung Electronics Co., Ltd - * - * Licensed under the Flora License, Version 1.1 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://floralicense.org/license/ - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "Genlist.h" -#include "phone.h" - -namespace Ui -{ - namespace Genlist - { - bool Genlist::create(Evas_Object *parent) - { - PH_TRACE; - if(parent && !getObject()) - { - return setObject(elm_genlist_add(parent)); - } - else - { - return false; - } - } - - Elm_Object_Item * Genlist::append(Item *item, Elm_Object_Item *parent) - { - PH_TRACE; - check_if(!item, return NULL); - Elm_Object_Item *objItem = elm_genlist_item_append(getObject(), item->getClass(), item, parent, item->getType(), onItemSelect, item); - return objItem; - } - - void Genlist::onItemSelect(void *data, Evas_Object *obj, void *event_info) - { - PH_TRACE; - if(data && event_info) - { - Item *item = static_cast<Item *>(data); - Elm_Object_Item *objItem = static_cast<Elm_Object_Item *>(event_info); - item->onSelect(*objItem); - } - } - } -} |