maemo-ui/src/mmyth_ui.h
author renatofilho
Thu Apr 12 22:38:44 2007 +0100 (2007-04-12)
branchtrunk
changeset 541 0bf798c3f17e
parent 20 7174e23f7617
child 754 cb885ee44618
permissions -rw-r--r--
[svn r546] fixed parse
     1 #ifndef MMYTH_UI_H_
     2 #define MMYTH_UI_H_
     3 
     4 #include <gtk/gtk.h>
     5 #include <gst/gst.h>
     6 
     7 #include "config.h"
     8 
     9 #ifdef MAEMO_PLATFORM
    10 #include "hildon-widgets/hildon-program.h"
    11 #include "hildon-widgets/hildon-window.h"
    12 #endif
    13 
    14 #include "mmyth_uicommon.h"
    15 #include "mmyth_recordui.h"
    16 #include "mmyth_schedulerui.h"
    17 #include "mmyth_tvplayer.h"
    18 
    19 /* GMyth specific includes */
    20 #include <gmyth/gmyth_backendinfo.h>
    21 
    22 typedef struct _MMythUi
    23 {
    24 
    25     /* The main application window */
    26     GtkWidget *main_window;
    27     MMythUiCommon *current_uicommon;
    28 
    29     /* Main widget components */
    30     GtkWidget *main_hbox;
    31     GtkWidget *video_alignment;
    32     GdkPixbuf *logo;
    33 
    34     /* Main widgets grouping */
    35     MMythUiCommon *main_uicommon;
    36     MMythUiCommon *video_uicommon;
    37     MMythUiCommon *epg_grid_uicommon;
    38     MMythUiCommon *record_uicommon;
    39     MMythUiCommon *schedule_uicommon;
    40 
    41     GMythBackendInfo *backend_info;
    42     
    43     GtkWidget *videow;
    44     int idle_id;
    45     //GstTagList *tagcache;
    46     
    47     MMythRecordUI *mmyth_recordui;
    48     MMythSchedulerUI *mmyth_schedulerui;
    49 
    50 #ifdef MAEMO_PLATFORM
    51     HildonProgram *program;
    52     GtkMenu *main_menu;
    53     GtkWidget *menu_setup;
    54 #endif
    55 
    56     MMythTVPlayer *tvplayer;
    57     
    58 } MMythUi;
    59 
    60 GdkPixbuf *icon_sports, *icon_news, *icon_movies, *icon_shows;
    61 GdkColor main_bg_color;
    62 
    63 void mmyth_set_main_widget (MMythUi * mmyth_ui, MMythUiCommon * new_ui);
    64 //void mmyth_play_selected(GtkButton * button, gpointer user_data);
    65 
    66 #ifdef MAEMO_PLATFORM
    67 MMythUi *mmyth_ui_initialize (HildonProgram *program, GtkWidget * main_window);
    68 #else
    69 MMythUi *mmyth_ui_initialize (GtkWidget * main_window);
    70 #endif
    71 
    72 void mmyth_ui_finalize (MMythUi * mmyth_ui);
    73 
    74 void mmyth_ui_set_widget (MMythUi * mmyth_ui, MMythUiCommon * new_uicommon);
    75 
    76 GtkWidget* mmyth_ui_get_video_widget (MMythUi *mmyth_ui);
    77 
    78 #endif /* MMYTH_UI_H_ */