/* scatterplot_ui.c */ /* This software may only be used by you under license from AT&T Corp. ("AT&T"). A copy of AT&T's Source Code Agreement is available at AT&T's Internet website having the URL: If you received this software without first entering into a license with AT&T, you have an infringing copy of this software and cannot use it without violating AT&T's intellectual property rights. */ #include #include "vars.h" #include "externs.h" /*--------------------------------------------------------------------*/ /* Resetting the main menubar */ /*--------------------------------------------------------------------*/ void scatterplot_main_menus_make (GtkAccelGroup *accel_group, GtkSignalFunc func, ggobid *gg, gboolean useIds) { /* * ViewMode menu */ gg->app.scatterplot_mode_menu = gtk_menu_new (); CreateMenuItem (gg->app.scatterplot_mode_menu, NULL, "", "", NULL, NULL, NULL, NULL, gg); CreateMenuItem (gg->app.scatterplot_mode_menu, "PROJECTION MODES:", "", "", NULL, NULL, NULL, NULL, gg); CreateMenuItem (gg->app.scatterplot_mode_menu, "1D Plot", "^d", "", NULL, accel_group, func, useIds ? GINT_TO_POINTER (P1PLOT) : gg, gg); CreateMenuItem (gg->app.scatterplot_mode_menu, "XYPlot", "^x", "", NULL, accel_group, func, useIds ? GINT_TO_POINTER (XYPLOT) : gg, gg); CreateMenuItem (gg->app.scatterplot_mode_menu, "1D Tour", "^g", "", NULL, accel_group, func, useIds ? GINT_TO_POINTER (TOUR1D) : gg, gg); CreateMenuItem (gg->app.scatterplot_mode_menu, "2D Tour", "^t", "", NULL, accel_group, func, useIds ? GINT_TO_POINTER (TOUR2D) : gg, gg); CreateMenuItem (gg->app.scatterplot_mode_menu, "2x1D Tour", "^c", "", NULL, accel_group, func, useIds ? GINT_TO_POINTER (COTOUR) : gg, gg); /* Add a separator */ CreateMenuItem (gg->app.scatterplot_mode_menu, NULL, "", "", NULL, NULL, NULL, NULL, gg); CreateMenuItem (gg->app.scatterplot_mode_menu, "INTERACTION MODES:", "", "", NULL, NULL, NULL, NULL, gg); CreateMenuItem (gg->app.scatterplot_mode_menu, "Scale", "^s", "", NULL, accel_group, func, useIds ? GINT_TO_POINTER (SCALE) : gg, gg); CreateMenuItem (gg->app.scatterplot_mode_menu, "Brush", "^b", "", NULL, accel_group, func, useIds ? GINT_TO_POINTER (BRUSH) : gg, gg); CreateMenuItem (gg->app.scatterplot_mode_menu, "Identify", "^i", "", NULL, accel_group, func, useIds ? GINT_TO_POINTER (IDENT) : gg, gg); #ifdef EDIT_LINES_IMPLEMENTED CreateMenuItem (gg->app.scatterplot_mode_menu, "Edit Lines", "^l", "", NULL, accel_group, func, useIds ? GINT_TO_POINTER (LINEED) : gg, gg); #endif CreateMenuItem (gg->app.scatterplot_mode_menu, "Move Points", "^m", "", NULL, accel_group, func, useIds ? GINT_TO_POINTER (MOVEPTS) : gg, gg); gtk_widget_show (gg->app.scatterplot_mode_menu); }