Logo Search packages:      
Sourcecode: v-sim version File versions  Download package

interface.c

/*
 * DO NOT EDIT THIS FILE - it is generated by Glade.
 */

#ifdef HAVE_CONFIG_H
#  include <config.h>
#endif

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>

#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>

#include "callbacks.h"
#include "interface.h"
#include "support.h"

#define GLADE_HOOKUP_OBJECT(component,widget,name) \
  g_object_set_data_full (G_OBJECT (component), name, \
    gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)

#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
  g_object_set_data (G_OBJECT (component), name, widget)

GtkWidget*
create_main_window (void)
{
  GtkWidget *main_window;
  GdkPixbuf *main_window_icon_pixbuf;
  GtkWidget *vboxMainWindow;
  GtkWidget *frame1;
  GtkWidget *vbox3;
  GtkWidget *hbox13;
  GtkWidget *loadButton;
  GtkWidget *hbox32;
  GtkWidget *checkPairs;
  GtkWidget *pairsButton;
  GtkWidget *alignment2;
  GtkWidget *hbox9;
  GtkWidget *image5;
  GtkWidget *label15;
  GtkWidget *pickObserveButton;
  GtkWidget *alignment10;
  GtkWidget *hbox24;
  GtkWidget *image19;
  GtkWidget *label40;
  GtkWidget *hbox16;
  GtkWidget *saveButton;
  GtkWidget *alignment14;
  GtkWidget *hbox43;
  GtkWidget *image34;
  GtkWidget *label70;
  GtkWidget *buttonQuit;
  GtkWidget *visuAbout;
  GtkWidget *image12;
  GtkWidget *label8;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  main_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_container_set_border_width (GTK_CONTAINER (main_window), 7);
  gtk_window_set_title (GTK_WINDOW (main_window), _("Command panel"));
  main_window_icon_pixbuf = create_pixbuf ("icone-panel.png");
  if (main_window_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (main_window), main_window_icon_pixbuf);
      gdk_pixbuf_unref (main_window_icon_pixbuf);
    }

  vboxMainWindow = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vboxMainWindow);
  gtk_container_add (GTK_CONTAINER (main_window), vboxMainWindow);
  gtk_widget_set_size_request (vboxMainWindow, 350, -1);

  frame1 = gtk_frame_new (NULL);
  gtk_widget_show (frame1);
  gtk_box_pack_end (GTK_BOX (vboxMainWindow), frame1, FALSE, TRUE, 0);

  vbox3 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox3);
  gtk_container_add (GTK_CONTAINER (frame1), vbox3);

  hbox13 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox13);
  gtk_box_pack_start (GTK_BOX (vbox3), hbox13, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox13), 5);

  loadButton = gtk_button_new_from_stock ("gtk-open");
  gtk_widget_show (loadButton);
  gtk_box_pack_start (GTK_BOX (hbox13), loadButton, FALSE, FALSE, 0);
  gtk_widget_set_sensitive (loadButton, FALSE);
  gtk_tooltips_set_tip (tooltips, loadButton, _("Select a file to render."), NULL);

  hbox32 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox32);
  gtk_box_pack_start (GTK_BOX (hbox13), hbox32, TRUE, FALSE, 0);

  checkPairs = gtk_check_button_new ();
  gtk_widget_show (checkPairs);
  gtk_box_pack_start (GTK_BOX (hbox32), checkPairs, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, checkPairs, _("Check to draw pairs between elements."), NULL);

  pairsButton = gtk_button_new ();
  gtk_widget_show (pairsButton);
  gtk_box_pack_start (GTK_BOX (hbox32), pairsButton, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, pairsButton, _("Configure parameters for bindings such as color, thickness..."), NULL);

  alignment2 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment2);
  gtk_container_add (GTK_CONTAINER (pairsButton), alignment2);

  hbox9 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox9);
  gtk_container_add (GTK_CONTAINER (alignment2), hbox9);

  image5 = gtk_image_new_from_stock ("gtk-convert", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image5);
  gtk_box_pack_start (GTK_BOX (hbox9), image5, FALSE, FALSE, 0);

  label15 = gtk_label_new_with_mnemonic (_("Pairs"));
  gtk_widget_show (label15);
  gtk_box_pack_start (GTK_BOX (hbox9), label15, FALSE, FALSE, 0);

  pickObserveButton = gtk_button_new ();
  gtk_widget_show (pickObserveButton);
  gtk_box_pack_start (GTK_BOX (hbox13), pickObserveButton, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, pickObserveButton, _("Use the mouse to change the view and get position informations."), NULL);

  alignment10 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment10);
  gtk_container_add (GTK_CONTAINER (pickObserveButton), alignment10);

  hbox24 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox24);
  gtk_container_add (GTK_CONTAINER (alignment10), hbox24);

  image19 = gtk_image_new_from_stock ("gtk-zoom-fit", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image19);
  gtk_box_pack_start (GTK_BOX (hbox24), image19, FALSE, FALSE, 0);

  label40 = gtk_label_new_with_mnemonic (_("Obs. / pick"));
  gtk_widget_show (label40);
  gtk_box_pack_start (GTK_BOX (hbox24), label40, FALSE, FALSE, 0);

  hbox16 = gtk_hbox_new (FALSE, 5);
  gtk_widget_show (hbox16);
  gtk_box_pack_start (GTK_BOX (vbox3), hbox16, FALSE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hbox16), 5);

  saveButton = gtk_button_new ();
  gtk_widget_show (saveButton);
  gtk_box_pack_start (GTK_BOX (hbox16), saveButton, TRUE, TRUE, 5);
  gtk_tooltips_set_tip (tooltips, saveButton, _("Click to save the parameters or the resources."), NULL);

  alignment14 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment14);
  gtk_container_add (GTK_CONTAINER (saveButton), alignment14);

  hbox43 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox43);
  gtk_container_add (GTK_CONTAINER (alignment14), hbox43);

  image34 = gtk_image_new_from_stock ("gtk-edit", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image34);
  gtk_box_pack_start (GTK_BOX (hbox43), image34, FALSE, FALSE, 0);

  label70 = gtk_label_new_with_mnemonic (_("Config. files"));
  gtk_widget_show (label70);
  gtk_box_pack_start (GTK_BOX (hbox43), label70, FALSE, FALSE, 0);

  buttonQuit = gtk_button_new_from_stock ("gtk-quit");
  gtk_widget_show (buttonQuit);
  gtk_box_pack_start (GTK_BOX (hbox16), buttonQuit, TRUE, TRUE, 5);

  visuAbout = gtk_button_new ();
  gtk_widget_show (visuAbout);
  gtk_box_pack_start (GTK_BOX (hbox16), visuAbout, TRUE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, visuAbout, _("V_Sim program. Written by L. Billard, modified by D. Caliste."), NULL);
  gtk_button_set_relief (GTK_BUTTON (visuAbout), GTK_RELIEF_NONE);

  image12 = create_pixmap (main_window, "logo_petit.png");
  gtk_widget_show (image12);
  gtk_container_add (GTK_CONTAINER (visuAbout), image12);

  label8 = gtk_label_new (_("Actions"));
  gtk_widget_show (label8);
  gtk_frame_set_label_widget (GTK_FRAME (frame1), label8);

  g_signal_connect ((gpointer) loadButton, "clicked",
                    G_CALLBACK (on_loadButton_clicked),
                    NULL);
  g_signal_connect ((gpointer) pairsButton, "clicked",
                    G_CALLBACK (on_pairsButton_clicked),
                    NULL);
  g_signal_connect ((gpointer) pickObserveButton, "clicked",
                    G_CALLBACK (on_observeButton_clicked),
                    NULL);
  g_signal_connect ((gpointer) saveButton, "clicked",
                    G_CALLBACK (on_saveButton_clicked),
                    NULL);
  g_signal_connect ((gpointer) visuAbout, "clicked",
                    G_CALLBACK (on_visuAbout_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (main_window, main_window, "main_window");
  GLADE_HOOKUP_OBJECT (main_window, vboxMainWindow, "vboxMainWindow");
  GLADE_HOOKUP_OBJECT (main_window, frame1, "frame1");
  GLADE_HOOKUP_OBJECT (main_window, vbox3, "vbox3");
  GLADE_HOOKUP_OBJECT (main_window, hbox13, "hbox13");
  GLADE_HOOKUP_OBJECT (main_window, loadButton, "loadButton");
  GLADE_HOOKUP_OBJECT (main_window, hbox32, "hbox32");
  GLADE_HOOKUP_OBJECT (main_window, checkPairs, "checkPairs");
  GLADE_HOOKUP_OBJECT (main_window, pairsButton, "pairsButton");
  GLADE_HOOKUP_OBJECT (main_window, alignment2, "alignment2");
  GLADE_HOOKUP_OBJECT (main_window, hbox9, "hbox9");
  GLADE_HOOKUP_OBJECT (main_window, image5, "image5");
  GLADE_HOOKUP_OBJECT (main_window, label15, "label15");
  GLADE_HOOKUP_OBJECT (main_window, pickObserveButton, "pickObserveButton");
  GLADE_HOOKUP_OBJECT (main_window, alignment10, "alignment10");
  GLADE_HOOKUP_OBJECT (main_window, hbox24, "hbox24");
  GLADE_HOOKUP_OBJECT (main_window, image19, "image19");
  GLADE_HOOKUP_OBJECT (main_window, label40, "label40");
  GLADE_HOOKUP_OBJECT (main_window, hbox16, "hbox16");
  GLADE_HOOKUP_OBJECT (main_window, saveButton, "saveButton");
  GLADE_HOOKUP_OBJECT (main_window, alignment14, "alignment14");
  GLADE_HOOKUP_OBJECT (main_window, hbox43, "hbox43");
  GLADE_HOOKUP_OBJECT (main_window, image34, "image34");
  GLADE_HOOKUP_OBJECT (main_window, label70, "label70");
  GLADE_HOOKUP_OBJECT (main_window, buttonQuit, "buttonQuit");
  GLADE_HOOKUP_OBJECT (main_window, visuAbout, "visuAbout");
  GLADE_HOOKUP_OBJECT (main_window, image12, "image12");
  GLADE_HOOKUP_OBJECT (main_window, label8, "label8");
  GLADE_HOOKUP_OBJECT_NO_REF (main_window, tooltips, "tooltips");

  return main_window;
}

GtkWidget*
create_saveDialog (void)
{
  GtkWidget *saveDialog;
  GdkPixbuf *saveDialog_icon_pixbuf;
  GtkWidget *dialog_vbox1;
  GtkWidget *hbox30;
  GtkWidget *image25;
  GtkWidget *vbox4;
  GtkWidget *labelSaveDialog;
  GtkWidget *notebookSave;
  GtkWidget *vbox14;
  GtkWidget *notebookResources;
  GtkWidget *alignment17;
  GtkWidget *vbox15;
  GtkWidget *label75;
  GtkWidget *filechooserwidgetResources;
  GtkWidget *alignment18;
  GtkWidget *buttonLoadResources;
  GtkWidget *image48;
  GtkWidget *alignment32;
  GtkWidget *vbox16;
  GtkWidget *label76;
  GtkWidget *hbox65;
  GtkWidget *alignment31;
  GtkWidget *comboboxentryResources;
  GtkWidget *buttonSaveResources;
  GtkWidget *checkLimitOnVisuData;
  GtkWidget *image49;
  GtkWidget *hbox55;
  GtkWidget *imageWarningResources;
  GtkWidget *statusbarResources;
  GtkWidget *labelResources;
  GtkWidget *vbox18;
  GtkWidget *hbox54;
  GtkWidget *image42;
  GtkWidget *label83;
  GtkWidget *hbox66;
  GtkWidget *alignment25;
  GtkWidget *comboboxentryParameters;
  GtkWidget *buttonSaveParameters;
  GtkWidget *hbox56;
  GtkWidget *imageWarningParameters;
  GtkWidget *statusbarParameters;
  GtkWidget *labelParameters;
  GtkWidget *frame6;
  GtkWidget *vbox17;
  GtkWidget *labelHelp;
  GtkWidget *labelHelpTips;
  GtkWidget *hbox51;
  GtkWidget *image40;
  GtkWidget *label80;
  GtkWidget *dialog_action_area1;
  GtkWidget *closeButtonSave;

  saveDialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (saveDialog), _("Save session"));
  gtk_window_set_position (GTK_WINDOW (saveDialog), GTK_WIN_POS_CENTER_ON_PARENT);
  gtk_window_set_modal (GTK_WINDOW (saveDialog), TRUE);
  gtk_window_set_default_size (GTK_WINDOW (saveDialog), 450, -1);
  saveDialog_icon_pixbuf = create_pixbuf ("icone-dialog.png");
  if (saveDialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (saveDialog), saveDialog_icon_pixbuf);
      gdk_pixbuf_unref (saveDialog_icon_pixbuf);
    }
  gtk_dialog_set_has_separator (GTK_DIALOG (saveDialog), FALSE);

  dialog_vbox1 = GTK_DIALOG (saveDialog)->vbox;
  gtk_widget_show (dialog_vbox1);

  hbox30 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox30);
  gtk_box_pack_start (GTK_BOX (dialog_vbox1), hbox30, TRUE, TRUE, 0);

  image25 = create_pixmap (saveDialog, "save-bandeau.png");
  gtk_widget_show (image25);
  gtk_box_pack_start (GTK_BOX (hbox30), image25, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (image25), 0.5, 1);
  gtk_misc_set_padding (GTK_MISC (image25), 10, 5);

  vbox4 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox4);
  gtk_box_pack_start (GTK_BOX (hbox30), vbox4, TRUE, TRUE, 0);

  labelSaveDialog = gtk_label_new (_("<span size=\"larger\"><b>Manage configuration files</b></span>"));
  gtk_widget_show (labelSaveDialog);
  gtk_box_pack_start (GTK_BOX (vbox4), labelSaveDialog, FALSE, FALSE, 1);
  gtk_label_set_use_markup (GTK_LABEL (labelSaveDialog), TRUE);

  notebookSave = gtk_notebook_new ();
  gtk_widget_show (notebookSave);
  gtk_box_pack_start (GTK_BOX (vbox4), notebookSave, TRUE, TRUE, 5);
  gtk_widget_set_size_request (notebookSave, 600, -1);

  vbox14 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox14);
  gtk_container_add (GTK_CONTAINER (notebookSave), vbox14);
  gtk_container_set_border_width (GTK_CONTAINER (vbox14), 2);

  notebookResources = gtk_notebook_new ();
  gtk_widget_show (notebookResources);
  gtk_box_pack_start (GTK_BOX (vbox14), notebookResources, TRUE, TRUE, 0);
  gtk_notebook_set_tab_pos (GTK_NOTEBOOK (notebookResources), GTK_POS_LEFT);

  alignment17 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment17);
  gtk_container_add (GTK_CONTAINER (notebookResources), alignment17);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment17), 0, 0, 15, 0);

  vbox15 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox15);
  gtk_container_add (GTK_CONTAINER (alignment17), vbox15);

  label75 = gtk_label_new (_("<b>Load resources from file</b>"));
  gtk_widget_show (label75);
  gtk_box_pack_start (GTK_BOX (vbox15), label75, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label75), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label75), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (label75), 25, 10);

  filechooserwidgetResources = gtk_file_chooser_widget_new (GTK_FILE_CHOOSER_ACTION_OPEN);
  gtk_widget_show (filechooserwidgetResources);
  gtk_box_pack_start (GTK_BOX (vbox15), filechooserwidgetResources, TRUE, TRUE, 0);
  gtk_widget_set_size_request (filechooserwidgetResources, -1, 250);

  alignment18 = gtk_alignment_new (0.9, 0.5, 0, 1);
  gtk_widget_show (alignment18);
  gtk_box_pack_start (GTK_BOX (vbox15), alignment18, FALSE, FALSE, 0);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment18), 3, 0, 0, 0);

  buttonLoadResources = gtk_button_new_from_stock ("gtk-open");
  gtk_widget_show (buttonLoadResources);
  gtk_container_add (GTK_CONTAINER (alignment18), buttonLoadResources);
  gtk_widget_set_sensitive (buttonLoadResources, FALSE);

  image48 = gtk_image_new_from_stock ("gtk-open", GTK_ICON_SIZE_LARGE_TOOLBAR);
  gtk_widget_show (image48);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebookResources), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebookResources), 0), image48);

  alignment32 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment32);
  gtk_container_add (GTK_CONTAINER (notebookResources), alignment32);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment32), 0, 0, 15, 0);

  vbox16 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox16);
  gtk_container_add (GTK_CONTAINER (alignment32), vbox16);

  label76 = gtk_label_new (_("<b>Save to file</b>"));
  gtk_widget_show (label76);
  gtk_box_pack_start (GTK_BOX (vbox16), label76, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label76), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label76), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (label76), 25, 10);

  hbox65 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox65);
  gtk_box_pack_start (GTK_BOX (vbox16), hbox65, FALSE, FALSE, 0);

  alignment31 = gtk_alignment_new (0.5, 0.5, 1, 0);
  gtk_widget_show (alignment31);
  gtk_box_pack_start (GTK_BOX (hbox65), alignment31, TRUE, TRUE, 0);

  comboboxentryResources = gtk_combo_box_entry_new_text ();
  gtk_widget_show (comboboxentryResources);
  gtk_container_add (GTK_CONTAINER (alignment31), comboboxentryResources);

  buttonSaveResources = gtk_button_new_from_stock ("gtk-save");
  gtk_widget_show (buttonSaveResources);
  gtk_box_pack_start (GTK_BOX (hbox65), buttonSaveResources, FALSE, FALSE, 5);

  checkLimitOnVisuData = gtk_check_button_new_with_mnemonic (_("Export resources related to rendered file only"));
  gtk_widget_show (checkLimitOnVisuData);
  gtk_box_pack_start (GTK_BOX (vbox16), checkLimitOnVisuData, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (checkLimitOnVisuData), 5);
  gtk_widget_set_sensitive (checkLimitOnVisuData, FALSE);

  image49 = gtk_image_new_from_stock ("gtk-save", GTK_ICON_SIZE_LARGE_TOOLBAR);
  gtk_widget_show (image49);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebookResources), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebookResources), 1), image49);

  hbox55 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox55);
  gtk_box_pack_end (GTK_BOX (vbox14), hbox55, FALSE, FALSE, 0);

  imageWarningResources = gtk_image_new_from_icon_name ("gtk-dialog-warning", GTK_ICON_SIZE_MENU);
  gtk_widget_show (imageWarningResources);
  gtk_box_pack_start (GTK_BOX (hbox55), imageWarningResources, FALSE, FALSE, 0);

  statusbarResources = gtk_statusbar_new ();
  gtk_widget_show (statusbarResources);
  gtk_box_pack_start (GTK_BOX (hbox55), statusbarResources, TRUE, TRUE, 0);
  gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (statusbarResources), FALSE);

  labelResources = gtk_label_new (_("<b>Resources</b>"));
  gtk_widget_show (labelResources);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebookSave), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebookSave), 0), labelResources);
  gtk_label_set_use_markup (GTK_LABEL (labelResources), TRUE);

  vbox18 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox18);
  gtk_container_add (GTK_CONTAINER (notebookSave), vbox18);
  gtk_container_set_border_width (GTK_CONTAINER (vbox18), 2);

  hbox54 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox54);
  gtk_box_pack_start (GTK_BOX (vbox18), hbox54, FALSE, FALSE, 3);

  image42 = gtk_image_new_from_stock ("gtk-floppy", GTK_ICON_SIZE_LARGE_TOOLBAR);
  gtk_widget_show (image42);
  gtk_box_pack_start (GTK_BOX (hbox54), image42, FALSE, FALSE, 0);

  label83 = gtk_label_new (_("Save to file"));
  gtk_widget_show (label83);
  gtk_box_pack_start (GTK_BOX (hbox54), label83, FALSE, FALSE, 0);
  gtk_misc_set_padding (GTK_MISC (label83), 5, 0);

  hbox66 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox66);
  gtk_box_pack_start (GTK_BOX (vbox18), hbox66, FALSE, FALSE, 0);

  alignment25 = gtk_alignment_new (0.5, 0.5, 1, 0);
  gtk_widget_show (alignment25);
  gtk_box_pack_start (GTK_BOX (hbox66), alignment25, TRUE, TRUE, 0);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment25), 0, 0, 15, 0);

  comboboxentryParameters = gtk_combo_box_entry_new_text ();
  gtk_widget_show (comboboxentryParameters);
  gtk_container_add (GTK_CONTAINER (alignment25), comboboxentryParameters);

  buttonSaveParameters = gtk_button_new_from_stock ("gtk-save");
  gtk_widget_show (buttonSaveParameters);
  gtk_box_pack_start (GTK_BOX (hbox66), buttonSaveParameters, FALSE, FALSE, 5);

  hbox56 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox56);
  gtk_box_pack_end (GTK_BOX (vbox18), hbox56, FALSE, FALSE, 0);

  imageWarningParameters = gtk_image_new_from_icon_name ("gtk-dialog-warning", GTK_ICON_SIZE_MENU);
  gtk_widget_show (imageWarningParameters);
  gtk_box_pack_start (GTK_BOX (hbox56), imageWarningParameters, FALSE, FALSE, 0);

  statusbarParameters = gtk_statusbar_new ();
  gtk_widget_show (statusbarParameters);
  gtk_box_pack_start (GTK_BOX (hbox56), statusbarParameters, TRUE, TRUE, 0);
  gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (statusbarParameters), FALSE);

  labelParameters = gtk_label_new (_("<b>Parameters</b>"));
  gtk_widget_show (labelParameters);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebookSave), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebookSave), 1), labelParameters);
  gtk_label_set_use_markup (GTK_LABEL (labelParameters), TRUE);

  frame6 = gtk_frame_new (NULL);
  gtk_widget_show (frame6);
  gtk_box_pack_end (GTK_BOX (vbox4), frame6, FALSE, FALSE, 0);

  vbox17 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox17);
  gtk_container_add (GTK_CONTAINER (frame6), vbox17);

  labelHelp = gtk_label_new (_("<span size=\"smaller\">When saving, if you just specify a directory '<span font_desc=\"courier\">dir/</span>', it will be save to '<span font_desc=\"courier\">dir/v_sim.[res][par]</span>' by default, ortherwise speficy a full path.</span>"));
  gtk_widget_show (labelHelp);
  gtk_box_pack_start (GTK_BOX (vbox17), labelHelp, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (labelHelp), TRUE);
  gtk_label_set_justify (GTK_LABEL (labelHelp), GTK_JUSTIFY_FILL);
  gtk_label_set_line_wrap (GTK_LABEL (labelHelp), TRUE);
  gtk_misc_set_alignment (GTK_MISC (labelHelp), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (labelHelp), 5, 5);

  labelHelpTips = gtk_label_new (_("<span size=\"smaller\"><u>Tips</u>: think to create a <span font_desc=\"courier\">~/.v_sim</span> directory and put your resources and parameters files in it. It is scanned at startup.</span>"));
  gtk_widget_show (labelHelpTips);
  gtk_box_pack_start (GTK_BOX (vbox17), labelHelpTips, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (labelHelpTips), TRUE);
  gtk_label_set_line_wrap (GTK_LABEL (labelHelpTips), TRUE);
  gtk_misc_set_alignment (GTK_MISC (labelHelpTips), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (labelHelpTips), 5, 5);

  hbox51 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox51);
  gtk_frame_set_label_widget (GTK_FRAME (frame6), hbox51);

  image40 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_SMALL_TOOLBAR);
  gtk_widget_show (image40);
  gtk_box_pack_start (GTK_BOX (hbox51), image40, TRUE, TRUE, 0);

  label80 = gtk_label_new (_("Help"));
  gtk_widget_show (label80);
  gtk_box_pack_start (GTK_BOX (hbox51), label80, FALSE, FALSE, 0);

  dialog_action_area1 = GTK_DIALOG (saveDialog)->action_area;
  gtk_widget_show (dialog_action_area1);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);

  closeButtonSave = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (closeButtonSave);
  gtk_dialog_add_action_widget (GTK_DIALOG (saveDialog), closeButtonSave, GTK_RESPONSE_CLOSE);
  GTK_WIDGET_SET_FLAGS (closeButtonSave, GTK_CAN_DEFAULT);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (saveDialog, saveDialog, "saveDialog");
  GLADE_HOOKUP_OBJECT_NO_REF (saveDialog, dialog_vbox1, "dialog_vbox1");
  GLADE_HOOKUP_OBJECT (saveDialog, hbox30, "hbox30");
  GLADE_HOOKUP_OBJECT (saveDialog, image25, "image25");
  GLADE_HOOKUP_OBJECT (saveDialog, vbox4, "vbox4");
  GLADE_HOOKUP_OBJECT (saveDialog, labelSaveDialog, "labelSaveDialog");
  GLADE_HOOKUP_OBJECT (saveDialog, notebookSave, "notebookSave");
  GLADE_HOOKUP_OBJECT (saveDialog, vbox14, "vbox14");
  GLADE_HOOKUP_OBJECT (saveDialog, notebookResources, "notebookResources");
  GLADE_HOOKUP_OBJECT (saveDialog, alignment17, "alignment17");
  GLADE_HOOKUP_OBJECT (saveDialog, vbox15, "vbox15");
  GLADE_HOOKUP_OBJECT (saveDialog, label75, "label75");
  GLADE_HOOKUP_OBJECT (saveDialog, filechooserwidgetResources, "filechooserwidgetResources");
  GLADE_HOOKUP_OBJECT (saveDialog, alignment18, "alignment18");
  GLADE_HOOKUP_OBJECT (saveDialog, buttonLoadResources, "buttonLoadResources");
  GLADE_HOOKUP_OBJECT (saveDialog, image48, "image48");
  GLADE_HOOKUP_OBJECT (saveDialog, alignment32, "alignment32");
  GLADE_HOOKUP_OBJECT (saveDialog, vbox16, "vbox16");
  GLADE_HOOKUP_OBJECT (saveDialog, label76, "label76");
  GLADE_HOOKUP_OBJECT (saveDialog, hbox65, "hbox65");
  GLADE_HOOKUP_OBJECT (saveDialog, alignment31, "alignment31");
  GLADE_HOOKUP_OBJECT (saveDialog, comboboxentryResources, "comboboxentryResources");
  GLADE_HOOKUP_OBJECT (saveDialog, buttonSaveResources, "buttonSaveResources");
  GLADE_HOOKUP_OBJECT (saveDialog, checkLimitOnVisuData, "checkLimitOnVisuData");
  GLADE_HOOKUP_OBJECT (saveDialog, image49, "image49");
  GLADE_HOOKUP_OBJECT (saveDialog, hbox55, "hbox55");
  GLADE_HOOKUP_OBJECT (saveDialog, imageWarningResources, "imageWarningResources");
  GLADE_HOOKUP_OBJECT (saveDialog, statusbarResources, "statusbarResources");
  GLADE_HOOKUP_OBJECT (saveDialog, labelResources, "labelResources");
  GLADE_HOOKUP_OBJECT (saveDialog, vbox18, "vbox18");
  GLADE_HOOKUP_OBJECT (saveDialog, hbox54, "hbox54");
  GLADE_HOOKUP_OBJECT (saveDialog, image42, "image42");
  GLADE_HOOKUP_OBJECT (saveDialog, label83, "label83");
  GLADE_HOOKUP_OBJECT (saveDialog, hbox66, "hbox66");
  GLADE_HOOKUP_OBJECT (saveDialog, alignment25, "alignment25");
  GLADE_HOOKUP_OBJECT (saveDialog, comboboxentryParameters, "comboboxentryParameters");
  GLADE_HOOKUP_OBJECT (saveDialog, buttonSaveParameters, "buttonSaveParameters");
  GLADE_HOOKUP_OBJECT (saveDialog, hbox56, "hbox56");
  GLADE_HOOKUP_OBJECT (saveDialog, imageWarningParameters, "imageWarningParameters");
  GLADE_HOOKUP_OBJECT (saveDialog, statusbarParameters, "statusbarParameters");
  GLADE_HOOKUP_OBJECT (saveDialog, labelParameters, "labelParameters");
  GLADE_HOOKUP_OBJECT (saveDialog, frame6, "frame6");
  GLADE_HOOKUP_OBJECT (saveDialog, vbox17, "vbox17");
  GLADE_HOOKUP_OBJECT (saveDialog, labelHelp, "labelHelp");
  GLADE_HOOKUP_OBJECT (saveDialog, labelHelpTips, "labelHelpTips");
  GLADE_HOOKUP_OBJECT (saveDialog, hbox51, "hbox51");
  GLADE_HOOKUP_OBJECT (saveDialog, image40, "image40");
  GLADE_HOOKUP_OBJECT (saveDialog, label80, "label80");
  GLADE_HOOKUP_OBJECT_NO_REF (saveDialog, dialog_action_area1, "dialog_action_area1");
  GLADE_HOOKUP_OBJECT (saveDialog, closeButtonSave, "closeButtonSave");

  return saveDialog;
}

GtkWidget*
create_alertDialog (void)
{
  GtkWidget *alertDialog;
  GtkWidget *dialog_vbox2;
  GtkWidget *hbox18;
  GtkWidget *image13;
  GtkWidget *vbox19;
  GtkWidget *label85;
  GtkWidget *alertLabel;
  GtkWidget *dialog_action_area2;
  GtkWidget *buttonAlert;

  alertDialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (alertDialog), _("Alert! Something goes wrong."));
  gtk_window_set_position (GTK_WINDOW (alertDialog), GTK_WIN_POS_CENTER);
  gtk_window_set_modal (GTK_WINDOW (alertDialog), TRUE);
  gtk_window_set_resizable (GTK_WINDOW (alertDialog), FALSE);
  gtk_window_set_type_hint (GTK_WINDOW (alertDialog), GDK_WINDOW_TYPE_HINT_DIALOG);

  dialog_vbox2 = GTK_DIALOG (alertDialog)->vbox;
  gtk_widget_show (dialog_vbox2);

  hbox18 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox18);
  gtk_box_pack_start (GTK_BOX (dialog_vbox2), hbox18, TRUE, TRUE, 5);

  image13 = gtk_image_new_from_stock ("gtk-dialog-warning", GTK_ICON_SIZE_DIALOG);
  gtk_widget_show (image13);
  gtk_box_pack_start (GTK_BOX (hbox18), image13, TRUE, TRUE, 0);
  gtk_misc_set_padding (GTK_MISC (image13), 10, 0);

  vbox19 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox19);
  gtk_box_pack_start (GTK_BOX (hbox18), vbox19, FALSE, FALSE, 0);

  label85 = gtk_label_new (_("<span size=\"larger\"><b>Warning!</b></span>"));
  gtk_widget_show (label85);
  gtk_box_pack_start (GTK_BOX (vbox19), label85, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label85), TRUE);
  gtk_misc_set_padding (GTK_MISC (label85), 0, 10);

  alertLabel = gtk_label_new (_("Text to explain what goes wrong."));
  gtk_widget_show (alertLabel);
  gtk_box_pack_start (GTK_BOX (vbox19), alertLabel, TRUE, TRUE, 0);
  gtk_widget_set_size_request (alertLabel, 250, -1);
  gtk_label_set_justify (GTK_LABEL (alertLabel), GTK_JUSTIFY_FILL);
  gtk_label_set_line_wrap (GTK_LABEL (alertLabel), TRUE);

  dialog_action_area2 = GTK_DIALOG (alertDialog)->action_area;
  gtk_widget_show (dialog_action_area2);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END);

  buttonAlert = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (buttonAlert);
  gtk_dialog_add_action_widget (GTK_DIALOG (alertDialog), buttonAlert, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (buttonAlert, GTK_CAN_DEFAULT);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (alertDialog, alertDialog, "alertDialog");
  GLADE_HOOKUP_OBJECT_NO_REF (alertDialog, dialog_vbox2, "dialog_vbox2");
  GLADE_HOOKUP_OBJECT (alertDialog, hbox18, "hbox18");
  GLADE_HOOKUP_OBJECT (alertDialog, image13, "image13");
  GLADE_HOOKUP_OBJECT (alertDialog, vbox19, "vbox19");
  GLADE_HOOKUP_OBJECT (alertDialog, label85, "label85");
  GLADE_HOOKUP_OBJECT (alertDialog, alertLabel, "alertLabel");
  GLADE_HOOKUP_OBJECT_NO_REF (alertDialog, dialog_action_area2, "dialog_action_area2");
  GLADE_HOOKUP_OBJECT (alertDialog, buttonAlert, "buttonAlert");

  return alertDialog;
}

GtkWidget*
create_alertDialogLong (void)
{
  GtkWidget *alertDialogLong;
  GtkWidget *vbox5;
  GtkWidget *hbox19;
  GtkWidget *image14;
  GtkWidget *vbox6;
  GtkWidget *label86;
  GtkWidget *label23;
  GtkWidget *scrolledwindow1;
  GtkWidget *alertText;
  GtkWidget *hbuttonbox1;
  GtkWidget *buttonAlert;

  alertDialogLong = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (alertDialogLong), _("Alert! Something goes wrong."));
  gtk_window_set_position (GTK_WINDOW (alertDialogLong), GTK_WIN_POS_CENTER);
  gtk_window_set_modal (GTK_WINDOW (alertDialogLong), TRUE);
  gtk_window_set_resizable (GTK_WINDOW (alertDialogLong), FALSE);
  gtk_window_set_type_hint (GTK_WINDOW (alertDialogLong), GDK_WINDOW_TYPE_HINT_DIALOG);

  vbox5 = GTK_DIALOG (alertDialogLong)->vbox;
  gtk_widget_show (vbox5);

  hbox19 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox19);
  gtk_box_pack_start (GTK_BOX (vbox5), hbox19, TRUE, TRUE, 0);

  image14 = gtk_image_new_from_stock ("gtk-dialog-warning", GTK_ICON_SIZE_DIALOG);
  gtk_widget_show (image14);
  gtk_box_pack_start (GTK_BOX (hbox19), image14, TRUE, TRUE, 0);
  gtk_misc_set_padding (GTK_MISC (image14), 10, 0);

  vbox6 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox6);
  gtk_box_pack_start (GTK_BOX (hbox19), vbox6, FALSE, FALSE, 0);

  label86 = gtk_label_new (_("<span size=\"larger\"><b>Warning!</b></span>"));
  gtk_widget_show (label86);
  gtk_box_pack_start (GTK_BOX (vbox6), label86, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label86), TRUE);
  gtk_misc_set_padding (GTK_MISC (label86), 0, 10);

  label23 = gtk_label_new (_("Output errors :"));
  gtk_widget_show (label23);
  gtk_box_pack_start (GTK_BOX (vbox6), label23, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (label23), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (label23), 10, 2);

  scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow1);
  gtk_box_pack_start (GTK_BOX (vbox6), scrolledwindow1, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_SHADOW_ETCHED_IN);

  alertText = gtk_text_view_new ();
  gtk_widget_show (alertText);
  gtk_container_add (GTK_CONTAINER (scrolledwindow1), alertText);
  gtk_widget_set_size_request (alertText, 280, 210);
  gtk_text_view_set_editable (GTK_TEXT_VIEW (alertText), FALSE);
  gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (alertText), GTK_WRAP_WORD);
  gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (alertText), FALSE);

  hbuttonbox1 = GTK_DIALOG (alertDialogLong)->action_area;
  gtk_widget_show (hbuttonbox1);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (hbuttonbox1), GTK_BUTTONBOX_END);

  buttonAlert = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (buttonAlert);
  gtk_dialog_add_action_widget (GTK_DIALOG (alertDialogLong), buttonAlert, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (buttonAlert, GTK_CAN_DEFAULT);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (alertDialogLong, alertDialogLong, "alertDialogLong");
  GLADE_HOOKUP_OBJECT_NO_REF (alertDialogLong, vbox5, "vbox5");
  GLADE_HOOKUP_OBJECT (alertDialogLong, hbox19, "hbox19");
  GLADE_HOOKUP_OBJECT (alertDialogLong, image14, "image14");
  GLADE_HOOKUP_OBJECT (alertDialogLong, vbox6, "vbox6");
  GLADE_HOOKUP_OBJECT (alertDialogLong, label86, "label86");
  GLADE_HOOKUP_OBJECT (alertDialogLong, label23, "label23");
  GLADE_HOOKUP_OBJECT (alertDialogLong, scrolledwindow1, "scrolledwindow1");
  GLADE_HOOKUP_OBJECT (alertDialogLong, alertText, "alertText");
  GLADE_HOOKUP_OBJECT_NO_REF (alertDialogLong, hbuttonbox1, "hbuttonbox1");
  GLADE_HOOKUP_OBJECT (alertDialogLong, buttonAlert, "buttonAlert");

  return alertDialogLong;
}

GtkWidget*
create_observeDialog (void)
{
  GtkWidget *observeDialog;
  GdkPixbuf *observeDialog_icon_pixbuf;
  GtkWidget *dialog_vbox3;
  GtkWidget *hbox20;
  GtkWidget *image15;
  GtkWidget *vbox20;
  GtkWidget *hbox60;
  GtkWidget *radioObserve;
  GSList *radioObserve_group = NULL;
  GtkWidget *alignment8;
  GtkWidget *hbox21;
  GtkWidget *image16;
  GtkWidget *labelObserve;
  GtkWidget *hboxObserve;
  GtkWidget *label66;
  GtkWidget *radioObserveConstrained;
  GSList *radioObserveConstrained_group = NULL;
  GtkWidget *radioObserveWalker;
  GtkWidget *label67;
  GtkWidget *tableObserve;
  GtkWidget *label31;
  GtkWidget *label34;
  GtkWidget *label33;
  GtkWidget *labelTranslation;
  GtkWidget *label36;
  GtkWidget *label35;
  GtkWidget *labelZoom;
  GtkWidget *label58;
  GtkObject *spinDy_adj;
  GtkWidget *spinDy;
  GtkObject *spinOmega_adj;
  GtkWidget *spinOmega;
  GtkObject *spinPersp_adj;
  GtkWidget *spinPersp;
  GtkObject *spinPhi_adj;
  GtkWidget *spinPhi;
  GtkObject *spinDx_adj;
  GtkWidget *spinDx;
  GtkObject *spinGross_adj;
  GtkWidget *spinGross;
  GtkObject *spinTheta_adj;
  GtkWidget *spinTheta;
  GtkWidget *label32;
  GtkWidget *notebookAction;
  GtkWidget *vbox7;
  GtkWidget *radioPick;
  GtkWidget *alignment9;
  GtkWidget *hbox22;
  GtkWidget *image17;
  GtkWidget *labelPick;
  GtkWidget *vpaned1;
  GtkWidget *scrolledwindow6;
  GtkWidget *viewportPick;
  GtkWidget *vbox24;
  GtkWidget *pickInfo;
  GtkWidget *pickComment;
  GtkWidget *vbox25;
  GtkWidget *hbox64;
  GtkWidget *label117;
  GtkWidget *image47;
  GtkWidget *label118;
  GtkWidget *alignment30;
  GtkWidget *scrolledwindow5;
  GtkWidget *treeviewNodeData;
  GtkWidget *hbox57;
  GtkWidget *alignment26;
  GtkWidget *checkDrawDistance;
  GtkWidget *buttonEraseDistances;
  GtkWidget *label87;
  GtkWidget *vbox21;
  GtkWidget *radioMove;
  GtkWidget *alignment28;
  GtkWidget *hbox59;
  GtkWidget *image44;
  GtkWidget *label111;
  GtkWidget *hbox58;
  GtkWidget *label90;
  GtkWidget *labelMoveId;
  GtkWidget *alignment27;
  GtkWidget *tableMoveNodes;
  GtkWidget *label92;
  GtkWidget *label93;
  GtkWidget *label94;
  GtkWidget *label95;
  GtkWidget *labelOriginalX;
  GtkWidget *labelOriginalY;
  GtkWidget *labelOriginalZ;
  GtkWidget *label102;
  GtkWidget *buttonMoveOriginal;
  GtkWidget *image43;
  GtkWidget *label103;
  GtkWidget *label104;
  GtkWidget *hseparator4;
  GtkWidget *labelScreenX_X;
  GtkWidget *labelScreenX_Y;
  GtkWidget *labelScreenX_Z;
  GtkWidget *labelScreenY_Z;
  GtkWidget *labelScreenY_Y;
  GtkWidget *labelScreenY_X;
  GtkWidget *label88;
  GtkWidget *vbox22;
  GtkWidget *radioSelect;
  GtkWidget *alignment29;
  GtkWidget *hbox62;
  GtkWidget *image45;
  GtkWidget *label113;
  GtkWidget *vboxMarkNodes;
  GtkWidget *hbox61;
  GtkWidget *label112;
  GtkWidget *buttonEraseMarks;
  GtkWidget *label89;
  GtkWidget *checkAllowTranslations;
  GtkWidget *hboxTranslations;
  GtkWidget *label63;
  GtkObject *spinTransX_adj;
  GtkWidget *spinTransX;
  GtkWidget *label64;
  GtkObject *spinTransY_adj;
  GtkWidget *spinTransY;
  GtkWidget *label65;
  GtkObject *spinTransZ_adj;
  GtkWidget *spinTransZ;
  GtkWidget *frame2;
  GtkWidget *labelInfoObservePick;
  GtkWidget *hbox23;
  GtkWidget *image18;
  GtkWidget *label39;
  GtkWidget *dialog_action_area3;
  GtkWidget *buttonBackToCommandPanel;
  GtkWidget *alignment12;
  GtkWidget *hbox41;
  GtkWidget *image31;
  GtkWidget *label68;
  GtkAccelGroup *accel_group;
  GtkTooltips *tooltips;

  tooltips = gtk_tooltips_new ();

  accel_group = gtk_accel_group_new ();

  observeDialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (observeDialog), _("Pick and observe session"));
  gtk_window_set_position (GTK_WINDOW (observeDialog), GTK_WIN_POS_CENTER_ON_PARENT);
  observeDialog_icon_pixbuf = create_pixbuf ("icone-dialog.png");
  if (observeDialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (observeDialog), observeDialog_icon_pixbuf);
      gdk_pixbuf_unref (observeDialog_icon_pixbuf);
    }
  gtk_dialog_set_has_separator (GTK_DIALOG (observeDialog), FALSE);

  dialog_vbox3 = GTK_DIALOG (observeDialog)->vbox;
  gtk_widget_show (dialog_vbox3);

  hbox20 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox20);
  gtk_box_pack_start (GTK_BOX (dialog_vbox3), hbox20, TRUE, TRUE, 0);

  image15 = create_pixmap (observeDialog, "observe-bandeau.png");
  gtk_widget_show (image15);
  gtk_box_pack_start (GTK_BOX (hbox20), image15, FALSE, FALSE, 10);
  gtk_widget_set_size_request (image15, -1, 450);
  gtk_misc_set_alignment (GTK_MISC (image15), 0.5, 1);

  vbox20 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox20);
  gtk_box_pack_start (GTK_BOX (hbox20), vbox20, TRUE, TRUE, 0);

  hbox60 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox60);
  gtk_box_pack_start (GTK_BOX (vbox20), hbox60, FALSE, FALSE, 0);

  radioObserve = gtk_radio_button_new (NULL);
  gtk_widget_show (radioObserve);
  gtk_box_pack_start (GTK_BOX (hbox60), radioObserve, TRUE, TRUE, 0);
  gtk_widget_add_accelerator (radioObserve, "clicked", accel_group,
                              GDK_o, (GdkModifierType) GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radioObserve), radioObserve_group);
  radioObserve_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radioObserve));

  alignment8 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment8);
  gtk_container_add (GTK_CONTAINER (radioObserve), alignment8);

  hbox21 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox21);
  gtk_container_add (GTK_CONTAINER (alignment8), hbox21);

  image16 = gtk_image_new_from_stock ("gtk-zoom-fit", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image16);
  gtk_box_pack_start (GTK_BOX (hbox21), image16, FALSE, FALSE, 0);

  labelObserve = gtk_label_new_with_mnemonic (_("Observe"));
  gtk_widget_show (labelObserve);
  gtk_box_pack_start (GTK_BOX (hbox21), labelObserve, FALSE, FALSE, 0);

  hboxObserve = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hboxObserve);
  gtk_box_pack_start (GTK_BOX (hbox60), hboxObserve, FALSE, FALSE, 0);

  label66 = gtk_label_new ("(");
  gtk_widget_show (label66);
  gtk_box_pack_start (GTK_BOX (hboxObserve), label66, FALSE, FALSE, 0);

  radioObserveConstrained = gtk_radio_button_new_with_mnemonic (NULL, _("constrained"));
  gtk_widget_show (radioObserveConstrained);
  gtk_box_pack_start (GTK_BOX (hboxObserve), radioObserveConstrained, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, radioObserveConstrained, _("Movement are along meridians when the mouse is dragged along y axis and along parallels when the movement is along x axis."), NULL);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radioObserveConstrained), radioObserveConstrained_group);
  radioObserveConstrained_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radioObserveConstrained));

  radioObserveWalker = gtk_radio_button_new_with_mnemonic (NULL, _("walker"));
  gtk_widget_show (radioObserveWalker);
  gtk_box_pack_start (GTK_BOX (hboxObserve), radioObserveWalker, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, radioObserveWalker, _("Movements are those of a walking ant on a sphere, when mouse move along y axis, the ant goes strait on, when mouse is dragged along x axis, the ant translates on its right or on its left."), NULL);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radioObserveWalker), radioObserveConstrained_group);
  radioObserveConstrained_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radioObserveWalker));

  label67 = gtk_label_new (")");
  gtk_widget_show (label67);
  gtk_box_pack_start (GTK_BOX (hboxObserve), label67, FALSE, FALSE, 0);

  tableObserve = gtk_table_new (3, 6, FALSE);
  gtk_widget_show (tableObserve);
  gtk_box_pack_start (GTK_BOX (vbox20), tableObserve, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (tableObserve), 3);
  gtk_table_set_col_spacings (GTK_TABLE (tableObserve), 2);

  label31 = gtk_label_new (_("theta :"));
  gtk_widget_show (label31);
  gtk_table_attach (GTK_TABLE (tableObserve), label31, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label31), 1, 0.5);

  label34 = gtk_label_new (_("dy :"));
  gtk_widget_show (label34);
  gtk_table_attach (GTK_TABLE (tableObserve), label34, 4, 5, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label34), 1, 0.5);

  label33 = gtk_label_new (_("dx :"));
  gtk_widget_show (label33);
  gtk_table_attach (GTK_TABLE (tableObserve), label33, 2, 3, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label33), 1, 0.5);

  labelTranslation = gtk_label_new (_("Translations"));
  gtk_widget_show (labelTranslation);
  gtk_table_attach (GTK_TABLE (tableObserve), labelTranslation, 0, 2, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (labelTranslation), 0, 0.5);

  label36 = gtk_label_new (_("persp. :"));
  gtk_widget_show (label36);
  gtk_table_attach (GTK_TABLE (tableObserve), label36, 4, 5, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label36), 1, 0.5);

  label35 = gtk_label_new (_("zoom :"));
  gtk_widget_show (label35);
  gtk_table_attach (GTK_TABLE (tableObserve), label35, 2, 3, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label35), 1, 0.5);

  labelZoom = gtk_label_new (_("Scale"));
  gtk_widget_show (labelZoom);
  gtk_table_attach (GTK_TABLE (tableObserve), labelZoom, 0, 2, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (labelZoom), 0, 0.5);

  label58 = gtk_label_new (_("omega :"));
  gtk_widget_show (label58);
  gtk_table_attach (GTK_TABLE (tableObserve), label58, 4, 5, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label58), 1, 0.5);

  spinDy_adj = gtk_adjustment_new (0.5, -3, 3, 0.00499999988824, 0.10000000149, 0.10000000149);
  spinDy = gtk_spin_button_new (GTK_ADJUSTMENT (spinDy_adj), 0.10000000149, 3);
  gtk_widget_show (spinDy);
  gtk_table_attach (GTK_TABLE (tableObserve), spinDy, 5, 6, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinDy), TRUE);

  spinOmega_adj = gtk_adjustment_new (0, -360, 360, 0.10000000149, 10, 10);
  spinOmega = gtk_spin_button_new (GTK_ADJUSTMENT (spinOmega_adj), 1, 1);
  gtk_widget_show (spinOmega);
  gtk_table_attach (GTK_TABLE (tableObserve), spinOmega, 5, 6, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinOmega), TRUE);

  spinPersp_adj = gtk_adjustment_new (5, 1.10000002384, 1000, 0.10000000149, 10, 10);
  spinPersp = gtk_spin_button_new (GTK_ADJUSTMENT (spinPersp_adj), 1, 1);
  gtk_widget_show (spinPersp);
  gtk_table_attach (GTK_TABLE (tableObserve), spinPersp, 5, 6, 2, 3,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinPersp), TRUE);

  spinPhi_adj = gtk_adjustment_new (-50, -360, 360, 0.10000000149, 10, 10);
  spinPhi = gtk_spin_button_new (GTK_ADJUSTMENT (spinPhi_adj), 1, 1);
  gtk_widget_show (spinPhi);
  gtk_table_attach (GTK_TABLE (tableObserve), spinPhi, 3, 4, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinPhi), TRUE);

  spinDx_adj = gtk_adjustment_new (0.5, -3, 3, 0.00499999988824, 0.10000000149, 0.10000000149);
  spinDx = gtk_spin_button_new (GTK_ADJUSTMENT (spinDx_adj), 0.10000000149, 3);
  gtk_widget_show (spinDx);
  gtk_table_attach (GTK_TABLE (tableObserve), spinDx, 3, 4, 1, 2,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinDx), TRUE);

  spinGross_adj = gtk_adjustment_new (1, 0.019999999553, 999, 0.00999999977648, 0.5, 0.5);
  spinGross = gtk_spin_button_new (GTK_ADJUSTMENT (spinGross_adj), 0.10000000149, 2);
  gtk_widget_show (spinGross);
  gtk_table_attach (GTK_TABLE (tableObserve), spinGross, 3, 4, 2, 3,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinGross), TRUE);

  spinTheta_adj = gtk_adjustment_new (40, -360, 360, 0.10000000149, 10, 10);
  spinTheta = gtk_spin_button_new (GTK_ADJUSTMENT (spinTheta_adj), 1, 1);
  gtk_widget_show (spinTheta);
  gtk_table_attach (GTK_TABLE (tableObserve), spinTheta, 1, 2, 0, 1,
                    (GtkAttachOptions) (0),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinTheta), TRUE);

  label32 = gtk_label_new (_("phi :"));
  gtk_widget_show (label32);
  gtk_table_attach (GTK_TABLE (tableObserve), label32, 2, 3, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label32), 1, 0.5);

  notebookAction = gtk_notebook_new ();
  gtk_widget_show (notebookAction);
  gtk_box_pack_start (GTK_BOX (vbox20), notebookAction, TRUE, TRUE, 0);
  gtk_notebook_set_scrollable (GTK_NOTEBOOK (notebookAction), TRUE);

  vbox7 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox7);
  gtk_container_add (GTK_CONTAINER (notebookAction), vbox7);

  radioPick = gtk_radio_button_new (NULL);
  gtk_widget_show (radioPick);
  gtk_box_pack_start (GTK_BOX (vbox7), radioPick, FALSE, FALSE, 0);
  gtk_widget_add_accelerator (radioPick, "clicked", accel_group,
                              GDK_p, (GdkModifierType) GDK_CONTROL_MASK,
                              GTK_ACCEL_VISIBLE);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radioPick), radioObserve_group);
  radioObserve_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radioPick));

  alignment9 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment9);
  gtk_container_add (GTK_CONTAINER (radioPick), alignment9);

  hbox22 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox22);
  gtk_container_add (GTK_CONTAINER (alignment9), hbox22);

  image17 = gtk_image_new_from_stock ("gtk-color-picker", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image17);
  gtk_box_pack_start (GTK_BOX (hbox22), image17, FALSE, FALSE, 0);

  labelPick = gtk_label_new_with_mnemonic (_("Pick"));
  gtk_widget_show (labelPick);
  gtk_box_pack_start (GTK_BOX (hbox22), labelPick, FALSE, FALSE, 0);

  vpaned1 = gtk_vpaned_new ();
  gtk_widget_show (vpaned1);
  gtk_box_pack_start (GTK_BOX (vbox7), vpaned1, TRUE, TRUE, 0);
  gtk_paned_set_position (GTK_PANED (vpaned1), 0);

  scrolledwindow6 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow6);
  gtk_paned_pack1 (GTK_PANED (vpaned1), scrolledwindow6, FALSE, FALSE);
  gtk_widget_set_size_request (scrolledwindow6, -1, 125);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow6), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);

  viewportPick = gtk_viewport_new (NULL, NULL);
  gtk_widget_show (viewportPick);
  gtk_container_add (GTK_CONTAINER (scrolledwindow6), viewportPick);

  vbox24 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox24);
  gtk_container_add (GTK_CONTAINER (viewportPick), vbox24);

  pickInfo = gtk_label_new ("");
  gtk_widget_show (pickInfo);
  gtk_box_pack_start (GTK_BOX (vbox24), pickInfo, FALSE, FALSE, 0);
  GTK_WIDGET_SET_FLAGS (pickInfo, GTK_CAN_FOCUS);
  gtk_label_set_line_wrap (GTK_LABEL (pickInfo), TRUE);
  gtk_label_set_selectable (GTK_LABEL (pickInfo), TRUE);
  gtk_misc_set_alignment (GTK_MISC (pickInfo), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (pickInfo), 15, 0);

  pickComment = gtk_label_new ("");
  gtk_widget_show (pickComment);
  gtk_box_pack_start (GTK_BOX (vbox24), pickComment, FALSE, FALSE, 0);
  gtk_label_set_justify (GTK_LABEL (pickComment), GTK_JUSTIFY_CENTER);
  gtk_label_set_line_wrap (GTK_LABEL (pickComment), TRUE);

  vbox25 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox25);
  gtk_paned_pack2 (GTK_PANED (vpaned1), vbox25, TRUE, TRUE);

  hbox64 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox64);
  gtk_box_pack_start (GTK_BOX (vbox25), hbox64, FALSE, FALSE, 0);

  label117 = gtk_label_new (_("Node associated data"));
  gtk_widget_show (label117);
  gtk_box_pack_start (GTK_BOX (hbox64), label117, TRUE, TRUE, 0);
  gtk_misc_set_alignment (GTK_MISC (label117), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (label117), 0, 2);

  image47 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_MENU);
  gtk_widget_show (image47);
  gtk_box_pack_start (GTK_BOX (hbox64), image47, FALSE, FALSE, 0);

  label118 = gtk_label_new (_("<span size=\"smaller\">Values in blue are editable.</span>"));
  gtk_widget_show (label118);
  gtk_box_pack_start (GTK_BOX (hbox64), label118, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label118), TRUE);
  gtk_misc_set_padding (GTK_MISC (label118), 3, 0);

  alignment30 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment30);
  gtk_box_pack_start (GTK_BOX (vbox25), alignment30, TRUE, TRUE, 0);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment30), 0, 0, 10, 10);

  scrolledwindow5 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow5);
  gtk_container_add (GTK_CONTAINER (alignment30), scrolledwindow5);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow5), GTK_SHADOW_IN);

  treeviewNodeData = gtk_tree_view_new ();
  gtk_widget_show (treeviewNodeData);
  gtk_container_add (GTK_CONTAINER (scrolledwindow5), treeviewNodeData);
  gtk_widget_set_size_request (treeviewNodeData, -1, 100);

  hbox57 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox57);
  gtk_box_pack_start (GTK_BOX (vbox7), hbox57, FALSE, FALSE, 0);

  alignment26 = gtk_alignment_new (0.5, 1, 1, 0);
  gtk_widget_show (alignment26);
  gtk_box_pack_start (GTK_BOX (hbox57), alignment26, TRUE, TRUE, 0);

  checkDrawDistance = gtk_check_button_new_with_mnemonic (_("Draw persistent distance informations"));
  gtk_widget_show (checkDrawDistance);
  gtk_container_add (GTK_CONTAINER (alignment26), checkDrawDistance);
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (checkDrawDistance), TRUE);

  buttonEraseDistances = gtk_button_new_from_stock ("gtk-clear");
  gtk_widget_show (buttonEraseDistances);
  gtk_box_pack_start (GTK_BOX (hbox57), buttonEraseDistances, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, buttonEraseDistances, _("Remove all drawn distance marks."), NULL);
  gtk_button_set_focus_on_click (GTK_BUTTON (buttonEraseDistances), FALSE);

  label87 = gtk_label_new (_("Pick"));
  gtk_widget_show (label87);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebookAction), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebookAction), 0), label87);

  vbox21 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox21);
  gtk_container_add (GTK_CONTAINER (notebookAction), vbox21);

  radioMove = gtk_radio_button_new (NULL);
  gtk_widget_show (radioMove);
  gtk_box_pack_start (GTK_BOX (vbox21), radioMove, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radioMove), radioObserve_group);
  radioObserve_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radioMove));

  alignment28 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment28);
  gtk_container_add (GTK_CONTAINER (radioMove), alignment28);

  hbox59 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox59);
  gtk_container_add (GTK_CONTAINER (alignment28), hbox59);

  image44 = gtk_image_new_from_stock ("gtk-jump-to", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image44);
  gtk_box_pack_start (GTK_BOX (hbox59), image44, FALSE, FALSE, 0);

  label111 = gtk_label_new_with_mnemonic (_("Move nodes"));
  gtk_widget_show (label111);
  gtk_box_pack_start (GTK_BOX (hbox59), label111, FALSE, FALSE, 0);

  hbox58 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox58);
  gtk_box_pack_start (GTK_BOX (vbox21), hbox58, FALSE, FALSE, 0);

  label90 = gtk_label_new (_("<b>Selected node:</b>"));
  gtk_widget_show (label90);
  gtk_box_pack_start (GTK_BOX (hbox58), label90, TRUE, TRUE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label90), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label90), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (label90), 0, 10);

  labelMoveId = gtk_label_new ("id");
  gtk_widget_show (labelMoveId);
  gtk_box_pack_start (GTK_BOX (hbox58), labelMoveId, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (labelMoveId), TRUE);
  gtk_misc_set_padding (GTK_MISC (labelMoveId), 15, 0);

  alignment27 = gtk_alignment_new (0.5, 0.5, 1, 1);
  gtk_widget_show (alignment27);
  gtk_box_pack_start (GTK_BOX (vbox21), alignment27, FALSE, FALSE, 0);
  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment27), 0, 0, 0, 15);

  tableMoveNodes = gtk_table_new (6, 5, FALSE);
  gtk_widget_show (tableMoveNodes);
  gtk_container_add (GTK_CONTAINER (alignment27), tableMoveNodes);
  gtk_table_set_row_spacings (GTK_TABLE (tableMoveNodes), 5);
  gtk_table_set_col_spacings (GTK_TABLE (tableMoveNodes), 5);

  label92 = gtk_label_new (_("Original position:"));
  gtk_widget_show (label92);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), label92, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_EXPAND | GTK_SHRINK | GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_use_markup (GTK_LABEL (label92), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label92), 1, 0.5);
  gtk_misc_set_padding (GTK_MISC (label92), 15, 0);

  label93 = gtk_label_new ("<b>x</b>");
  gtk_widget_show (label93);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), label93, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_use_markup (GTK_LABEL (label93), TRUE);

  label94 = gtk_label_new ("<b>y</b>");
  gtk_widget_show (label94);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), label94, 2, 3, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_use_markup (GTK_LABEL (label94), TRUE);

  label95 = gtk_label_new ("<b>z</b>");
  gtk_widget_show (label95);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), label95, 3, 4, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_use_markup (GTK_LABEL (label95), TRUE);

  labelOriginalX = gtk_label_new ("");
  gtk_widget_show (labelOriginalX);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), labelOriginalX, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (labelOriginalX), 0, 0.5);

  labelOriginalY = gtk_label_new ("");
  gtk_widget_show (labelOriginalY);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), labelOriginalY, 2, 3, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (labelOriginalY), 0, 0.5);

  labelOriginalZ = gtk_label_new ("");
  gtk_widget_show (labelOriginalZ);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), labelOriginalZ, 3, 4, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (labelOriginalZ), 0, 0.5);

  label102 = gtk_label_new (_("Current position:"));
  gtk_widget_show (label102);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), label102, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label102), 1, 0.5);
  gtk_misc_set_padding (GTK_MISC (label102), 15, 0);

  buttonMoveOriginal = gtk_button_new ();
  gtk_widget_show (buttonMoveOriginal);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), buttonMoveOriginal, 4, 5, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_tooltips_set_tip (tooltips, buttonMoveOriginal, _("Return coordinates to initial values."), NULL);

  image43 = gtk_image_new_from_stock ("gtk-redo", GTK_ICON_SIZE_SMALL_TOOLBAR);
  gtk_widget_show (image43);
  gtk_container_add (GTK_CONTAINER (buttonMoveOriginal), image43);

  label103 = gtk_label_new (_("Screen horizontal direction:"));
  gtk_widget_show (label103);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), label103, 0, 1, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_use_markup (GTK_LABEL (label103), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label103), 1, 0.5);
  gtk_misc_set_padding (GTK_MISC (label103), 15, 0);

  label104 = gtk_label_new (_("Screen vertical direction:"));
  gtk_widget_show (label104);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), label104, 0, 1, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (label104), 1, 0.5);
  gtk_misc_set_padding (GTK_MISC (label104), 15, 0);

  hseparator4 = gtk_hseparator_new ();
  gtk_widget_show (hseparator4);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), hseparator4, 0, 5, 3, 4,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (GTK_EXPAND | GTK_FILL), 25, 7);

  labelScreenX_X = gtk_label_new ("");
  gtk_widget_show (labelScreenX_X);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), labelScreenX_X, 1, 2, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (labelScreenX_X), 0, 0.5);

  labelScreenX_Y = gtk_label_new ("");
  gtk_widget_show (labelScreenX_Y);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), labelScreenX_Y, 2, 3, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (labelScreenX_Y), 0, 0.5);

  labelScreenX_Z = gtk_label_new ("");
  gtk_widget_show (labelScreenX_Z);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), labelScreenX_Z, 3, 4, 4, 5,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (labelScreenX_Z), 0, 0.5);

  labelScreenY_Z = gtk_label_new ("");
  gtk_widget_show (labelScreenY_Z);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), labelScreenY_Z, 3, 4, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (labelScreenY_Z), 0, 0.5);

  labelScreenY_Y = gtk_label_new ("");
  gtk_widget_show (labelScreenY_Y);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), labelScreenY_Y, 2, 3, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (labelScreenY_Y), 0, 0.5);

  labelScreenY_X = gtk_label_new ("");
  gtk_widget_show (labelScreenY_X);
  gtk_table_attach (GTK_TABLE (tableMoveNodes), labelScreenY_X, 1, 2, 5, 6,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (labelScreenY_X), 0, 0.5);

  label88 = gtk_label_new (_("Geometry builder"));
  gtk_widget_show (label88);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebookAction), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebookAction), 1), label88);

  vbox22 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox22);
  gtk_container_add (GTK_CONTAINER (notebookAction), vbox22);

  radioSelect = gtk_radio_button_new (NULL);
  gtk_widget_show (radioSelect);
  gtk_box_pack_start (GTK_BOX (vbox22), radioSelect, FALSE, FALSE, 0);
  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radioSelect), radioObserve_group);
  radioObserve_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radioSelect));

  alignment29 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment29);
  gtk_container_add (GTK_CONTAINER (radioSelect), alignment29);

  hbox62 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox62);
  gtk_container_add (GTK_CONTAINER (alignment29), hbox62);

  image45 = gtk_image_new_from_stock ("gtk-edit", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image45);
  gtk_box_pack_start (GTK_BOX (hbox62), image45, FALSE, FALSE, 0);

  label113 = gtk_label_new_with_mnemonic (_("Highlight nodes"));
  gtk_widget_show (label113);
  gtk_box_pack_start (GTK_BOX (hbox62), label113, FALSE, FALSE, 0);

  vboxMarkNodes = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vboxMarkNodes);
  gtk_box_pack_start (GTK_BOX (vbox22), vboxMarkNodes, TRUE, TRUE, 0);

  hbox61 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox61);
  gtk_box_pack_start (GTK_BOX (vbox22), hbox61, FALSE, FALSE, 0);

  label112 = gtk_label_new (_("Remove all marks:"));
  gtk_widget_show (label112);
  gtk_box_pack_start (GTK_BOX (hbox61), label112, TRUE, TRUE, 0);
  gtk_misc_set_alignment (GTK_MISC (label112), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (label112), 5, 0);

  buttonEraseMarks = gtk_button_new_from_stock ("gtk-clear");
  gtk_widget_show (buttonEraseMarks);
  gtk_box_pack_start (GTK_BOX (hbox61), buttonEraseMarks, FALSE, FALSE, 0);

  label89 = gtk_label_new (_("Mark nodes"));
  gtk_widget_show (label89);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebookAction), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebookAction), 2), label89);

  checkAllowTranslations = gtk_check_button_new_with_mnemonic (_("Periodic translations"));
  gtk_widget_show (checkAllowTranslations);
  gtk_box_pack_start (GTK_BOX (vbox20), checkAllowTranslations, FALSE, FALSE, 0);
  gtk_tooltips_set_tip (tooltips, checkAllowTranslations, _("Apply the following translations to all the nodes and move them in the box if necessary. The translations are in the coordinates of the bounding box. This is only available for periodic data files."), NULL);

  hboxTranslations = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hboxTranslations);
  gtk_box_pack_start (GTK_BOX (vbox20), hboxTranslations, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hboxTranslations), 3);

  label63 = gtk_label_new (_("dx: "));
  gtk_widget_show (label63);
  gtk_box_pack_start (GTK_BOX (hboxTranslations), label63, TRUE, TRUE, 0);
  gtk_misc_set_alignment (GTK_MISC (label63), 1, 0.5);

  spinTransX_adj = gtk_adjustment_new (0, -1, 1, 0.0500000007451, 0.10000000149, 0);
  spinTransX = gtk_spin_button_new (GTK_ADJUSTMENT (spinTransX_adj), 1, 2);
  gtk_widget_show (spinTransX);
  gtk_box_pack_start (GTK_BOX (hboxTranslations), spinTransX, FALSE, FALSE, 0);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinTransX), TRUE);

  label64 = gtk_label_new (_("dy: "));
  gtk_widget_show (label64);
  gtk_box_pack_start (GTK_BOX (hboxTranslations), label64, TRUE, TRUE, 0);
  gtk_misc_set_alignment (GTK_MISC (label64), 1, 0.5);

  spinTransY_adj = gtk_adjustment_new (0, -1, 1, 0.0500000007451, 0.10000000149, 0);
  spinTransY = gtk_spin_button_new (GTK_ADJUSTMENT (spinTransY_adj), 1, 2);
  gtk_widget_show (spinTransY);
  gtk_box_pack_start (GTK_BOX (hboxTranslations), spinTransY, FALSE, FALSE, 0);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinTransY), TRUE);

  label65 = gtk_label_new (_("dz: "));
  gtk_widget_show (label65);
  gtk_box_pack_start (GTK_BOX (hboxTranslations), label65, TRUE, TRUE, 0);
  gtk_misc_set_alignment (GTK_MISC (label65), 1, 0.5);

  spinTransZ_adj = gtk_adjustment_new (0, -1, 1, 0.0500000007451, 0.10000000149, 0);
  spinTransZ = gtk_spin_button_new (GTK_ADJUSTMENT (spinTransZ_adj), 1, 2);
  gtk_widget_show (spinTransZ);
  gtk_box_pack_start (GTK_BOX (hboxTranslations), spinTransZ, FALSE, FALSE, 0);
  gtk_spin_button_set_numeric (GTK_SPIN_BUTTON (spinTransZ), TRUE);

  frame2 = gtk_frame_new (NULL);
  gtk_widget_show (frame2);
  gtk_box_pack_start (GTK_BOX (vbox20), frame2, FALSE, FALSE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (frame2), 3);

  labelInfoObservePick = gtk_label_new ("");
  gtk_widget_show (labelInfoObservePick);
  gtk_container_add (GTK_CONTAINER (frame2), labelInfoObservePick);
  gtk_label_set_use_markup (GTK_LABEL (labelInfoObservePick), TRUE);
  gtk_label_set_line_wrap (GTK_LABEL (labelInfoObservePick), TRUE);
  gtk_misc_set_alignment (GTK_MISC (labelInfoObservePick), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (labelInfoObservePick), 2, 0);

  hbox23 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox23);
  gtk_frame_set_label_widget (GTK_FRAME (frame2), hbox23);

  image18 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_MENU);
  gtk_widget_show (image18);
  gtk_box_pack_start (GTK_BOX (hbox23), image18, TRUE, TRUE, 0);

  label39 = gtk_label_new (_("Help"));
  gtk_widget_show (label39);
  gtk_box_pack_start (GTK_BOX (hbox23), label39, FALSE, FALSE, 0);

  dialog_action_area3 = GTK_DIALOG (observeDialog)->action_area;
  gtk_widget_show (dialog_action_area3);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area3), GTK_BUTTONBOX_END);

  buttonBackToCommandPanel = gtk_button_new ();
  gtk_widget_show (buttonBackToCommandPanel);
  gtk_dialog_add_action_widget (GTK_DIALOG (observeDialog), buttonBackToCommandPanel, GTK_RESPONSE_CLOSE);
  GTK_WIDGET_SET_FLAGS (buttonBackToCommandPanel, GTK_CAN_DEFAULT);

  alignment12 = gtk_alignment_new (0.5, 0.5, 0, 0);
  gtk_widget_show (alignment12);
  gtk_container_add (GTK_CONTAINER (buttonBackToCommandPanel), alignment12);

  hbox41 = gtk_hbox_new (FALSE, 2);
  gtk_widget_show (hbox41);
  gtk_container_add (GTK_CONTAINER (alignment12), hbox41);

  image31 = gtk_image_new_from_stock ("gtk-go-back", GTK_ICON_SIZE_BUTTON);
  gtk_widget_show (image31);
  gtk_box_pack_start (GTK_BOX (hbox41), image31, FALSE, FALSE, 0);

  label68 = gtk_label_new_with_mnemonic (_("Back to command panel"));
  gtk_widget_show (label68);
  gtk_box_pack_start (GTK_BOX (hbox41), label68, FALSE, FALSE, 0);

  g_signal_connect ((gpointer) spinDy, "value_changed",
                    G_CALLBACK (on_spinDy_value_changed),
                    NULL);
  g_signal_connect ((gpointer) spinOmega, "value_changed",
                    G_CALLBACK (on_spinOmega_value_changed),
                    NULL);
  g_signal_connect ((gpointer) spinPersp, "value_changed",
                    G_CALLBACK (on_spinPersp_value_changed),
                    NULL);
  g_signal_connect ((gpointer) spinPhi, "value_changed",
                    G_CALLBACK (on_spinPhi_value_changed),
                    NULL);
  g_signal_connect ((gpointer) spinDx, "value_changed",
                    G_CALLBACK (on_spinDx_value_changed),
                    NULL);
  g_signal_connect ((gpointer) spinGross, "value_changed",
                    G_CALLBACK (on_spinGross_value_changed),
                    NULL);
  g_signal_connect ((gpointer) spinTheta, "value_changed",
                    G_CALLBACK (on_spinTheta_value_changed),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (observeDialog, observeDialog, "observeDialog");
  GLADE_HOOKUP_OBJECT_NO_REF (observeDialog, dialog_vbox3, "dialog_vbox3");
  GLADE_HOOKUP_OBJECT (observeDialog, hbox20, "hbox20");
  GLADE_HOOKUP_OBJECT (observeDialog, image15, "image15");
  GLADE_HOOKUP_OBJECT (observeDialog, vbox20, "vbox20");
  GLADE_HOOKUP_OBJECT (observeDialog, hbox60, "hbox60");
  GLADE_HOOKUP_OBJECT (observeDialog, radioObserve, "radioObserve");
  GLADE_HOOKUP_OBJECT (observeDialog, alignment8, "alignment8");
  GLADE_HOOKUP_OBJECT (observeDialog, hbox21, "hbox21");
  GLADE_HOOKUP_OBJECT (observeDialog, image16, "image16");
  GLADE_HOOKUP_OBJECT (observeDialog, labelObserve, "labelObserve");
  GLADE_HOOKUP_OBJECT (observeDialog, hboxObserve, "hboxObserve");
  GLADE_HOOKUP_OBJECT (observeDialog, label66, "label66");
  GLADE_HOOKUP_OBJECT (observeDialog, radioObserveConstrained, "radioObserveConstrained");
  GLADE_HOOKUP_OBJECT (observeDialog, radioObserveWalker, "radioObserveWalker");
  GLADE_HOOKUP_OBJECT (observeDialog, label67, "label67");
  GLADE_HOOKUP_OBJECT (observeDialog, tableObserve, "tableObserve");
  GLADE_HOOKUP_OBJECT (observeDialog, label31, "label31");
  GLADE_HOOKUP_OBJECT (observeDialog, label34, "label34");
  GLADE_HOOKUP_OBJECT (observeDialog, label33, "label33");
  GLADE_HOOKUP_OBJECT (observeDialog, labelTranslation, "labelTranslation");
  GLADE_HOOKUP_OBJECT (observeDialog, label36, "label36");
  GLADE_HOOKUP_OBJECT (observeDialog, label35, "label35");
  GLADE_HOOKUP_OBJECT (observeDialog, labelZoom, "labelZoom");
  GLADE_HOOKUP_OBJECT (observeDialog, label58, "label58");
  GLADE_HOOKUP_OBJECT (observeDialog, spinDy, "spinDy");
  GLADE_HOOKUP_OBJECT (observeDialog, spinOmega, "spinOmega");
  GLADE_HOOKUP_OBJECT (observeDialog, spinPersp, "spinPersp");
  GLADE_HOOKUP_OBJECT (observeDialog, spinPhi, "spinPhi");
  GLADE_HOOKUP_OBJECT (observeDialog, spinDx, "spinDx");
  GLADE_HOOKUP_OBJECT (observeDialog, spinGross, "spinGross");
  GLADE_HOOKUP_OBJECT (observeDialog, spinTheta, "spinTheta");
  GLADE_HOOKUP_OBJECT (observeDialog, label32, "label32");
  GLADE_HOOKUP_OBJECT (observeDialog, notebookAction, "notebookAction");
  GLADE_HOOKUP_OBJECT (observeDialog, vbox7, "vbox7");
  GLADE_HOOKUP_OBJECT (observeDialog, radioPick, "radioPick");
  GLADE_HOOKUP_OBJECT (observeDialog, alignment9, "alignment9");
  GLADE_HOOKUP_OBJECT (observeDialog, hbox22, "hbox22");
  GLADE_HOOKUP_OBJECT (observeDialog, image17, "image17");
  GLADE_HOOKUP_OBJECT (observeDialog, labelPick, "labelPick");
  GLADE_HOOKUP_OBJECT (observeDialog, vpaned1, "vpaned1");
  GLADE_HOOKUP_OBJECT (observeDialog, scrolledwindow6, "scrolledwindow6");
  GLADE_HOOKUP_OBJECT (observeDialog, viewportPick, "viewportPick");
  GLADE_HOOKUP_OBJECT (observeDialog, vbox24, "vbox24");
  GLADE_HOOKUP_OBJECT (observeDialog, pickInfo, "pickInfo");
  GLADE_HOOKUP_OBJECT (observeDialog, pickComment, "pickComment");
  GLADE_HOOKUP_OBJECT (observeDialog, vbox25, "vbox25");
  GLADE_HOOKUP_OBJECT (observeDialog, hbox64, "hbox64");
  GLADE_HOOKUP_OBJECT (observeDialog, label117, "label117");
  GLADE_HOOKUP_OBJECT (observeDialog, image47, "image47");
  GLADE_HOOKUP_OBJECT (observeDialog, label118, "label118");
  GLADE_HOOKUP_OBJECT (observeDialog, alignment30, "alignment30");
  GLADE_HOOKUP_OBJECT (observeDialog, scrolledwindow5, "scrolledwindow5");
  GLADE_HOOKUP_OBJECT (observeDialog, treeviewNodeData, "treeviewNodeData");
  GLADE_HOOKUP_OBJECT (observeDialog, hbox57, "hbox57");
  GLADE_HOOKUP_OBJECT (observeDialog, alignment26, "alignment26");
  GLADE_HOOKUP_OBJECT (observeDialog, checkDrawDistance, "checkDrawDistance");
  GLADE_HOOKUP_OBJECT (observeDialog, buttonEraseDistances, "buttonEraseDistances");
  GLADE_HOOKUP_OBJECT (observeDialog, label87, "label87");
  GLADE_HOOKUP_OBJECT (observeDialog, vbox21, "vbox21");
  GLADE_HOOKUP_OBJECT (observeDialog, radioMove, "radioMove");
  GLADE_HOOKUP_OBJECT (observeDialog, alignment28, "alignment28");
  GLADE_HOOKUP_OBJECT (observeDialog, hbox59, "hbox59");
  GLADE_HOOKUP_OBJECT (observeDialog, image44, "image44");
  GLADE_HOOKUP_OBJECT (observeDialog, label111, "label111");
  GLADE_HOOKUP_OBJECT (observeDialog, hbox58, "hbox58");
  GLADE_HOOKUP_OBJECT (observeDialog, label90, "label90");
  GLADE_HOOKUP_OBJECT (observeDialog, labelMoveId, "labelMoveId");
  GLADE_HOOKUP_OBJECT (observeDialog, alignment27, "alignment27");
  GLADE_HOOKUP_OBJECT (observeDialog, tableMoveNodes, "tableMoveNodes");
  GLADE_HOOKUP_OBJECT (observeDialog, label92, "label92");
  GLADE_HOOKUP_OBJECT (observeDialog, label93, "label93");
  GLADE_HOOKUP_OBJECT (observeDialog, label94, "label94");
  GLADE_HOOKUP_OBJECT (observeDialog, label95, "label95");
  GLADE_HOOKUP_OBJECT (observeDialog, labelOriginalX, "labelOriginalX");
  GLADE_HOOKUP_OBJECT (observeDialog, labelOriginalY, "labelOriginalY");
  GLADE_HOOKUP_OBJECT (observeDialog, labelOriginalZ, "labelOriginalZ");
  GLADE_HOOKUP_OBJECT (observeDialog, label102, "label102");
  GLADE_HOOKUP_OBJECT (observeDialog, buttonMoveOriginal, "buttonMoveOriginal");
  GLADE_HOOKUP_OBJECT (observeDialog, image43, "image43");
  GLADE_HOOKUP_OBJECT (observeDialog, label103, "label103");
  GLADE_HOOKUP_OBJECT (observeDialog, label104, "label104");
  GLADE_HOOKUP_OBJECT (observeDialog, hseparator4, "hseparator4");
  GLADE_HOOKUP_OBJECT (observeDialog, labelScreenX_X, "labelScreenX_X");
  GLADE_HOOKUP_OBJECT (observeDialog, labelScreenX_Y, "labelScreenX_Y");
  GLADE_HOOKUP_OBJECT (observeDialog, labelScreenX_Z, "labelScreenX_Z");
  GLADE_HOOKUP_OBJECT (observeDialog, labelScreenY_Z, "labelScreenY_Z");
  GLADE_HOOKUP_OBJECT (observeDialog, labelScreenY_Y, "labelScreenY_Y");
  GLADE_HOOKUP_OBJECT (observeDialog, labelScreenY_X, "labelScreenY_X");
  GLADE_HOOKUP_OBJECT (observeDialog, label88, "label88");
  GLADE_HOOKUP_OBJECT (observeDialog, vbox22, "vbox22");
  GLADE_HOOKUP_OBJECT (observeDialog, radioSelect, "radioSelect");
  GLADE_HOOKUP_OBJECT (observeDialog, alignment29, "alignment29");
  GLADE_HOOKUP_OBJECT (observeDialog, hbox62, "hbox62");
  GLADE_HOOKUP_OBJECT (observeDialog, image45, "image45");
  GLADE_HOOKUP_OBJECT (observeDialog, label113, "label113");
  GLADE_HOOKUP_OBJECT (observeDialog, vboxMarkNodes, "vboxMarkNodes");
  GLADE_HOOKUP_OBJECT (observeDialog, hbox61, "hbox61");
  GLADE_HOOKUP_OBJECT (observeDialog, label112, "label112");
  GLADE_HOOKUP_OBJECT (observeDialog, buttonEraseMarks, "buttonEraseMarks");
  GLADE_HOOKUP_OBJECT (observeDialog, label89, "label89");
  GLADE_HOOKUP_OBJECT (observeDialog, checkAllowTranslations, "checkAllowTranslations");
  GLADE_HOOKUP_OBJECT (observeDialog, hboxTranslations, "hboxTranslations");
  GLADE_HOOKUP_OBJECT (observeDialog, label63, "label63");
  GLADE_HOOKUP_OBJECT (observeDialog, spinTransX, "spinTransX");
  GLADE_HOOKUP_OBJECT (observeDialog, label64, "label64");
  GLADE_HOOKUP_OBJECT (observeDialog, spinTransY, "spinTransY");
  GLADE_HOOKUP_OBJECT (observeDialog, label65, "label65");
  GLADE_HOOKUP_OBJECT (observeDialog, spinTransZ, "spinTransZ");
  GLADE_HOOKUP_OBJECT (observeDialog, frame2, "frame2");
  GLADE_HOOKUP_OBJECT (observeDialog, labelInfoObservePick, "labelInfoObservePick");
  GLADE_HOOKUP_OBJECT (observeDialog, hbox23, "hbox23");
  GLADE_HOOKUP_OBJECT (observeDialog, image18, "image18");
  GLADE_HOOKUP_OBJECT (observeDialog, label39, "label39");
  GLADE_HOOKUP_OBJECT_NO_REF (observeDialog, dialog_action_area3, "dialog_action_area3");
  GLADE_HOOKUP_OBJECT (observeDialog, buttonBackToCommandPanel, "buttonBackToCommandPanel");
  GLADE_HOOKUP_OBJECT (observeDialog, alignment12, "alignment12");
  GLADE_HOOKUP_OBJECT (observeDialog, hbox41, "hbox41");
  GLADE_HOOKUP_OBJECT (observeDialog, image31, "image31");
  GLADE_HOOKUP_OBJECT (observeDialog, label68, "label68");
  GLADE_HOOKUP_OBJECT_NO_REF (observeDialog, tooltips, "tooltips");

  gtk_widget_grab_default (buttonBackToCommandPanel);
  gtk_window_add_accel_group (GTK_WINDOW (observeDialog), accel_group);

  return observeDialog;
}

GtkWidget*
create_infoDialog (void)
{
  GtkWidget *infoDialog;
  GdkPixbuf *infoDialog_icon_pixbuf;
  GtkWidget *dialog_vbox4;
  GtkWidget *vbox10;
  GtkWidget *hbox31;
  GtkWidget *image26;
  GtkWidget *vbox11;
  GtkWidget *table4;
  GtkWidget *label55;
  GtkWidget *label56;
  GtkWidget *label57;
  GtkWidget *labelInfoVersion;
  GtkWidget *labelInfoReleaseDate;
  GtkWidget *labelInfoWebSite;
  GtkWidget *notebookAbout;
  GtkWidget *scrolledwindow4;
  GtkWidget *textviewReadme;
  GtkWidget *label46;
  GtkWidget *scrolledwindow3;
  GtkWidget *textviewAuthors;
  GtkWidget *label47;
  GtkWidget *scrolledwindow2;
  GtkWidget *textviewLicence;
  GtkWidget *labelLicense;
  GtkWidget *vbox23;
  GtkWidget *label116;
  GtkWidget *scrolledwindowPlugins;
  GtkWidget *label115;
  GtkWidget *dialog_action_area4;
  GtkWidget *closebutton2;

  infoDialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (infoDialog), _("About V_Sim"));
  gtk_window_set_position (GTK_WINDOW (infoDialog), GTK_WIN_POS_CENTER);
  gtk_window_set_modal (GTK_WINDOW (infoDialog), TRUE);
  infoDialog_icon_pixbuf = create_pixbuf ("icone-about.png");
  if (infoDialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (infoDialog), infoDialog_icon_pixbuf);
      gdk_pixbuf_unref (infoDialog_icon_pixbuf);
    }
  gtk_window_set_type_hint (GTK_WINDOW (infoDialog), GDK_WINDOW_TYPE_HINT_DIALOG);
  gtk_dialog_set_has_separator (GTK_DIALOG (infoDialog), FALSE);

  dialog_vbox4 = GTK_DIALOG (infoDialog)->vbox;
  gtk_widget_show (dialog_vbox4);

  vbox10 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox10);
  gtk_box_pack_start (GTK_BOX (dialog_vbox4), vbox10, TRUE, TRUE, 0);

  hbox31 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox31);
  gtk_box_pack_start (GTK_BOX (vbox10), hbox31, TRUE, TRUE, 0);

  image26 = create_pixmap (infoDialog, "logo_rectangle.png");
  gtk_widget_show (image26);
  gtk_box_pack_start (GTK_BOX (hbox31), image26, FALSE, FALSE, 0);
  gtk_misc_set_padding (GTK_MISC (image26), 10, 10);

  vbox11 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox11);
  gtk_box_pack_start (GTK_BOX (hbox31), vbox11, TRUE, TRUE, 0);

  table4 = gtk_table_new (3, 2, FALSE);
  gtk_widget_show (table4);
  gtk_box_pack_start (GTK_BOX (vbox11), table4, TRUE, FALSE, 0);

  label55 = gtk_label_new (_("<b>Version</b> :"));
  gtk_widget_show (label55);
  gtk_table_attach (GTK_TABLE (table4), label55, 0, 1, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_use_markup (GTK_LABEL (label55), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label55), 1, 0.5);

  label56 = gtk_label_new (_("<b>Release Date</b> :"));
  gtk_widget_show (label56);
  gtk_table_attach (GTK_TABLE (table4), label56, 0, 1, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_use_markup (GTK_LABEL (label56), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label56), 1, 0.5);

  label57 = gtk_label_new (_("<b>Web site</b> :"));
  gtk_widget_show (label57);
  gtk_table_attach (GTK_TABLE (table4), label57, 0, 1, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_label_set_use_markup (GTK_LABEL (label57), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label57), 1, 0.5);

  labelInfoVersion = gtk_label_new ("2.99");
  gtk_widget_show (labelInfoVersion);
  gtk_table_attach (GTK_TABLE (table4), labelInfoVersion, 1, 2, 0, 1,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (labelInfoVersion), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (labelInfoVersion), 5, 0);

  labelInfoReleaseDate = gtk_label_new ("AAAA-MM-JJ");
  gtk_widget_show (labelInfoReleaseDate);
  gtk_table_attach (GTK_TABLE (table4), labelInfoReleaseDate, 1, 2, 1, 2,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  gtk_misc_set_alignment (GTK_MISC (labelInfoReleaseDate), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (labelInfoReleaseDate), 5, 0);

  labelInfoWebSite = gtk_label_new ("<u>http://</u>");
  gtk_widget_show (labelInfoWebSite);
  gtk_table_attach (GTK_TABLE (table4), labelInfoWebSite, 1, 2, 2, 3,
                    (GtkAttachOptions) (GTK_FILL),
                    (GtkAttachOptions) (0), 0, 0);
  GTK_WIDGET_SET_FLAGS (labelInfoWebSite, GTK_CAN_FOCUS);
  gtk_label_set_use_markup (GTK_LABEL (labelInfoWebSite), TRUE);
  gtk_label_set_selectable (GTK_LABEL (labelInfoWebSite), TRUE);
  gtk_misc_set_alignment (GTK_MISC (labelInfoWebSite), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (labelInfoWebSite), 5, 0);

  notebookAbout = gtk_notebook_new ();
  gtk_widget_show (notebookAbout);
  gtk_box_pack_start (GTK_BOX (vbox10), notebookAbout, TRUE, TRUE, 0);
  gtk_widget_set_size_request (notebookAbout, 475, 300);

  scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow4);
  gtk_container_add (GTK_CONTAINER (notebookAbout), scrolledwindow4);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_SHADOW_ETCHED_IN);

  textviewReadme = gtk_text_view_new ();
  gtk_widget_show (textviewReadme);
  gtk_container_add (GTK_CONTAINER (scrolledwindow4), textviewReadme);
  gtk_text_view_set_editable (GTK_TEXT_VIEW (textviewReadme), FALSE);
  gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (textviewReadme), GTK_WRAP_WORD);
  gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (textviewReadme), FALSE);
  gtk_text_view_set_left_margin (GTK_TEXT_VIEW (textviewReadme), 2);
  gtk_text_view_set_right_margin (GTK_TEXT_VIEW (textviewReadme), 2);

  label46 = gtk_label_new (_("Readme"));
  gtk_widget_show (label46);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebookAbout), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebookAbout), 0), label46);

  scrolledwindow3 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow3);
  gtk_container_add (GTK_CONTAINER (notebookAbout), scrolledwindow3);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow3), GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow3), GTK_SHADOW_ETCHED_IN);

  textviewAuthors = gtk_text_view_new ();
  gtk_widget_show (textviewAuthors);
  gtk_container_add (GTK_CONTAINER (scrolledwindow3), textviewAuthors);
  gtk_text_view_set_editable (GTK_TEXT_VIEW (textviewAuthors), FALSE);
  gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (textviewAuthors), GTK_WRAP_WORD);
  gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (textviewAuthors), FALSE);
  gtk_text_view_set_left_margin (GTK_TEXT_VIEW (textviewAuthors), 2);
  gtk_text_view_set_right_margin (GTK_TEXT_VIEW (textviewAuthors), 2);

  label47 = gtk_label_new (_("Authors"));
  gtk_widget_show (label47);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebookAbout), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebookAbout), 1), label47);

  scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindow2);
  gtk_container_add (GTK_CONTAINER (notebookAbout), scrolledwindow2);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS);
  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_SHADOW_ETCHED_IN);

  textviewLicence = gtk_text_view_new ();
  gtk_widget_show (textviewLicence);
  gtk_container_add (GTK_CONTAINER (scrolledwindow2), textviewLicence);
  gtk_text_view_set_editable (GTK_TEXT_VIEW (textviewLicence), FALSE);
  gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (textviewLicence), FALSE);
  gtk_text_view_set_left_margin (GTK_TEXT_VIEW (textviewLicence), 2);
  gtk_text_view_set_right_margin (GTK_TEXT_VIEW (textviewLicence), 2);

  labelLicense = gtk_label_new (_("License"));
  gtk_widget_show (labelLicense);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebookAbout), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebookAbout), 2), labelLicense);

  vbox23 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox23);
  gtk_container_add (GTK_CONTAINER (notebookAbout), vbox23);

  label116 = gtk_label_new (_("Loaded plug-ins:"));
  gtk_widget_show (label116);
  gtk_box_pack_start (GTK_BOX (vbox23), label116, FALSE, FALSE, 0);
  gtk_misc_set_alignment (GTK_MISC (label116), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (label116), 15, 5);

  scrolledwindowPlugins = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindowPlugins);
  gtk_box_pack_start (GTK_BOX (vbox23), scrolledwindowPlugins, TRUE, TRUE, 0);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindowPlugins), GTK_POLICY_ALWAYS, GTK_POLICY_AUTOMATIC);

  label115 = gtk_label_new (_("Plug-ins"));
  gtk_widget_show (label115);
  gtk_notebook_set_tab_label (GTK_NOTEBOOK (notebookAbout), gtk_notebook_get_nth_page (GTK_NOTEBOOK (notebookAbout), 3), label115);

  dialog_action_area4 = GTK_DIALOG (infoDialog)->action_area;
  gtk_widget_show (dialog_action_area4);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area4), GTK_BUTTONBOX_END);

  closebutton2 = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (closebutton2);
  gtk_dialog_add_action_widget (GTK_DIALOG (infoDialog), closebutton2, GTK_RESPONSE_CLOSE);
  GTK_WIDGET_SET_FLAGS (closebutton2, GTK_CAN_DEFAULT);

  g_signal_connect_swapped ((gpointer) closebutton2, "clicked",
                            G_CALLBACK (gtk_widget_hide),
                            GTK_OBJECT (infoDialog));

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (infoDialog, infoDialog, "infoDialog");
  GLADE_HOOKUP_OBJECT_NO_REF (infoDialog, dialog_vbox4, "dialog_vbox4");
  GLADE_HOOKUP_OBJECT (infoDialog, vbox10, "vbox10");
  GLADE_HOOKUP_OBJECT (infoDialog, hbox31, "hbox31");
  GLADE_HOOKUP_OBJECT (infoDialog, image26, "image26");
  GLADE_HOOKUP_OBJECT (infoDialog, vbox11, "vbox11");
  GLADE_HOOKUP_OBJECT (infoDialog, table4, "table4");
  GLADE_HOOKUP_OBJECT (infoDialog, label55, "label55");
  GLADE_HOOKUP_OBJECT (infoDialog, label56, "label56");
  GLADE_HOOKUP_OBJECT (infoDialog, label57, "label57");
  GLADE_HOOKUP_OBJECT (infoDialog, labelInfoVersion, "labelInfoVersion");
  GLADE_HOOKUP_OBJECT (infoDialog, labelInfoReleaseDate, "labelInfoReleaseDate");
  GLADE_HOOKUP_OBJECT (infoDialog, labelInfoWebSite, "labelInfoWebSite");
  GLADE_HOOKUP_OBJECT (infoDialog, notebookAbout, "notebookAbout");
  GLADE_HOOKUP_OBJECT (infoDialog, scrolledwindow4, "scrolledwindow4");
  GLADE_HOOKUP_OBJECT (infoDialog, textviewReadme, "textviewReadme");
  GLADE_HOOKUP_OBJECT (infoDialog, label46, "label46");
  GLADE_HOOKUP_OBJECT (infoDialog, scrolledwindow3, "scrolledwindow3");
  GLADE_HOOKUP_OBJECT (infoDialog, textviewAuthors, "textviewAuthors");
  GLADE_HOOKUP_OBJECT (infoDialog, label47, "label47");
  GLADE_HOOKUP_OBJECT (infoDialog, scrolledwindow2, "scrolledwindow2");
  GLADE_HOOKUP_OBJECT (infoDialog, textviewLicence, "textviewLicence");
  GLADE_HOOKUP_OBJECT (infoDialog, labelLicense, "labelLicense");
  GLADE_HOOKUP_OBJECT (infoDialog, vbox23, "vbox23");
  GLADE_HOOKUP_OBJECT (infoDialog, label116, "label116");
  GLADE_HOOKUP_OBJECT (infoDialog, scrolledwindowPlugins, "scrolledwindowPlugins");
  GLADE_HOOKUP_OBJECT (infoDialog, label115, "label115");
  GLADE_HOOKUP_OBJECT_NO_REF (infoDialog, dialog_action_area4, "dialog_action_area4");
  GLADE_HOOKUP_OBJECT (infoDialog, closebutton2, "closebutton2");

  return infoDialog;
}

GtkWidget*
create_pairsDialog (void)
{
  GtkWidget *pairsDialog;
  GdkPixbuf *pairsDialog_icon_pixbuf;
  GtkWidget *vbox;
  GtkWidget *vboxPairsDialog;
  GtkWidget *hbox33;
  GtkWidget *image32;
  GtkWidget *vbox12;
  GtkWidget *labelTitlePairs;
  GtkWidget *hboxPairsModel;
  GtkWidget *label50;
  GtkWidget *scrolledwindowPairs;
  GtkWidget *viewport1;
  GtkWidget *hboxViewportPairs;
  GtkWidget *hbox38;
  GtkWidget *frame4;
  GtkWidget *labelInfoPairs;
  GtkWidget *hbox39;
  GtkWidget *image30;
  GtkWidget *label61;
  GtkWidget *dialog_action_area5;
  GtkWidget *closebutton3;

  pairsDialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (pairsDialog), _("set and customize pairs"));
  pairsDialog_icon_pixbuf = create_pixbuf ("icone-dialog.png");
  if (pairsDialog_icon_pixbuf)
    {
      gtk_window_set_icon (GTK_WINDOW (pairsDialog), pairsDialog_icon_pixbuf);
      gdk_pixbuf_unref (pairsDialog_icon_pixbuf);
    }
  gtk_dialog_set_has_separator (GTK_DIALOG (pairsDialog), FALSE);

  vbox = GTK_DIALOG (pairsDialog)->vbox;
  gtk_widget_show (vbox);

  vboxPairsDialog = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vboxPairsDialog);
  gtk_box_pack_start (GTK_BOX (vbox), vboxPairsDialog, TRUE, TRUE, 0);

  hbox33 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox33);
  gtk_box_pack_start (GTK_BOX (vboxPairsDialog), hbox33, FALSE, FALSE, 2);

  image32 = create_pixmap (pairsDialog, "liaison-bandeau.png");
  gtk_widget_show (image32);
  gtk_box_pack_start (GTK_BOX (hbox33), image32, FALSE, FALSE, 0);

  vbox12 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox12);
  gtk_box_pack_start (GTK_BOX (hbox33), vbox12, TRUE, TRUE, 0);

  labelTitlePairs = gtk_label_new (_("<span size=\"larger\"><b>Set parameters for pairs</b></span>"));
  gtk_widget_show (labelTitlePairs);
  gtk_box_pack_start (GTK_BOX (vbox12), labelTitlePairs, TRUE, TRUE, 0);
  gtk_label_set_use_markup (GTK_LABEL (labelTitlePairs), TRUE);
  gtk_misc_set_alignment (GTK_MISC (labelTitlePairs), 0.5, 0.25);

  hboxPairsModel = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hboxPairsModel);
  gtk_box_pack_end (GTK_BOX (vbox12), hboxPairsModel, FALSE, FALSE, 0);

  label50 = gtk_label_new (_("Pairs model : "));
  gtk_widget_show (label50);
  gtk_box_pack_start (GTK_BOX (hboxPairsModel), label50, FALSE, FALSE, 0);

  scrolledwindowPairs = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_show (scrolledwindowPairs);
  gtk_box_pack_start (GTK_BOX (vboxPairsDialog), scrolledwindowPairs, TRUE, TRUE, 1);
  gtk_widget_set_size_request (scrolledwindowPairs, 375, 200);
  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindowPairs), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);

  viewport1 = gtk_viewport_new (NULL, NULL);
  gtk_widget_show (viewport1);
  gtk_container_add (GTK_CONTAINER (scrolledwindowPairs), viewport1);

  hboxViewportPairs = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hboxViewportPairs);
  gtk_container_add (GTK_CONTAINER (viewport1), hboxViewportPairs);

  hbox38 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox38);
  gtk_box_pack_end (GTK_BOX (vboxPairsDialog), hbox38, FALSE, FALSE, 0);

  frame4 = gtk_frame_new (NULL);
  gtk_widget_show (frame4);
  gtk_box_pack_start (GTK_BOX (hbox38), frame4, TRUE, TRUE, 10);

  labelInfoPairs = gtk_label_new ("");
  gtk_widget_show (labelInfoPairs);
  gtk_container_add (GTK_CONTAINER (frame4), labelInfoPairs);
  gtk_label_set_use_markup (GTK_LABEL (labelInfoPairs), TRUE);
  gtk_label_set_justify (GTK_LABEL (labelInfoPairs), GTK_JUSTIFY_FILL);
  gtk_label_set_line_wrap (GTK_LABEL (labelInfoPairs), TRUE);
  gtk_misc_set_alignment (GTK_MISC (labelInfoPairs), 0, 0.5);
  gtk_misc_set_padding (GTK_MISC (labelInfoPairs), 2, 0);

  hbox39 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox39);
  gtk_frame_set_label_widget (GTK_FRAME (frame4), hbox39);

  image30 = gtk_image_new_from_stock ("gtk-help", GTK_ICON_SIZE_SMALL_TOOLBAR);
  gtk_widget_show (image30);
  gtk_box_pack_start (GTK_BOX (hbox39), image30, TRUE, TRUE, 0);

  label61 = gtk_label_new (_("Help"));
  gtk_widget_show (label61);
  gtk_box_pack_start (GTK_BOX (hbox39), label61, FALSE, FALSE, 0);

  dialog_action_area5 = GTK_DIALOG (pairsDialog)->action_area;
  gtk_widget_show (dialog_action_area5);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area5), GTK_BUTTONBOX_END);

  closebutton3 = gtk_button_new_from_stock ("gtk-close");
  gtk_widget_show (closebutton3);
  gtk_dialog_add_action_widget (GTK_DIALOG (pairsDialog), closebutton3, GTK_RESPONSE_CLOSE);
  GTK_WIDGET_SET_FLAGS (closebutton3, GTK_CAN_DEFAULT);

  g_signal_connect ((gpointer) pairsDialog, "delete_event",
                    G_CALLBACK (on_pairsDialog_delete_event),
                    NULL);
  g_signal_connect ((gpointer) closebutton3, "clicked",
                    G_CALLBACK (on_closebutton3_clicked),
                    NULL);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (pairsDialog, pairsDialog, "pairsDialog");
  GLADE_HOOKUP_OBJECT_NO_REF (pairsDialog, vbox, "vbox");
  GLADE_HOOKUP_OBJECT (pairsDialog, vboxPairsDialog, "vboxPairsDialog");
  GLADE_HOOKUP_OBJECT (pairsDialog, hbox33, "hbox33");
  GLADE_HOOKUP_OBJECT (pairsDialog, image32, "image32");
  GLADE_HOOKUP_OBJECT (pairsDialog, vbox12, "vbox12");
  GLADE_HOOKUP_OBJECT (pairsDialog, labelTitlePairs, "labelTitlePairs");
  GLADE_HOOKUP_OBJECT (pairsDialog, hboxPairsModel, "hboxPairsModel");
  GLADE_HOOKUP_OBJECT (pairsDialog, label50, "label50");
  GLADE_HOOKUP_OBJECT (pairsDialog, scrolledwindowPairs, "scrolledwindowPairs");
  GLADE_HOOKUP_OBJECT (pairsDialog, viewport1, "viewport1");
  GLADE_HOOKUP_OBJECT (pairsDialog, hboxViewportPairs, "hboxViewportPairs");
  GLADE_HOOKUP_OBJECT (pairsDialog, hbox38, "hbox38");
  GLADE_HOOKUP_OBJECT (pairsDialog, frame4, "frame4");
  GLADE_HOOKUP_OBJECT (pairsDialog, labelInfoPairs, "labelInfoPairs");
  GLADE_HOOKUP_OBJECT (pairsDialog, hbox39, "hbox39");
  GLADE_HOOKUP_OBJECT (pairsDialog, image30, "image30");
  GLADE_HOOKUP_OBJECT (pairsDialog, label61, "label61");
  GLADE_HOOKUP_OBJECT_NO_REF (pairsDialog, dialog_action_area5, "dialog_action_area5");
  GLADE_HOOKUP_OBJECT (pairsDialog, closebutton3, "closebutton3");

  return pairsDialog;
}

GtkWidget*
create_quitDialog (void)
{
  GtkWidget *quitDialog;
  GtkWidget *dialog_vbox5;
  GtkWidget *hbox44;
  GtkWidget *image35;
  GtkWidget *vbox13;
  GtkWidget *label71;
  GtkWidget *alignment15;
  GtkWidget *checkbuttonHideNextTime;
  GtkWidget *hboxHomedir;
  GtkWidget *image50;
  GtkWidget *label119;
  GtkWidget *alignment33;
  GtkWidget *buttonAddHomedir;
  GtkWidget *hboxWarning;
  GtkWidget *image46;
  GtkWidget *label114;
  GtkWidget *frame5;
  GtkWidget *label73;
  GtkWidget *hbox45;
  GtkWidget *image36;
  GtkWidget *label72;
  GtkWidget *dialog_action_area6;
  GtkWidget *cancelbutton1;
  GtkWidget *okbutton1;

  quitDialog = gtk_dialog_new ();
  gtk_window_set_title (GTK_WINDOW (quitDialog), _("Quit V_Sim"));
  gtk_window_set_position (GTK_WINDOW (quitDialog), GTK_WIN_POS_CENTER_ON_PARENT);
  gtk_window_set_modal (GTK_WINDOW (quitDialog), TRUE);
  gtk_window_set_icon_name (GTK_WINDOW (quitDialog), "gtk-dialog-question");
  gtk_window_set_type_hint (GTK_WINDOW (quitDialog), GDK_WINDOW_TYPE_HINT_DIALOG);
  gtk_dialog_set_has_separator (GTK_DIALOG (quitDialog), FALSE);

  dialog_vbox5 = GTK_DIALOG (quitDialog)->vbox;
  gtk_widget_show (dialog_vbox5);

  hbox44 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox44);
  gtk_box_pack_start (GTK_BOX (dialog_vbox5), hbox44, TRUE, TRUE, 0);

  image35 = gtk_image_new_from_icon_name ("gtk-dialog-question", GTK_ICON_SIZE_DIALOG);
  gtk_widget_show (image35);
  gtk_box_pack_start (GTK_BOX (hbox44), image35, FALSE, FALSE, 0);
  gtk_misc_set_padding (GTK_MISC (image35), 6, 0);

  vbox13 = gtk_vbox_new (FALSE, 0);
  gtk_widget_show (vbox13);
  gtk_box_pack_start (GTK_BOX (hbox44), vbox13, TRUE, TRUE, 0);

  label71 = gtk_label_new (_("<span size=\"larger\"><b>Quit V_Sim?</b></span>"));
  gtk_widget_show (label71);
  gtk_box_pack_start (GTK_BOX (vbox13), label71, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label71), TRUE);
  gtk_misc_set_padding (GTK_MISC (label71), 0, 10);

  alignment15 = gtk_alignment_new (0.5, 0.5, 1, 0);
  gtk_widget_show (alignment15);
  gtk_box_pack_start (GTK_BOX (vbox13), alignment15, TRUE, TRUE, 0);

  checkbuttonHideNextTime = gtk_check_button_new_with_mnemonic (_("Don't show this warning again."));
  gtk_widget_show (checkbuttonHideNextTime);
  gtk_container_add (GTK_CONTAINER (alignment15), checkbuttonHideNextTime);

  hboxHomedir = gtk_hbox_new (FALSE, 0);
  gtk_box_pack_start (GTK_BOX (vbox13), hboxHomedir, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hboxHomedir), 15);

  image50 = gtk_image_new_from_stock ("gtk-dialog-warning", GTK_ICON_SIZE_LARGE_TOOLBAR);
  gtk_widget_show (image50);
  gtk_box_pack_start (GTK_BOX (hboxHomedir), image50, FALSE, FALSE, 5);

  label119 = gtk_label_new (_("<i>Can't find a local configuration directory <span font_desc=\"courier\">$HOME/.v_sim</span>. Should one be added?</i>"));
  gtk_widget_show (label119);
  gtk_box_pack_start (GTK_BOX (hboxHomedir), label119, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label119), TRUE);
  gtk_label_set_justify (GTK_LABEL (label119), GTK_JUSTIFY_FILL);
  gtk_label_set_line_wrap (GTK_LABEL (label119), TRUE);

  alignment33 = gtk_alignment_new (0.5, 0.5, 1, 0);
  gtk_widget_show (alignment33);
  gtk_box_pack_start (GTK_BOX (hboxHomedir), alignment33, FALSE, FALSE, 0);

  buttonAddHomedir = gtk_button_new_from_stock ("gtk-add");
  gtk_widget_show (buttonAddHomedir);
  gtk_container_add (GTK_CONTAINER (alignment33), buttonAddHomedir);

  hboxWarning = gtk_hbox_new (FALSE, 0);
  gtk_box_pack_start (GTK_BOX (vbox13), hboxWarning, TRUE, TRUE, 0);
  gtk_container_set_border_width (GTK_CONTAINER (hboxWarning), 15);

  image46 = gtk_image_new_from_stock ("gtk-dialog-warning", GTK_ICON_SIZE_LARGE_TOOLBAR);
  gtk_widget_show (image46);
  gtk_box_pack_start (GTK_BOX (hboxWarning), image46, FALSE, FALSE, 5);

  label114 = gtk_label_new (_("<i>Can't find a <span font_desc=\"courier\">v_sim.par</span> file with enough write permissions to store the preference, neither in the installation directory nor in the <span font_desc=\"courier\">$HOME/.v_sim</span> one.</i>"));
  gtk_widget_show (label114);
  gtk_box_pack_start (GTK_BOX (hboxWarning), label114, FALSE, FALSE, 0);
  gtk_label_set_use_markup (GTK_LABEL (label114), TRUE);
  gtk_label_set_justify (GTK_LABEL (label114), GTK_JUSTIFY_FILL);
  gtk_label_set_line_wrap (GTK_LABEL (label114), TRUE);

  frame5 = gtk_frame_new (NULL);
  gtk_widget_show (frame5);
  gtk_box_pack_start (GTK_BOX (vbox13), frame5, FALSE, FALSE, 0);

  label73 = gtk_label_new (_("<span size=\"smaller\">If you check the above box but you want to have this warning dialog again before closing, you can change this by editing the parameter file (<span font_desc=\"courier\">v_sim.par</span>). The option is called 'confirmQuit'.</span>"));
  gtk_widget_show (label73);
  gtk_container_add (GTK_CONTAINER (frame5), label73);
  gtk_label_set_use_markup (GTK_LABEL (label73), TRUE);
  gtk_label_set_line_wrap (GTK_LABEL (label73), TRUE);
  gtk_misc_set_alignment (GTK_MISC (label73), 0, 0);
  gtk_misc_set_padding (GTK_MISC (label73), 2, 2);

  hbox45 = gtk_hbox_new (FALSE, 0);
  gtk_widget_show (hbox45);
  gtk_frame_set_label_widget (GTK_FRAME (frame5), hbox45);

  image36 = gtk_image_new_from_icon_name ("gtk-help", GTK_ICON_SIZE_MENU);
  gtk_widget_show (image36);
  gtk_box_pack_start (GTK_BOX (hbox45), image36, TRUE, TRUE, 0);

  label72 = gtk_label_new (_("Help"));
  gtk_widget_show (label72);
  gtk_box_pack_start (GTK_BOX (hbox45), label72, FALSE, FALSE, 0);
  gtk_misc_set_padding (GTK_MISC (label72), 5, 0);

  dialog_action_area6 = GTK_DIALOG (quitDialog)->action_area;
  gtk_widget_show (dialog_action_area6);
  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area6), GTK_BUTTONBOX_END);

  cancelbutton1 = gtk_button_new_from_stock ("gtk-cancel");
  gtk_widget_show (cancelbutton1);
  gtk_dialog_add_action_widget (GTK_DIALOG (quitDialog), cancelbutton1, GTK_RESPONSE_CANCEL);
  GTK_WIDGET_SET_FLAGS (cancelbutton1, GTK_CAN_DEFAULT);

  okbutton1 = gtk_button_new_from_stock ("gtk-quit");
  gtk_widget_show (okbutton1);
  gtk_dialog_add_action_widget (GTK_DIALOG (quitDialog), okbutton1, GTK_RESPONSE_OK);
  GTK_WIDGET_SET_FLAGS (okbutton1, GTK_CAN_DEFAULT);

  /* Store pointers to all widgets, for use by lookup_widget(). */
  GLADE_HOOKUP_OBJECT_NO_REF (quitDialog, quitDialog, "quitDialog");
  GLADE_HOOKUP_OBJECT_NO_REF (quitDialog, dialog_vbox5, "dialog_vbox5");
  GLADE_HOOKUP_OBJECT (quitDialog, hbox44, "hbox44");
  GLADE_HOOKUP_OBJECT (quitDialog, image35, "image35");
  GLADE_HOOKUP_OBJECT (quitDialog, vbox13, "vbox13");
  GLADE_HOOKUP_OBJECT (quitDialog, label71, "label71");
  GLADE_HOOKUP_OBJECT (quitDialog, alignment15, "alignment15");
  GLADE_HOOKUP_OBJECT (quitDialog, checkbuttonHideNextTime, "checkbuttonHideNextTime");
  GLADE_HOOKUP_OBJECT (quitDialog, hboxHomedir, "hboxHomedir");
  GLADE_HOOKUP_OBJECT (quitDialog, image50, "image50");
  GLADE_HOOKUP_OBJECT (quitDialog, label119, "label119");
  GLADE_HOOKUP_OBJECT (quitDialog, alignment33, "alignment33");
  GLADE_HOOKUP_OBJECT (quitDialog, buttonAddHomedir, "buttonAddHomedir");
  GLADE_HOOKUP_OBJECT (quitDialog, hboxWarning, "hboxWarning");
  GLADE_HOOKUP_OBJECT (quitDialog, image46, "image46");
  GLADE_HOOKUP_OBJECT (quitDialog, label114, "label114");
  GLADE_HOOKUP_OBJECT (quitDialog, frame5, "frame5");
  GLADE_HOOKUP_OBJECT (quitDialog, label73, "label73");
  GLADE_HOOKUP_OBJECT (quitDialog, hbox45, "hbox45");
  GLADE_HOOKUP_OBJECT (quitDialog, image36, "image36");
  GLADE_HOOKUP_OBJECT (quitDialog, label72, "label72");
  GLADE_HOOKUP_OBJECT_NO_REF (quitDialog, dialog_action_area6, "dialog_action_area6");
  GLADE_HOOKUP_OBJECT (quitDialog, cancelbutton1, "cancelbutton1");
  GLADE_HOOKUP_OBJECT (quitDialog, okbutton1, "okbutton1");

  return quitDialog;
}


Generated by  Doxygen 1.6.0   Back to index