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

void keybinding_window_create ( void   ) 

Create the help box window.

Note:
This is just implemented as a label for now, but should be put into a proper text widget when ygraph is upgraded to GTK+2.

Definition at line 248 of file about.c.

{
  GtkWidget* keybinding_window;
  GtkWidget* keybinding_label;
  GtkWidget* okay_button;

  /*  keybinding_window = gtk_window_new(GTK_WINDOW_TOPLEVEL);*/
  keybinding_window = gtk_dialog_new();
  gtk_window_set_title(GTK_WINDOW(keybinding_window), KEYBINDING_TITLE);
  
  /*
   * Message.
   */
  keybinding_label = 
    gtk_label_new(" j           step back\n" \
                  " k           step forward\n" \
                  " h           first frame\n" \
                  " l           last frame\n" \
                  " s           show all frames\n" \
                  " L           toggle log/linear axes\n" \
                  " c           clean window\n" \
                  " p           raise control panel\n" \
                  " <space>     play/pause\n" \
                  " <ctrl> n    new plot window\n" \
                  " <ctrl> o    open a new file\n" \
                  " <ctrl> p    open a new file in a new window\n" \
                  " <ctrl> e    export images\n" \
                  " <ctrl> m    export multiple frames\n" \
                  " <ctrl> w    close the plot window\n" \
                  " <ctrl> d    take a spatial derivative\n" \
                  " <ctrl> s    subtract one data set from another\n" \
                  " <ctrl> m    rescale datasets\n" \
                  " <ctrl> u    unzoom\n" \
                  " <ctrl> x    set plot ranges\n" \
                  " <ctrl> p    toggle display of dots at each point\n" \
                  " <ctrl> g    toggle display of grid lines\n" \
                  " <ctrl> r    toggle display of ranges on the plot window\n" \
                  " <ctrl> k    display this window\n" \
                  " <ctrl> q    quit\n");
  gtk_label_set_justify(GTK_LABEL(keybinding_label), GTK_JUSTIFY_LEFT);
  gtk_box_pack_start(GTK_BOX(GTK_DIALOG(keybinding_window)->vbox),
                     keybinding_label, FALSE, FALSE, 0);

  /*
   * Okay button.
   */
  okay_button = gtk_button_new_with_label("Okay");
  gtk_signal_connect_object(GTK_OBJECT(okay_button), "clicked",
                            GTK_SIGNAL_FUNC(gtk_widget_destroy), 
                            (gpointer) keybinding_window);
  gtk_box_pack_end(GTK_BOX(GTK_DIALOG(keybinding_window)->action_area),
                   okay_button, FALSE, FALSE, 0);

  gtk_widget_show_all(keybinding_window);

}


Generated by  Doxygen 1.6.0   Back to index