]> Pileus Git - aweather/blobdiff - src/plugins/radar.h
docs: fix a few typos
[aweather] / src / plugins / radar.h
index 8175e35506f18b5a45a784ce96330ecbbac864e7..e64ed8130c2cece2ffb66422a19ce928b7c579c3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2009-2010 Andy Spencer <andy753421@gmail.com>
+ * Copyright (C) 2009-2011 Andy Spencer <andy753421@gmail.com>
  * 
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
 #include <glib-object.h>
 #include <rsl.h>
 
-#include <gis.h>
+#include <grits.h>
+#include "radar-info.h"
 #include "level2.h"
 
-#define GIS_TYPE_PLUGIN_RADAR            (gis_plugin_radar_get_type ())
-#define GIS_PLUGIN_RADAR(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj),   GIS_TYPE_PLUGIN_RADAR, GisPluginRadar))
-#define GIS_IS_PLUGIN_RADAR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj),   GIS_TYPE_PLUGIN_RADAR))
-#define GIS_PLUGIN_RADAR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST   ((klass), GIS_TYPE_PLUGIN_RADAR, GisPluginRadarClass))
-#define GIS_IS_PLUGIN_RADAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE   ((klass), GIS_TYPE_PLUGIN_RADAR))
-#define GIS_PLUGIN_RADAR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),   GIS_TYPE_PLUGIN_RADAR, GisPluginRadarClass))
+#define GRITS_TYPE_PLUGIN_RADAR            (grits_plugin_radar_get_type ())
+#define GRITS_PLUGIN_RADAR(obj)            (G_TYPE_CHECK_INSTANCE_CAST((obj),   GRITS_TYPE_PLUGIN_RADAR, GritsPluginRadar))
+#define GRITS_IS_PLUGIN_RADAR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE((obj),   GRITS_TYPE_PLUGIN_RADAR))
+#define GRITS_PLUGIN_RADAR_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST   ((klass), GRITS_TYPE_PLUGIN_RADAR, GritsPluginRadarClass))
+#define GRITS_IS_PLUGIN_RADAR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE   ((klass), GRITS_TYPE_PLUGIN_RADAR))
+#define GRITS_PLUGIN_RADAR_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj),   GRITS_TYPE_PLUGIN_RADAR, GritsPluginRadarClass))
 
-typedef struct _GisPluginRadar        GisPluginRadar;
-typedef struct _GisPluginRadarClass   GisPluginRadarClass;
+typedef struct _GritsPluginRadar      GritsPluginRadar;
+typedef struct _GritsPluginRadarClass GritsPluginRadarClass;
 
-struct _GisPluginRadar {
+typedef struct _RadarConus RadarConus;
+typedef struct _RadarSite  RadarSite;
+
+struct _GritsPluginRadar {
        GObject parent_instance;
 
        /* instance members */
-       GisViewer *viewer;
-       GisPrefs  *prefs;
-       GisHttp   *http;
-
-       /* Signals */
-       guint      time_changed_id;
-       guint      location_changed_id;
+       GritsViewer *viewer;
+       GritsPrefs  *prefs;
+       GtkWidget   *config;
+       guint        tab_id;
+       AWeatherColormap *colormap;
+       GritsCallback    *hud;
 
-       /* Tab area */
-       GtkWidget *config_body;
-       GtkWidget *progress_bar;
-       GtkWidget *progress_label;
+       GHashTable  *sites;
+       GritsHttp   *sites_http;
 
-       /* Radar lists */
-       GMutex    *load_mutex;
-       AWeatherColormap *colormap;
-       gpointer   radar;
-       gchar     *cur_site;
-       gchar     *cur_time;
+       RadarConus  *conus;
+       GritsHttp   *conus_http;
 };
 
-struct _GisPluginRadarClass {
+struct _GritsPluginRadarClass {
        GObjectClass parent_class;
 };
 
-GType gis_plugin_radar_get_type();
+GType grits_plugin_radar_get_type();
 
 /* Methods */
-GisPluginRadar *gis_plugin_radar_new(GisViewer *viewer, GisPrefs *prefs);
+GritsPluginRadar *grits_plugin_radar_new(GritsViewer *viewer, GritsPrefs *prefs);
 
 /* Misc. RSL helpers */
 #define RSL_FOREACH_VOL(radar, volume, count, index) \