X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Faweather-gui.h;h=eb28a55307fca65f09e81df55620215e7dc3460c;hp=2a1a855f75b55f0930f118f0437f6132a67ccb68;hb=ca898105ec4018b54ac2f6f1327200624169103e;hpb=721c55f22af98cf2fcc247169836e9b355a47104 diff --git a/src/aweather-gui.h b/src/aweather-gui.h index 2a1a855..eb28a55 100644 --- a/src/aweather-gui.h +++ b/src/aweather-gui.h @@ -20,7 +20,8 @@ #include #include -#include "aweather-view.h" + +#include /* Type macros */ #define AWEATHER_TYPE_GUI (aweather_gui_get_type()) @@ -34,18 +35,20 @@ typedef struct _AWeatherGui AWeatherGui; typedef struct _AWeatherGuiClass AWeatherGuiClass; struct _AWeatherGui { - GObject parent_instance; + GtkWindow parent_instance; /* instance members */ - AWeatherView *view; - GtkBuilder *builder; - GtkWindow *window; - GtkNotebook *tabs; - GtkDrawingArea *drawing; + GtkBuilder *builder; + GisWorld *world; + GisView *view; + GisOpenGL *opengl; + GisPlugins *plugins; + GisPrefs *prefs; + GtkListStore *gtk_plugins; }; struct _AWeatherGuiClass { - GObjectClass parent_class; + GtkWindowClass parent_class; /* class members */ }; @@ -53,13 +56,16 @@ struct _AWeatherGuiClass { GType aweather_gui_get_type(void); /* Methods */ -AWeatherGui *aweather_gui_new(); -AWeatherView *aweather_gui_get_view(AWeatherGui *gui); -GtkWidget *aweather_gui_get_widget(AWeatherGui *gui, const gchar *name); -void aweather_gui_gl_begin(AWeatherGui *gui); -void aweather_gui_gl_end(AWeatherGui *gui); -void aweather_gui_gl_flush(AWeatherGui *gui); +AWeatherGui *aweather_gui_new(); + +GisWorld *aweather_gui_get_world(AWeatherGui *gui); +GisOpenGL *aweather_gui_get_opengl(AWeatherGui *gui); +GisView *aweather_gui_get_view(AWeatherGui *gui); + +GtkWidget *aweather_gui_get_widget(AWeatherGui *gui, const gchar *name); +GObject *aweather_gui_get_object(AWeatherGui *gui, const gchar *name); -//void aweather_gui_register_plugin(AWeatherGui *gui, AWeatherPlugin *plugin); +void aweather_gui_attach_plugin(AWeatherGui *self, const gchar *name); +void aweather_gui_deattach_plugin(AWeatherGui *self, const gchar *name); #endif