[Bio] / ModelEditorGlade / interface.c Repository:
ViewVC logotype

View of /ModelEditorGlade/interface.c

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (download) (as text) (annotate) (vendor branch)
Mon Oct 4 19:52:17 2004 UTC (15 years, 1 month ago) by efrank
Branch: MAIN, MigrateToNewPackage
CVS Tags: v0, HEAD
Changes since 1.1: +0 -0 lines
Migrating package name.  Used to be ModelEditor.  I want to use ModelEditor
name for what used to be PyGUI.  So
	o check out head of ModelEditor
	o tag it MigrateToNewPackage
	o import it as ModelEditorGlade
	o remove all files from ModelEditor
	o add everything from PyGUI

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

#ifdef HAVE_CONFIG_H
#  include "ModelEditor/config.h"
#endif

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

#include <gnome.h>

#include "ModelEditor/Utils.h"
#include "ModelEditor/interface.h"
#include "ModelEditor/support.h"


GtkWidget*
create_window (void)
{
  GtkWidget *window;
  GtkWidget *hpaned1;
  GtkWidget *vpaned1;
  GtkWidget *hpaned2;
  GtkWidget *entry1;
  GtkWidget *OK;
  GtkWidget *scrolled_win;
  GtkWidget *viewport1;
  GtkWidget *tree;
  GtkWidget *scrolled_win2;
  GtkWidget *viewport2;
  GtkWidget *list1;

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  gtk_object_set_data (GTK_OBJECT (window), "window", window);
  gtk_window_set_title (GTK_WINDOW (window), "window1");

  hpaned1 = gtk_hpaned_new ();
  gtk_widget_ref (hpaned1);
  gtk_object_set_data_full (GTK_OBJECT (window), "hpaned1", hpaned1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hpaned1);
  gtk_container_add (GTK_CONTAINER (window), hpaned1);
  gtk_widget_set_usize (hpaned1, 600, 100);
  gtk_container_set_border_width (GTK_CONTAINER (hpaned1), 1);
  gtk_paned_set_position (GTK_PANED (hpaned1), 300);

  vpaned1 = gtk_vpaned_new ();
  gtk_widget_ref (vpaned1);
  gtk_object_set_data_full (GTK_OBJECT (window), "vpaned1", vpaned1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (vpaned1);
  gtk_paned_pack1 (GTK_PANED (hpaned1), vpaned1, FALSE, TRUE);

  hpaned2 = gtk_hpaned_new ();
  gtk_widget_ref (hpaned2);
  gtk_object_set_data_full (GTK_OBJECT (window), "hpaned2", hpaned2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (hpaned2);
  gtk_paned_pack1 (GTK_PANED (vpaned1), hpaned2, FALSE, TRUE);
  gtk_paned_set_handle_size (GTK_PANED (hpaned2), 1);

  entry1 = gtk_entry_new_with_max_length (25);
  gtk_widget_ref (entry1);
  gtk_object_set_data_full (GTK_OBJECT (window), "entry1", entry1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (entry1);
  gtk_paned_pack1 (GTK_PANED (hpaned2), entry1, FALSE, TRUE);
  gtk_entry_set_text (GTK_ENTRY (entry1), "NodeId");

  OK = gnome_stock_button (GNOME_STOCK_BUTTON_OK);
  gtk_widget_ref (OK);
  gtk_object_set_data_full (GTK_OBJECT (window), "OK", OK,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (OK);
  gtk_paned_pack2 (GTK_PANED (hpaned2), OK, TRUE, TRUE);
  gtk_widget_set_usize (OK, 25, 25);
  gtk_container_set_border_width (GTK_CONTAINER (OK), 1);

  scrolled_win = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolled_win);
  gtk_object_set_data_full (GTK_OBJECT (window), "scrolled_win", scrolled_win,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolled_win);
  gtk_paned_pack2 (GTK_PANED (vpaned1), scrolled_win, TRUE, TRUE);

  viewport1 = gtk_viewport_new (NULL, NULL);
  gtk_widget_ref (viewport1);
  gtk_object_set_data_full (GTK_OBJECT (window), "viewport1", viewport1,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (viewport1);
  gtk_container_add (GTK_CONTAINER (scrolled_win), viewport1);

  tree = gtk_tree_new ();
  gtk_widget_ref (tree);
  gtk_object_set_data_full (GTK_OBJECT (window), "tree", tree,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (tree);
  gtk_container_add (GTK_CONTAINER (viewport1), tree);

  scrolled_win2 = gtk_scrolled_window_new (NULL, NULL);
  gtk_widget_ref (scrolled_win2);
  gtk_object_set_data_full (GTK_OBJECT (window), "scrolled_win2", scrolled_win2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (scrolled_win2);
  gtk_paned_pack2 (GTK_PANED (hpaned1), scrolled_win2, TRUE, TRUE);

  viewport2 = gtk_viewport_new (NULL, NULL);
  gtk_widget_ref (viewport2);
  gtk_object_set_data_full (GTK_OBJECT (window), "viewport2", viewport2,
                            (GtkDestroyNotify) gtk_widget_unref);
  gtk_widget_show (viewport2);
  gtk_container_add (GTK_CONTAINER (scrolled_win2), viewport2);

  list1 = gtk_list_new ();
  gtk_widget_ref (list1);
  gtk_object_set_data_full (GTK_OBJECT (window), "list1", list1,
                            (GtkDestroyNotify) gtk_widget_unref);

  
  gtk_widget_show (list1);
  gtk_container_add (GTK_CONTAINER (viewport2), list1);

  gtk_signal_connect (GTK_OBJECT (OK), "clicked",
                      GTK_SIGNAL_FUNC (on_OK_clicked),
                      NULL);


  gtk_signal_connect (GTK_OBJECT (tree), "select_child",
                      GTK_SIGNAL_FUNC (on_tree_select_child),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (tree), "selection_changed",
                      GTK_SIGNAL_FUNC (on_tree_selection_changed),
                      NULL);
  gtk_signal_connect (GTK_OBJECT (tree), "unselect_child",
                      GTK_SIGNAL_FUNC (on_tree_unselect_child),
                      NULL);

  return window;
}


MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3