From cffda44fc89493df2494b57043ba350db20b7fd3 Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Sat, 23 May 2009 22:37:01 +0000 Subject: [PATCH] moving roadplan to todo --- HACKING | 28 ---------------------------- TODO | 30 +++++++++++++++++++++++++----- src/plugin-radar.c | 20 +++++++++++--------- 3 files changed, 36 insertions(+), 42 deletions(-) diff --git a/HACKING b/HACKING index 94e5c6c..e69de29 100644 --- a/HACKING +++ b/HACKING @@ -1,28 +0,0 @@ -Road plan ---------- -0.1 - Working - * Fix all memory leaks - * Asynchronous IO and data loading - * Pre-load textures and polys in OpenGL - * GObject integration (plugin object/interface) - -0.x - Volume scans - * Display iso surfaces of volume scans - -0.x - GIS - * Replace RIDGE overlays with GIS images - * Set up LLH coordinate system - * Generic Time/Location selection - (not dependent on level 2 listings) - -0.x - More data - * Derived from Level 2: - * Composite reflectivity - * Storm relative motion - * Echo tops - * Warning/watch boxes - * Fronts - * Air pressure - -0.x - Animation - * Loop though times diff --git a/TODO b/TODO index 899fc6f..94e5c6c 100644 --- a/TODO +++ b/TODO @@ -1,8 +1,28 @@ -See also: wiki +Road plan +--------- +0.1 - Working + * Fix all memory leaks + * Asynchronous IO and data loading + * Pre-load textures and polys in OpenGL + * GObject integration (plugin object/interface) -Depth sorting - - Need to draw objects from lowest to highest when using transparency +0.x - Volume scans + * Display iso surfaces of volume scans -Fix memory leaks +0.x - GIS + * Replace RIDGE overlays with GIS images + * Set up LLH coordinate system + * Generic Time/Location selection + (not dependent on level 2 listings) -Add better color charts +0.x - More data + * Derived from Level 2: + * Composite reflectivity + * Storm relative motion + * Echo tops + * Warning/watch boxes + * Fronts + * Air pressure + +0.x - Animation + * Loop though times diff --git a/src/plugin-radar.c b/src/plugin-radar.c index cce0c3e..5c1c46e 100644 --- a/src/plugin-radar.c +++ b/src/plugin-radar.c @@ -115,12 +115,11 @@ static void load_radar_gui(Radar *radar) if (child) gtk_widget_destroy(child); - /* Get table size */ - guint rows = 1, cols = 1, cur_cols; gchar row_label_str[64], col_label_str[64], button_str[64]; GtkWidget *row_label, *col_label, *button = NULL; GtkWidget *table = gtk_table_new(rows, cols, FALSE); + for (guint vi = 0; vi < radar->h.nvolumes; vi++) { Volume *vol = radar->v[vi]; if (vol == NULL) continue; @@ -131,7 +130,8 @@ static void load_radar_gui(Radar *radar) row_label = gtk_label_new(row_label_str); gtk_label_set_use_markup(GTK_LABEL(row_label), TRUE); gtk_misc_set_alignment(GTK_MISC(row_label), 1, 0.5); - gtk_table_attach(GTK_TABLE(table), row_label, 0,1, rows-1,rows, GTK_FILL,GTK_FILL, 5,0); + gtk_table_attach(GTK_TABLE(table), row_label, + 0,1, rows-1,rows, GTK_FILL,GTK_FILL, 5,0); for (guint si = 0; si < vol->h.nsweeps; si++) { Sweep *sweep = vol->sweep[si]; @@ -145,18 +145,20 @@ static void load_radar_gui(Radar *radar) col_label = gtk_label_new(col_label_str); gtk_label_set_use_markup(GTK_LABEL(col_label), TRUE); gtk_widget_set_size_request(col_label, 40, -1); - gtk_table_attach(GTK_TABLE(table), col_label, cols-1,cols, 0,1, GTK_FILL,GTK_FILL, 0,0); + gtk_table_attach(GTK_TABLE(table), col_label, + cols-1,cols, 0,1, GTK_FILL,GTK_FILL, 0,0); } /* Button */ - //g_snprintf(button_str, 64, "%c: %.2f", vol->h.type_str[0], sweep->h.elev); - //button = gtk_radio_button_new_with_label_from_widget(GTK_RADIO_BUTTON(button), button_str); button = gtk_radio_button_new_from_widget(GTK_RADIO_BUTTON(button)); gtk_widget_set_size_request(button, -1, 22); g_object_set(button, "draw-indicator", FALSE, NULL); - g_signal_connect_swapped(button, "clicked", G_CALLBACK(load_color_table), vol->h.type_str); - g_signal_connect_swapped(button, "clicked", G_CALLBACK(load_sweep), sweep); - gtk_table_attach(GTK_TABLE(table), button, cols-1,cols, rows-1,rows, GTK_FILL,GTK_FILL, 0,0); + g_signal_connect_swapped(button, "clicked", + G_CALLBACK(load_color_table), vol->h.type_str); + g_signal_connect_swapped(button, "clicked", + G_CALLBACK(load_sweep), sweep); + gtk_table_attach(GTK_TABLE(table), button, + cols-1,cols, rows-1,rows, GTK_FILL,GTK_FILL, 0,0); } } gtk_container_add(GTK_CONTAINER(config_body), table); -- 2.43.2