diff -r 000000000000 -r 5c83cb526118 maemo-ui/src/mmyth_ui.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/maemo-ui/src/mmyth_ui.h Tue Oct 24 14:19:49 2006 +0100 @@ -0,0 +1,73 @@ +#ifndef MMYTH_UI_H_ +#define MMYTH_UI_H_ + +#include +#include + +#include "config.h" + +#ifdef MAEMO_PLATFORM +#include "hildon-widgets/hildon-program.h" +#include "hildon-widgets/hildon-window.h" +#endif + +#include "mmyth_uicommon.h" +#include "mmyth_recordui.h" +#include "mmyth_schedulerui.h" +#include "mmyth_tvplayer.h" + +typedef struct _MMythUi +{ + + /* The main application window */ + GtkWidget *main_window; + MMythUiCommon *current_uicommon; + + /* Main widget components */ + GtkWidget *main_hbox; + GtkWidget *video_alignment; + GdkPixbuf *logo; + + /* Main widgets grouping */ + MMythUiCommon *main_uicommon; + MMythUiCommon *video_uicommon; + MMythUiCommon *epg_grid_uicommon; + MMythUiCommon *record_uicommon; + MMythUiCommon *schedule_uicommon; + + GtkWidget *videow; + int idle_id; + //GstTagList *tagcache; + + MMythRecordUI *mmyth_recordui; + MMythSchedulerUI *mmyth_schedulerui; + +#ifdef MAEMO_PLATFORM + HildonProgram *program; + GtkMenu *main_menu; + GtkWidget *menu_setup; +#endif + + MMythTVPlayer *tvplayer; + +} MMythUi; + +GdkPixbuf *icon_sports, *icon_news, *icon_movies, *icon_shows; +GdkColor main_bg_color; + +void mmyth_set_main_widget (MMythUi * mmyth_ui, MMythUiCommon * new_ui); +//void mmyth_play_selected(GtkButton * button, gpointer user_data); + +#ifdef MAEMO_PLATFORM +MMythUi *mmyth_ui_initialize (HildonProgram *program, GtkWidget * main_window); +#else +MMythUi *mmyth_ui_initialize (GtkWidget * main_window); +#endif + +void mmyth_ui_finalize (MMythUi * mmyth_ui); + +void mmyth_ui_set_widget (MMythUi * mmyth_ui, MMythUiCommon * new_uicommon); + +GtkWidget* mmyth_ui_get_video_widget (MMythUi *mmyth_ui); + +#endif /* MMYTH_UI_H_ */