3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.tizenopensource.org/license
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an AS IS BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
23 #include <FGraphics.h>
25 #include <FUiAnimations.h>
28 : public Osp::Ui::Controls::Form
29 , public Osp::Ui::Controls::IListViewItemEventListener
30 , public Osp::Ui::Controls::IListViewItemProvider
34 virtual ~MainForm(void);
35 bool Initialize(void);
37 virtual result OnInitializing(void);
38 virtual result OnTerminating(void);
40 virtual int GetItemCount(void);
41 virtual Osp::Ui::Controls::ListItemBase* CreateItem (int index, int itemWidth);
42 virtual bool DeleteItem(int index, Osp::Ui::Controls::ListItemBase *pItem, int itemWidth);
44 virtual void OnListViewItemStateChanged(Osp::Ui::Controls::ListView &listView, int index, int elementId, Osp::Ui::Controls::ListItemStatus status);
45 virtual void OnListViewItemSwept(Osp::Ui::Controls::ListView &listView, int index, Osp::Ui::Controls::SweepDirection direction);
46 virtual void OnListViewContextItemStateChanged(Osp::Ui::Controls::ListView &listView, int index, int elementId, Osp::Ui::Controls::ListContextItemStatus state);
47 virtual void OnItemReordered(Osp::Ui::Controls::ListView &view, int oldIndex, int newIndex);
50 void InitializeListViewMainMenuNameArray(void);
51 void InitializeHeader(void);
52 void InitializeListViewMainMenu(void);
55 static const int LIST_VIEW_MAIN_MENU_COUNT = 18;
57 Osp::Ui::Controls::Header* __pHeader;
58 Osp::Ui::Controls::ListView* __pListViewMainMenu;
59 Osp::Base::String __listViewMainMenuNameArray[LIST_VIEW_MAIN_MENU_COUNT];
62 #endif // _MAIN_FORM_H_