Logo Search packages:      
Sourcecode: ygraph version File versions  Download package

gboolean plot_window_key_press_event ( GtkWidget *  plot_area,
GdkEventKey *  event,
Plot plot 
)

Close the plot window.

Parameters:
plot_area The plot area widget to be closed.
event The calling event.
plot The Plot in question.
Returns:
TRUE if successful, crash if not.

Definition at line 713 of file callbacks.c.

References axis_toggle_log_state(), control_panel_raise(), end_button_click(), pause_play_button_click(), plot_window_display_all(), show_all_button_click(), start_button_click(), step_back_button_click(), and step_fwd_button_click().

{
  UNUSED(plot_area);
  if (event->keyval == GDK_p)
    control_panel_raise();
  else if (event->keyval == GDK_j)
    step_back_button_click(NULL, NULL, NULL);
  else if (event->keyval == GDK_k)
    step_fwd_button_click(NULL, NULL, NULL);
  else if (event->keyval == GDK_h)
    start_button_click(NULL, NULL, NULL);
  else if (event->keyval == GDK_l)
    end_button_click(NULL, NULL, NULL);
  else if (event->keyval == GDK_s)
    show_all_button_click(NULL, NULL, NULL);
  else if (event->keyval == GDK_L)
    axis_toggle_log_state(plot);
  else if (event->keyval == GDK_c)
    plot_window_display_all(plot); /* clears labels on the plot */
  else if (event->keyval == GDK_space)
    pause_play_button_click(NULL, NULL, NULL);

  return TRUE;
}


Generated by  Doxygen 1.6.0   Back to index