maemo-ui-old/src/mmyth_ui.h
author melunko
Wed Aug 01 14:50:29 2007 +0100 (2007-08-01)
branchtrunk
changeset 790 7a914b3fafc1
parent 754 maemo-ui/src/mmyth_ui.h@cb885ee44618
permissions -rw-r--r--
[svn r796] Moved maemo-ui to maemo-ui-old
     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 /*
    20  * GMyth specific includes 
    21  */
    22 #include <gmyth/gmyth_backendinfo.h>
    23 
    24 typedef struct _MMythUi {
    25 
    26     /*
    27      * The main application window 
    28      */
    29     GtkWidget      *main_window;
    30     MMythUiCommon  *current_uicommon;
    31 
    32     /*
    33      * Main widget components 
    34      */
    35     GtkWidget      *main_hbox;
    36     GtkWidget      *video_alignment;
    37     GdkPixbuf      *logo;
    38 
    39     /*
    40      * Main widgets grouping 
    41      */
    42     MMythUiCommon  *main_uicommon;
    43     MMythUiCommon  *video_uicommon;
    44     MMythUiCommon  *epg_grid_uicommon;
    45     MMythUiCommon  *record_uicommon;
    46     MMythUiCommon  *schedule_uicommon;
    47 
    48     GMythBackendInfo *backend_info;
    49 
    50     GtkWidget      *videow;
    51     int             idle_id;
    52     // GstTagList *tagcache;
    53 
    54     MMythRecordUI  *mmyth_recordui;
    55     MMythSchedulerUI *mmyth_schedulerui;
    56 
    57 #ifdef MAEMO_PLATFORM
    58     HildonProgram  *program;
    59     GtkMenu        *main_menu;
    60     GtkWidget      *menu_setup;
    61 #endif
    62 
    63     MMythTVPlayer  *tvplayer;
    64 
    65 } MMythUi;
    66 
    67 GdkPixbuf      *icon_sports,
    68                *icon_news,
    69                *icon_movies,
    70                *icon_shows;
    71 GdkColor        main_bg_color;
    72 
    73 void            mmyth_set_main_widget(MMythUi * mmyth_ui,
    74                                       MMythUiCommon * new_ui);
    75 // void mmyth_play_selected(GtkButton * button, gpointer user_data);
    76 
    77 #ifdef MAEMO_PLATFORM
    78 MMythUi        *mmyth_ui_initialize(HildonProgram * program,
    79                                     GtkWidget * main_window);
    80 #else
    81 MMythUi        *mmyth_ui_initialize(GtkWidget * main_window);
    82 #endif
    83 
    84 void            mmyth_ui_finalize(MMythUi * mmyth_ui);
    85 
    86 void            mmyth_ui_set_widget(MMythUi * mmyth_ui,
    87                                     MMythUiCommon * new_uicommon);
    88 
    89 GtkWidget      *mmyth_ui_get_video_widget(MMythUi * mmyth_ui);
    90 
    91 #endif                          /* MMYTH_UI_H_ */