1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/maemo-ui-old/src/mmyth_ui.h Tue Jan 29 18:40:32 2008 +0000
1.3 @@ -0,0 +1,91 @@
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 +/*
1.23 + * GMyth specific includes
1.24 + */
1.25 +#include <gmyth/gmyth_backendinfo.h>
1.26 +
1.27 +typedef struct _MMythUi {
1.28 +
1.29 + /*
1.30 + * The main application window
1.31 + */
1.32 + GtkWidget *main_window;
1.33 + MMythUiCommon *current_uicommon;
1.34 +
1.35 + /*
1.36 + * Main widget components
1.37 + */
1.38 + GtkWidget *main_hbox;
1.39 + GtkWidget *video_alignment;
1.40 + GdkPixbuf *logo;
1.41 +
1.42 + /*
1.43 + * Main widgets grouping
1.44 + */
1.45 + MMythUiCommon *main_uicommon;
1.46 + MMythUiCommon *video_uicommon;
1.47 + MMythUiCommon *epg_grid_uicommon;
1.48 + MMythUiCommon *record_uicommon;
1.49 + MMythUiCommon *schedule_uicommon;
1.50 +
1.51 + GMythBackendInfo *backend_info;
1.52 +
1.53 + GtkWidget *videow;
1.54 + int idle_id;
1.55 + // GstTagList *tagcache;
1.56 +
1.57 + MMythRecordUI *mmyth_recordui;
1.58 + MMythSchedulerUI *mmyth_schedulerui;
1.59 +
1.60 +#ifdef MAEMO_PLATFORM
1.61 + HildonProgram *program;
1.62 + GtkMenu *main_menu;
1.63 + GtkWidget *menu_setup;
1.64 +#endif
1.65 +
1.66 + MMythTVPlayer *tvplayer;
1.67 +
1.68 +} MMythUi;
1.69 +
1.70 +GdkPixbuf *icon_sports,
1.71 + *icon_news,
1.72 + *icon_movies,
1.73 + *icon_shows;
1.74 +GdkColor main_bg_color;
1.75 +
1.76 +void mmyth_set_main_widget(MMythUi * mmyth_ui,
1.77 + MMythUiCommon * new_ui);
1.78 +// void mmyth_play_selected(GtkButton * button, gpointer user_data);
1.79 +
1.80 +#ifdef MAEMO_PLATFORM
1.81 +MMythUi *mmyth_ui_initialize(HildonProgram * program,
1.82 + GtkWidget * main_window);
1.83 +#else
1.84 +MMythUi *mmyth_ui_initialize(GtkWidget * main_window);
1.85 +#endif
1.86 +
1.87 +void mmyth_ui_finalize(MMythUi * mmyth_ui);
1.88 +
1.89 +void mmyth_ui_set_widget(MMythUi * mmyth_ui,
1.90 + MMythUiCommon * new_uicommon);
1.91 +
1.92 +GtkWidget *mmyth_ui_get_video_widget(MMythUi * mmyth_ui);
1.93 +
1.94 +#endif /* MMYTH_UI_H_ */