00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00027
00028
00029
00030
00031 #ifndef __LISTER__H__
00032 #define __LISTER__H__
00033
00034 #include "erMdsContent.h"
00035 #include "gtkContentListItem.h"
00036
00037 #ifdef __cplusplus
00038 extern "C"
00039 {
00040 #endif
00041
00042
00043 #define LIST_ITEM_SPACING 20
00044
00045
00046 #define NO_FOCUSSED_ITEM (-1)
00047
00048
00049 #define MAX_ITEMS_ON_ONE_PAGE 6
00050
00051
00052 #define LS_MAX_TITLE_SIZE 256
00053 #define LS_MAX_SUBTITLE_SIZE 256
00054 #define LS_MAX_DESCRIPTION_SIZE 512
00055
00056 #define LISTER_BOX_BORDER 51 // white border around the full contentlister page 768x1024
00057 #define TITLE_MIN_HEIGHT 54
00058 #define TITLE_MIN_WIDTH 666
00059 #define LISTER_ITEM_HEIGHT 115
00060
00061 #define CURSOR_X (LISTER_BOX_BORDER - HBOX_TEXT_THUMB_SPACING)
00062 #define CURSOR_START_Y (LISTER_BOX_BORDER + TITLE_MIN_HEIGHT + LIST_ITEM_SPACING)
00063 #define CURSOR_STEP (LIST_ITEM_SPACING + LISTER_ITEM_HEIGHT)
00064
00065
00066 #define KEYBOARD_TOP 680 // top-of-screen till top-of-keyboard
00067 #define METADATA_CLIENTAREA_HEIGHT (KEYBOARD_TOP - LISTER_BOX_BORDER - TITLE_MIN_HEIGHT - LIST_ITEM_PADDING - LISTER_ITEM_HEIGHT - LISTER_BOX_BORDER - 30)
00068
00069 typedef struct
00070 {
00071 GtkWidget *titleItem;
00072 GtkWidget *titleLocation;
00073 GtkWidget *listItems[MAX_ITEMS_ON_ONE_PAGE];
00074 } lsLister_t;
00075
00076
00086 lsLister_t *lsInit(GtkWidget * topLevelWindow, gpointer data);
00087
00096 GtkWidget * lsGetListerItem(lsLister_t * lister, int index);
00097
00114 void lsUpdatePage(lsLister_t * lister, clDisplayItem_t * items,
00115 int count, int focus, gchar* category, const gchar *location);
00116
00117
00118 #ifdef __cplusplus
00119 }
00120 #endif
00121
00122 #endif //__LISTER__H__