maemo-ui/src/mmyth_ui.h
branchtrunk
changeset 131 d1ae310096bd
child 208 c3c073032757
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/maemo-ui/src/mmyth_ui.h	Tue Nov 28 21:04:14 2006 +0000
     1.3 @@ -0,0 +1,73 @@
     1.4 +#ifndef MMYTH_UI_H_
     1.5 +#define MMYTH_UI_H_
     1.6 +
     1.7 +#include <gtk/gtk.h>
     1.8 +#include <gst/gst.h>
     1.9 +
    1.10 +#include "config.h"
    1.11 +
    1.12 +#ifdef MAEMO_PLATFORM
    1.13 +#include "hildon-widgets/hildon-program.h"
    1.14 +#include "hildon-widgets/hildon-window.h"
    1.15 +#endif
    1.16 +
    1.17 +#include "mmyth_uicommon.h"
    1.18 +#include "mmyth_recordui.h"
    1.19 +#include "mmyth_schedulerui.h"
    1.20 +#include "mmyth_tvplayer.h"
    1.21 +
    1.22 +typedef struct _MMythUi
    1.23 +{
    1.24 +
    1.25 +    /* The main application window */
    1.26 +    GtkWidget *main_window;
    1.27 +    MMythUiCommon *current_uicommon;
    1.28 +
    1.29 +    /* Main widget components */
    1.30 +    GtkWidget *main_hbox;
    1.31 +    GtkWidget *video_alignment;
    1.32 +    GdkPixbuf *logo;
    1.33 +
    1.34 +    /* Main widgets grouping */
    1.35 +    MMythUiCommon *main_uicommon;
    1.36 +    MMythUiCommon *video_uicommon;
    1.37 +    MMythUiCommon *epg_grid_uicommon;
    1.38 +    MMythUiCommon *record_uicommon;
    1.39 +    MMythUiCommon *schedule_uicommon;
    1.40 +    
    1.41 +    GtkWidget *videow;
    1.42 +    int idle_id;
    1.43 +    //GstTagList *tagcache;
    1.44 +    
    1.45 +    MMythRecordUI *mmyth_recordui;
    1.46 +    MMythSchedulerUI *mmyth_schedulerui;
    1.47 +
    1.48 +#ifdef MAEMO_PLATFORM
    1.49 +    HildonProgram *program;
    1.50 +    GtkMenu *main_menu;
    1.51 +    GtkWidget *menu_setup;
    1.52 +#endif
    1.53 +
    1.54 +    MMythTVPlayer *tvplayer;
    1.55 +    
    1.56 +} MMythUi;
    1.57 +
    1.58 +GdkPixbuf *icon_sports, *icon_news, *icon_movies, *icon_shows;
    1.59 +GdkColor main_bg_color;
    1.60 +
    1.61 +void mmyth_set_main_widget (MMythUi * mmyth_ui, MMythUiCommon * new_ui);
    1.62 +//void mmyth_play_selected(GtkButton * button, gpointer user_data);
    1.63 +
    1.64 +#ifdef MAEMO_PLATFORM
    1.65 +MMythUi *mmyth_ui_initialize (HildonProgram *program, GtkWidget * main_window);
    1.66 +#else
    1.67 +MMythUi *mmyth_ui_initialize (GtkWidget * main_window);
    1.68 +#endif
    1.69 +
    1.70 +void mmyth_ui_finalize (MMythUi * mmyth_ui);
    1.71 +
    1.72 +void mmyth_ui_set_widget (MMythUi * mmyth_ui, MMythUiCommon * new_uicommon);
    1.73 +
    1.74 +GtkWidget* mmyth_ui_get_video_widget (MMythUi *mmyth_ui);
    1.75 +
    1.76 +#endif /* MMYTH_UI_H_ */