incubator-bluesky-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dane0...@apache.org
Subject svn commit: r774247 [15/24] - in /incubator/bluesky: tags/Bluesky_version1.0/ trunk/ trunk/sourcecode/ trunk/sourcecode/dtu_src_v1.0/ trunk/sourcecode/student_src_v1.0/ trunk/sourcecode/student_src_v1.0/pic/ trunk/sourcecode/teacher_src_1.0/ trunk/sour...
Date Wed, 13 May 2009 07:44:32 GMT
Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/interface.cc
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/interface.cc?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/interface.cc (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/interface.cc Wed May 13 07:44:26 2009
@@ -0,0 +1,2189 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+
+#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 <stdlib.h>
+#include <iostream.h> 
+
+
+
+#include "callbacks.hh"
+#include "interface.hh"
+#include "support.hh"
+#include "trcclient.hh"
+
+#include "languagechoose.h" 
+
+#include "errorinfo.h"
+
+
+
+#include <gdk/gdkx.h> 
+
+extern struct entry_setpara ncteacher_get_para;   
+extern struct entry_usepara ncteacher_get_user;  
+
+#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)
+struct  CRCLTeacherLogin teachlogin; 
+
+GtkWidget *file_entry;//check
+GtkWidget *enlocalip;//localIP
+
+GtkWidget *enserverip;//serverIP
+GtkWidget *enserverport;//serverPort
+
+GtkWidget *username;
+GtkWidget *passport;
+GtkWidget *creatclass;
+GtkWidget *stopclass;
+GtkWidget *login;
+GtkWidget *exitsys;
+GtkWidget *set_item;
+GtkWidget *classEntry;
+GtkWidget *modetech;
+GtkWidget *modecomu;
+
+GtkWidget *set_toolbutton;
+GtkWidget *join_toolbutton;
+GtkWidget *exit_toolbutton;
+GtkWidget *creat_toolbutton;
+GtkWidget *cancel_toolbutton;
+GtkWidget *tech_toolbutton;
+GtkWidget *commu_toolbutton;
+GtkWidget *allow_chat_toolbutton;
+GtkWidget *rec_toolbutton;
+GtkWidget *student_list_label;
+GtkWidget *student_clist;   //save current student
+
+GtkWidget *concentrate_add_button;
+GtkWidget *concentrate_concel_button;
+
+GtkTextBuffer *commu_buffer;     
+GtkTextIter commu_end;              //use by commu_textview
+GtkTextIter commu_start;
+GtkWidget *chat_button;
+
+GtkWidget *studentimage;
+GtkWidget *teacherimage;
+
+GtkWidget *chat_entry;
+GtkAdjustment *adj;
+GtkWidget *commu_textview;
+
+GtkWidget *review_image;
+GtkWidget *combobox4;
+GtkWidget *combobox5;
+GtkWidget *rec_delay_set_dialog;
+extern int g_work_mode;
+extern char g_DevName[10][32];
+const char *classcenterIP;
+const char *classcenterport;
+int v4l_dev_num=0;
+CRCLCreateGroup  CreateGroup;
+
+
+GtkWidget*
+create_window1 (void)       
+{
+
+  GtkWidget *window1;
+  GtkWidget *vbox20;
+  GtkWidget *main_menubar;
+  GtkWidget *system;
+  GtkWidget *system_menu;
+  GtkWidget *_________1;
+  GtkWidget *modechge;
+  GtkWidget *modechge_menu;
+  GtkWidget *see;
+  GtkWidget *see_menu;
+  GtkWidget *stuimg;
+  GtkWidget *techimg;
+  GtkWidget *vbox21;
+  GtkWidget *main_toolbar;
+  GtkIconSize tmp_toolbar_icon_size;
+  GtkWidget *toolitem1;
+  GtkWidget *toolbar_label1;
+  GtkWidget *tmp_image;
+  GtkWidget *toolitem2;
+  GtkWidget *toolbar_label2;
+  GtkWidget *toolitem3;
+  GtkWidget *toolbar_label3;
+  GtkWidget *toolitem4;
+  GtkWidget *toolbar_label4;
+  GtkWidget *toolitem5;
+  GtkWidget *toolbar_label5;
+  GtkWidget *toolitem6;
+  GtkWidget *toolbar_label6;
+  GtkWidget *toolitem7;
+  GtkWidget *toolbar_label7;
+  GtkWidget *toolitem8;
+  GtkWidget *toolbar_label8;
+  GtkWidget *vbox22;
+  GtkWidget *hbox37;
+  GtkWidget *vbox25;
+  GtkWidget *student_frame;
+  GtkWidget *alignment14;
+  GtkWidget *scrolledwindow8;
+  GtkWidget *student_id_label;
+  GtkWidget *student_name_label;
+  GtkWidget *commu_status_label;
+  GtkWidget *vbox28;
+  GtkWidget *vbox29;
+  GtkWidget *vbox30;
+  GtkWidget *vbox31;
+  GtkWidget *vbox32;
+  GtkWidget *concentrate_label3;
+  GtkWidget *vbox33;
+  GtkWidget *hbox43;
+  GtkWidget *concentrate_label1;
+  GtkWidget *concentrate_label2;
+  GtkWidget *concentrate_label4;
+  GtkWidget *vbox24;
+  GtkWidget *text_frame;
+  GtkWidget *alignment13;
+  GtkWidget *scrolledwindow7;
+  GtkWidget *clearitem;
+  GtkWidget *clearitem_menu;
+  GtkWidget *clearchat_item;
+  GtkWidget *commu_text_label;
+  GtkWidget *hbox38;
+  GtkWidget *hbox39;
+  GtkWidget *commun_label1;
+  GtkWidget *hbox40;
+  GtkWidget *hbox41;
+  GtkWidget *commu_label2;
+  GtkWidget *vbox27;
+  GtkWidget *commu_label3;
+  GtkWidget *label61;
+  GtkWidget *vbox23;
+  GtkWidget *statusbar1;
+  
+  GtkTooltips *tooltips;
+  GtkWidget *choose;
+  GtkWidget *choose_menu;
+  GtkWidget *toolitem9;
+  GtkWidget *label87;
+  GtkWidget *work_mode;
+  GdkScreen *ServerScreen;
+	int iHeight;
+	int iWidth;
+    ServerScreen= gdk_screen_get_default( );
+    iHeight = gdk_screen_get_height( ServerScreen ); 
+    iWidth = gdk_screen_get_width( ServerScreen ) ; 
+  
+   
+
+
+  tooltips = gtk_tooltips_new ();
+
+  window1 = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+  gtk_widget_set_size_request (window1, 770, 520);
+  gtk_window_set_title (GTK_WINDOW (window1),ptitle);        
+   gtk_window_set_resizable (GTK_WINDOW (window1), FALSE);
+
+  vbox20 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox20);
+  gtk_container_add (GTK_CONTAINER (window1), vbox20);
+
+  main_menubar = gtk_menu_bar_new ();
+  gtk_widget_show (main_menubar);
+  gtk_box_pack_start (GTK_BOX (vbox20), main_menubar, FALSE, FALSE, 0);
+
+  system = gtk_menu_item_new_with_mnemonic(psys);    
+  gtk_widget_show (system);
+  gtk_container_add (GTK_CONTAINER (main_menubar), system);
+
+  system_menu = gtk_menu_new ();
+  gtk_menu_item_set_submenu (GTK_MENU_ITEM (system), system_menu);
+
+  creatclass = gtk_menu_item_new_with_mnemonic (pcreat);      
+  gtk_widget_show (creatclass);
+  gtk_container_add (GTK_CONTAINER (system_menu), creatclass);
+  gtk_widget_set_sensitive (creatclass, FALSE);
+
+  stopclass = gtk_menu_item_new_with_mnemonic (pstop);
+  gtk_widget_show (stopclass);
+  gtk_container_add (GTK_CONTAINER (system_menu), stopclass);
+  gtk_widget_set_sensitive (stopclass, FALSE);
+
+  set_item = gtk_menu_item_new_with_mnemonic (pset);       
+  gtk_widget_show (set_item);
+  gtk_container_add (GTK_CONTAINER (system_menu), set_item);
+
+  login = gtk_menu_item_new_with_mnemonic (plogin);  
+  gtk_widget_show (login);
+  gtk_container_add (GTK_CONTAINER (system_menu), login);
+  gtk_widget_set_sensitive (login, FALSE);
+
+  _________1 = gtk_separator_menu_item_new ();
+  gtk_widget_show (_________1);
+  gtk_container_add (GTK_CONTAINER (system_menu), _________1);
+  gtk_widget_set_sensitive (_________1, FALSE);
+
+  exitsys = gtk_menu_item_new_with_mnemonic (pquit);       
+  gtk_widget_show (exitsys);
+  gtk_container_add (GTK_CONTAINER (system_menu), exitsys);
+
+  modechge = gtk_menu_item_new_with_mnemonic (pmodechge);      
+  gtk_widget_show (modechge);
+  gtk_container_add (GTK_CONTAINER (main_menubar), modechge);
+
+  modechge_menu = gtk_menu_new ();
+  gtk_menu_item_set_submenu (GTK_MENU_ITEM (modechge), modechge_menu);
+
+  modetech = gtk_menu_item_new_with_mnemonic (pmodetech);          
+  gtk_widget_show (modetech);
+  gtk_container_add (GTK_CONTAINER (modechge_menu), modetech);
+  gtk_widget_set_sensitive (modetech, FALSE);
+
+  modecomu = gtk_menu_item_new_with_mnemonic (pmodecomu);                 
+  gtk_widget_show (modecomu);
+  gtk_container_add (GTK_CONTAINER (modechge_menu), modecomu);
+  gtk_widget_set_sensitive (modecomu, FALSE);
+
+  see = gtk_menu_item_new_with_mnemonic (pview); 
+  gtk_widget_show (see);
+  gtk_container_add (GTK_CONTAINER (main_menubar), see);
+
+  see_menu = gtk_menu_new ();
+  gtk_menu_item_set_submenu (GTK_MENU_ITEM (see), see_menu);
+
+  stuimg = gtk_menu_item_new_with_mnemonic (pstuimg);       
+  gtk_widget_show (stuimg);
+  gtk_container_add (GTK_CONTAINER (see_menu), stuimg);
+
+  techimg = gtk_menu_item_new_with_mnemonic (ptechimg);            
+  gtk_widget_show (techimg);
+  gtk_container_add (GTK_CONTAINER (see_menu), techimg);
+  
+  vbox21 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox21);
+  gtk_box_pack_start (GTK_BOX (vbox20), vbox21, TRUE, TRUE, 0);
+
+  main_toolbar = gtk_toolbar_new ();
+  gtk_widget_show (main_toolbar);
+  gtk_box_pack_start (GTK_BOX (vbox21), main_toolbar, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (main_toolbar, -1, 48);
+  gtk_toolbar_set_style (GTK_TOOLBAR (main_toolbar), GTK_TOOLBAR_BOTH);
+  tmp_toolbar_icon_size = gtk_toolbar_get_icon_size (GTK_TOOLBAR (main_toolbar));
+
+  toolitem1 = (GtkWidget*) gtk_tool_item_new ();
+  gtk_widget_show (toolitem1);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), toolitem1);
+
+  toolbar_label1 = gtk_label_new ("");
+  gtk_widget_show (toolbar_label1);
+  gtk_container_add (GTK_CONTAINER (toolitem1), toolbar_label1);
+  gtk_widget_set_size_request (toolbar_label1, 8, -1);
+
+  tmp_image = gtk_image_new_from_stock ("gtk-properties", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  set_toolbutton = (GtkWidget*) gtk_tool_button_new (tmp_image, pstatrib);    
+  gtk_widget_show (set_toolbutton);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), set_toolbutton);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (set_toolbutton), tooltips,p ,NULL);         
+
+  toolitem2 = (GtkWidget*) gtk_tool_item_new ();
+  gtk_widget_show (toolitem2);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), toolitem2);
+
+  toolbar_label2 = gtk_label_new ("");
+  gtk_widget_show (toolbar_label2);
+  gtk_container_add (GTK_CONTAINER (toolitem2), toolbar_label2);
+  gtk_widget_set_size_request (toolbar_label2, 30, -1);
+
+  tmp_image = gtk_image_new_from_stock ("gtk-go-forward", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  
+  join_toolbutton = (GtkWidget*) gtk_tool_button_new (tmp_image, pjoin);      
+  gtk_widget_show (join_toolbutton);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), join_toolbutton);
+  gtk_widget_set_sensitive (join_toolbutton, FALSE);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (join_toolbutton), tooltips, pgtk, NULL);  
+  gtk_widget_set_sensitive (join_toolbutton, FALSE);
+
+  toolitem3 = (GtkWidget*) gtk_tool_item_new ();
+  gtk_widget_show (toolitem3);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), toolitem3);
+
+  toolbar_label3 = gtk_label_new ("");
+  gtk_widget_show (toolbar_label3);
+  gtk_container_add (GTK_CONTAINER (toolitem3), toolbar_label3);
+  gtk_widget_set_size_request (toolbar_label3, 5, -1);
+
+  tmp_image = gtk_image_new_from_stock ("gtk-quit", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  
+  exit_toolbutton = (GtkWidget*) gtk_tool_button_new (tmp_image, pexit);   
+  gtk_widget_show (exit_toolbutton);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), exit_toolbutton);
+  gtk_widget_set_sensitive (exit_toolbutton, FALSE);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (exit_toolbutton), tooltips, pgtk1, NULL); 
+  gtk_widget_set_sensitive (exit_toolbutton, FALSE);
+  
+  toolitem4 = (GtkWidget*) gtk_tool_item_new ();
+  gtk_widget_show (toolitem4);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), toolitem4);
+
+  toolbar_label4 = gtk_label_new ("");
+  gtk_widget_show (toolbar_label4);
+  gtk_container_add (GTK_CONTAINER (toolitem4), toolbar_label4);
+  gtk_widget_set_size_request (toolbar_label4, 30, -1);
+
+  tmp_image = gtk_image_new_from_stock ("gtk-yes", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  
+  creat_toolbutton = (GtkWidget*) gtk_tool_button_new (tmp_image, pcrt);    
+  gtk_widget_show (creat_toolbutton);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), creat_toolbutton);
+  gtk_widget_set_sensitive (creat_toolbutton, FALSE);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (creat_toolbutton), tooltips, pgtk2, NULL);  
+  gtk_widget_set_sensitive (creat_toolbutton, FALSE);
+
+  toolitem5 = (GtkWidget*) gtk_tool_item_new ();
+  gtk_widget_show (toolitem5);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), toolitem5);
+
+  toolbar_label5 = gtk_label_new ("");
+  gtk_widget_show (toolbar_label5);
+  gtk_container_add (GTK_CONTAINER (toolitem5), toolbar_label5);
+  gtk_widget_set_size_request (toolbar_label5, 5, -1);
+
+  tmp_image = gtk_image_new_from_stock ("gtk-stop", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  
+  cancel_toolbutton = (GtkWidget*) gtk_tool_button_new (tmp_image, pcancle); 
+  gtk_widget_show (cancel_toolbutton);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), cancel_toolbutton);
+  gtk_widget_set_sensitive (cancel_toolbutton, FALSE);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (cancel_toolbutton), tooltips, pgtk3 ,NULL);  
+  gtk_widget_set_sensitive (cancel_toolbutton, FALSE);
+
+  toolitem6 = (GtkWidget*) gtk_tool_item_new ();
+  gtk_widget_show (toolitem6);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), toolitem6);
+
+  toolbar_label6 = gtk_label_new ("");
+  gtk_widget_show (toolbar_label6);
+  gtk_container_add (GTK_CONTAINER (toolitem6), toolbar_label6);
+  gtk_widget_set_size_request (toolbar_label6, 30, -1);
+
+  tmp_image = gtk_image_new_from_stock ("gtk-edit", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  
+  tech_toolbutton = (GtkWidget*) gtk_tool_button_new (tmp_image, pteach);  
+  gtk_widget_show (tech_toolbutton);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), tech_toolbutton);
+  gtk_widget_set_sensitive (tech_toolbutton, FALSE);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (tech_toolbutton), tooltips, pgtk4, NULL);  
+  gtk_widget_set_sensitive (tech_toolbutton, FALSE);
+
+  toolitem7 = (GtkWidget*) gtk_tool_item_new ();
+  gtk_widget_show (toolitem7);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), toolitem7);
+
+  toolbar_label7 = gtk_label_new ("");
+  gtk_widget_show (toolbar_label7);
+  gtk_container_add (GTK_CONTAINER (toolitem7), toolbar_label7);
+  gtk_widget_set_size_request (toolbar_label7, 5, -1);
+
+  tmp_image = gtk_image_new_from_stock ("gtk-network", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  
+  commu_toolbutton = (GtkWidget*) gtk_tool_button_new (tmp_image, pcomu);  
+  gtk_widget_show (commu_toolbutton);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), commu_toolbutton);
+  gtk_widget_set_sensitive (commu_toolbutton, FALSE);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (commu_toolbutton), tooltips, pgtk5, NULL);  
+  gtk_widget_set_sensitive (commu_toolbutton, FALSE);
+
+  toolitem8 = (GtkWidget*) gtk_tool_item_new ();
+  gtk_widget_show (toolitem8);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), toolitem8);
+
+  toolbar_label8 = gtk_label_new ("");
+  gtk_widget_show (toolbar_label8);
+  gtk_container_add (GTK_CONTAINER (toolitem8), toolbar_label8);
+  gtk_widget_set_size_request (toolbar_label8, 9, -1);
+  
+  tmp_image = gtk_image_new_from_stock ("gtk-dialog-warning", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  allow_chat_toolbutton = (GtkWidget*) gtk_tool_button_new (tmp_image, pmodeswich); 
+  gtk_widget_show (allow_chat_toolbutton);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), allow_chat_toolbutton);
+  gtk_widget_set_sensitive (allow_chat_toolbutton, FALSE);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (allow_chat_toolbutton), tooltips, _(pchatchge), NULL); 
+
+  
+  vbox22 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox22);
+  gtk_box_pack_start (GTK_BOX (vbox21), vbox22, TRUE, TRUE, 0);
+
+  hbox37 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox37);
+  gtk_box_pack_start (GTK_BOX (vbox22), hbox37, TRUE, TRUE, 0);
+
+  vbox25 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox25);
+  gtk_box_pack_start (GTK_BOX (hbox37), vbox25, TRUE, TRUE, 0);
+
+  student_frame = gtk_frame_new (NULL);
+  gtk_widget_show (student_frame);
+  gtk_box_pack_start (GTK_BOX (vbox25), student_frame, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (student_frame, 112, 384);
+  gtk_container_set_border_width (GTK_CONTAINER (student_frame), 4);
+
+  alignment14 = gtk_alignment_new (0.5, 0.5, 1, 1);
+  gtk_widget_show (alignment14);
+  gtk_container_add (GTK_CONTAINER (student_frame), alignment14);
+  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment14), 0, 0, 12, 0);
+
+  scrolledwindow8 = gtk_scrolled_window_new (NULL, NULL);
+  gtk_widget_show (scrolledwindow8);
+  gtk_container_add (GTK_CONTAINER (alignment14), scrolledwindow8);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow8), GTK_SHADOW_IN);
+
+  student_clist = gtk_clist_new (3);
+  gtk_widget_show (student_clist);
+  gtk_container_add (GTK_CONTAINER (scrolledwindow8), student_clist);
+  gtk_clist_set_column_width (GTK_CLIST (student_clist), 0, 18);
+  gtk_clist_set_column_width (GTK_CLIST (student_clist), 1, 58);
+  gtk_clist_set_column_width (GTK_CLIST (student_clist), 2, 56);
+  gtk_clist_column_titles_show (GTK_CLIST (student_clist));
+
+  student_id_label = gtk_label_new (_("ID"));
+  gtk_widget_show (student_id_label);
+  gtk_clist_set_column_widget (GTK_CLIST (student_clist), 0, student_id_label);
+
+  student_name_label = gtk_label_new (pstuname);   
+  gtk_widget_show (student_name_label);
+  gtk_clist_set_column_widget (GTK_CLIST (student_clist), 1, student_name_label);
+
+  commu_status_label = gtk_label_new (pcomustat);   
+  gtk_widget_show (commu_status_label);
+  gtk_clist_set_column_widget (GTK_CLIST (student_clist), 2, commu_status_label);
+
+  student_list_label = gtk_label_new (pstulist);  
+  gtk_widget_show (student_list_label);
+  gtk_frame_set_label_widget (GTK_FRAME (student_frame), student_list_label);
+  gtk_label_set_use_markup (GTK_LABEL (student_list_label), TRUE);
+
+  vbox28 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox28);
+  gtk_box_pack_start (GTK_BOX (vbox25), vbox28, TRUE, TRUE, 0);
+
+  vbox29 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox29);
+  gtk_box_pack_start (GTK_BOX (vbox28), vbox29, TRUE, TRUE, 0);
+
+  vbox30 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox30);
+  gtk_box_pack_start (GTK_BOX (vbox29), vbox30, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (vbox30, 100, -1);
+
+  vbox31 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox31);
+  gtk_box_pack_start (GTK_BOX (vbox30), vbox31, TRUE, TRUE, 0);
+
+  vbox32 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox32);
+  gtk_box_pack_start (GTK_BOX (vbox31), vbox32, TRUE, TRUE, 0);
+
+  concentrate_label3 = gtk_label_new ("");
+  gtk_widget_show (concentrate_label3);
+  gtk_box_pack_start (GTK_BOX (vbox32), concentrate_label3, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (concentrate_label3, -1, 9);
+
+  vbox33 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox33);
+  gtk_box_pack_start (GTK_BOX (vbox32), vbox33, TRUE, TRUE, 0);
+
+  hbox43 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox43);
+  gtk_box_pack_start (GTK_BOX (vbox33), hbox43, TRUE, TRUE, 0);
+
+  concentrate_label1 = gtk_label_new ("");
+  gtk_widget_show (concentrate_label1);
+  gtk_box_pack_start (GTK_BOX (hbox43), concentrate_label1, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (concentrate_label1, 49, -1);
+
+  concentrate_add_button = gtk_button_new_with_mnemonic (padd); 
+  gtk_widget_show (concentrate_add_button);
+  gtk_box_pack_start (GTK_BOX (hbox43), concentrate_add_button, FALSE, FALSE, 0);
+  gtk_widget_set_sensitive (concentrate_add_button, FALSE);
+  
+  concentrate_label2 = gtk_label_new ("");
+  gtk_widget_show (concentrate_label2);
+  gtk_box_pack_start (GTK_BOX (hbox43), concentrate_label2, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (concentrate_label2, 10, -1);
+
+  concentrate_concel_button = gtk_button_new_with_mnemonic (pgtk11);
+  gtk_widget_show (concentrate_concel_button);
+  gtk_box_pack_start (GTK_BOX (hbox43), concentrate_concel_button, FALSE, FALSE, 0);
+  gtk_widget_set_sensitive (concentrate_concel_button, FALSE);
+
+  concentrate_label4 = gtk_label_new ("");
+  gtk_widget_show (concentrate_label4);
+  gtk_box_pack_start (GTK_BOX (vbox33), concentrate_label4, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (concentrate_label4, -1, 9);
+
+  vbox24 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox24);
+  gtk_box_pack_start (GTK_BOX (hbox37), vbox24, TRUE, TRUE, 0);
+
+  text_frame = gtk_frame_new (NULL);
+  gtk_widget_show (text_frame);
+  gtk_box_pack_start (GTK_BOX (vbox24), text_frame, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (text_frame, 141, 380);
+  gtk_container_set_border_width (GTK_CONTAINER (text_frame), 4);
+
+
+  alignment13 = gtk_alignment_new (0.5, 0.5, 1, 1);
+  gtk_widget_show (alignment13);
+  gtk_container_add (GTK_CONTAINER (text_frame), alignment13);
+  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment13), 0, 0, 12, 0);
+
+
+  scrolledwindow7 = gtk_scrolled_window_new (NULL, NULL);
+  gtk_widget_show (scrolledwindow7);
+  gtk_container_add (GTK_CONTAINER (alignment13), scrolledwindow7);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow7), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow7), GTK_SHADOW_IN);
+  
+  adj=gtk_scrolled_window_get_vadjustment(GTK_SCROLLED_WINDOW (scrolledwindow7));
+  
+  commu_textview = gtk_text_view_new ();
+  gtk_widget_show (commu_textview);
+  gtk_container_add (GTK_CONTAINER (scrolledwindow7), commu_textview);
+  gtk_text_view_set_editable (GTK_TEXT_VIEW (commu_textview), FALSE);
+    
+  commu_buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW(commu_textview));
+  gtk_text_buffer_get_end_iter(commu_buffer,&commu_end);
+ 
+  
+  
+  
+  commu_text_label = gtk_label_new (pcommu);   
+  gtk_widget_show (commu_text_label);
+  gtk_frame_set_label_widget (GTK_FRAME (text_frame), commu_text_label);
+  gtk_label_set_use_markup (GTK_LABEL (commu_text_label), TRUE);
+
+  hbox38 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox38);
+  gtk_box_pack_start (GTK_BOX (vbox24), hbox38, TRUE, TRUE, 0);
+
+  hbox39 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox39);
+  gtk_box_pack_start (GTK_BOX (hbox38), hbox39, TRUE, TRUE, 0);
+
+  commun_label1 = gtk_label_new ("");
+  gtk_widget_show (commun_label1);
+  gtk_box_pack_start (GTK_BOX (hbox39), commun_label1, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (commun_label1, 12, -1);
+
+  hbox40 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox40);
+  gtk_box_pack_start (GTK_BOX (hbox39), hbox40, TRUE, TRUE, 0);
+
+  hbox41 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox41);
+  gtk_box_pack_start (GTK_BOX (hbox40), hbox41, TRUE, TRUE, 0);
+
+  chat_entry = gtk_entry_new ();
+  gtk_widget_show (chat_entry);
+  gtk_box_pack_start (GTK_BOX (hbox41), chat_entry, TRUE, TRUE, 0);
+
+  commu_label2 = gtk_label_new ("");
+  gtk_widget_show (commu_label2);
+  gtk_box_pack_start (GTK_BOX (hbox41), commu_label2, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (commu_label2, 5, -1);
+  
+ 
+  
+  vbox27 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox27);
+  gtk_box_pack_start (GTK_BOX (hbox40), vbox27, FALSE, FALSE, 0);
+
+  commu_label3 = gtk_label_new ("");
+  gtk_widget_show (commu_label3);
+  gtk_box_pack_start (GTK_BOX (vbox27), commu_label3, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (commu_label3, -1, 12);
+
+  chat_button = gtk_button_new_with_mnemonic (pchat);   
+  gtk_widget_show (chat_button);
+  gtk_box_pack_start (GTK_BOX (vbox27), chat_button, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (chat_button, 50, 26);
+  gtk_widget_set_sensitive (chat_button, FALSE);
+  
+ 
+  
+  
+
+  label61 = gtk_label_new ("");
+  gtk_widget_show (label61);
+  gtk_box_pack_start (GTK_BOX (hbox40), label61, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label61, 6, -1);
+
+  vbox23 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox23);
+  gtk_box_pack_start (GTK_BOX (hbox37), vbox23, TRUE, TRUE, 0);
+
+  studentimage = create_pixmap (window1, NULL);
+  gtk_widget_show (studentimage);
+  gtk_box_pack_start (GTK_BOX (vbox23), studentimage, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (studentimage, 170, -1);
+
+  teacherimage = create_pixmap (window1, NULL);
+  gtk_widget_show (teacherimage);
+  gtk_box_pack_start (GTK_BOX (vbox23), teacherimage, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (teacherimage, 170, -1);
+
+  statusbar1 = gtk_statusbar_new ();
+  gtk_widget_show (statusbar1);
+  gtk_box_pack_start (GTK_BOX (vbox22), statusbar1, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (statusbar1, -1, 3);
+  
+  choose = gtk_menu_item_new_with_mnemonic (pchoose); 
+  gtk_widget_show (choose);
+  gtk_container_add (GTK_CONTAINER (main_menubar), choose);
+
+  choose_menu = gtk_menu_new ();
+  gtk_menu_item_set_submenu (GTK_MENU_ITEM (choose), choose_menu);
+
+  
+  work_mode = gtk_menu_item_new_with_mnemonic (pwkmode);     
+  gtk_widget_show (work_mode);
+  gtk_container_add (GTK_CONTAINER (choose_menu), work_mode);
+
+  clearitem = gtk_menu_item_new_with_mnemonic (pclear);  
+  gtk_widget_show (clearitem);
+  gtk_container_add (GTK_CONTAINER (main_menubar), clearitem);
+
+  clearitem_menu = gtk_menu_new ();
+  gtk_menu_item_set_submenu (GTK_MENU_ITEM (clearitem), clearitem_menu);
+
+  clearchat_item = gtk_menu_item_new_with_mnemonic (pclrchat);   
+  gtk_widget_show (clearchat_item);
+  gtk_container_add (GTK_CONTAINER (clearitem_menu), clearchat_item);
+
+  
+  
+  toolitem9 = (GtkWidget*) gtk_tool_item_new ();
+  gtk_widget_show (toolitem9);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), toolitem9);
+
+  label87 = gtk_label_new ("");
+  gtk_widget_show (label87);
+  gtk_container_add (GTK_CONTAINER (toolitem9), label87);
+  gtk_widget_set_size_request (label87, 10, -1);
+  
+  
+  
+  tmp_image = gtk_image_new_from_stock ("gtk-media-record", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  rec_toolbutton = (GtkWidget*) gtk_tool_button_new (tmp_image, prec);
+  gtk_widget_show (rec_toolbutton);
+  gtk_container_add (GTK_CONTAINER (main_toolbar), rec_toolbutton);
+  gtk_widget_set_sensitive (rec_toolbutton, FALSE);
+
+  g_signal_connect(G_OBJECT(window1),"destroy",
+                   G_CALLBACK(gtk_main_quit),NULL);
+  
+
+  g_signal_connect ((gpointer) creatclass, "activate",
+                    G_CALLBACK (on_creatclass_activate),
+                    NULL);
+  g_signal_connect ((gpointer) stopclass, "activate",
+                    G_CALLBACK (on_stopclass_activate),
+                    NULL);
+  g_signal_connect ((gpointer) set_item, "activate",
+                    G_CALLBACK (on_set_activate),
+                    NULL);
+  g_signal_connect ((gpointer) login, "activate",
+                    G_CALLBACK (on_login_activate),
+                    NULL);
+  g_signal_connect ((gpointer) exitsys, "activate",
+                    G_CALLBACK (on_exitsys_activate),
+                    window1);
+  g_signal_connect ((gpointer) modetech, "activate",
+                    G_CALLBACK (on_modetech_activate),
+                    NULL);
+
+  g_signal_connect ((gpointer) modecomu, "activate",
+                    G_CALLBACK (on_modecomu_activate),
+                    NULL);
+
+  g_signal_connect ((gpointer) stuimg, "activate",
+                    G_CALLBACK (on_stuimg_activate),
+                    NULL);
+  g_signal_connect ((gpointer) techimg, "activate",
+                    G_CALLBACK (on_techimg_activate),
+                    NULL);
+  g_signal_connect ((gpointer) set_toolbutton, "clicked",
+                    G_CALLBACK (on_set_toolbutton_clicked),
+                    NULL);
+  g_signal_connect ((gpointer) join_toolbutton, "clicked",
+                    G_CALLBACK (on_join_toolbutton_clicked),
+                    NULL);
+  g_signal_connect ((gpointer) exit_toolbutton, "clicked",
+                    G_CALLBACK (on_exit_toolbutton_clicked),
+                    window1);
+  g_signal_connect ((gpointer) creat_toolbutton, "clicked",
+                    G_CALLBACK (on_creat_toolbutton_clicked),
+                    NULL);
+  g_signal_connect ((gpointer) cancel_toolbutton, "clicked",
+                    G_CALLBACK (on_cancel_toolbutton_clicked),
+                    NULL);
+  g_signal_connect ((gpointer) tech_toolbutton, "clicked",
+                    G_CALLBACK (on_tech_toolbutton_clicked),
+                    NULL);
+  g_signal_connect ((gpointer) commu_toolbutton, "clicked",
+                    G_CALLBACK (on_commu_toolbutton_clicked),
+                    NULL);
+  g_signal_connect ((gpointer) concentrate_add_button, "clicked",
+                    G_CALLBACK (on_concentrate_add_button_clicked),
+                    NULL);
+  g_signal_connect ((gpointer) concentrate_concel_button, "clicked",
+                    G_CALLBACK (on_concentrate_concel_button_clicked),
+                    NULL);
+  g_signal_connect ((gpointer) chat_button, "clicked",
+                    G_CALLBACK (on_chat_button_clicked),
+                    chat_entry);
+
+  g_signal_connect ((gpointer) chat_entry, "activate",
+                    G_CALLBACK (on_chat_entry_activate),
+                    NULL);
+					
+  g_signal_connect ((gpointer) student_clist, "select_row",
+                    G_CALLBACK (on_student_clist_select_row),
+                    NULL);
+
+  g_signal_connect ((gpointer) allow_chat_toolbutton, "clicked",
+                    G_CALLBACK (on_allow_chat_toolbutton_clicked),
+                    allow_chat_toolbutton);
+  g_signal_connect ((gpointer) work_mode, "activate",
+                    G_CALLBACK (on_work_mode_activate),
+                    NULL);
+  g_signal_connect ((gpointer) rec_toolbutton, "clicked",
+                    G_CALLBACK (on_rec_toolbutton_clicked),
+                    rec_toolbutton);
+  g_signal_connect ((gpointer) clearchat_item, "activate",
+                    G_CALLBACK (on_clearchatitem_activate),
+                    NULL);
+  g_signal_connect(G_OBJECT(window1),"delete_event",
+                  G_CALLBACK(window1_delete_event),window1);
+  GLADE_HOOKUP_OBJECT_NO_REF (window1, window1, "window1");
+  GLADE_HOOKUP_OBJECT (window1, vbox20, "vbox20");
+  GLADE_HOOKUP_OBJECT (window1, main_menubar, "main_menubar");
+  GLADE_HOOKUP_OBJECT (window1, system, "system");
+  GLADE_HOOKUP_OBJECT (window1, system_menu, "system_menu");
+  GLADE_HOOKUP_OBJECT (window1, creatclass, "creatclass");
+  GLADE_HOOKUP_OBJECT (window1, stopclass, "stopclass");
+  GLADE_HOOKUP_OBJECT (window1, set_item, "set_item");
+  GLADE_HOOKUP_OBJECT (window1, login, "login");
+  GLADE_HOOKUP_OBJECT (window1, _________1, "_________1");
+  GLADE_HOOKUP_OBJECT (window1, exitsys, "exitsys");
+  GLADE_HOOKUP_OBJECT (window1, modechge, "modechge");
+  GLADE_HOOKUP_OBJECT (window1, modechge_menu, "modechge_menu");
+  GLADE_HOOKUP_OBJECT (window1, modetech, "modetech");
+  GLADE_HOOKUP_OBJECT (window1, modecomu, "modecomu");
+  GLADE_HOOKUP_OBJECT (window1, see, "see");
+  GLADE_HOOKUP_OBJECT (window1, see_menu, "see_menu");
+  GLADE_HOOKUP_OBJECT (window1, stuimg, "stuimg");
+  GLADE_HOOKUP_OBJECT (window1, techimg, "techimg");
+  GLADE_HOOKUP_OBJECT (window1, vbox21, "vbox21");
+  GLADE_HOOKUP_OBJECT (window1, main_toolbar, "main_toolbar");
+  GLADE_HOOKUP_OBJECT (window1, toolitem1, "toolitem1");
+  GLADE_HOOKUP_OBJECT (window1, toolbar_label1, "toolbar_label1");
+  GLADE_HOOKUP_OBJECT (window1, set_toolbutton, "set_toolbutton");
+  GLADE_HOOKUP_OBJECT (window1, toolitem2, "toolitem2");
+  GLADE_HOOKUP_OBJECT (window1, toolbar_label2, "toolbar_label2");
+  GLADE_HOOKUP_OBJECT (window1, join_toolbutton, "join_toolbutton");
+  GLADE_HOOKUP_OBJECT (window1, toolitem3, "toolitem3");
+  GLADE_HOOKUP_OBJECT (window1, toolbar_label3, "toolbar_label3");
+  GLADE_HOOKUP_OBJECT (window1, exit_toolbutton, "exit_toolbutton");
+  GLADE_HOOKUP_OBJECT (window1, toolitem4, "toolitem4");
+  GLADE_HOOKUP_OBJECT (window1, toolbar_label4, "toolbar_label4");
+  GLADE_HOOKUP_OBJECT (window1, creat_toolbutton, "creat_toolbutton");
+  GLADE_HOOKUP_OBJECT (window1, toolitem5, "toolitem5");
+  GLADE_HOOKUP_OBJECT (window1, toolbar_label5, "toolbar_label5");
+  GLADE_HOOKUP_OBJECT (window1, cancel_toolbutton, "cancel_toolbutton");
+  GLADE_HOOKUP_OBJECT (window1, toolitem6, "toolitem6");
+  GLADE_HOOKUP_OBJECT (window1, toolbar_label6, "toolbar_label6");
+  GLADE_HOOKUP_OBJECT (window1, tech_toolbutton, "tech_toolbutton");
+  GLADE_HOOKUP_OBJECT (window1, toolitem7, "toolitem7");
+  GLADE_HOOKUP_OBJECT (window1, toolbar_label7, "toolbar_label7");
+  GLADE_HOOKUP_OBJECT (window1, commu_toolbutton, "commu_toolbutton");
+  GLADE_HOOKUP_OBJECT (window1, toolitem8, "toolitem8");
+  GLADE_HOOKUP_OBJECT (window1, toolbar_label8, "toolbar_label8");
+  GLADE_HOOKUP_OBJECT (window1, allow_chat_toolbutton, "allow_chat_toolbutton");
+  GLADE_HOOKUP_OBJECT (window1, vbox22, "vbox22");
+  GLADE_HOOKUP_OBJECT (window1, hbox37, "hbox37");
+  GLADE_HOOKUP_OBJECT (window1, vbox25, "vbox25");
+  GLADE_HOOKUP_OBJECT (window1, student_frame, "student_frame");
+  GLADE_HOOKUP_OBJECT (window1, alignment14, "alignment14");
+  GLADE_HOOKUP_OBJECT (window1, scrolledwindow8, "scrolledwindow8");
+  GLADE_HOOKUP_OBJECT (window1, student_clist, "student_clist");
+  GLADE_HOOKUP_OBJECT (window1, student_id_label, "student_id_label");
+  GLADE_HOOKUP_OBJECT (window1, student_name_label, "student_name_label");
+  GLADE_HOOKUP_OBJECT (window1, commu_status_label, "commu_status_label");
+  GLADE_HOOKUP_OBJECT (window1, student_list_label, "student_list_label");
+  GLADE_HOOKUP_OBJECT (window1, vbox28, "vbox28");
+  GLADE_HOOKUP_OBJECT (window1, vbox29, "vbox29");
+  GLADE_HOOKUP_OBJECT (window1, vbox30, "vbox30");
+  GLADE_HOOKUP_OBJECT (window1, vbox31, "vbox31");
+  GLADE_HOOKUP_OBJECT (window1, vbox32, "vbox32");
+  GLADE_HOOKUP_OBJECT (window1, concentrate_label3, "concentrate_label3");
+  GLADE_HOOKUP_OBJECT (window1, vbox33, "vbox33");
+  GLADE_HOOKUP_OBJECT (window1, hbox43, "hbox43");
+  GLADE_HOOKUP_OBJECT (window1, concentrate_label1, "concentrate_label1");
+  GLADE_HOOKUP_OBJECT (window1, concentrate_add_button, "concentrate_add_button");
+  GLADE_HOOKUP_OBJECT (window1, concentrate_label2, "concentrate_label2");
+  GLADE_HOOKUP_OBJECT (window1, concentrate_concel_button, "concentrate_concel_button");
+  GLADE_HOOKUP_OBJECT (window1, concentrate_label4, "concentrate_label4");
+  GLADE_HOOKUP_OBJECT (window1, vbox24, "vbox24");
+  GLADE_HOOKUP_OBJECT (window1, text_frame, "text_frame");
+  GLADE_HOOKUP_OBJECT (window1, alignment13, "alignment13");
+  GLADE_HOOKUP_OBJECT (window1, scrolledwindow7, "scrolledwindow7");
+  GLADE_HOOKUP_OBJECT (window1, commu_textview, "commu_textview");
+  GLADE_HOOKUP_OBJECT (window1, commu_text_label, "commu_text_label");
+  GLADE_HOOKUP_OBJECT (window1, hbox38, "hbox38");
+  GLADE_HOOKUP_OBJECT (window1, hbox39, "hbox39");
+  GLADE_HOOKUP_OBJECT (window1, commun_label1, "commun_label1");
+  GLADE_HOOKUP_OBJECT (window1, hbox40, "hbox40");
+  GLADE_HOOKUP_OBJECT (window1, hbox41, "hbox41");
+  GLADE_HOOKUP_OBJECT (window1, chat_entry, "chat_entry");
+  GLADE_HOOKUP_OBJECT (window1, commu_label2, "commu_label2");
+  GLADE_HOOKUP_OBJECT (window1, vbox27, "vbox27");
+  GLADE_HOOKUP_OBJECT (window1, commu_label3, "commu_label3");
+  GLADE_HOOKUP_OBJECT (window1, chat_button, "chat_button");
+  GLADE_HOOKUP_OBJECT (window1, label61, "label61");
+  GLADE_HOOKUP_OBJECT (window1, vbox23, "vbox23");
+  GLADE_HOOKUP_OBJECT (window1, studentimage, "studentimage");
+  GLADE_HOOKUP_OBJECT (window1, teacherimage, "teacherimage");
+  GLADE_HOOKUP_OBJECT (window1, statusbar1, "statusbar1");
+  GLADE_HOOKUP_OBJECT (window1, choose, "choose");
+  GLADE_HOOKUP_OBJECT (window1, choose_menu, "choose_menu");
+  GLADE_HOOKUP_OBJECT (window1, toolitem9, "toolitem9");
+  GLADE_HOOKUP_OBJECT (window1, label87, "label87");
+  GLADE_HOOKUP_OBJECT (window1, rec_toolbutton, "rec_toolbutton");
+  return window1;
+
+
+}
+
+
+GtkWidget*    //networkdialog
+create_para_dialog (void)
+{
+  GtkWidget *dialog1;
+  GtkWidget *dialog_vbox6;
+  GtkWidget *vbox39;
+  GtkWidget *frame12;
+  GtkWidget *alignment16;
+  GtkWidget *vbox40;
+  GtkWidget *hbox51;
+  GtkWidget *label71;
+  GtkWidget *hbox52;
+  GtkWidget *label72;
+  GtkWidget *label70;
+  GtkWidget *frame13;
+  GtkWidget *alignment17;
+  GtkWidget *vbox41;
+  GtkWidget *hbox53;
+  GtkWidget *label74;
+  GtkWidget *hbox54;
+  GtkWidget *label75;
+  GtkWidget *label73;
+  GtkWidget *hbox55;
+  GtkWidget *hbox57;
+  GtkWidget *advance_button;
+  GtkWidget *alignment20;
+  GtkWidget *hbox60;
+  GtkWidget *image5;
+  GtkWidget *label80;
+  GtkWidget *label79;
+  GtkWidget *networkcancelbutton;
+  GtkWidget *alignment18;
+  GtkWidget *hbox58;
+  GtkWidget *image3;
+  GtkWidget *label76;
+  GtkWidget *networkokbutton;
+  GtkWidget *alignment19;
+  GtkWidget *hbox59;
+  GtkWidget *image4;
+  GtkWidget *label77;
+  GtkWidget *dialog_action_area6;
+
+  dialog1 = gtk_dialog_new ();
+  gtk_widget_set_size_request (dialog1, 300, 200);
+  gtk_window_set_title (GTK_WINDOW (dialog1), pgtitle);  
+  gtk_window_set_modal(GTK_WINDOW(dialog1),TRUE);
+  gtk_window_set_resizable (GTK_WINDOW (dialog1), FALSE);
+  gtk_window_set_default_size (GTK_WINDOW (dialog1), 300, 200);
+  gtk_window_set_type_hint (GTK_WINDOW (dialog1), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+  dialog_vbox6 = GTK_DIALOG (dialog1)->vbox;
+  gtk_widget_show (dialog_vbox6);
+
+  vbox39 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox39);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox6), vbox39, TRUE, TRUE, 0);
+
+  frame12 = gtk_frame_new (NULL);
+  gtk_widget_show (frame12);
+  gtk_box_pack_start (GTK_BOX (vbox39), frame12, TRUE, TRUE, 0);
+  gtk_container_set_border_width (GTK_CONTAINER (frame12), 2);
+
+  alignment16 = gtk_alignment_new (0.5, 0.5, 1, 1);
+  gtk_widget_show (alignment16);
+  gtk_container_add (GTK_CONTAINER (frame12), alignment16);
+  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment16), 0, 0, 12, 0);
+
+  vbox40 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox40);
+  gtk_container_add (GTK_CONTAINER (alignment16), vbox40);
+
+  hbox51 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox51);
+  gtk_box_pack_start (GTK_BOX (vbox40), hbox51, TRUE, TRUE, 0);
+
+  label71 = gtk_label_new (plabe1);   
+  gtk_widget_show (label71);
+  gtk_box_pack_start (GTK_BOX (hbox51), label71, FALSE, FALSE, 0);
+
+  enserverip = gtk_entry_new ();
+  gtk_widget_show (enserverip);
+  gtk_box_pack_start (GTK_BOX (hbox51), enserverip, FALSE, TRUE, 0);
+  gtk_widget_set_size_request (enserverip, 120, -1);
+  gtk_entry_set_text (GTK_ENTRY (enserverip),ncteacher_get_para.serverip);
+
+  hbox52 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox52);
+  gtk_box_pack_start (GTK_BOX (vbox40), hbox52, TRUE, TRUE, 0);
+
+  label72 = gtk_label_new (plabe2);  
+  gtk_widget_show (label72);
+  gtk_box_pack_start (GTK_BOX (hbox52), label72, FALSE, FALSE, 0);
+
+  enserverport = gtk_entry_new ();
+  gtk_widget_show (enserverport);
+  gtk_box_pack_start (GTK_BOX (hbox52), enserverport, FALSE, TRUE, 0);
+  gtk_widget_set_size_request (enserverport, 118, -1);
+  gtk_widget_set_sensitive (enserverport, FALSE);
+  char port_tmp[50];
+  sprintf(port_tmp,"%d",ncteacher_get_para.serverport);
+  gtk_entry_set_text (GTK_ENTRY (enserverport), port_tmp);
+  
+  label70 = gtk_label_new (plabe0);  
+  gtk_widget_show (label70);
+  gtk_frame_set_label_widget (GTK_FRAME (frame12), label70);
+  gtk_label_set_use_markup (GTK_LABEL (label70), TRUE);
+
+  frame13 = gtk_frame_new (NULL);
+  gtk_widget_show (frame13);
+  gtk_box_pack_start (GTK_BOX (vbox39), frame13, TRUE, TRUE, 0);
+  gtk_container_set_border_width (GTK_CONTAINER (frame13), 2);
+
+  alignment17 = gtk_alignment_new (0.5, 0.5, 1, 1);
+  gtk_widget_show (alignment17);
+  gtk_container_add (GTK_CONTAINER (frame13), alignment17);
+  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment17), 0, 0, 12, 0);
+
+  vbox41 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox41);
+  gtk_container_add (GTK_CONTAINER (alignment17), vbox41);
+
+  hbox53 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox53);
+  gtk_box_pack_start (GTK_BOX (vbox41), hbox53, TRUE, TRUE, 0);
+
+
+  char caport_tmp[50];
+
+  hbox54 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox54);
+  gtk_box_pack_start (GTK_BOX (vbox41), hbox54, TRUE, TRUE, 0);
+
+
+  char cvport_tmp[50];
+
+  label73 = gtk_label_new (plabe3);  
+  gtk_widget_show (label73);
+  gtk_frame_set_label_widget (GTK_FRAME (frame13), label73);
+  gtk_label_set_use_markup (GTK_LABEL (label73), TRUE);
+
+  hbox55 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox55);
+  gtk_box_pack_start (GTK_BOX (vbox39), hbox55, FALSE, FALSE, 0);
+
+  hbox57 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox57);
+  gtk_box_pack_start (GTK_BOX (hbox55), hbox57, TRUE, TRUE, 0);
+
+  advance_button = gtk_button_new ();
+  gtk_widget_show (advance_button);
+  gtk_box_pack_start (GTK_BOX (hbox57), advance_button, TRUE, FALSE, 0);
+  gtk_widget_set_size_request (advance_button, 60, 25);
+
+  alignment20 = gtk_alignment_new (0.5, 0.5, 0, 0);
+  gtk_widget_show (alignment20);
+  gtk_container_add (GTK_CONTAINER (advance_button), alignment20);
+
+  hbox60 = gtk_hbox_new (FALSE, 2);
+  gtk_widget_show (hbox60);
+  gtk_container_add (GTK_CONTAINER (alignment20), hbox60);
+
+  image5 = gtk_image_new_from_stock ("gtk-add", GTK_ICON_SIZE_BUTTON);
+  gtk_widget_show (image5);
+  gtk_box_pack_start (GTK_BOX (hbox60), image5, FALSE, FALSE, 0);
+
+  label80 = gtk_label_new_with_mnemonic (plabe10);   
+  gtk_widget_show (label80);
+  gtk_box_pack_start (GTK_BOX (hbox60), label80, FALSE, FALSE, 0);
+
+  label79 = gtk_label_new ("");
+  gtk_widget_show (label79);
+  gtk_box_pack_start (GTK_BOX (hbox57), label79, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label79, 108, -1);
+
+  networkcancelbutton = gtk_button_new ();
+  gtk_widget_show (networkcancelbutton);
+  gtk_box_pack_start (GTK_BOX (hbox57), networkcancelbutton, TRUE, FALSE, 0);
+
+  alignment18 = gtk_alignment_new (0.5, 0.5, 0, 0);
+  gtk_widget_show (alignment18);
+  gtk_container_add (GTK_CONTAINER (networkcancelbutton), alignment18);
+
+  hbox58 = gtk_hbox_new (FALSE, 2);
+  gtk_widget_show (hbox58);
+  gtk_container_add (GTK_CONTAINER (alignment18), hbox58);
+
+  image3 = gtk_image_new_from_stock ("gtk-cancel", GTK_ICON_SIZE_BUTTON);
+  gtk_widget_show (image3);
+  gtk_box_pack_start (GTK_BOX (hbox58), image3, FALSE, FALSE, 0);
+
+  label76 = gtk_label_new_with_mnemonic (plabe6);  
+  gtk_widget_show (label76);
+  gtk_box_pack_start (GTK_BOX (hbox58), label76, FALSE, FALSE, 0);
+
+  networkokbutton = gtk_button_new ();
+  gtk_widget_show (networkokbutton);
+  gtk_box_pack_start (GTK_BOX (hbox57), networkokbutton, TRUE, FALSE, 0);
+
+  alignment19 = gtk_alignment_new (0.5, 0.5, 0, 0);
+  gtk_widget_show (alignment19);
+  gtk_container_add (GTK_CONTAINER (networkokbutton), alignment19);
+
+  hbox59 = gtk_hbox_new (FALSE, 2);
+  gtk_widget_show (hbox59);
+  gtk_container_add (GTK_CONTAINER (alignment19), hbox59);
+
+  image4 = gtk_image_new_from_stock ("gtk-ok", GTK_ICON_SIZE_BUTTON);
+  gtk_widget_show (image4);
+  gtk_box_pack_start (GTK_BOX (hbox59), image4, FALSE, FALSE, 0);
+
+  label77 = gtk_label_new_with_mnemonic (plabe7);  
+  gtk_widget_show (label77);
+  gtk_box_pack_start (GTK_BOX (hbox59), label77, FALSE, FALSE, 0);
+
+  dialog_action_area6 = GTK_DIALOG (dialog1)->action_area;
+  gtk_widget_show (dialog_action_area6);
+  gtk_widget_set_size_request (dialog_action_area6, -1, 0);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area6), GTK_BUTTONBOX_END);
+
+  g_signal_connect ((gpointer) advance_button, "clicked",
+                    G_CALLBACK (on_advance_button_clicked),
+                    NULL);
+  g_signal_connect ((gpointer) networkcancelbutton, "clicked",
+                    G_CALLBACK (on_networkcancelbutton_clicked),
+                    dialog1);
+  g_signal_connect ((gpointer) networkokbutton, "clicked",
+                    G_CALLBACK (on_networkokbutton_clicked),
+                    dialog1);
+
+  GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog1, "dialog1");
+  GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_vbox6, "dialog_vbox6");
+  GLADE_HOOKUP_OBJECT (dialog1, vbox39, "vbox39");
+  GLADE_HOOKUP_OBJECT (dialog1, frame12, "frame12");
+  GLADE_HOOKUP_OBJECT (dialog1, alignment16, "alignment16");
+  GLADE_HOOKUP_OBJECT (dialog1, vbox40, "vbox40");
+  GLADE_HOOKUP_OBJECT (dialog1, hbox51, "hbox51");
+  GLADE_HOOKUP_OBJECT (dialog1, label71, "label71");
+  GLADE_HOOKUP_OBJECT (dialog1, enserverip, "enserverip");
+  GLADE_HOOKUP_OBJECT (dialog1, hbox52, "hbox52");
+  GLADE_HOOKUP_OBJECT (dialog1, label72, "label72");
+  GLADE_HOOKUP_OBJECT (dialog1, enserverport, "enserverport");
+  GLADE_HOOKUP_OBJECT (dialog1, label70, "label70");
+  GLADE_HOOKUP_OBJECT (dialog1, frame13, "frame13");
+  GLADE_HOOKUP_OBJECT (dialog1, alignment17, "alignment17");
+  GLADE_HOOKUP_OBJECT (dialog1, vbox41, "vbox41");
+  GLADE_HOOKUP_OBJECT (dialog1, hbox53, "hbox53");
+  GLADE_HOOKUP_OBJECT (dialog1, label74, "label74");
+  GLADE_HOOKUP_OBJECT (dialog1, hbox54, "hbox54");
+  GLADE_HOOKUP_OBJECT (dialog1, label75, "label75");
+  GLADE_HOOKUP_OBJECT (dialog1, label73, "label73");
+  GLADE_HOOKUP_OBJECT (dialog1, hbox55, "hbox55");
+  GLADE_HOOKUP_OBJECT (dialog1, hbox57, "hbox57");
+  GLADE_HOOKUP_OBJECT (dialog1, advance_button, "advance_button");
+  GLADE_HOOKUP_OBJECT (dialog1, alignment20, "alignment20");
+  GLADE_HOOKUP_OBJECT (dialog1, hbox60, "hbox60");
+  GLADE_HOOKUP_OBJECT (dialog1, image5, "image5");
+  GLADE_HOOKUP_OBJECT (dialog1, label80, "label80");
+  GLADE_HOOKUP_OBJECT (dialog1, label79, "label79");
+  GLADE_HOOKUP_OBJECT (dialog1, networkcancelbutton, "networkcancelbutton");
+  GLADE_HOOKUP_OBJECT (dialog1, alignment18, "alignment18");
+  GLADE_HOOKUP_OBJECT (dialog1, hbox58, "hbox58");
+  GLADE_HOOKUP_OBJECT (dialog1, image3, "image3");
+  GLADE_HOOKUP_OBJECT (dialog1, label76, "label76");
+  GLADE_HOOKUP_OBJECT (dialog1, networkokbutton, "networkokbutton");
+  GLADE_HOOKUP_OBJECT (dialog1, alignment19, "alignment19");
+  GLADE_HOOKUP_OBJECT (dialog1, hbox59, "hbox59");
+  GLADE_HOOKUP_OBJECT (dialog1, image4, "image4");
+  GLADE_HOOKUP_OBJECT (dialog1, label77, "label77");
+  GLADE_HOOKUP_OBJECT_NO_REF (dialog1, dialog_action_area6, "dialog_action_area6");
+
+  return dialog1;
+}
+
+
+GtkWidget*    //login dialog
+create_login_dialog (void)
+{
+  GtkWidget *dialog2;
+  GtkWidget *dialog_vbox2;
+  GtkWidget *hbox29;
+  GtkWidget *frame10;
+  GtkWidget *alignment10;
+  GtkWidget *vbox18;
+  GtkWidget *hbox31;
+  GtkWidget *label55;
+  GtkWidget *hbox32;
+  GtkWidget *label56;
+  GtkWidget *label54;
+  GtkWidget *dialog_action_area2;
+  GtkWidget *loginokbutton;
+  GtkWidget *login_cancelbutton;
+
+  dialog2 = gtk_dialog_new ();
+  gtk_widget_set_size_request (dialog2, -1, 227);
+  gtk_window_set_title (GTK_WINDOW (dialog2), ptitle1);  
+  gtk_window_set_default_size (GTK_WINDOW (dialog2), 249, 158);
+  gtk_window_set_modal(GTK_WINDOW(dialog2),TRUE);
+  gtk_window_set_resizable (GTK_WINDOW (dialog2), FALSE);
+  gtk_window_set_type_hint (GTK_WINDOW (dialog2), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+  dialog_vbox2 = GTK_DIALOG (dialog2)->vbox;
+  gtk_widget_show (dialog_vbox2);
+
+  hbox29 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox29);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox2), hbox29, TRUE, TRUE, 0);
+
+  frame10 = gtk_frame_new (NULL);
+  gtk_widget_show (frame10);
+  gtk_box_pack_start (GTK_BOX (hbox29), frame10, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (frame10, 301, 160);
+  gtk_container_set_border_width (GTK_CONTAINER (frame10), 20);
+
+  alignment10 = gtk_alignment_new (0.5, 0.5, 1, 1);
+  gtk_widget_show (alignment10);
+  gtk_container_add (GTK_CONTAINER (frame10), alignment10);
+  gtk_container_set_border_width (GTK_CONTAINER (alignment10), 20);
+  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment10), 0, 0, 12, 0);
+
+  vbox18 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox18);
+  gtk_container_add (GTK_CONTAINER (alignment10), vbox18);
+
+  hbox31 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox31);
+  gtk_box_pack_start (GTK_BOX (vbox18), hbox31, TRUE, TRUE, 0);
+
+  label55 = gtk_label_new (plabe05);   
+  gtk_widget_show (label55);
+  gtk_box_pack_start (GTK_BOX (hbox31), label55, FALSE, FALSE, 0);
+
+  username = gtk_entry_new ();
+  gtk_widget_show (username);
+  gtk_box_pack_start (GTK_BOX (hbox31), username, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (username, 150, -1);
+  gtk_entry_set_text (GTK_ENTRY (username),ncteacher_get_user.username);
+
+  hbox32 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox32);
+  gtk_box_pack_start (GTK_BOX (vbox18), hbox32, TRUE, TRUE, 0);
+
+  label56 = gtk_label_new (plabe06);  
+  gtk_widget_show (label56);
+  gtk_box_pack_start (GTK_BOX (hbox32), label56, FALSE, FALSE, 0);
+
+  passport = gtk_entry_new ();
+  gtk_widget_show (passport);
+  gtk_box_pack_start (GTK_BOX (hbox32), passport, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (passport, 150, -1);
+  gtk_entry_set_visibility (GTK_ENTRY (passport), FALSE);
+  gtk_entry_set_visibility (GTK_ENTRY (passport), FALSE);
+  gtk_entry_set_text (GTK_ENTRY (passport),ncteacher_get_user.password);
+  
+  label54 = gtk_label_new (plabe04);   
+  gtk_widget_show (label54);
+  gtk_frame_set_label_widget (GTK_FRAME (frame10), label54);
+  gtk_label_set_use_markup (GTK_LABEL (label54), TRUE);
+
+  dialog_action_area2 = GTK_DIALOG (dialog2)->action_area;
+  gtk_widget_show (dialog_action_area2);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END);
+
+  login_cancelbutton = gtk_button_new_from_stock ("gtk-cancel");
+  gtk_widget_show (login_cancelbutton);
+  gtk_dialog_add_action_widget (GTK_DIALOG (dialog2), login_cancelbutton, GTK_RESPONSE_CANCEL);
+  gtk_widget_set_size_request (login_cancelbutton, 79, 32);
+  GTK_WIDGET_SET_FLAGS (login_cancelbutton, GTK_CAN_DEFAULT);
+  
+  loginokbutton = gtk_button_new_from_stock ("gtk-ok");
+  gtk_widget_show (loginokbutton);
+  gtk_dialog_add_action_widget (GTK_DIALOG (dialog2), loginokbutton, GTK_RESPONSE_OK);
+  GTK_WIDGET_SET_FLAGS (loginokbutton, GTK_CAN_DEFAULT);
+  
+  g_signal_connect ((gpointer) login_cancelbutton, "clicked",
+                   G_CALLBACK (on_login_cancelbutton_destroy),
+                 dialog2);
+   
+  g_signal_connect ((gpointer) loginokbutton, "clicked",
+                    G_CALLBACK (on_loginokbutton_clicked),
+                    dialog2);
+ 
+  GLADE_HOOKUP_OBJECT_NO_REF (dialog2, dialog2, "dialog2");
+  GLADE_HOOKUP_OBJECT_NO_REF (dialog2, dialog_vbox2, "dialog_vbox2");
+  GLADE_HOOKUP_OBJECT (dialog2, hbox29, "hbox29");
+  GLADE_HOOKUP_OBJECT (dialog2, frame10, "frame10");
+  GLADE_HOOKUP_OBJECT (dialog2, alignment10, "alignment10");
+  GLADE_HOOKUP_OBJECT (dialog2, vbox18, "vbox18");
+  GLADE_HOOKUP_OBJECT (dialog2, hbox31, "hbox31");
+  GLADE_HOOKUP_OBJECT (dialog2, label55, "label55");
+  GLADE_HOOKUP_OBJECT (dialog2, username, "username");
+  GLADE_HOOKUP_OBJECT (dialog2, hbox32, "hbox32");
+  GLADE_HOOKUP_OBJECT (dialog2, label56, "label56");
+  GLADE_HOOKUP_OBJECT (dialog2, passport, "passport");
+  GLADE_HOOKUP_OBJECT (dialog2, label54, "label54");
+  GLADE_HOOKUP_OBJECT_NO_REF (dialog2, dialog_action_area2, "dialog_action_area2");
+  GLADE_HOOKUP_OBJECT (dialog2, login_cancelbutton,"login_cancelbutton");
+  GLADE_HOOKUP_OBJECT (dialog2, loginokbutton, "loginokbutton");
+
+  return dialog2;
+}
+
+GtkWidget*
+creat_class_dialog (void)
+{
+  
+  GtkWidget *creat_class;
+  GtkWidget *dialog_vbox7;
+  GtkWidget *frame14;
+  GtkWidget *alignment21;
+  GtkWidget *hbox62;
+  GtkWidget *label82;
+  GtkWidget *label81;
+  GtkWidget *dialog_action_area7;
+  GtkWidget *create_cancelbut;
+  GtkWidget *alignment22;
+  GtkWidget *hbox63;
+  GtkWidget *image6;
+  GtkWidget *label83;
+  GtkWidget *create_okbutton;
+  GtkWidget *alignment23;
+  GtkWidget *hbox64;
+  GtkWidget *image7;
+  GtkWidget *label84;
+
+  creat_class = gtk_dialog_new ();
+  gtk_widget_set_size_request (creat_class, 286, 188);
+  gtk_window_set_title (GTK_WINDOW (creat_class), psttitl); 
+  gtk_window_set_resizable (GTK_WINDOW (creat_class), FALSE);
+  gtk_window_set_modal(GTK_WINDOW(creat_class),TRUE);
+  gtk_window_set_destroy_with_parent (GTK_WINDOW (creat_class), TRUE);
+  gtk_window_set_type_hint (GTK_WINDOW (creat_class), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+  dialog_vbox7 = GTK_DIALOG (creat_class)->vbox;
+  gtk_widget_show (dialog_vbox7);
+
+  frame14 = gtk_frame_new (NULL);
+  gtk_widget_show (frame14);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox7), frame14, TRUE, TRUE, 0);
+  gtk_container_set_border_width (GTK_CONTAINER (frame14), 10);
+
+  alignment21 = gtk_alignment_new (0.5, 0.5, 1, 1);
+  gtk_widget_show (alignment21);
+  gtk_container_add (GTK_CONTAINER (frame14), alignment21);
+  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment21), 0, 0, 12, 0);
+
+  hbox62 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox62);
+  gtk_container_add (GTK_CONTAINER (alignment21), hbox62);
+
+  label82 = gtk_label_new (plabe12);  
+  gtk_widget_show (label82);
+  gtk_box_pack_start (GTK_BOX (hbox62), label82, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label82, 88, -1);
+
+  classEntry = gtk_entry_new ();
+  gtk_widget_show (classEntry);
+  gtk_box_pack_start (GTK_BOX (hbox62), classEntry, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (classEntry, 142, -1);
+  gtk_entry_set_text (GTK_ENTRY (classEntry), _("class"));
+  
+  label81 = gtk_label_new (_("<b></b>"));
+  gtk_widget_show (label81);
+  gtk_frame_set_label_widget (GTK_FRAME (frame14), label81);
+  gtk_label_set_use_markup (GTK_LABEL (label81), TRUE);
+
+  dialog_action_area7 = GTK_DIALOG (creat_class)->action_area;
+  gtk_widget_show (dialog_action_area7);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area7), GTK_BUTTONBOX_END);
+
+  create_cancelbut = gtk_button_new ();
+  gtk_widget_show (create_cancelbut);
+  gtk_dialog_add_action_widget (GTK_DIALOG (creat_class), create_cancelbut, 0);
+  gtk_widget_set_size_request (create_cancelbut, 44, -1);
+  GTK_WIDGET_SET_FLAGS (create_cancelbut, GTK_CAN_DEFAULT);
+
+  alignment22 = gtk_alignment_new (0.5, 0.5, 0, 0);
+  gtk_widget_show (alignment22);
+  gtk_container_add (GTK_CONTAINER (create_cancelbut), alignment22);
+
+  hbox63 = gtk_hbox_new (FALSE, 2);
+  gtk_widget_show (hbox63);
+  gtk_container_add (GTK_CONTAINER (alignment22), hbox63);
+
+  image6 = gtk_image_new_from_stock ("gtk-cancel", GTK_ICON_SIZE_BUTTON);
+  gtk_widget_show (image6);
+  gtk_box_pack_start (GTK_BOX (hbox63), image6, FALSE, FALSE, 0);
+
+  label83 = gtk_label_new_with_mnemonic (plabe13);  
+  gtk_widget_show (label83);
+  gtk_box_pack_start (GTK_BOX (hbox63), label83, FALSE, FALSE, 0);
+
+  create_okbutton = gtk_button_new ();
+  gtk_widget_show (create_okbutton);
+  gtk_dialog_add_action_widget (GTK_DIALOG (creat_class), create_okbutton, 0);
+  GTK_WIDGET_SET_FLAGS (create_okbutton, GTK_CAN_DEFAULT);
+
+  alignment23 = gtk_alignment_new (0.5, 0.5, 0, 0);
+  gtk_widget_show (alignment23);
+  gtk_container_add (GTK_CONTAINER (create_okbutton), alignment23);
+
+  hbox64 = gtk_hbox_new (FALSE, 2);
+  gtk_widget_show (hbox64);
+  gtk_container_add (GTK_CONTAINER (alignment23), hbox64);
+
+  image7 = gtk_image_new_from_stock ("gtk-ok", GTK_ICON_SIZE_BUTTON);
+  gtk_widget_show (image7);
+  gtk_box_pack_start (GTK_BOX (hbox64), image7, FALSE, FALSE, 0);
+
+  label84 = gtk_label_new_with_mnemonic (plabe14);  
+  gtk_widget_show (label84);
+  gtk_box_pack_start (GTK_BOX (hbox64), label84, FALSE, FALSE, 0);
+
+  g_signal_connect ((gpointer) create_cancelbut, "clicked",
+                    G_CALLBACK (on_creat_cancelbut_clicked),
+                    creat_class);
+  g_signal_connect ((gpointer) create_okbutton, "clicked",
+                    G_CALLBACK (on_creat_okbutton_clicked),
+                    creat_class);
+
+  GLADE_HOOKUP_OBJECT_NO_REF (creat_class, creat_class, "creat_class");
+  GLADE_HOOKUP_OBJECT_NO_REF (creat_class, dialog_vbox7, "dialog_vbox7");
+  GLADE_HOOKUP_OBJECT (creat_class, frame14, "frame14");
+  GLADE_HOOKUP_OBJECT (creat_class, alignment21, "alignment21");
+  GLADE_HOOKUP_OBJECT (creat_class, hbox62, "hbox62");
+  GLADE_HOOKUP_OBJECT (creat_class, label82, "label82");
+  GLADE_HOOKUP_OBJECT (creat_class, classEntry, "classEntry");
+  GLADE_HOOKUP_OBJECT (creat_class, label81, "label81");
+  GLADE_HOOKUP_OBJECT_NO_REF (creat_class, dialog_action_area7, "dialog_action_area7");
+  GLADE_HOOKUP_OBJECT (creat_class, create_cancelbut, "create_cancelbut");
+  GLADE_HOOKUP_OBJECT (creat_class, alignment22, "alignment22");
+  GLADE_HOOKUP_OBJECT (creat_class, hbox63, "hbox63");
+  GLADE_HOOKUP_OBJECT (creat_class, image6, "image6");
+  GLADE_HOOKUP_OBJECT (creat_class, label83, "label83");
+  GLADE_HOOKUP_OBJECT (creat_class, create_okbutton, "create_okbutton");
+  GLADE_HOOKUP_OBJECT (creat_class, alignment23, "alignment23");
+  GLADE_HOOKUP_OBJECT (creat_class, hbox64, "hbox64");
+  GLADE_HOOKUP_OBJECT (creat_class, image7, "image7");
+  GLADE_HOOKUP_OBJECT (creat_class, label84, "label84");
+
+  return creat_class;
+}
+
+  
+
+GtkWidget*
+create_choose_dialog (void)
+{
+  GtkWidget *choose_dialog;
+  GtkWidget *dialog_vbox11;
+  GtkWidget *hbox68;
+  GtkWidget *vbox46;
+  GtkWidget *vbox48;
+  GtkWidget *hbox71;
+  GtkWidget *hbox72;
+  GtkWidget *label103;
+  GtkWidget *vbox49;
+  GtkWidget *vbox50;
+  GtkWidget *label104;
+  GtkWidget *hbox74;
+  GtkWidget *label109;
+  GtkWidget *label108;
+  GtkWidget *vbox51;
+  GtkWidget *label105;
+  GtkWidget *hbox75;
+  GtkWidget *label110;
+  GtkWidget *label111;
+  GtkWidget *vbox52;
+  GtkWidget *label106;
+  GtkWidget *hbox73;
+  GtkWidget *hbox76;
+  GtkWidget *view_but;
+  GtkWidget *label112;
+  GtkWidget *frame17;
+  GtkWidget *alignment27;
+  GtkWidget *label97;
+  GtkWidget *dialog_action_area11;
+  GtkWidget *choose_cancel_but;
+  GtkWidget *choose_ok_but;
+ 
+
+  choose_dialog = gtk_dialog_new ();
+  gtk_window_set_title (GTK_WINDOW (choose_dialog), ptitle2);  
+  gtk_window_set_modal (GTK_WINDOW (choose_dialog), TRUE);
+  gtk_window_set_resizable (GTK_WINDOW (choose_dialog), FALSE);
+  gtk_window_set_type_hint (GTK_WINDOW (choose_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+  dialog_vbox11 = GTK_DIALOG (choose_dialog)->vbox;
+  gtk_widget_show (dialog_vbox11);
+
+  hbox68 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox68);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox11), hbox68, TRUE, TRUE, 0);
+
+  vbox46 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox46);
+  gtk_box_pack_start (GTK_BOX (hbox68), vbox46, TRUE, TRUE, 0);
+
+  vbox48 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox48);
+  gtk_box_pack_start (GTK_BOX (vbox46), vbox48, FALSE, FALSE, 0);
+
+  hbox71 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox71);
+  gtk_box_pack_start (GTK_BOX (vbox48), hbox71, TRUE, TRUE, 0);
+
+  hbox72 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox72);
+  gtk_box_pack_start (GTK_BOX (hbox71), hbox72, TRUE, TRUE, 0);
+
+  label103 = gtk_label_new ("");
+  gtk_widget_show (label103);
+  gtk_box_pack_start (GTK_BOX (hbox72), label103, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label103, 18, 8);
+
+  vbox49 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox49);
+  gtk_box_pack_start (GTK_BOX (hbox72), vbox49, TRUE, TRUE, 0);
+
+  vbox50 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox50);
+  gtk_box_pack_start (GTK_BOX (vbox49), vbox50, FALSE, FALSE, 0);
+
+  label104 = gtk_label_new ("");
+  gtk_widget_show (label104);
+  gtk_box_pack_start (GTK_BOX (vbox50), label104, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (label104, 66, 22);
+
+  hbox74 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox74);
+  gtk_box_pack_start (GTK_BOX (vbox50), hbox74, FALSE, FALSE, 0);
+
+  
+
+  label108 = gtk_label_new ("");
+  gtk_widget_show (label108);
+  gtk_box_pack_start (GTK_BOX (hbox74), label108, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label108, 54, -1);
+  
+  
+  combobox4 = gtk_combo_box_new_text ();
+  gtk_widget_show (combobox4);
+  gtk_box_pack_start (GTK_BOX (vbox49), combobox4, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (combobox4, 137, 30);
+  gtk_combo_box_insert_text(GTK_COMBO_BOX(combobox4),0,"v4l");
+  gtk_combo_box_insert_text(GTK_COMBO_BOX(combobox4),1,"1394");
+  
+
+  
+  
+ 
+  vbox51 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox51);
+  gtk_box_pack_start (GTK_BOX (vbox49), vbox51, FALSE, FALSE, 0);
+
+  label105 = gtk_label_new ("");
+  gtk_widget_show (label105);
+  gtk_box_pack_start (GTK_BOX (vbox51), label105, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label105, -1, 56);
+
+  hbox75 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox75);
+  gtk_box_pack_start (GTK_BOX (vbox51), hbox75, FALSE, FALSE, 0);
+
+
+  label111 = gtk_label_new ("");
+  gtk_widget_show (label111);
+  gtk_box_pack_start (GTK_BOX (hbox75), label111, FALSE, FALSE, 0);
+  
+  combobox5 = gtk_combo_box_new_text ();
+  gtk_widget_show (combobox5);
+  gtk_box_pack_start (GTK_BOX (vbox49), combobox5, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (combobox5, 81, 30);
+   
+    	  
+   
+  
+  vbox52 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox52);
+  gtk_box_pack_start (GTK_BOX (vbox49), vbox52, TRUE, TRUE, 0);
+
+  label106 = gtk_label_new ("");
+  gtk_widget_show (label106);
+  gtk_box_pack_start (GTK_BOX (vbox52), label106, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label106, -1, 41);
+
+  hbox73 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox73);
+  gtk_box_pack_start (GTK_BOX (vbox52), hbox73, FALSE, FALSE, 0);
+
+  hbox76 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox76);
+  gtk_box_pack_start (GTK_BOX (hbox73), hbox76, FALSE, FALSE, 0);
+
+  view_but = gtk_button_new_with_mnemonic (pviewbt);  
+  gtk_widget_show (view_but);
+  gtk_box_pack_start (GTK_BOX (hbox76), view_but, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (view_but, 71, 30);
+
+  label112 = gtk_label_new ("");
+  gtk_widget_show (label112);
+  gtk_box_pack_start (GTK_BOX (hbox76), label112, FALSE, FALSE, 0);
+
+  frame17 = gtk_frame_new (NULL);
+  gtk_widget_show (frame17);
+  gtk_box_pack_start (GTK_BOX (hbox68), frame17, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (frame17, 347, 260);
+  gtk_container_set_border_width (GTK_CONTAINER (frame17), 10);
+
+  alignment27 = gtk_alignment_new (0.5, 0.5, 1, 1);
+  gtk_widget_show (alignment27);
+  gtk_container_add (GTK_CONTAINER (frame17), alignment27);
+  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment27), 0, 0, 12, 0);
+
+  review_image = create_pixmap (choose_dialog, NULL);
+  gtk_widget_show (review_image);
+  gtk_container_add (GTK_CONTAINER (alignment27), review_image);
+  gtk_widget_set_size_request (review_image, 320, 240);
+
+
+  dialog_action_area11 = GTK_DIALOG (choose_dialog)->action_area;
+  gtk_widget_show (dialog_action_area11);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area11), GTK_BUTTONBOX_END);
+
+  choose_cancel_but = gtk_button_new_from_stock ("gtk-cancel");
+  gtk_widget_show (choose_cancel_but);
+  gtk_dialog_add_action_widget (GTK_DIALOG (choose_dialog), choose_cancel_but, GTK_RESPONSE_CANCEL);
+  GTK_WIDGET_SET_FLAGS (choose_cancel_but, GTK_CAN_DEFAULT);
+
+  choose_ok_but = gtk_button_new_from_stock ("gtk-ok");
+  gtk_widget_show (choose_ok_but);
+  gtk_dialog_add_action_widget (GTK_DIALOG (choose_dialog), choose_ok_but, GTK_RESPONSE_OK);
+  GTK_WIDGET_SET_FLAGS (choose_ok_but, GTK_CAN_DEFAULT);
+  
+   
+
+  GLADE_HOOKUP_OBJECT_NO_REF (choose_dialog, choose_dialog, "choose_dialog");
+  GLADE_HOOKUP_OBJECT_NO_REF (choose_dialog, dialog_vbox11, "dialog_vbox11");
+  GLADE_HOOKUP_OBJECT (choose_dialog, hbox68, "hbox68");
+  GLADE_HOOKUP_OBJECT (choose_dialog, vbox46, "vbox46");
+  GLADE_HOOKUP_OBJECT (choose_dialog, vbox48, "vbox48");
+  GLADE_HOOKUP_OBJECT (choose_dialog, hbox71, "hbox71");
+  GLADE_HOOKUP_OBJECT (choose_dialog, hbox72, "hbox72");
+  GLADE_HOOKUP_OBJECT (choose_dialog, label103, "label103");
+  GLADE_HOOKUP_OBJECT (choose_dialog, vbox49, "vbox49");
+  GLADE_HOOKUP_OBJECT (choose_dialog, vbox50, "vbox50");
+  GLADE_HOOKUP_OBJECT (choose_dialog, label104, "label104");
+  GLADE_HOOKUP_OBJECT (choose_dialog, hbox74, "hbox74");
+  GLADE_HOOKUP_OBJECT (choose_dialog, label109, "label109");
+  GLADE_HOOKUP_OBJECT (choose_dialog, label108, "label108");
+  GLADE_HOOKUP_OBJECT (choose_dialog, combobox4, "combobox4");
+  GLADE_HOOKUP_OBJECT (choose_dialog, vbox51, "vbox51");
+  GLADE_HOOKUP_OBJECT (choose_dialog, label105, "label105");
+  GLADE_HOOKUP_OBJECT (choose_dialog, hbox75, "hbox75");
+  GLADE_HOOKUP_OBJECT (choose_dialog, label110, "label110");
+  GLADE_HOOKUP_OBJECT (choose_dialog, label111, "label111");
+  GLADE_HOOKUP_OBJECT (choose_dialog, combobox5, "combobox5");
+  GLADE_HOOKUP_OBJECT (choose_dialog, vbox52, "vbox52");
+  GLADE_HOOKUP_OBJECT (choose_dialog, label106, "label106");
+  GLADE_HOOKUP_OBJECT (choose_dialog, hbox73, "hbox73");
+  GLADE_HOOKUP_OBJECT (choose_dialog, hbox76, "hbox76");
+  GLADE_HOOKUP_OBJECT (choose_dialog, view_but, "view_but");
+  GLADE_HOOKUP_OBJECT (choose_dialog, label112, "label112");
+  GLADE_HOOKUP_OBJECT (choose_dialog, frame17, "frame17");
+  GLADE_HOOKUP_OBJECT (choose_dialog, alignment27, "alignment27");
+  GLADE_HOOKUP_OBJECT (choose_dialog, review_image, "review_image");
+  GLADE_HOOKUP_OBJECT (choose_dialog, label97, "label97");
+  GLADE_HOOKUP_OBJECT_NO_REF (choose_dialog, dialog_action_area11, "dialog_action_area11");
+  GLADE_HOOKUP_OBJECT (choose_dialog, choose_cancel_but, "choose_cancel_but");
+  GLADE_HOOKUP_OBJECT (choose_dialog, choose_ok_but, "choose_ok_but");
+
+  return choose_dialog;
+}
+
+
+
+GtkWidget*
+create_work_mode_dialog (void)
+{
+  GtkWidget *work_mode_dialog;
+  GtkWidget *dialog_vbox9;
+  GtkWidget *vbox43;
+  GtkWidget *label88;
+  GtkWidget *hbox67;
+  GtkWidget *radiobutton_tech;
+  GSList *radiobutton_tech_group = NULL;
+  GtkWidget *radiobutton_rec;
+  GtkWidget *label89;
+  GtkWidget *dialog_action_area9;
+  GtkWidget *work_cancel_but;
+  GtkWidget *work_ok_but;
+
+  work_mode_dialog = gtk_dialog_new ();
+  gtk_window_set_title (GTK_WINDOW (work_mode_dialog), ptitle3);  
+  gtk_window_set_resizable (GTK_WINDOW (work_mode_dialog), FALSE);
+   gtk_window_set_modal (GTK_WINDOW ( work_mode_dialog), TRUE);
+  gtk_window_set_type_hint (GTK_WINDOW (work_mode_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+  dialog_vbox9 = GTK_DIALOG (work_mode_dialog)->vbox;
+  gtk_widget_show (dialog_vbox9);
+
+  vbox43 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox43);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox9), vbox43, TRUE, TRUE, 0);
+
+  label88 = gtk_label_new ("");
+  gtk_widget_show (label88);
+  gtk_box_pack_start (GTK_BOX (vbox43), label88, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label88, -1, 40);
+
+  hbox67 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox67);
+  gtk_box_pack_start (GTK_BOX (vbox43), hbox67, TRUE, TRUE, 0);
+
+  radiobutton_tech = gtk_radio_button_new_with_mnemonic (NULL, pradiobtnt); 
+  gtk_widget_show (radiobutton_tech);
+  gtk_box_pack_start (GTK_BOX (hbox67), radiobutton_tech, FALSE, FALSE, 0);
+  gtk_container_set_border_width (GTK_CONTAINER (radiobutton_tech), 6);
+  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton_tech), radiobutton_tech_group);
+  radiobutton_tech_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton_tech));
+
+  radiobutton_rec = gtk_radio_button_new_with_mnemonic (NULL, pradiobtnr);  
+  gtk_widget_show (radiobutton_rec);
+  gtk_box_pack_start (GTK_BOX (hbox67), radiobutton_rec, FALSE, FALSE, 0);
+  gtk_container_set_border_width (GTK_CONTAINER (radiobutton_rec), 6);
+  gtk_radio_button_set_group (GTK_RADIO_BUTTON (radiobutton_rec), radiobutton_tech_group);
+  radiobutton_tech_group = gtk_radio_button_get_group (GTK_RADIO_BUTTON (radiobutton_rec));
+  
+  switch(g_work_mode)
+  {
+	  case 0:
+	   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radiobutton_tech), TRUE);
+	   break;
+	  case 1:
+		gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radiobutton_rec), TRUE); 
+       break;
+	  }  
+
+  label89 = gtk_label_new ("");
+  gtk_widget_show (label89);
+  gtk_box_pack_start (GTK_BOX (vbox43), label89, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label89, -1, 40);
+
+  dialog_action_area9 = GTK_DIALOG (work_mode_dialog)->action_area;
+  gtk_widget_show (dialog_action_area9);
+  gtk_widget_set_size_request (dialog_action_area9, 158, -1);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area9), GTK_BUTTONBOX_END);
+
+  work_cancel_but = gtk_button_new_with_mnemonic (pwkcancl);  
+  gtk_widget_show (work_cancel_but);
+  gtk_dialog_add_action_widget (GTK_DIALOG (work_mode_dialog), work_cancel_but, 0);
+  GTK_WIDGET_SET_FLAGS (work_cancel_but, GTK_CAN_DEFAULT);
+
+  work_ok_but = gtk_button_new_with_mnemonic (pwkok);  
+  gtk_widget_show (work_ok_but);
+  gtk_dialog_add_action_widget (GTK_DIALOG (work_mode_dialog), work_ok_but, 0);
+  GTK_WIDGET_SET_FLAGS (work_ok_but, GTK_CAN_DEFAULT);
+
+  g_signal_connect ((gpointer) work_cancel_but, "clicked",
+                    G_CALLBACK (on_work_cancel_but_clicked),
+                    work_mode_dialog);
+  g_signal_connect ((gpointer) work_ok_but, "clicked",
+                    G_CALLBACK (on_work_ok_but_clicked),
+                    work_mode_dialog);
+ g_signal_connect ((gpointer) radiobutton_tech, "clicked",
+                    G_CALLBACK (on_radiobutton_work_clicked),
+                    (gpointer) 0);
+ g_signal_connect ((gpointer) radiobutton_rec, "clicked",
+                    G_CALLBACK (on_radiobutton_work_clicked),
+                    (gpointer) 1);
+  GLADE_HOOKUP_OBJECT_NO_REF (work_mode_dialog, work_mode_dialog, "work_mode_dialog");
+  GLADE_HOOKUP_OBJECT_NO_REF (work_mode_dialog, dialog_vbox9, "dialog_vbox9");
+  GLADE_HOOKUP_OBJECT (work_mode_dialog, hbox67, "hbox67");
+  GLADE_HOOKUP_OBJECT (work_mode_dialog, radiobutton_tech, "radiobutton_tech");
+  GLADE_HOOKUP_OBJECT (work_mode_dialog, radiobutton_rec, "radiobutton_rec");
+  GLADE_HOOKUP_OBJECT_NO_REF (work_mode_dialog, dialog_action_area9, "dialog_action_area9");
+  GLADE_HOOKUP_OBJECT (work_mode_dialog, work_cancel_but, "work_cancel_but");
+  GLADE_HOOKUP_OBJECT (work_mode_dialog, work_ok_but, "work_ok_but");
+
+  return work_mode_dialog;
+}
+
+GtkWidget*
+create_exit_rec_dialog (void)     
+{
+  GtkWidget *exit_rec_dialog;
+  GtkWidget *dialog_vbox10;
+  GtkWidget *vbox44;
+  GtkWidget *label90;
+  GtkWidget *label92;
+  GtkWidget *label91;
+  GtkWidget *dialog_action_area10;
+  GtkWidget *exit_rec_cancel;
+  GtkWidget *exit_rec_yes;
+
+  exit_rec_dialog = gtk_dialog_new ();
+  gtk_window_set_title (GTK_WINDOW (exit_rec_dialog), _(""));
+	
+  gtk_window_set_resizable (GTK_WINDOW (exit_rec_dialog), FALSE);
+  gtk_window_set_modal (GTK_WINDOW (exit_rec_dialog), TRUE);
+  gtk_window_set_position (GTK_WINDOW (exit_rec_dialog), GTK_WIN_POS_CENTER);
+  gtk_window_set_type_hint (GTK_WINDOW (exit_rec_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+  dialog_vbox10 = GTK_DIALOG (exit_rec_dialog)->vbox;
+  gtk_widget_show (dialog_vbox10);
+
+  vbox44 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox44);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox10), vbox44, FALSE, FALSE, 0);
+
+  label90 = gtk_label_new ("");
+  gtk_widget_show (label90);
+  gtk_box_pack_start (GTK_BOX (vbox44), label90, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label90, 48, 24);
+
+  label92 = gtk_label_new (plabe22);  
+  gtk_widget_show (label92);
+  gtk_box_pack_start (GTK_BOX (vbox44), label92, FALSE, FALSE, 0);
+
+  label91 = gtk_label_new ("");
+  gtk_widget_show (label91);
+  gtk_box_pack_start (GTK_BOX (vbox44), label91, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label91, -1, 24);
+
+  dialog_action_area10 = GTK_DIALOG (exit_rec_dialog)->action_area;
+  gtk_widget_show (dialog_action_area10);
+  gtk_widget_set_size_request (dialog_action_area10, -1, 32);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area10), GTK_BUTTONBOX_END);
+
+  exit_rec_cancel =gtk_button_new_with_mnemonic (pextcancl);  
+  gtk_widget_show (exit_rec_cancel);
+  gtk_dialog_add_action_widget (GTK_DIALOG (exit_rec_dialog), exit_rec_cancel, GTK_RESPONSE_CANCEL);
+  gtk_widget_set_size_request (exit_rec_cancel, -1, 20);
+  GTK_WIDGET_SET_FLAGS (exit_rec_cancel, GTK_CAN_DEFAULT);
+  exit_rec_yes =gtk_button_new_with_mnemonic (pextys);  
+  gtk_widget_show (exit_rec_yes);
+  gtk_dialog_add_action_widget (GTK_DIALOG (exit_rec_dialog), exit_rec_yes, GTK_RESPONSE_OK);
+  GTK_WIDGET_SET_FLAGS (exit_rec_yes, GTK_CAN_DEFAULT);
+
+  g_signal_connect ((gpointer) exit_rec_cancel, "clicked",
+                    G_CALLBACK (on_exit_rec_cancel_clicked),
+                    exit_rec_dialog);
+  g_signal_connect ((gpointer) exit_rec_yes, "clicked",
+                    G_CALLBACK (on_exit_rec_yes_clicked),
+                     exit_rec_dialog);
+
+  GLADE_HOOKUP_OBJECT_NO_REF (exit_rec_dialog, exit_rec_dialog, "exit_rec_dialog");
+  GLADE_HOOKUP_OBJECT_NO_REF (exit_rec_dialog, dialog_vbox10, "dialog_vbox10");
+  GLADE_HOOKUP_OBJECT (exit_rec_dialog, vbox44, "vbox44");
+  GLADE_HOOKUP_OBJECT (exit_rec_dialog, label90, "label90");
+  GLADE_HOOKUP_OBJECT (exit_rec_dialog, label92, "label92");
+  GLADE_HOOKUP_OBJECT (exit_rec_dialog, label91, "label91");
+  GLADE_HOOKUP_OBJECT_NO_REF (exit_rec_dialog, dialog_action_area10, "dialog_action_area10");
+  GLADE_HOOKUP_OBJECT (exit_rec_dialog, exit_rec_cancel, "exit_rec_cancel");
+  GLADE_HOOKUP_OBJECT (exit_rec_dialog, exit_rec_yes, "exit_rec_yes");
+
+  return exit_rec_dialog;
+}
+
+GtkWidget*
+create_cancle_class_dialog (void)   
+{
+  GtkWidget *exit_class_dialog;
+  GtkWidget *dialog_vbox10;
+  GtkWidget *vbox44;
+  GtkWidget *label90;
+  GtkWidget *label92;
+  GtkWidget *label91;
+  GtkWidget *dialog_action_area10;
+  GtkWidget *exit_class_cancel;
+  GtkWidget *exit_class_yes;
+
+  exit_class_dialog = gtk_dialog_new ();
+  gtk_window_set_title (GTK_WINDOW (exit_class_dialog), _(""));
+	
+  gtk_window_set_resizable (GTK_WINDOW (exit_class_dialog), FALSE);
+  gtk_window_set_modal (GTK_WINDOW (exit_class_dialog), TRUE);
+  gtk_window_set_position (GTK_WINDOW (exit_class_dialog), GTK_WIN_POS_CENTER);
+  gtk_window_set_type_hint (GTK_WINDOW (exit_class_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+  dialog_vbox10 = GTK_DIALOG (exit_class_dialog)->vbox;
+  gtk_widget_show (dialog_vbox10);
+
+  vbox44 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox44);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox10), vbox44, FALSE, FALSE, 0);
+
+  label90 = gtk_label_new ("");
+  gtk_widget_show (label90);
+  gtk_box_pack_start (GTK_BOX (vbox44), label90, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label90, 48, 24);
+
+  label92 = gtk_label_new (plabe32);  
+  gtk_widget_show (label92);
+  gtk_box_pack_start (GTK_BOX (vbox44), label92, FALSE, FALSE, 0);
+
+  label91 = gtk_label_new ("");
+  gtk_widget_show (label91);
+  gtk_box_pack_start (GTK_BOX (vbox44), label91, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label91, -1, 24);
+
+  dialog_action_area10 = GTK_DIALOG (exit_class_dialog)->action_area;
+  gtk_widget_show (dialog_action_area10);
+  gtk_widget_set_size_request (dialog_action_area10, -1, 32);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area10), GTK_BUTTONBOX_END);
+  exit_class_cancel =gtk_button_new_with_mnemonic (pextclscancl);  
+  gtk_widget_show (exit_class_cancel);
+  gtk_dialog_add_action_widget (GTK_DIALOG (exit_class_dialog), exit_class_cancel, GTK_RESPONSE_CANCEL);
+  gtk_widget_set_size_request (exit_class_cancel, -1, 20);
+  GTK_WIDGET_SET_FLAGS (exit_class_cancel, GTK_CAN_DEFAULT);
+
+  
+  exit_class_yes =gtk_button_new_with_mnemonic (pextclsys);  
+  gtk_widget_show (exit_class_yes);
+  gtk_dialog_add_action_widget (GTK_DIALOG (exit_class_dialog), exit_class_yes, GTK_RESPONSE_OK);
+  GTK_WIDGET_SET_FLAGS (exit_class_yes, GTK_CAN_DEFAULT);
+
+  g_signal_connect ((gpointer) exit_class_cancel, "clicked",
+                    G_CALLBACK (on_exit_class_cancel_clicked),
+                    exit_class_dialog);
+  g_signal_connect ((gpointer) exit_class_yes, "clicked",
+                    G_CALLBACK (on_exit_class_yes_clicked),
+                     exit_class_dialog);
+
+ 
+
+  return exit_class_dialog;
+}
+
+GtkWidget*
+create_exit_system_dialog (void)   
+{
+  GtkWidget *exit_system_dialog;
+  GtkWidget *dialog_vbox10;
+  GtkWidget *vbox44;
+  GtkWidget *label90;
+  GtkWidget *label92;
+  GtkWidget *label91;
+  GtkWidget *dialog_action_area10;
+  GtkWidget *exit_system_cancel;
+  GtkWidget *exit_system_yes;
+
+  exit_system_dialog = gtk_dialog_new ();
+  gtk_window_set_title (GTK_WINDOW (exit_system_dialog), _(""));
+	
+ 
+  gtk_window_set_resizable (GTK_WINDOW (exit_system_dialog), FALSE);
+  gtk_window_set_modal (GTK_WINDOW (exit_system_dialog), TRUE);
+  gtk_window_set_position (GTK_WINDOW (exit_system_dialog), GTK_WIN_POS_CENTER);
+  gtk_window_set_type_hint (GTK_WINDOW (exit_system_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+  dialog_vbox10 = GTK_DIALOG (exit_system_dialog)->vbox;
+  gtk_widget_show (dialog_vbox10);
+
+  vbox44 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox44);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox10), vbox44, FALSE, FALSE, 0);
+
+  label90 = gtk_label_new ("");
+  gtk_widget_show (label90);
+  gtk_box_pack_start (GTK_BOX (vbox44), label90, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label90, 48, 24);
+
+  label92 = gtk_label_new (plabe42); 
+  gtk_widget_show (label92);
+  gtk_box_pack_start (GTK_BOX (vbox44), label92, FALSE, FALSE, 0);
+
+  label91 = gtk_label_new ("");
+  gtk_widget_show (label91);
+  gtk_box_pack_start (GTK_BOX (vbox44), label91, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label91, -1, 24);
+
+  dialog_action_area10 = GTK_DIALOG (exit_system_dialog)->action_area;
+  gtk_widget_show (dialog_action_area10);
+  gtk_widget_set_size_request (dialog_action_area10, -1, 32);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area10), GTK_BUTTONBOX_END);
+
+  
+  exit_system_cancel = gtk_button_new_with_mnemonic (pextsyscancl);  
+  gtk_widget_show (exit_system_cancel);
+  gtk_dialog_add_action_widget (GTK_DIALOG (exit_system_dialog), exit_system_cancel, GTK_RESPONSE_CANCEL);
+  gtk_widget_set_size_request (exit_system_cancel, -1, 20);
+  GTK_WIDGET_SET_FLAGS (exit_system_cancel, GTK_CAN_DEFAULT);
+
+  
+  exit_system_yes = gtk_button_new_with_mnemonic (pextsysys);  
+  gtk_widget_show (exit_system_yes);
+  gtk_dialog_add_action_widget (GTK_DIALOG (exit_system_dialog), exit_system_yes, GTK_RESPONSE_OK);
+  GTK_WIDGET_SET_FLAGS (exit_system_yes, GTK_CAN_DEFAULT);
+
+  g_signal_connect ((gpointer) exit_system_cancel, "clicked",
+                    G_CALLBACK (on_exit_system_cancel_clicked),
+                    exit_system_dialog);
+  g_signal_connect ((gpointer) exit_system_yes, "clicked",
+                    G_CALLBACK (on_exit_system_yes_clicked),
+                     exit_system_dialog);
+
+ 
+
+  return exit_system_dialog;
+}
+
+GtkWidget*
+create_rec_delay_set_dialog (void)
+{
+  
+  GtkWidget *dialog_vbox1;
+  GtkWidget *frame1;
+  GtkWidget *alignment1;
+  GtkWidget *vbox2;
+  GtkWidget *label10;
+  GtkWidget *hbox2;
+  GtkWidget *label12;
+  GtkWidget *delay_combobox;
+  GtkWidget *label13;
+  GtkWidget *label9;
+  GtkWidget *label11;
+  GtkWidget *label7;
+  GtkWidget *dialog_action_area1;
+  GtkWidget *rec_delay_cancel;
+  GtkWidget *rec_delay_yes;
+
+  rec_delay_set_dialog = gtk_dialog_new ();
+  gtk_window_set_title (GTK_WINDOW (rec_delay_set_dialog), ptitle4);  
+  gtk_window_set_modal (GTK_WINDOW (rec_delay_set_dialog), TRUE);
+  gtk_window_set_type_hint (GTK_WINDOW (rec_delay_set_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+  dialog_vbox1 = GTK_DIALOG (rec_delay_set_dialog)->vbox;
+  gtk_widget_show (dialog_vbox1);
+
+  frame1 = gtk_frame_new (NULL);
+  gtk_widget_show (frame1);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox1), frame1, TRUE, TRUE, 0);
+  gtk_container_set_border_width (GTK_CONTAINER (frame1), 5);
+
+  alignment1 = gtk_alignment_new (0.5, 0.5, 1, 1);
+  gtk_widget_show (alignment1);
+  gtk_container_add (GTK_CONTAINER (frame1), alignment1);
+  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment1), 0, 0, 12, 0);
+
+  vbox2 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox2);
+  gtk_container_add (GTK_CONTAINER (alignment1), vbox2);
+
+  label10 = gtk_label_new ("");
+  gtk_widget_show (label10);
+  gtk_box_pack_start (GTK_BOX (vbox2), label10, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label10, -1, 45);
+
+  hbox2 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox2);
+  gtk_box_pack_start (GTK_BOX (vbox2), hbox2, TRUE, TRUE, 0);
+
+  label12 = gtk_label_new (plabex);  
+  gtk_widget_show (label12);
+  gtk_box_pack_start (GTK_BOX (hbox2), label12, FALSE, FALSE, 0);
+
+  delay_combobox = gtk_combo_box_new_text ();
+  gtk_widget_show (delay_combobox);
+  gtk_box_pack_start (GTK_BOX (hbox2), delay_combobox, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (delay_combobox, 56, -1);
+  char delaytime_num[][3]={"0","3","5","10","20","30","40","50","60"};
+  for(int i=0;i<9;i++)
+  
+  gtk_combo_box_insert_text(GTK_COMBO_BOX(delay_combobox),i,delaytime_num[i]);
+  gtk_combo_box_set_active(GTK_COMBO_BOX(delay_combobox),2);
+
+  label13 = gtk_label_new (plabe013);  
+  gtk_widget_show (label13);
+  gtk_box_pack_start (GTK_BOX (hbox2), label13, FALSE, FALSE, 0);
+
+  label9 = gtk_label_new ("");
+  gtk_widget_show (label9);
+  gtk_box_pack_start (GTK_BOX (hbox2), label9, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label9, 18, -1);
+  gtk_misc_set_alignment (GTK_MISC (label9), 0.48, 0.49);
+
+  label11 = gtk_label_new ("");
+  gtk_widget_show (label11);
+  gtk_box_pack_start (GTK_BOX (vbox2), label11, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (label11, -1, 45);
+
+  label7 = gtk_label_new (plabe017);  
+  gtk_widget_show (label7);
+  gtk_frame_set_label_widget (GTK_FRAME (frame1), label7);
+  gtk_label_set_use_markup (GTK_LABEL (label7), TRUE);
+
+  dialog_action_area1 = GTK_DIALOG (rec_delay_set_dialog)->action_area;
+  gtk_widget_show (dialog_action_area1);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
+
+  rec_delay_cancel = gtk_button_new_from_stock ("gtk-cancel");
+  gtk_widget_show (rec_delay_cancel);
+  gtk_dialog_add_action_widget (GTK_DIALOG (rec_delay_set_dialog), rec_delay_cancel, GTK_RESPONSE_CANCEL);
+  GTK_WIDGET_SET_FLAGS (rec_delay_cancel, GTK_CAN_DEFAULT);
+
+  rec_delay_yes = gtk_button_new_from_stock ("gtk-ok");
+  gtk_widget_show (rec_delay_yes);
+  gtk_dialog_add_action_widget (GTK_DIALOG (rec_delay_set_dialog), rec_delay_yes, GTK_RESPONSE_OK);
+  GTK_WIDGET_SET_FLAGS (rec_delay_yes, GTK_CAN_DEFAULT);
+  
+  g_signal_connect ((gpointer) rec_delay_cancel, "clicked",
+                    G_CALLBACK (on_rec_delay_cancel_clicked),
+                    rec_delay_set_dialog);
+   g_signal_connect ((gpointer) rec_delay_yes, "clicked",
+                    G_CALLBACK (on_rec_delay_yes_clicked),
+                    delay_combobox);
+  
+  return rec_delay_set_dialog;
+}
+
+
+
+void
+Error_dia(gchar *input,gchar *solution)
+{
+  GtkWidget *Message_dia;
+ 
+  gchar *message=new gchar[strlen(input)+strlen(solution)];
+  
+  
+  strcpy(message,input);
+  strcat(message,solution);
+	
+  Message_dia=gtk_message_dialog_new(NULL,
+         GTK_DIALOG_MODAL,GTK_MESSAGE_ERROR,GTK_BUTTONS_CLOSE,message);
+	
+  gtk_dialog_run(GTK_DIALOG(Message_dia));
+  gtk_widget_destroy(Message_dia);
+}
+
+
+
+void get_networkconfig()
+ {   
+	 
+		 
+	 
+	 classcenterIP=gtk_entry_get_text(GTK_ENTRY (enserverip));
+     classcenterport=gtk_entry_get_text(GTK_ENTRY (enserverport));	 
+	 strcpy(ncteacher_get_para.serverip,classcenterIP);
+	 DWORD temp;
+	 temp=atol(classcenterport);
+	 ncteacher_get_para.serverport=temp;
+ }
+ 
+int get_loadsys()
+{   
+	const char *name=gtk_entry_get_text(GTK_ENTRY (username));
+	const char *psd=gtk_entry_get_text(GTK_ENTRY (passport));
+	strcpy(teachlogin.TeacherName,name);
+	strcpy(teachlogin.TeacherPass,psd);
+	if(strlen(teachlogin.TeacherName)==0|strlen(teachlogin.TeacherName)>limitbit)
+	{
+		Error_dia(ERROR017,ERROR_S017);
+		return -1;		
+	}
+	strcpy(ncteacher_get_user.username,name);
+	strcpy(ncteacher_get_user.password,psd);
+	return 1;
+}
+
+int get_classpara()
+{
+	
+	
+	
+	return 0;
+}
+
+int get_classname()
+{
+	const char *classname=gtk_entry_get_text(GTK_ENTRY (classEntry));
+	strcpy(CreateGroup.GroupName,classname);
+	printf("get group name is %s\n",CreateGroup.GroupName);
+	if(strlen(classname)==0|strlen(classname)>128)
+	{
+		Error_dia(ERROR017,ERROR_S017);
+		return -1;		
+	}
+	return 0;
+}

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/interface.hh
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/interface.hh?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/teacher_src_1.0/interface.hh (added)
+++ incubator/bluesky/trunk/sourcecode/teacher_src_1.0/interface.hh Wed May 13 07:44:26 2009
@@ -0,0 +1,53 @@
+//Licensed to the Apache Software Foundation (ASF) under one
+//or more contributor license agreements.  See the NOTICE file
+//distributed with this work for additional information
+//regarding copyright ownership.  The ASF licenses this file
+//to you under the Apache License, Version 2.0 (the
+//"License"); you may not use this file except in compliance
+//with the License.  You may obtain a copy of the License at
+//
+//  http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing,
+//software distributed under the License is distributed on an
+//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+//KIND, either express or implied.  See the License for the
+//specific language governing permissions and limitations
+//under the License. 
+
+
+#ifndef _INTERFACE_H
+#define _INTERFACE_H
+#include "stdafx.h"
+
+struct entry_setpara
+{
+	char serverip[16];
+	DWORD serverport;
+};
+
+struct entry_usepara
+{
+	char username[32];
+	char password[16];
+};
+
+GtkWidget* create_window1 (void);
+GtkWidget* create_para_dialog (void);
+GtkWidget* create_login_dialog (void);
+GtkWidget* creat_class_dialog (void);
+GtkWidget* create_choose_dialog (void);
+GtkWidget* create_work_mode_dialog(void);
+GtkWidget* create_exit_rec_dialog(void);
+GtkWidget* create_cancle_class_dialog (void) ;
+GtkWidget* create_exit_system_dialog (void) ;
+GtkWidget*create_rec_delay_set_dialog (void);
+
+void Error_dia(gchar *,gchar *input);
+
+void get_networkconfig();
+int get_loadsys();
+int get_classpara();
+int get_classname();
+
+#endif

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/kejiana.txt
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/kejiana.txt?rev=774247&view=auto
==============================================================================
    (empty)

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/kejians.txt
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/kejians.txt?rev=774247&view=auto
==============================================================================
    (empty)

Added: incubator/bluesky/trunk/sourcecode/teacher_src_1.0/kejianv.txt
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/teacher_src_1.0/kejianv.txt?rev=774247&view=auto
==============================================================================
    (empty)



Mime
View raw message