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 [8/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/sourc...
Date Wed, 13 May 2009 07:44:32 GMT
Added: incubator/bluesky/trunk/sourcecode/student_src_v1.0/interface.ccbak
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/student_src_v1.0/interface.ccbak?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/student_src_v1.0/interface.ccbak (added)
+++ incubator/bluesky/trunk/sourcecode/student_src_v1.0/interface.ccbak Wed May 13 07:44:26 2009
@@ -0,0 +1,1402 @@
+/*
+ * DO NOT EDIT THIS FILE - it is generated by Glade.
+ */
+
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
+#include <gdk/gdk.h>
+#include <gdk/gdkx.h> 
+#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 <iostream> 
+#include <fstream>
+
+
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
+#include <gdk/gdkx.h>
+#include <gdk/gdkimage.h>
+typedef unsigned long DWORD;
+#include "ncclient.hh"
+#include "callbacks.hh"
+#include "interface.hh"
+#include "support.hh"
+#include "errormessage.h"
+
+
+
+#define GLADE_HOOKUP_OBJECT(component,widget,name) \
+  g_object_set_data_full (G_OBJECT (component), name, \
+    gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
+
+#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
+  g_object_set_data (G_OBJECT (component), name, widget)
+  
+  using namespace std;
+
+  
+ extern  char IP[30];   
+ struct  TRCClientLogin stulogin; 
+ GtkWidget *localIPentry;
+ GtkWidget *IPentry;
+ GtkWidget *entry5;
+ GtkWidget *teachvideoentry;
+ GtkWidget *teachaudioentry;
+ GtkWidget *screenentry;
+ GtkWidget *studaudioentry;
+ GtkWidget *studvidoentry;
+ 
+ GtkWidget *loadsys;
+ GtkWidget *class1; 
+
+ GtkWidget *addclass;
+ GtkWidget *exitclass;
+ GtkWidget *loadtool; 
+ GtkWidget *addclasstool; 
+ GtkWidget *exitclasstool;
+ GtkWidget *exchangetool;
+ GtkWidget *cancelextool;
+ GtkWidget *clist1;
+ 
+ GtkWidget *requestchange; 
+GtkWidget *cancelchange;
+
+ GtkWidget *classdialog;
+ 
+ GtkWidget *nameentry;
+ GtkWidget *psdentry;
+ 
+ GtkWidget *stu_clist;
+ GtkWidget *chatview;
+ GtkWidget *chat_show;
+ 
+ GtkWidget *networktool;
+ GtkWidget *networkconfig;
+ 
+  GtkWidget *screenimage;
+  GtkWidget *teachimage;  
+  GtkWidget *studimage; 
+  
+  
+  GtkTextBuffer *chat_buffer;     
+  GtkTextIter chat_end;                 
+  GtkTextIter chat_start;  
+  
+  GtkTextBuffer *TeachChat_buffer;      
+  GtkTextIter TeachChat_end;                 
+  GtkTextIter TeachChat_start; 
+  
+ char namesave[16]="";
+ char CenterIP[16];
+
+ int    Error_port=0;
+ char  CenterPort[8];
+ 
+   struct class_center  center;
+  class_center  *config_file_read()
+{
+	 ifstream ifs;
+    ifs.open("center_config.txt");
+	if (ifs.fail()) 
+	{
+		strcpy(center.Center_IP,"");
+		strcpy(center.Center_port,"");
+	}
+	else
+	{
+	 ifs.read((char *)(&center), sizeof(center));
+     ifs.close();
+	}		
+
+	return &center;
+}
+ 
+ 
+ GtkWidget *chatentry;
+GtkWidget*
+create_mainwindow (void)
+{
+  GtkWidget *mainwindow;
+  GtkWidget *vbox1;
+  GtkWidget *menubar1;
+  GtkWidget *begin;
+  GtkWidget *begin_menu;
+
+  GtkWidget *separator;
+
+  GtkWidget *exitsys;
+
+  GtkWidget *class_menu;
+
+  GtkWidget *operate;
+  GtkWidget *operate_menu;
+
+  GtkWidget *separete2;
+  GtkWidget *saverecord;
+  GtkWidget *clearrecord;
+  GtkWidget *view;
+  GtkWidget *view_menu;
+  GtkWidget *teacherscreen;
+  GtkWidget *studentscreen;
+  GtkWidget *onlinestu;
+  GtkWidget *help;
+  GtkWidget *help_menu;
+  GtkWidget *about;
+  GtkWidget *hbox1;
+  GtkWidget *vbox2;
+  GtkWidget *vbox8;
+  GtkWidget *vbox10;
+  GtkWidget *toolbar1;
+  GtkIconSize tmp_toolbar_icon_size;
+  GtkWidget *tmp_image;
+
+  GtkWidget *separatortoolitem7;
+
+  GtkWidget *separatortoolitem1;
+
+  GtkWidget *separatortoolitem2;
+
+  GtkWidget *separatortoolitem3;
+
+  GtkWidget *separatortoolitem4;
+
+  GtkWidget *separatortoolitem5;
+  GtkWidget *exittool;
+  GtkWidget *hbox18;
+  GtkWidget *studframe;
+  GtkWidget *alignment4;
+  GtkWidget *vbox11;
+  GtkWidget *screenwindow;
+
+  GtkWidget *hseparator4;
+  GtkWidget *hbox19;
+  GtkWidget *studimagebut;
+  GtkWidget *vseparator1;
+  GtkWidget *myimagebut;
+  GtkWidget *hseparator5;
+
+  GtkWidget *hseparator6;
+  GtkWidget *scrolledwindow1;
+ 
+  GtkWidget *label;
+  GtkWidget *screenframe;
+  GtkWidget *alignment5;
+  GtkWidget *vbox12;
+  GtkWidget *scrolledwindow4;
+
+  GtkWidget *hseparator7;
+  GtkWidget *hbox20;
+  GtkWidget *inputlab;
+
+  GtkWidget *sendchatbut;
+  GtkWidget *label2;
+  GtkWidget *list1;
+  
+  GtkAccelGroup *accel_group;
+
+   GtkTooltips *tooltips;
+
+  tooltips = gtk_tooltips_new ();
+  accel_group = gtk_accel_group_new ();
+
+  mainwindow = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+  gtk_widget_set_size_request (mainwindow, 1024, 705);
+  gtk_window_set_title (GTK_WINDOW (mainwindow), "\345\220\254\350\257\276\347\253\257");
+  gtk_window_set_resizable(GTK_WINDOW(mainwindow),FALSE);
+
+  vbox1 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox1);
+  gtk_container_add (GTK_CONTAINER (mainwindow), vbox1);
+
+  menubar1 = gtk_menu_bar_new ();
+  gtk_widget_show (menubar1);
+  gtk_box_pack_start (GTK_BOX (vbox1), menubar1, FALSE, FALSE, 0);
+
+  begin = gtk_menu_item_new_with_mnemonic ("\345\274\200\345\247\213(B)");
+  gtk_widget_show (begin);
+  gtk_container_add (GTK_CONTAINER (menubar1), begin);
+
+  begin_menu = gtk_menu_new ();
+  gtk_menu_item_set_submenu (GTK_MENU_ITEM (begin), begin_menu);
+
+  networkconfig = gtk_menu_item_new_with_mnemonic ("\350\256\276\347\275\256\347\275\221\347\273\234");
+  gtk_widget_show (networkconfig);
+  gtk_container_add (GTK_CONTAINER (begin_menu), networkconfig);
+  gtk_widget_add_accelerator (networkconfig, "activate", accel_group,
+                              GDK_N, GDK_CONTROL_MASK,
+                              GTK_ACCEL_VISIBLE);
+
+  separator = gtk_separator_menu_item_new ();
+  gtk_widget_show (separator);
+  gtk_container_add (GTK_CONTAINER (begin_menu), separator);
+  gtk_widget_set_sensitive (separator, FALSE);
+
+  loadsys = gtk_menu_item_new_with_mnemonic ("\347\231\273\345\275\225\347\263\273\347\273\237");
+  gtk_widget_show (loadsys);
+  gtk_container_add (GTK_CONTAINER (begin_menu), loadsys);
+  gtk_widget_add_accelerator (loadsys, "activate", accel_group,
+                              GDK_L, GDK_CONTROL_MASK,
+                              GTK_ACCEL_VISIBLE);
+   gtk_widget_set_sensitive (loadsys, FALSE); 
+
+  exitsys = gtk_menu_item_new_with_mnemonic ("\351\200\200\345\207\272\347\263\273\347\273\237");
+  gtk_widget_show (exitsys);
+  gtk_container_add (GTK_CONTAINER (begin_menu), exitsys);
+  gtk_widget_add_accelerator (exitsys, "activate", accel_group,
+                              GDK_Q, GDK_CONTROL_MASK,
+                              GTK_ACCEL_VISIBLE);
+
+  class1 = gtk_menu_item_new_with_mnemonic ("\350\257\276\345\240\202(C)");
+  gtk_widget_show (class1);
+  gtk_container_add (GTK_CONTAINER (menubar1), class1);
+
+  class_menu = gtk_menu_new ();
+  gtk_menu_item_set_submenu (GTK_MENU_ITEM (class1), class_menu);
+
+  addclass = gtk_menu_item_new_with_mnemonic ("\345\212\240\345\205\245\350\257\276\345\240\202");
+  gtk_widget_show (addclass);
+  gtk_container_add (GTK_CONTAINER (class_menu), addclass);
+  gtk_widget_set_sensitive (addclass, FALSE); 
+  exitclass = gtk_menu_item_new_with_mnemonic ("\351\200\200\345\207\272\350\257\276\345\240\202");
+  gtk_widget_show (exitclass);
+  gtk_container_add (GTK_CONTAINER (class_menu), exitclass);
+  gtk_widget_set_sensitive (exitclass, FALSE); 
+  operate = gtk_menu_item_new_with_mnemonic ("\346\223\215\344\275\234(O)");
+  gtk_widget_show (operate);
+  gtk_container_add (GTK_CONTAINER (menubar1), operate);
+
+  operate_menu = gtk_menu_new ();
+  gtk_menu_item_set_submenu (GTK_MENU_ITEM (operate), operate_menu);
+
+  
+
+  requestchange = gtk_menu_item_new_with_mnemonic ("\350\257\267\346\261\202\345\270\210\347\224\237\344\272\244\344\272\222");
+  gtk_widget_show (requestchange);
+  gtk_container_add (GTK_CONTAINER (operate_menu), requestchange);
+  gtk_widget_set_sensitive (requestchange, FALSE); 
+  
+  cancelchange = gtk_menu_item_new_with_mnemonic ("\345\217\226\346\266\210\345\270\210\347\224\237\344\272\244\344\272\222");
+  gtk_widget_show (cancelchange);
+  gtk_container_add (GTK_CONTAINER (operate_menu), cancelchange);
+  gtk_widget_set_sensitive (cancelchange, FALSE); 
+
+ 
+  
+
+  help = gtk_menu_item_new_with_mnemonic ("\345\270\256\345\212\251(H)");
+  gtk_widget_show (help);
+  gtk_container_add (GTK_CONTAINER (menubar1), help);
+
+  help_menu = gtk_menu_new ();
+  gtk_menu_item_set_submenu (GTK_MENU_ITEM (help), help_menu);
+
+  about = gtk_menu_item_new_with_mnemonic ("\345\205\263\344\272\216");
+  gtk_widget_show (about);
+  gtk_container_add (GTK_CONTAINER (help_menu), about);
+
+  hbox1 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox1);
+  gtk_box_pack_start (GTK_BOX (vbox1), hbox1, TRUE, TRUE, 0);
+
+  vbox2 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox2);
+  gtk_box_pack_start (GTK_BOX (hbox1), vbox2, TRUE, TRUE, 0);
+
+  vbox8 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox8);
+  gtk_box_pack_start (GTK_BOX (vbox2), vbox8, TRUE, TRUE, 0);
+
+  vbox10 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox10);
+  gtk_box_pack_start (GTK_BOX (vbox8), vbox10, TRUE, TRUE, 0);
+
+ 
+  toolbar1 = gtk_toolbar_new ();
+  gtk_widget_show (toolbar1);
+  gtk_box_pack_start (GTK_BOX (vbox10), toolbar1, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (toolbar1, -1, 47);
+  gtk_toolbar_set_style (GTK_TOOLBAR (toolbar1), GTK_TOOLBAR_BOTH);
+  tmp_toolbar_icon_size = gtk_toolbar_get_icon_size (GTK_TOOLBAR (toolbar1));
+
+  tmp_image = gtk_image_new_from_stock ("gtk-preferences", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  networktool = (GtkWidget*) gtk_tool_button_new (tmp_image, "网络设置");
+  gtk_widget_show (networktool);
+  gtk_container_add (GTK_CONTAINER (toolbar1), networktool);
+  gtk_widget_set_size_request (networktool, 65, 45);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (networktool), tooltips, "\347\275\221\347\273\234\350\256\276\347\275\256", NULL);
+  
+  separatortoolitem7 = (GtkWidget*) gtk_separator_tool_item_new ();
+  gtk_widget_show (separatortoolitem7);
+  gtk_container_add (GTK_CONTAINER (toolbar1), separatortoolitem7);
+
+  tmp_image = gtk_image_new_from_stock ("gtk-media-forward", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  loadtool = (GtkWidget*) gtk_tool_button_new (tmp_image, "登录系统");
+  gtk_widget_show (loadtool);
+  gtk_container_add (GTK_CONTAINER (toolbar1), loadtool);
+  gtk_widget_set_size_request (loadtool, 65,45);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (loadtool), tooltips, "\347\231\273\345\275\225\347\263\273\347\273\237", NULL);
+  gtk_widget_set_sensitive (loadtool, FALSE); 
+  separatortoolitem1 = (GtkWidget*) gtk_separator_tool_item_new ();
+  gtk_widget_show (separatortoolitem1);
+  gtk_container_add (GTK_CONTAINER (toolbar1), separatortoolitem1);
+
+  tmp_image = gtk_image_new_from_stock ("gtk-execute", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  addclasstool = (GtkWidget*) gtk_tool_button_new (tmp_image, "加入课堂");
+  gtk_widget_show (addclasstool);
+  gtk_container_add (GTK_CONTAINER (toolbar1), addclasstool);
+  gtk_widget_set_size_request (addclasstool, 65, 45);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (addclasstool), tooltips, "\345\212\240\345\205\245\350\257\276\345\240\202", NULL);
+  gtk_widget_set_sensitive (addclasstool, FALSE); 
+  separatortoolitem2 = (GtkWidget*) gtk_separator_tool_item_new ();
+  gtk_widget_show (separatortoolitem2);
+  gtk_container_add (GTK_CONTAINER (toolbar1), separatortoolitem2);
+
+  tmp_image = gtk_image_new_from_stock ("gtk-stop", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  exitclasstool = (GtkWidget*) gtk_tool_button_new (tmp_image, "退出课堂");
+  gtk_widget_show (exitclasstool);
+  gtk_container_add (GTK_CONTAINER (toolbar1), exitclasstool);
+  gtk_widget_set_size_request (exitclasstool, 65, 45);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (exitclasstool), tooltips, "\351\200\200\345\207\272\350\257\276\345\240\202", NULL);
+  gtk_widget_set_sensitive (exitclasstool, FALSE); 
+  separatortoolitem3 = (GtkWidget*) gtk_separator_tool_item_new ();
+  gtk_widget_show (separatortoolitem3);
+  gtk_container_add (GTK_CONTAINER (toolbar1), separatortoolitem3);
+
+  tmp_image = gtk_image_new_from_stock ("gtk-zoom-fit", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  exchangetool = (GtkWidget*) gtk_tool_button_new (tmp_image, "申请交互");
+  gtk_widget_show (exchangetool);
+  gtk_container_add (GTK_CONTAINER (toolbar1), exchangetool);
+  gtk_widget_set_size_request (exchangetool, 65, 45);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (exchangetool), tooltips, "\350\257\267\346\261\202\344\272\244\344\272\222", NULL);
+  gtk_widget_set_sensitive (exchangetool, FALSE);
+  
+  separatortoolitem4 = (GtkWidget*) gtk_separator_tool_item_new ();
+  gtk_widget_show (separatortoolitem4);
+  gtk_container_add (GTK_CONTAINER (toolbar1), separatortoolitem4);
+
+  tmp_image = gtk_image_new_from_stock ("gtk-media-pause", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  cancelextool = (GtkWidget*) gtk_tool_button_new (tmp_image, "取消交互");
+  gtk_widget_show (cancelextool);
+  gtk_container_add (GTK_CONTAINER (toolbar1), cancelextool);
+  gtk_widget_set_size_request (cancelextool, 65, 45);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (cancelextool), tooltips, "\345\217\226\346\266\210\344\272\244\344\272\222", NULL);
+  gtk_widget_set_sensitive (cancelextool, FALSE);
+  separatortoolitem5 = (GtkWidget*) gtk_separator_tool_item_new ();
+  gtk_widget_show (separatortoolitem5);
+  gtk_container_add (GTK_CONTAINER (toolbar1), separatortoolitem5);
+
+  tmp_image = gtk_image_new_from_stock ("gtk-quit", tmp_toolbar_icon_size);
+  gtk_widget_show (tmp_image);
+  exittool = (GtkWidget*) gtk_tool_button_new (tmp_image, "退出系统");
+  gtk_widget_show (exittool);
+  gtk_container_add (GTK_CONTAINER (toolbar1), exittool);
+  gtk_widget_set_size_request (exittool, 65, 40);
+  gtk_tool_item_set_tooltip (GTK_TOOL_ITEM (exittool), tooltips, "\351\200\200\345\207\272\347\263\273\347\273\237", NULL);
+
+  
+  hbox18 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox18);
+  gtk_box_pack_start (GTK_BOX (vbox10), hbox18, TRUE, TRUE, 0);
+
+  studframe = gtk_frame_new (NULL);
+  gtk_widget_show (studframe);
+  gtk_box_pack_start (GTK_BOX (hbox18), studframe, TRUE, TRUE, 0);
+  gtk_frame_set_label_align (GTK_FRAME (studframe), 0, 0);
+
+  alignment4 = gtk_alignment_new (0.5, 0.5, 1, 1);
+  gtk_widget_show (alignment4);
+  gtk_container_add (GTK_CONTAINER (studframe), alignment4);
+  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment4), 0, 0, 12, 0);
+
+  vbox11 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox11);
+  gtk_container_add (GTK_CONTAINER (alignment4), vbox11);
+
+  teachimage = create_pixmap (mainwindow, NULL);
+
+  gtk_widget_show (teachimage);
+  gtk_box_pack_start (GTK_BOX (vbox11), teachimage, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (teachimage, 200,150);
+
+
+  hseparator4 = gtk_hseparator_new ();
+  gtk_widget_show (hseparator4);
+  gtk_box_pack_start (GTK_BOX (vbox11), hseparator4, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (hseparator4, 1, 2);
+
+  hbox19 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox19);
+  gtk_box_pack_start (GTK_BOX (vbox11), hbox19, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (hbox19, 175, 15);
+
+  studimagebut = gtk_button_new_with_mnemonic ("\344\272\244\344\272\222\345\255\246\347\224\237\345\233\276\345\203\217");
+  gtk_widget_show (studimagebut);
+  gtk_box_pack_start (GTK_BOX (hbox19), studimagebut, TRUE, FALSE, 0);
+  gtk_widget_set_size_request (studimagebut, 90, 10);
+
+  vseparator1 = gtk_vseparator_new ();
+  gtk_widget_show (vseparator1);
+  gtk_box_pack_start (GTK_BOX (hbox19), vseparator1, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (vseparator1, 1, 1);
+
+  myimagebut = gtk_button_new_with_mnemonic ("\346\210\221\347\232\204\345\233\276\345\203\217");
+  gtk_widget_show (myimagebut);
+  gtk_box_pack_end (GTK_BOX (hbox19), myimagebut, TRUE, FALSE, 0);
+  gtk_widget_set_size_request (myimagebut,90, 10);
+
+  hseparator5 = gtk_hseparator_new ();
+  gtk_widget_show (hseparator5);
+  gtk_box_pack_start (GTK_BOX (vbox11), hseparator5, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (hseparator5, 0, 0);
+
+  studimage = create_pixmap (mainwindow, NULL);
+  gtk_widget_show (studimage);
+  gtk_box_pack_start (GTK_BOX (vbox11), studimage, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (studimage, 176, 144);
+
+  hseparator6 = gtk_hseparator_new ();
+  gtk_widget_show (hseparator6);
+  gtk_box_pack_start (GTK_BOX (vbox11), hseparator6, TRUE, TRUE, 0);
+
+  scrolledwindow1 = gtk_scrolled_window_new (NULL, NULL);
+  gtk_widget_show (scrolledwindow1);
+  gtk_box_pack_start (GTK_BOX (vbox11), scrolledwindow1, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (scrolledwindow1, 176, 102);
+  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_SHADOW_IN);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow1), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); 
+ 
+  chatview = gtk_text_view_new ();
+  gtk_widget_show (chatview);
+  gtk_container_add (GTK_CONTAINER (scrolledwindow1), chatview);
+  gtk_widget_set_size_request (chatview, 170, 110);
+  gtk_text_view_set_editable (GTK_TEXT_VIEW (chatview), FALSE);
+
+  TeachChat_buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW(chatview));
+  gtk_text_buffer_get_end_iter(TeachChat_buffer,&TeachChat_end);
+  
+  label = gtk_label_new ("");
+  gtk_widget_show (label);
+  gtk_frame_set_label_widget (GTK_FRAME (studframe), label);
+  gtk_label_set_use_markup (GTK_LABEL (label), TRUE);
+
+  screenframe = gtk_frame_new (NULL);
+  gtk_widget_show (screenframe);
+  gtk_box_pack_start (GTK_BOX (hbox18), screenframe, TRUE, TRUE, 0);
+  gtk_frame_set_label_align (GTK_FRAME (screenframe), 0, 0);
+
+  alignment5 = gtk_alignment_new (0.5, 0.5, 1, 1);
+  gtk_widget_show (alignment5);
+  gtk_container_add (GTK_CONTAINER (screenframe), alignment5);
+  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment5), 0, 0, 12, 0);
+
+  vbox12 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox12);
+  gtk_container_add (GTK_CONTAINER (alignment5), vbox12);
+ 
+  
+  scrolledwindow4 = gtk_scrolled_window_new (NULL, NULL);
+  gtk_widget_show (scrolledwindow4);
+  gtk_box_pack_start (GTK_BOX (vbox12), scrolledwindow4, TRUE, TRUE, 0);
+  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_SHADOW_IN);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolledwindow4), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); 
+  
+  chat_show = gtk_text_view_new ();
+  gtk_widget_show(chat_show);
+  gtk_container_add (GTK_CONTAINER (scrolledwindow4), chat_show);
+  gtk_widget_set_size_request (chat_show, 750, 500);
+  gtk_text_view_set_editable (GTK_TEXT_VIEW (chat_show), FALSE);
+  gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW  (chat_show), FALSE);
+  chat_buffer=gtk_text_view_get_buffer(GTK_TEXT_VIEW(chat_show));
+  gtk_text_buffer_get_end_iter(chat_buffer,&chat_end);
+
+ 
+  hseparator7 = gtk_hseparator_new ();
+  gtk_widget_show (hseparator7);
+  gtk_box_pack_start (GTK_BOX (vbox12), hseparator7, TRUE, FALSE, 0);
+
+  hbox20 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox20);
+  gtk_box_pack_start (GTK_BOX (vbox12), hbox20, TRUE, FALSE, 0);
+
+  inputlab = gtk_label_new ("\350\276\223\345\205\245\344\277\241\346\201\257\357\274\232");
+  gtk_widget_show (inputlab);
+  gtk_box_pack_start (GTK_BOX (hbox20), inputlab, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (inputlab, 60, 25);
+  gtk_label_set_justify (GTK_LABEL (inputlab), GTK_JUSTIFY_CENTER);
+
+  chatentry = gtk_entry_new ();
+  gtk_widget_show (chatentry);
+  gtk_box_pack_start (GTK_BOX (hbox20), chatentry, TRUE, FALSE,0);
+  gtk_widget_set_size_request (chatentry, 650, 25);
+
+  sendchatbut = gtk_button_new_with_mnemonic ("\345\217\221\351\200\201");
+  gtk_widget_show (sendchatbut);
+  gtk_box_pack_start (GTK_BOX (hbox20), sendchatbut,FALSE, TRUE, 0);
+  gtk_widget_set_size_request (sendchatbut, 40, 25);
+
+  label2 = gtk_label_new ("");
+  gtk_widget_show (label2);
+  gtk_frame_set_label_widget (GTK_FRAME (screenframe), label2);
+  gtk_label_set_use_markup (GTK_LABEL (label2), TRUE);
+
+  list1 = gtk_list_new ();
+  gtk_widget_show (list1);
+  gtk_box_pack_start (GTK_BOX (vbox2), list1, FALSE, FALSE, 0);
+
+  
+    g_signal_connect(G_OBJECT(mainwindow),"destroy",
+                   G_CALLBACK(gtk_main_quit),NULL);
+
+  g_signal_connect ((gpointer) networkconfig, "activate",
+                    G_CALLBACK (on_networkconfig_activate),
+                    NULL);
+  g_signal_connect ((gpointer) loadsys, "activate",
+                    G_CALLBACK (on_loadsys_activate),
+                    NULL);
+  g_signal_connect ((gpointer) exitsys, "activate",
+                    G_CALLBACK (on_exitsys_activate),
+                    NULL);
+  g_signal_connect ((gpointer) addclass, "activate",
+                    G_CALLBACK (on_addclass_activate),
+                    NULL);
+  g_signal_connect ((gpointer) exitclass, "activate",
+                    G_CALLBACK (on_exitclass_activate),
+                    NULL);
+  g_signal_connect ((gpointer) requestchange, "activate",
+                    G_CALLBACK (on_requestchange_activate),
+                    NULL);
+  g_signal_connect ((gpointer) cancelchange, "activate",
+                    G_CALLBACK (on_cancelchange_activate),
+                    NULL);
+ 
+
+  g_signal_connect ((gpointer) about, "activate",
+                    G_CALLBACK (on_about_activate),
+                    NULL);
+  g_signal_connect ((gpointer) networktool, "clicked",
+                    G_CALLBACK (on_networktool_clicked),
+                    NULL);
+
+  g_signal_connect ((gpointer) loadtool, "clicked",
+                    G_CALLBACK (on_loadtool_clicked),
+                    NULL);
+ 
+  g_signal_connect ((gpointer) addclasstool, "clicked",
+                    G_CALLBACK (on_addclasstool_clicked),
+                    NULL);
+ 
+  g_signal_connect ((gpointer) exitclasstool, "clicked",
+                    G_CALLBACK (on_exitclasstool_clicked),
+                    NULL);
+
+  g_signal_connect ((gpointer) exchangetool, "clicked",
+                    G_CALLBACK (on_exchangetool_clicked),
+                    NULL);
+
+  g_signal_connect ((gpointer) cancelextool, "clicked",
+                    G_CALLBACK (on_cancelextool_clicked),
+                    NULL);  
+               
+  g_signal_connect ((gpointer) exittool, "clicked",
+                    G_CALLBACK (on_exittool_clicked),
+                    NULL);
+           
+  g_signal_connect ((gpointer) studimagebut, "clicked",
+                    G_CALLBACK (on_studimagebut_clicked),
+                    NULL);
+					
+  g_signal_connect ((gpointer) myimagebut, "clicked",
+                    G_CALLBACK (on_myimagebut_clicked),
+                    NULL);
+					
+  g_signal_connect ((gpointer) sendchatbut, "clicked",
+                    G_CALLBACK (on_sendchatbut_clicked),
+                    NULL);
+
+  g_signal_connect ((gpointer) chatentry, "activate",
+                    G_CALLBACK (on_chatentry_activate),
+                    NULL);
+
+  return mainwindow;
+}
+
+GtkWidget*
+create_loaddialog (void)
+{
+  GtkWidget *loaddialog;
+  GtkWidget *dialog_vbox1;
+  GtkWidget *vbox3;
+  GtkWidget *hbox6;
+  GtkWidget *usename;
+   
+  GtkWidget *hbox7;
+  GtkWidget *password;
+   
+  GtkWidget *dialog_action_area1;
+  GtkWidget *loadcancelbut;
+  GtkWidget *loadokbutton;
+	
+   loaddialog = gtk_dialog_new ();
+  gtk_widget_set_size_request (loaddialog, 281, 174);
+  gtk_window_set_title (GTK_WINDOW (loaddialog), "\347\231\273\345\275\225\344\277\241\346\201\257");
+  gtk_window_set_type_hint (GTK_WINDOW (loaddialog), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+  dialog_vbox1 = GTK_DIALOG (loaddialog)->vbox;
+  gtk_widget_show (dialog_vbox1);
+
+  vbox3 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox3);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox1), vbox3, TRUE, TRUE, 0);
+
+  hbox6 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox6);
+  gtk_box_pack_start (GTK_BOX (vbox3), hbox6, TRUE, TRUE, 0);
+
+  usename = gtk_label_new ("\347\224\250\346\210\267\345\220\215");
+  gtk_widget_show (usename);
+  gtk_box_pack_start (GTK_BOX (hbox6), usename, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (usename, 39, 14);
+
+  nameentry = gtk_entry_new ();
+  gtk_widget_show (nameentry);
+  gtk_box_pack_start (GTK_BOX (hbox6), nameentry, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (nameentry, 158, 25);
+
+ gtk_entry_set_text (GTK_ENTRY (nameentry), namesave);
+
+  hbox7 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox7);
+  gtk_box_pack_start (GTK_BOX (vbox3), hbox7, TRUE, TRUE, 0);
+
+  password = gtk_label_new ("\345\257\206\347\240\201");
+  gtk_widget_show (password);
+  gtk_box_pack_start (GTK_BOX (hbox7), password, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (password, 39, 14);
+
+  psdentry = gtk_entry_new ();
+  gtk_widget_show (psdentry);
+  gtk_box_pack_start (GTK_BOX (hbox7), psdentry, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (psdentry, 158, 25);
+  gtk_entry_set_visibility (GTK_ENTRY (psdentry), FALSE);
+
+  dialog_action_area1 = GTK_DIALOG (loaddialog)->action_area;
+  gtk_widget_show (dialog_action_area1);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
+
+  loadcancelbut = gtk_button_new_from_stock ("gtk-cancel");
+  gtk_widget_show (loadcancelbut);
+  gtk_dialog_add_action_widget (GTK_DIALOG (loaddialog), loadcancelbut, GTK_RESPONSE_CANCEL);
+  gtk_widget_set_size_request (loadcancelbut, 79, 32);
+  GTK_WIDGET_SET_FLAGS (loadcancelbut, GTK_CAN_DEFAULT);
+
+  loadokbutton = gtk_button_new_from_stock ("gtk-ok");
+  gtk_widget_show (loadokbutton);
+  gtk_dialog_add_action_widget (GTK_DIALOG (loaddialog), loadokbutton, GTK_RESPONSE_OK);
+  GTK_WIDGET_SET_FLAGS (loadokbutton, GTK_CAN_DEFAULT);
+
+  
+  g_signal_connect ((gpointer) loadcancelbut, "clicked",
+                   G_CALLBACK (on_loadcancelbut_clicked ),
+                   loaddialog);
+   
+  g_signal_connect ((gpointer) loadokbutton, "clicked",
+                    G_CALLBACK (on_loadokbutton_clicked),
+                   loaddialog);
+ 
+  
+
+  
+  return loaddialog;
+}
+
+
+
+GtkWidget*
+create_networkdialog (void)
+{
+  GtkWidget *networkdialog;
+  GtkWidget *dialog_vbox2;
+  GtkWidget *vbox4;
+  GtkWidget *hbox8;
+  GtkWidget *vbox5;
+  GtkWidget *frame1;
+  GtkWidget *alignment1;
+  GtkWidget *vbox6;
+  GtkWidget *hbox9;
+  GtkWidget *IPlabel;
+
+  GtkWidget *hbox10;
+  GtkWidget *consolelabel;
+
+  GtkWidget *classframe;
+  GtkWidget *frame2;
+  GtkWidget *alignment2;
+  GtkWidget *hbox11;
+  GtkWidget *localIPlab;
+
+  GtkWidget *clientframe;
+  GtkWidget *frame3;
+  GtkWidget *alignment3;
+  GtkWidget *vbox7;
+  GtkWidget *hbox12;
+  GtkWidget *Teachaudiolab;
+
+  GtkWidget *hbox13;
+  GtkWidget *Teachvideolab;
+
+  GtkWidget *hbox14;
+  GtkWidget *screenlabel;
+
+  GtkWidget *hbox15;
+  GtkWidget *studaudiolab;
+
+  GtkWidget *hbox16;
+  GtkWidget *studvidolab;
+
+  GtkWidget *receive;
+  GtkWidget *dialog_action_area2;
+  GtkWidget *networkcancel;
+  GtkWidget *networlOk;
+  
+    config_file_read();
+	
+  networkdialog = gtk_dialog_new ();
+  gtk_window_set_title (GTK_WINDOW (networkdialog), "\347\275\221\347\273\234\345\217\202\346\225\260");
+  gtk_window_set_resizable (GTK_WINDOW (networkdialog), FALSE);
+  gtk_window_set_type_hint (GTK_WINDOW (networkdialog), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+  dialog_vbox2 = GTK_DIALOG (networkdialog)->vbox;
+  gtk_widget_show (dialog_vbox2);
+  gtk_widget_set_size_request (dialog_vbox2, 495, 213);
+
+  vbox4 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox4);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox2), vbox4, TRUE, TRUE, 0);
+
+  hbox8 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox8);
+  gtk_box_pack_start (GTK_BOX (vbox4), hbox8, TRUE, TRUE, 0);
+
+  vbox5 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox5);
+  gtk_box_pack_start (GTK_BOX (hbox8), vbox5, TRUE, TRUE, 0);
+
+  frame1 = gtk_frame_new (NULL);
+  gtk_widget_show (frame1);
+  gtk_box_pack_start (GTK_BOX (vbox5), frame1, TRUE, TRUE, 0);
+  gtk_frame_set_shadow_type (GTK_FRAME (frame1), GTK_SHADOW_ETCHED_OUT);
+
+  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);
+
+  vbox6 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox6);
+  gtk_container_add (GTK_CONTAINER (alignment1), vbox6);
+
+  hbox9 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox9);
+  gtk_box_pack_start (GTK_BOX (vbox6), hbox9, TRUE, TRUE, 0);
+
+  IPlabel = gtk_label_new ("IP\345\234\260\345\235\200");
+  gtk_widget_show (IPlabel);
+  gtk_box_pack_start (GTK_BOX (hbox9), IPlabel, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (IPlabel, 38, 21);
+
+  IPentry = gtk_entry_new ();
+  gtk_widget_show (IPentry);
+  gtk_box_pack_start (GTK_BOX (hbox9), IPentry, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (IPentry, 158, 21);
+  GTK_WIDGET_SET_FLAGS (IPentry, GTK_CAN_DEFAULT);
+
+    gtk_entry_set_text (GTK_ENTRY (IPentry),center.Center_IP);
+
+  hbox10 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox10);
+  gtk_box_pack_start (GTK_BOX (vbox6), hbox10, TRUE, TRUE, 0);
+
+  consolelabel = gtk_label_new ("\347\253\257\345\217\243");
+  gtk_widget_show (consolelabel);
+  gtk_box_pack_start (GTK_BOX (hbox10), consolelabel, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (consolelabel, 38, 21);
+
+  entry5 = gtk_entry_new ();
+  gtk_widget_show (entry5);
+  gtk_box_pack_start (GTK_BOX (hbox10), entry5, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (entry5, 158, 21);
+
+printf("center.Center_port is %s",center.Center_port);
+    gtk_entry_set_text (GTK_ENTRY (entry5),center.Center_port);
+
+  classframe = gtk_label_new ("<b>\350\257\276\345\240\202\346\234\215\345\212\241\344\270\255\345\277\203\345\217\202\346\225\260</b>");
+  gtk_widget_show (classframe);
+  gtk_frame_set_label_widget (GTK_FRAME (frame1), classframe);
+  gtk_label_set_use_markup (GTK_LABEL (classframe), TRUE);
+  gtk_label_set_justify (GTK_LABEL (classframe), GTK_JUSTIFY_CENTER);
+
+  frame2 = gtk_frame_new (NULL);
+  gtk_widget_show (frame2);
+  gtk_box_pack_start (GTK_BOX (vbox5), frame2, TRUE, TRUE, 0);
+  gtk_frame_set_shadow_type (GTK_FRAME (frame2), GTK_SHADOW_ETCHED_OUT);
+
+  alignment2 = gtk_alignment_new (0.5, 0.5, 1, 1);
+  gtk_widget_show (alignment2);
+  gtk_container_add (GTK_CONTAINER (frame2), alignment2);
+  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment2), 0, 0, 12, 0);
+
+  hbox11 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox11);
+  gtk_container_add (GTK_CONTAINER (alignment2), hbox11);
+
+  localIPlab = gtk_label_new ("\346\234\254\345\234\260IP");
+  gtk_widget_show (localIPlab);
+  gtk_box_pack_start (GTK_BOX (hbox11), localIPlab, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (localIPlab, 38, 21);
+
+  localIPentry = gtk_entry_new ();
+  gtk_widget_show (localIPentry);
+  gtk_box_pack_start (GTK_BOX (hbox11), localIPentry, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (localIPentry, 158, 21);
+
+ gtk_entry_set_text (GTK_ENTRY (localIPentry), IP);
+
+  clientframe = gtk_label_new ("<b>\345\220\254\350\257\276\347\253\257\345\217\202\346\225\260</b>");
+  gtk_widget_show (clientframe);
+  gtk_frame_set_label_widget (GTK_FRAME (frame2), clientframe);
+  gtk_label_set_use_markup (GTK_LABEL (clientframe), TRUE);
+
+  frame3 = gtk_frame_new (NULL);
+  gtk_widget_show (frame3);
+  gtk_box_pack_start (GTK_BOX (hbox8), frame3, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (frame3, 276, 150);
+  gtk_frame_set_shadow_type (GTK_FRAME (frame3), GTK_SHADOW_ETCHED_OUT);
+
+  alignment3 = gtk_alignment_new (0.5, 0.5, 1, 1);
+  gtk_widget_show (alignment3);
+  gtk_container_add (GTK_CONTAINER (frame3), alignment3);
+  gtk_widget_set_size_request (alignment3, 272, 105);
+  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment3), 0, 0, 12, 0);
+
+  vbox7 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox7);
+  gtk_container_add (GTK_CONTAINER (alignment3), vbox7);
+
+  hbox12 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox12);
+  gtk_box_pack_start (GTK_BOX (vbox7), hbox12, TRUE, TRUE, 0);
+
+  Teachaudiolab = gtk_label_new ("\346\216\210\350\257\276\347\253\257\351\237\263\351\242\221\346\216\245\346\224\266");
+  gtk_widget_show (Teachaudiolab);
+  gtk_box_pack_start (GTK_BOX (hbox12), Teachaudiolab, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (Teachaudiolab, 102, 21);
+
+  teachaudioentry = gtk_entry_new ();
+  gtk_widget_show (teachaudioentry);
+  gtk_box_pack_start (GTK_BOX (hbox12), teachaudioentry, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (teachaudioentry, 158, 21);
+  gtk_entry_set_text (GTK_ENTRY (teachaudioentry), "5000");
+
+  hbox13 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox13);
+  gtk_box_pack_start (GTK_BOX (vbox7), hbox13, TRUE, TRUE, 0);
+
+  Teachvideolab = gtk_label_new ("\346\216\210\350\257\276\347\253\257\350\247\206\351\242\221\346\216\245\346\224\266");
+  gtk_widget_show (Teachvideolab);
+  gtk_box_pack_start (GTK_BOX (hbox13), Teachvideolab, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (Teachvideolab, 102, 11);
+
+  teachvideoentry = gtk_entry_new ();
+  gtk_widget_show (teachvideoentry);
+  gtk_box_pack_start (GTK_BOX (hbox13), teachvideoentry, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (teachvideoentry, 158, 21);
+  gtk_entry_set_text (GTK_ENTRY (teachvideoentry), "5002");
+
+  hbox14 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox14);
+  gtk_box_pack_start (GTK_BOX (vbox7), hbox14, TRUE, TRUE, 0);
+
+  screenlabel = gtk_label_new ("\346\216\210\350\257\276\347\253\257\345\261\217\345\271\225\346\216\245\346\224\266");
+  gtk_widget_show (screenlabel);
+  gtk_box_pack_start (GTK_BOX (hbox14), screenlabel, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (screenlabel, 102, 11);
+
+  screenentry = gtk_entry_new ();
+  gtk_widget_show (screenentry);
+  gtk_box_pack_start (GTK_BOX (hbox14), screenentry, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (screenentry, 158, 21);
+  gtk_entry_set_text (GTK_ENTRY (screenentry), "5004");
+
+  hbox15 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox15);
+  gtk_box_pack_start (GTK_BOX (vbox7), hbox15, TRUE, TRUE, 0);
+
+  studaudiolab = gtk_label_new ("\344\272\244\344\272\222\345\255\246\347\224\237\351\237\263\351\242\221\346\216\245\346\224\266");
+  gtk_widget_show (studaudiolab);
+  gtk_box_pack_start (GTK_BOX (hbox15), studaudiolab, FALSE, TRUE, 0);
+  gtk_widget_set_size_request (studaudiolab, 102, 11);
+
+  studaudioentry = gtk_entry_new ();
+  gtk_widget_show (studaudioentry);
+  gtk_box_pack_start (GTK_BOX (hbox15), studaudioentry, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (studaudioentry, 158, 21);
+  gtk_entry_set_text (GTK_ENTRY (studaudioentry), "5006");
+
+  hbox16 = gtk_hbox_new (FALSE, 0);
+  gtk_widget_show (hbox16);
+  gtk_box_pack_start (GTK_BOX (vbox7), hbox16, TRUE, TRUE, 0);
+
+  studvidolab = gtk_label_new ("\344\272\244\344\272\222\345\255\246\347\224\237\350\247\206\351\242\221\346\216\245\346\224\266");
+  gtk_widget_show (studvidolab);
+  gtk_box_pack_start (GTK_BOX (hbox16), studvidolab, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (studvidolab, 101, 11);
+
+  studvidoentry = gtk_entry_new ();
+  gtk_widget_show (studvidoentry);
+  gtk_box_pack_start (GTK_BOX (hbox16), studvidoentry, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (studvidoentry, 158, 21);
+  gtk_entry_set_text (GTK_ENTRY (studvidoentry), "5008");
+
+  receive = gtk_label_new ("<b>\346\225\260\346\215\256\346\216\245\346\224\266\347\253\257\345\217\243</b>");
+  gtk_widget_show (receive);
+  gtk_frame_set_label_widget (GTK_FRAME (frame3), receive);
+  gtk_label_set_use_markup (GTK_LABEL (receive), TRUE);
+  gtk_label_set_justify (GTK_LABEL (receive), GTK_JUSTIFY_CENTER);
+
+  dialog_action_area2 = GTK_DIALOG (networkdialog)->action_area;
+  gtk_widget_show (dialog_action_area2);
+  gtk_widget_set_size_request (dialog_action_area2, 190, 42);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area2), GTK_BUTTONBOX_END);
+
+  networkcancel = gtk_button_new_from_stock ("gtk-cancel");
+  gtk_widget_show (networkcancel);
+  gtk_dialog_add_action_widget (GTK_DIALOG (networkdialog), networkcancel, GTK_RESPONSE_CANCEL);
+  gtk_widget_set_size_request (networkcancel, 69, 32);
+  GTK_WIDGET_SET_FLAGS (networkcancel, GTK_CAN_DEFAULT);
+
+  networlOk = gtk_button_new_from_stock ("gtk-ok");
+  gtk_widget_show (networlOk);
+  gtk_dialog_add_action_widget (GTK_DIALOG (networkdialog), networlOk, GTK_RESPONSE_OK);
+  gtk_widget_set_size_request (networlOk, 69, 32);
+  GTK_WIDGET_SET_FLAGS (networlOk, GTK_CAN_DEFAULT);
+
+  g_signal_connect ((gpointer) networkcancel, "clicked",
+                    G_CALLBACK (on_networkcancel_clicked),
+                   networkdialog);
+  g_signal_connect ((gpointer) networlOk, "clicked",
+                    G_CALLBACK (on_networlOk_clicked),
+                    networkdialog);
+
+  return networkdialog;
+}
+
+
+GtkWidget*
+create_classdialog (void)
+{
+  
+  GtkWidget *dialog_vbox4;
+  GtkWidget *vbox13;
+  GtkWidget *scrolledwindow2;
+  
+  GtkWidget *IDlab;
+  GtkWidget *classnamelab;
+  GtkWidget *teachnamelab;
+  GtkWidget *statelab;
+  GtkWidget *intrudlab;
+  GtkWidget *dialog_action_area4;
+  GtkWidget *helpbutton1;
+  GtkWidget *classcancelbut;
+  GtkWidget *classokbut;
+
+  classdialog = gtk_dialog_new ();
+  gtk_widget_set_size_request (classdialog, 594, 346);
+  gtk_window_set_title (GTK_WINDOW (classdialog), "\350\257\267\351\200\211\346\213\251\350\277\233\345\205\245\347\232\204\350\257\276\345\240\202");
+  gtk_window_set_type_hint (GTK_WINDOW (classdialog), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+  dialog_vbox4 = GTK_DIALOG (classdialog)->vbox;
+  gtk_widget_show (dialog_vbox4);
+
+  vbox13 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox13);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox4), vbox13, TRUE, TRUE, 0);
+
+  scrolledwindow2 = gtk_scrolled_window_new (NULL, NULL);
+  gtk_widget_show (scrolledwindow2);
+  gtk_box_pack_start (GTK_BOX (vbox13), scrolledwindow2, TRUE, TRUE, 0);
+  gtk_widget_set_size_request (scrolledwindow2, 463, 74);
+  gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (scrolledwindow2), GTK_SHADOW_IN);
+
+  clist1 = gtk_clist_new (5);
+  gtk_widget_show (clist1);
+  gtk_container_add (GTK_CONTAINER (scrolledwindow2), clist1);
+  gtk_widget_set_size_request (clist1, 440, 32);
+  gtk_clist_set_column_width (GTK_CLIST (clist1), 0, 80);
+  gtk_clist_set_column_width (GTK_CLIST (clist1), 1, 80);
+  gtk_clist_set_column_width (GTK_CLIST (clist1), 2, 80);
+  gtk_clist_set_column_width (GTK_CLIST (clist1), 3, 80);
+  gtk_clist_set_column_width (GTK_CLIST (clist1), 4, 80);
+  gtk_clist_column_titles_show (GTK_CLIST (clist1));
+
+  IDlab = gtk_label_new ("ID");
+  gtk_widget_show (IDlab);
+  gtk_clist_set_column_widget (GTK_CLIST (clist1), 0, IDlab);
+
+  classnamelab = gtk_label_new ("\350\257\276\345\240\202\345\220\215\347\247\260");
+  gtk_widget_show (classnamelab);
+  gtk_clist_set_column_widget (GTK_CLIST (clist1), 1, classnamelab);
+
+  teachnamelab = gtk_label_new ("\346\225\231\345\270\210");
+  gtk_widget_show (teachnamelab);
+  gtk_clist_set_column_widget (GTK_CLIST (clist1), 2, teachnamelab);
+
+  statelab = gtk_label_new ("\347\212\266\346\200\201");
+  gtk_widget_show (statelab);
+  gtk_clist_set_column_widget (GTK_CLIST (clist1), 3, statelab);
+
+  intrudlab = gtk_label_new ("\350\257\276\347\250\213\346\246\202\350\277\260");
+  gtk_widget_show (intrudlab);
+  gtk_clist_set_column_widget (GTK_CLIST (clist1), 4, intrudlab);
+
+  dialog_action_area4 = GTK_DIALOG (classdialog)->action_area;
+  gtk_widget_show (dialog_action_area4);
+  gtk_widget_set_size_request (dialog_action_area4, 410, 42);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area4), GTK_BUTTONBOX_END);
+
+  helpbutton1 = gtk_button_new_from_stock ("gtk-help");
+  gtk_widget_show (helpbutton1);
+  gtk_dialog_add_action_widget (GTK_DIALOG (classdialog), helpbutton1, GTK_RESPONSE_HELP);
+  GTK_WIDGET_SET_FLAGS (helpbutton1, GTK_CAN_DEFAULT);
+
+  classcancelbut = gtk_button_new_from_stock ("gtk-cancel");
+  gtk_widget_show (classcancelbut);
+  gtk_dialog_add_action_widget (GTK_DIALOG (classdialog), classcancelbut, GTK_RESPONSE_CANCEL);
+  GTK_WIDGET_SET_FLAGS (classcancelbut, GTK_CAN_DEFAULT);
+
+  classokbut = gtk_button_new_from_stock ("gtk-ok");
+  gtk_widget_show (classokbut);
+  gtk_dialog_add_action_widget (GTK_DIALOG (classdialog), classokbut, GTK_RESPONSE_OK);
+  GTK_WIDGET_SET_FLAGS (classokbut, GTK_CAN_DEFAULT);
+
+  g_signal_connect ((gpointer) classcancelbut, "clicked",
+                    G_CALLBACK (on_classcancelbut_clicked),
+                    classdialog);
+  
+  g_signal_connect ((gpointer) classokbut, "clicked",
+                    G_CALLBACK (on_classokbut_clicked),
+                    classdialog);
+   g_signal_connect(GTK_OBJECT(clist1),"select_row",G_CALLBACK (select_clist_row),
+                    NULL);
+
+  /* Store pointers to all widgets, for use by lookup_widget(). */
+  GLADE_HOOKUP_OBJECT_NO_REF (classdialog, classdialog, "classdialog");
+  GLADE_HOOKUP_OBJECT_NO_REF (classdialog, dialog_vbox4, "dialog_vbox4");
+  GLADE_HOOKUP_OBJECT (classdialog, vbox13, "vbox13");
+  GLADE_HOOKUP_OBJECT (classdialog, scrolledwindow2, "scrolledwindow2");
+  GLADE_HOOKUP_OBJECT (classdialog, clist1, "clist1");
+  GLADE_HOOKUP_OBJECT (classdialog, IDlab, "IDlab");
+  GLADE_HOOKUP_OBJECT (classdialog, classnamelab, "classnamelab");
+  GLADE_HOOKUP_OBJECT (classdialog, teachnamelab, "teachnamelab");
+  GLADE_HOOKUP_OBJECT (classdialog, statelab, "statelab");
+  GLADE_HOOKUP_OBJECT (classdialog, intrudlab, "intrudlab");
+  GLADE_HOOKUP_OBJECT_NO_REF (classdialog, dialog_action_area4, "dialog_action_area4");
+  GLADE_HOOKUP_OBJECT (classdialog, helpbutton1, "helpbutton1");
+  GLADE_HOOKUP_OBJECT (classdialog, classcancelbut, "classcancelbut");
+  GLADE_HOOKUP_OBJECT (classdialog, classokbut, "classokbut");
+
+  return classdialog;
+}
+
+GtkWidget*
+create_stu_dialog (void)
+{
+  GtkWidget *stu_dialog;
+  GtkWidget *dialog_vbox5;
+  GtkWidget *stu_scroll;
+ 
+  GtkWidget *ClientID;
+  GtkWidget *stud_namelab;
+  GtkWidget *stateLab;
+  GtkWidget *dialog_action_area5;
+  GtkWidget *stulist_cancelbut;
+  GtkWidget *stulist_okbut;
+
+  stu_dialog = gtk_dialog_new ();
+  gtk_widget_set_size_request (stu_dialog, 317, 419);
+  gtk_window_set_title (GTK_WINDOW (stu_dialog), "\345\255\246\347\224\237\345\210\227\350\241\250");
+  gtk_window_set_resizable (GTK_WINDOW (stu_dialog), FALSE);
+  gtk_window_set_type_hint (GTK_WINDOW (stu_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+  dialog_vbox5 = GTK_DIALOG (stu_dialog)->vbox;
+  gtk_widget_show (dialog_vbox5);
+
+  stu_scroll = gtk_scrolled_window_new (NULL, NULL);
+  gtk_widget_show (stu_scroll);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox5), stu_scroll, TRUE, TRUE, 0);
+  gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (stu_scroll), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+
+  stu_clist = gtk_clist_new (3);
+  gtk_widget_show (stu_clist);
+  gtk_container_add (GTK_CONTAINER (stu_scroll), stu_clist);
+  gtk_clist_set_column_width (GTK_CLIST (stu_clist), 0, 80);
+  gtk_clist_set_column_width (GTK_CLIST (stu_clist), 1, 80);
+  gtk_clist_set_column_width (GTK_CLIST (stu_clist), 2, 80);
+  gtk_clist_column_titles_show (GTK_CLIST (stu_clist));
+  gtk_clist_set_shadow_type (GTK_CLIST (stu_clist), GTK_SHADOW_ETCHED_IN);
+
+  ClientID = gtk_label_new ("\345\255\246\347\224\237ID");
+  gtk_widget_show (ClientID);
+  gtk_clist_set_column_widget (GTK_CLIST (stu_clist), 0, ClientID);
+  gtk_widget_set_size_request (ClientID, 31, 13);
+  gtk_label_set_justify (GTK_LABEL (ClientID), GTK_JUSTIFY_CENTER);
+
+  stud_namelab = gtk_label_new ("\345\255\246\347\224\237\345\220\215");
+  gtk_widget_show (stud_namelab);
+  gtk_clist_set_column_widget (GTK_CLIST (stu_clist), 1, stud_namelab);
+  gtk_widget_set_size_request (stud_namelab, 30, 11);
+  gtk_label_set_justify (GTK_LABEL (stud_namelab), GTK_JUSTIFY_CENTER);
+
+  stateLab = gtk_label_new ("\344\272\244\344\272\222\346\203\205\345\206\265");
+  gtk_widget_show (stateLab);
+  gtk_clist_set_column_widget (GTK_CLIST (stu_clist), 2, stateLab);
+  gtk_widget_set_size_request (stateLab, 30, 11);
+
+  dialog_action_area5 = GTK_DIALOG (stu_dialog)->action_area;
+  gtk_widget_show (dialog_action_area5);
+  gtk_widget_set_size_request (dialog_action_area5, 190, 42);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area5), GTK_BUTTONBOX_END);
+
+  stulist_cancelbut = gtk_button_new_from_stock ("gtk-cancel");
+  gtk_widget_show (stulist_cancelbut);
+  gtk_dialog_add_action_widget (GTK_DIALOG (stu_dialog), stulist_cancelbut, GTK_RESPONSE_CANCEL);
+  gtk_widget_set_size_request (stulist_cancelbut, 69, 32);
+  GTK_WIDGET_SET_FLAGS (stulist_cancelbut, GTK_CAN_DEFAULT);
+
+  stulist_okbut = gtk_button_new_from_stock ("gtk-ok");
+  gtk_widget_show (stulist_okbut);
+  gtk_dialog_add_action_widget (GTK_DIALOG (stu_dialog), stulist_okbut, GTK_RESPONSE_OK);
+  gtk_widget_set_size_request (stulist_okbut, 69, 32);
+  GTK_WIDGET_SET_FLAGS (stulist_okbut, GTK_CAN_DEFAULT);
+
+  g_signal_connect ((gpointer) stu_clist, "select_row",
+                    G_CALLBACK (on_stu_clist_select_row),
+                    NULL);
+  g_signal_connect ((gpointer) stulist_cancelbut, "clicked",
+                    G_CALLBACK (on_stulist_cancelbut_clicked),
+                    stu_dialog);
+  g_signal_connect ((gpointer) stulist_okbut, "clicked",
+                    G_CALLBACK (on_stulist_okbut_clicked),
+                    stu_dialog);
+
+ 
+  return stu_dialog;
+}
+
+GtkWidget*
+create_error_dialog (char *errormessage)
+{
+  GtkWidget *error_dialog;
+  GtkWidget *dialog_vbox6;
+  GtkWidget *frame4;
+  GtkWidget *alignment6;
+  GtkWidget *vbox14;
+  GtkWidget *error_topic;
+  GtkWidget *label6;
+  GtkWidget *error_lab1;
+  GtkWidget *error_label;
+  GtkWidget *dialog_action_area6;
+  GtkWidget *error_calbut;
+  GtkWidget *error_okbut;
+
+  error_dialog = gtk_dialog_new ();
+  gtk_widget_set_size_request (error_dialog,270, 150);
+  gtk_window_set_title (GTK_WINDOW (error_dialog), "\351\224\231\350\257\257\346\217\220\347\244\272");
+    
+	gtk_window_set_type_hint (GTK_WINDOW (error_dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+  dialog_vbox6 = GTK_DIALOG (error_dialog)->vbox;
+  gtk_widget_show (dialog_vbox6);
+
+  frame4 = gtk_frame_new (NULL);
+  gtk_widget_show (frame4);
+  gtk_box_pack_start (GTK_BOX (dialog_vbox6), frame4, TRUE, TRUE, 0);
+  gtk_frame_set_label_align (GTK_FRAME (frame4), 0, 0);
+
+  alignment6 = gtk_alignment_new (0.5, 0.5, 1, 1);
+  gtk_widget_show (alignment6);
+  gtk_container_add (GTK_CONTAINER (frame4), alignment6);
+  gtk_alignment_set_padding (GTK_ALIGNMENT (alignment6), 0, 0, 12, 0);
+
+  vbox14 = gtk_vbox_new (FALSE, 0);
+  gtk_widget_show (vbox14);
+  gtk_container_add (GTK_CONTAINER (alignment6), vbox14);
+
+  error_topic = gtk_label_new ("\347\231\273\345\275\225\345\244\261\350\264\245");
+  gtk_widget_show (error_topic);
+  gtk_box_pack_start (GTK_BOX (vbox14), error_topic, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (error_topic, 90, 25);
+  gtk_label_set_justify (GTK_LABEL (error_topic), GTK_JUSTIFY_CENTER);
+
+  label6 = gtk_label_new ("");
+  gtk_widget_show (label6);
+  gtk_box_pack_start (GTK_BOX (vbox14), label6, FALSE, FALSE, 0);
+
+  error_lab1 = gtk_label_new (errormessage);
+  gtk_widget_show (error_lab1);
+  gtk_box_pack_start (GTK_BOX (vbox14), error_lab1, FALSE, FALSE, 0);
+  gtk_widget_set_size_request (error_lab1, 90, 25);
+
+  error_label = gtk_label_new ("<b></b>");
+  gtk_widget_show (error_label);
+  gtk_frame_set_label_widget (GTK_FRAME (frame4), error_label);
+  gtk_label_set_use_markup (GTK_LABEL (error_label), TRUE);
+
+  dialog_action_area6 = GTK_DIALOG (error_dialog)->action_area;
+  gtk_widget_show (dialog_action_area6);
+  gtk_widget_set_size_request (dialog_action_area6, 90, 42);
+  gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area6), GTK_BUTTONBOX_END);
+
+  error_calbut = gtk_button_new_from_stock ("gtk-cancel");
+  gtk_widget_show (error_calbut);
+  gtk_dialog_add_action_widget (GTK_DIALOG (error_dialog), error_calbut, GTK_RESPONSE_CANCEL);
+  GTK_WIDGET_SET_FLAGS (error_calbut, GTK_CAN_DEFAULT);
+
+  error_okbut = gtk_button_new_from_stock ("gtk-ok");
+  gtk_widget_show (error_okbut);
+  gtk_dialog_add_action_widget (GTK_DIALOG (error_dialog), error_okbut, GTK_RESPONSE_OK);
+  GTK_WIDGET_SET_FLAGS (error_okbut, GTK_CAN_DEFAULT);
+
+  g_signal_connect ((gpointer) error_calbut, "clicked",
+                    G_CALLBACK (on_error_calbut_clicked),
+                    error_dialog);
+  g_signal_connect ((gpointer) error_okbut, "clicked",
+                    G_CALLBACK (on_error_okbut_clicked),
+                    error_dialog);
+
+ 
+  return error_dialog;
+}
+
+void
+Error_dia(gchar *input,gchar *solution)
+{
+      GtkWidget *Message_dia;
+ 
+
+     gchar message[100];
+     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()
+ {   
+	 
+	 DWORD DIPport;
+	 DWORD Dtv_port;
+	 DWORD Dta_port;
+	 DWORD Dts_port;
+	 DWORD Dsa_port;
+	 DWORD Dsv_port;
+	 
+	 const char *LocalIP=gtk_entry_get_text(GTK_ENTRY (localIPentry));
+     const char *classcenterIP=gtk_entry_get_text(GTK_ENTRY (IPentry));
+     const char *classcenterport=gtk_entry_get_text(GTK_ENTRY (entry5));	 
+	 const char *tv_port=gtk_entry_get_text(GTK_ENTRY (teachvideoentry));
+     const char *ta_port=gtk_entry_get_text(GTK_ENTRY (teachaudioentry));
+     const char *ts_port=gtk_entry_get_text(GTK_ENTRY (screenentry));
+     const char *sa_port=gtk_entry_get_text(GTK_ENTRY (studaudioentry));
+     const char *sv_port=gtk_entry_get_text(GTK_ENTRY (studvidoentry));	
+	 strcpy(CenterIP,classcenterIP);
+	 strcpy(CenterPort,classcenterport);
+	 Dta_port=atol(ta_port);
+	 Dtv_port=atol(tv_port);
+	 Dts_port=atol(ts_port);
+	 Dsa_port=atol(sa_port);
+	 Dsv_port=atol(sv_port);
+	 
+	 if(!(Dta_port%2==0))
+	 {
+		 Error_dia(ta_error,ta_errorms);
+		 Error_port=1;
+	 }
+	 if(!(Dtv_port%2==0))
+	 {
+		 Error_dia(tv_error,tv_errorms);	
+      		  Error_port=1;
+	 }
+	 if(!(Dts_port%2==0))
+	 {
+	  	Error_dia(sv_error,sa_errorms);	 
+ 		 Error_port=1;
+	 }
+	 if(!(Dsa_port%2==0))
+	 { 	
+ 		 Error_dia(sa_error,sa_errorms);
+  		  Error_port=1;
+	 }
+	 if(!(Dsv_port%2==0))
+	 {
+		 Error_dia(load_error1 ,load_error1ms);
+  		  Error_port=1;
+	 }
+	 if(Dta_port==Dtv_port||Dta_port==Dts_port||Dta_port==Dsa_port||Dta_port==Dsv_port)
+	 {
+		 Error_dia(port_error ,port_errorms);
+  		  Error_port=1;
+	 }
+	 if(Dtv_port==Dts_port||Dtv_port==Dsa_port||Dtv_port==Dsv_port)
+	 {
+		 
+		  Error_dia(port_error ,port_errorms);
+  		  Error_port=1;
+		 
+		 }
+	 if(Dts_port==Dsa_port||Dts_port==Dsv_port||Dsa_port==Dsv_port)
+		{
+		 
+		  Error_dia(port_error ,port_errorms);
+  		  Error_port=1;
+		 
+		 }
+     strcpy(stulogin.ClientIP,LocalIP);
+	 stulogin.SeMCU_TAPort=Dta_port;
+     stulogin.SeMCU_TVPort=Dtv_port;
+     stulogin.SeMCU_TSPort=Dts_port;
+	 stulogin.SeMCU_SAPort=Dsa_port;
+	 stulogin.SeMCU_SVPort=Dsv_port;
+
+    cout<<LocalIP<<endl;  	 
+ }
+ 
+ 
+void get_loadsys()
+{   
+	const char *name=gtk_entry_get_text(GTK_ENTRY (nameentry));
+	const char *psd=gtk_entry_get_text(GTK_ENTRY (psdentry));
+	strcpy (namesave,name);
+	strcpy(stulogin.ClientName,name);
+	strcpy(stulogin.ClientPass,psd);
+	stulogin.ClientVersionID=1.0;
+
+	cout<<"stulogin.ClientName"<<" "<<stulogin.ClientName<<endl;
+	cout<<"stulogin.ClientPass"<<" "<<stulogin.ClientPass<<endl;
+}

Added: incubator/bluesky/trunk/sourcecode/student_src_v1.0/interface.hh
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/student_src_v1.0/interface.hh?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/student_src_v1.0/interface.hh (added)
+++ incubator/bluesky/trunk/sourcecode/student_src_v1.0/interface.hh Wed May 13 07:44:26 2009
@@ -0,0 +1,43 @@
+//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. 
+
+
+/*
+ * DO NOT EDIT THIS FILE - it is generated by Glade.
+ */
+
+
+struct class_center 
+ {
+	 char Center_IP[25];
+	 char    Center_port[8]; 
+} ;
+  void config_file_read();
+
+GtkWidget* create_mainwindow (void);
+GtkWidget* create_loaddialog (void);
+
+GtkWidget*create_networkdialog (void);
+GtkWidget* create_classdialog (void);
+GtkWidget* create_stu_dialog(void);
+GtkWidget*create_about_dialog (void);
+GtkWidget*create_exit_class_dialog (void);
+GtkWidget*create_exit_system_dialog (void);
+void
+Error_dia(gchar *input,gchar *solution);
+void get_networkconfig();
+void get_loadsys();

Added: incubator/bluesky/trunk/sourcecode/student_src_v1.0/language_test.cpp
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/student_src_v1.0/language_test.cpp?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/student_src_v1.0/language_test.cpp (added)
+++ incubator/bluesky/trunk/sourcecode/student_src_v1.0/language_test.cpp Wed May 13 07:44:26 2009
@@ -0,0 +1,584 @@
+//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. 
+
+
+//sourcename.list
+#include "language_test.h"
+
+
+//windows title Main Frame
+#ifdef LANGUAGE_EN
+	char* p_window_title_MainFrame = "Students Client";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_window_title_MainFrame = "\345\220\254\350\257\276\347\253\257";
+#endif
+
+//toolbar options---->start
+#ifdef LANGUAGE_EN
+	char* p_toolbar_start = "Start";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_toolbar_start= "\345\274\200\345\247\213";
+#endif
+//toolbar options---->start---->network configuration
+#ifdef LANGUAGE_EN
+	char* p_toolbar_start_NetConf = "Settings";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_toolbar_start_NetConf= "\350\256\276\347\275\256\347\275\221\347\273\234";
+#endif
+
+//toolbar options---->start---->logon system
+#ifdef LANGUAGE_EN
+	char* p_toolbar_start_LogonSys = "Login System";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_toolbar_start_LogonSys= "\347\231\273\345\275\225\347\263\273\347\273\237";
+#endif
+
+//toolbar options---->start---->exit system
+#ifdef LANGUAGE_EN
+	char* p_toolbar_start_ExitSys = "Quit";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_toolbar_start_ExitSys= "\351\200\200\345\207\272\347\263\273\347\273\237";
+#endif
+
+//toolbar options---->class
+#ifdef LANGUAGE_EN
+	char* p_toolbar_Class = "Class";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_toolbar_Class= "\350\257\276\345\240\202";
+#endif
+
+//toolbar options---->class---->join class 
+#ifdef LANGUAGE_EN
+	char* p_toolbar_Class_Join="Join Class";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_toolbar_Class_Join="\345\212\240\345\205\245\350\257\276\345\240\202";
+#endif
+
+//toolbar options---->class---->quit class 
+#ifdef LANGUAGE_EN
+	char* p_toolbar_Class_Quit="Exit Class";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_toolbar_Class_Quit="\351\200\200\345\207\272\350\257\276\345\240\202";
+#endif
+
+//toolbar options---->operations 
+#ifdef LANGUAGE_EN
+	char* p_toolbar_Operations="Operations";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_toolbar_Operations="\346\223\215\344\275\234";
+#endif
+
+//toolbar options---->operations---->interactive 
+#ifdef LANGUAGE_EN
+	char* p_toolbar_Operations_Interactive="Start Communication";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_toolbar_Operations_Interactive="\350\257\267\346\261\202\345\270\210\347\224\237\344\272\244\344\272\222";
+#endif
+
+//toolbar options---->operations---->Quit interactive 
+#ifdef LANGUAGE_EN
+	char* p_toolbar_Operations_QInteractive="Exit Communication";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_toolbar_Operations_QInteractive="\345\217\226\346\266\210\345\270\210\347\224\237\344\272\244\344\272\222";
+#endif
+
+//toolbar options---->help 
+#ifdef LANGUAGE_EN
+	char* p_toolbar_Help="Help";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_toolbar_Help="\345\270\256\345\212\251";
+#endif
+
+//toolbar options---->help---->about 
+#ifdef LANGUAGE_EN
+	char* p_toolbar_Help_About="About";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_toolbar_Help_About="\345\205\263\344\272\216";
+#endif
+
+//Graphic Buttons Network Configure 
+#ifdef LANGUAGE_EN
+	char* p_GraphButt_NetConf="Settings";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_GraphButt_NetConf="\347\275\221\347\273\234\350\256\276\347\275\256";
+#endif
+
+//Graphic Buttons Comment Network configuration 
+#ifdef LANGUAGE_EN
+	char* p_GraphButt_Comment_NetConf="Network configuration";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_GraphButt_Comment_NetConf="\347\275\221\347\273\234\350\256\276\347\275\256";
+#endif
+
+//Graphic Buttons Logon System 
+#ifdef LANGUAGE_EN
+	char* p_GraphButt_LogSys="Login";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_GraphButt_LogSys="\347\231\273\345\275\225\347\263\273\347\273\237";
+#endif
+
+//Graphic Buttons Comment Logon System 
+#ifdef LANGUAGE_EN
+	char* p_GraphButt_Comment_LogSys="Login System";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_GraphButt_Comment_LogSys="\347\231\273\345\275\225\347\263\273\347\273\237";
+#endif
+
+//Graphic Buttons Join Class 
+#ifdef LANGUAGE_EN
+	char* p_GraphButt_JoinClass="Joinclass";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_GraphButt_JoinClass="\345\212\240\345\205\245\350\257\276\345\240\202";
+#endif
+
+//Graphic Buttons Comment Join Class 
+#ifdef LANGUAGE_EN
+	char* p_GraphButt_Comment_JoinClass="Join Class";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_GraphButt_Comment_JoinClass="\345\212\240\345\205\245\350\257\276\345\240\202";
+#endif
+
+//Graphic Buttons Quit Class 
+#ifdef LANGUAGE_EN
+	char* p_GraphButt_QuitClass="ExClass";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_GraphButt_QuitClass="\351\200\200\345\207\272\350\257\276\345\240\202";
+#endif
+
+//Graphic Buttons Comment Quit Class 
+#ifdef LANGUAGE_EN
+	char* p_GraphButt_Comment_QuitClass="Exit Class";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_GraphButt_Comment_QuitClass="\351\200\200\345\207\272\350\257\276\345\240\202";
+#endif
+
+//Graphic Buttons Interactive 
+#ifdef LANGUAGE_EN
+	char* p_GraphButt_Interactive="Commu";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_GraphButt_Interactive="\350\257\267\346\261\202\344\272\244\344\272\222";
+#endif
+
+//Graphic Buttons Comment Interactive 
+#ifdef LANGUAGE_EN
+	char* p_GraphButt_Comment_Interactive="Start Communication";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_GraphButt_Comment_Interactive="\350\257\267\346\261\202\344\272\244\344\272\222";
+#endif
+
+//Graphic Buttons Quit interactive
+#ifdef LANGUAGE_EN
+	char* p_GraphButt_QInteractive="ExCom";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_GraphButt_QInteractive="\345\217\226\346\266\210\344\272\244\344\272\222";
+#endif
+
+//Graphic Buttons Comment Quit Interactive 
+#ifdef LANGUAGE_EN
+	char* p_GraphButt_Comment_QInteractive="Exit Communication";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_GraphButt_Comment_QInteractive="\345\217\226\346\266\210\344\272\244\344\272\222";
+#endif
+
+//Graphic Buttons Exit System
+#ifdef LANGUAGE_EN
+	char* p_GraphButt_ExitSys="Quit";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_GraphButt_ExitSys="\351\200\200\345\207\272\347\263\273\347\273\237";
+#endif
+
+//Graphic Buttons Comment Exit System 
+#ifdef LANGUAGE_EN
+	char* p_GraphButt_Comment_ExitSys="Quit System";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_GraphButt_Comment_ExitSys="\351\200\200\345\207\272\347\263\273\347\273\237";
+#endif
+
+//Buttons Student View
+#ifdef LANGUAGE_EN
+	char* p_Butt_StuView="Studentview";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_Butt_StuView="\344\272\244\344\272\222\345\255\246\347\224\237\345\233\276\345\203\217";
+#endif
+
+//Buttons My View
+#ifdef LANGUAGE_EN
+	char* p_Butt_MyView="My View";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_Butt_MyView="\346\210\221\347\232\204\345\233\276\345\203\217";
+#endif
+
+//Static text Input Message
+#ifdef LANGUAGE_EN
+	char* p_StaticTxt_InputMessage="Message:";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_StaticTxt_InputMessage="\350\276\223\345\205\245\344\277\241\346\201\257\357\274\232";
+#endif
+
+//Buttons Send Message
+#ifdef LANGUAGE_EN
+	char* p_Butt_SendMessage="Snd";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_Butt_SendMessage="\345\217\221\351\200\201";
+#endif
+
+//Buttons Clear Message
+#ifdef LANGUAGE_EN
+	char* p_Butt_ClearMessage="Clr";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_Butt_ClearMessage="\346\270\205\347\251\272";
+#endif
+//////////////////////////////////////////////////////////////////
+//////////////////////////////////////////////////////////////////
+//
+//												logon System dialog
+//
+//Windows Title Logon System
+#ifdef LANGUAGE_EN
+	char *  p_Window_Title_LogonSys="Login Information";
+#endif
+#ifdef LANGUAGE_CH
+	char *  p_Window_Title_LogonSys="\347\231\273\345\275\225\344\277\241\346\201\257";
+#endif
+//
+//Static Text LogonSystem---->User Name
+#ifdef LANGUAGE_EN
+	char *  p_LogonSys_StaticTxt_UserName="User:";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_LogonSys_StaticTxt_UserName="\347\224\250\346\210\267\345\220\215";
+#endif
+//
+//Static Text LogonSystem---->Password
+#ifdef LANGUAGE_EN
+	char *  p_LogonSys_StaticTxt_Password="PWD:";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_LogonSys_StaticTxt_Password="\345\257\206\347\240\201";
+#endif
+
+//Logon System button Cancel
+#ifdef LANGUAGE_EN
+	char * p_LogonSys_Butt_Cancel="Cancel";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_LogonSys_Butt_Cancel="gtk-cancel";
+#endif
+
+//Logon System button OK
+#ifdef LANGUAGE_EN
+	char * p_LogonSys_Butt_OK="OK";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_LogonSys_Butt_OK="gtk-ok";
+#endif
+//
+//												logon System dialog
+///////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////
+//
+//
+//
+///////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////
+//
+//							     Network Configuration Dialog
+//
+//Windows Title Network configuration
+#ifdef LANGUAGE_EN
+	char* p_Window_Title_NetConf="Network Configuration";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_Window_Title_NetConf="\347\275\221\347\273\234\345\217\202\346\225\260\350\256\276\347\275\256";
+#endif
+
+//Static Text Network configuration---->Class Server Center IP Address
+#ifdef LANGUAGE_EN
+	char* p_NetConf_StaticTxt_ClassServerIP="Server IP";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_NetConf_StaticTxt_ClassServerIP="\350\257\276\345\240\202\346\234\215\345\212\241\344\270\255\345\277\203IP";
+#endif
+
+//Static Text Network configuration---->Class Server Center Port
+#ifdef LANGUAGE_EN
+	char* p_NetConf_StaticTxt_ClassServerPort="Server Port";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_NetConf_StaticTxt_ClassServerPort="\350\257\276\345\240\202\346\234\215\345\212\241\344\270\255\345\277\203\347\253\257\345\217\243";
+#endif
+
+//Static Text Network configuration---->User IP Address
+#ifdef LANGUAGE_EN
+	char* p_NetConf_StaticTxt_UserIP="User IP";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_NetConf_StaticTxt_UserIP="\346\234\254\346\234\272IP\345\234\260\345\235\200";
+#endif
+
+//Static Text Network configuration---->Standard Receive Port
+#ifdef LANGUAGE_EN
+	char* p_NetConf_StaticTxt_StdRevPort="Receive Port";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_NetConf_StaticTxt_StdRevPort="\346\216\245\346\224\266\345\237\272\345\207\206\347\253\257\345\217\243";
+#endif
+
+//Network configuration---->Buttons Comment Amateur Cautious
+#ifdef LANGUAGE_EN
+	char* p_NetConf_Butt_Comment_AmateurCautious="For professional user only!";//"Amateur Cautious!";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_NetConf_Butt_Comment_AmateurCautious="\344\270\215\346\216\250\350\215\220\346\231\256\351\200\232\347\224\250\346\210\267\344\275\277\347\224\250";
+#endif
+
+//Network configuration---->Buttons Advanced Settings
+#ifdef LANGUAGE_EN
+	char* p_NetConf_Butt_Advance="Advanced";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_NetConf_Butt_Advance="\351\253\230\347\272\247";
+#endif
+
+//Network configuration---->Buttons Cancel
+#ifdef LANGUAGE_EN
+	char* p_Netconf_Butt_Cancel="Cancel";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_Netconf_Butt_Cancel="gtk-cancel";
+#endif
+
+//Network configuration---->Buttons OK
+#ifdef LANGUAGE_EN
+	char* p_Netconf_Butt_Ok="OK";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_Netconf_Butt_Ok="gtk-ok";
+#endif
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+//													Exit Dialog
+//
+//Static Text Exit Dialog ExitSystem??
+#ifdef LANGUAGE_EN
+	char* p_StaticTxt_ExitSys="Quit System?";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_StaticTxt_ExitSys="\346\230\257\345\220\246\351\200\200\345\207\272\347\263\273\347\273\237";
+#endif
+//
+//Buttons ExitDialog Cancel
+#ifdef LANGUAGE_EN
+	char* p_ExitDialog_Butt_Cancel="Cancel";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_ExitDialog_Butt_Cancel="\345\220\246";
+#endif
+//
+//Buttons ExitDialog Yes
+#ifdef LANGUAGE_EN
+	char* p_ExitDialog_Butt_Yes="Yes";
+#endif
+#ifdef LANGUAGE_CH
+	char* p_ExitDialog_Butt_Yes="\346\230\257";
+#endif
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+//													Class List Dialog
+//
+//windows title class list
+#ifdef LANGUAGE_EN
+	char * p_Window_Title_ClassList = "Class List";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_Window_Title_ClassList = "\350\257\267\351\200\211\346\213\251\350\277\233\345\205\245\347\232\204\350\257\276\345\240\202";
+#endif
+//
+//Class list dialog lable class ID
+#ifdef LANGUAGE_EN
+	char * p_Lable_ClassListDLG_ClassID = "Class ID";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_Lable_ClassListDLG_ClassID = "\350\257\276\347\250\213 ID";
+#endif
+//
+//Class list dialog lable class name
+#ifdef LANGUAGE_EN
+	char * p_Lable_ClassListDLG_ClassName = "Class Name";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_Lable_ClassListDLG_ClassName = "\350\257\276\347\250\213\345\220\215\347\247\260";
+#endif
+//
+//Class list dialog lable Teacher name
+#ifdef LANGUAGE_EN
+	char * p_Lable_ClassListDLG_TeacherName = "Teacher";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_Lable_ClassListDLG_TeacherName = "\346\225\231\345\270\210";
+#endif
+//
+//Class list dialog lable class state
+#ifdef LANGUAGE_EN
+	char * p_Lable_ClassListDLG_ClassState = "State";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_Lable_ClassListDLG_ClassState = "\347\212\266\346\200\201";
+#endif
+//
+//Class list dialog lable class introduction
+#ifdef LANGUAGE_EN
+	char * p_Lable_ClassListDLG_ClassIntro = "Class Introduction";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_Lable_ClassListDLG_ClassIntro = "\350\257\276\347\250\213\346\246\202\350\277\260";
+#endif
+//
+//Class list dialog button Help
+#ifdef LANGUAGE_EN
+	char * p_Butt_ClassListDLG_Help = "Help";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_Butt_ClassListDLG_Help = "gtk-help";
+#endif
+//
+//Class list dialog button Cancel
+#ifdef LANGUAGE_EN
+	char * p_Butt_ClassListDLG_Cancel = "Cancel";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_Butt_ClassListDLG_Cancel = "gtk-cancel";
+#endif
+//
+//Class list dialog button OK
+#ifdef LANGUAGE_EN
+	char * p_Butt_ClassListDLG_OK = "OK";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_Butt_ClassListDLG_OK = "gtk-ok";
+#endif
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+//													Quit Class Dialog
+//
+//Quit Class Dialog Static text Exit Class~?
+//
+#ifdef LANGUAGE_EN
+	char * p_StaticTxt_QuitClassDLG_QuitClass = "Exit Class?";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_StaticTxt_QuitClassDLG_QuitClass = "\346\230\257\345\220\246\351\200\200\345\207\272\350\257\276\345\240\202";
+#endif
+//Quit Class Dialog Buttons Cancle Quit
+//
+#ifdef LANGUAGE_EN
+	char * p_Butt_QuitClass_Cancel = "Cancel";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_Butt_QuitClass_Cancel = "\345\220\246";
+#endif
+//Quit Class Dialog Buttons Quit Class
+//
+#ifdef LANGUAGE_EN
+	char * p_Butt_QuitClass_QuitClass = "Yes";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_Butt_QuitClass_QuitClass = "\346\230\257";
+#endif
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+//													About Dialog
+//
+//About Dialog windows title
+#ifdef LANGUAGE_EN
+	char * p_Window_Title_AboutDlg = "About Our System";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_Window_Title_AboutDlg = "\345\205\263\344\272\216\350\223\235\345\244\251\345\256\236\346\227\266\344\272\244\344\272\222\347\263\273\347\273\237";
+#endif
+//
+//About Dialog Static text System informations
+#ifdef LANGUAGE_EN
+	char * p_StaticTxt_AboutDlg_AboutSys = "\n                 About BlueSky Real time Interactive System\n\n                                 System Version   1.0.0\n\n     The system is developed by the Satellite-Terrestrial Networks\n\n  Tech R&D key laboratory of Xi'an jiaotong university.Our system \n\n  is still at the testing phase. You are welcome to contact us with \n\n  your suggestion.";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_StaticTxt_AboutDlg_AboutSys = "\n\n                                                   \350\223\235\345\244\251\345\256\236\346\227\266\344\272\244\344\272\222\347\263\273\347\273\237\n\n                                                    \347\263\273\347\273\237\347\211\210\346\234\254\345\217\267   1.0.0\n\n\n         \347\263\273\347\273\237\347\224\261\350\245\277\345\256\211\344\272\244\351\200\232\345\244\247\345\255\246\345\244\251\345\234\260\347\275\221\351\207\215\347\202\271\345\256\236\351\252\214\345\256\244\345\274\200\345\217\221\346\217\220\344\276\233\357\274\201 \347\224\261\344\272\216\350\257\245\347\263\273\347\273\237\345\244\204\n\n         \344\272\216\346\265\213\350\257\225\351\230\266\346\256\265\357\274\214\345\246\202\346\234\211\351\227\256\351\242\230\357\274\214\350\257\267\345\217\212\346\227\266\350\201\224\347\263\273\357\274\214 \350\260\242\350\260\242\345\220\210\344\275\234\357\274\201";
+#endif
+//
+//About Dialog Buttons OK
+#ifdef LANGUAGE_EN
+	char * p_Butt_AboutDLG_OK = "OK";
+#endif
+#ifdef LANGUAGE_CH
+	char * p_Butt_AboutDLG_OK = "gtk-ok";
+#endif

Added: incubator/bluesky/trunk/sourcecode/student_src_v1.0/language_test.h
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/student_src_v1.0/language_test.h?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/student_src_v1.0/language_test.h (added)
+++ incubator/bluesky/trunk/sourcecode/student_src_v1.0/language_test.h Wed May 13 07:44:26 2009
@@ -0,0 +1,258 @@
+//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. 
+
+
+//sourcename.list
+
+#ifndef _LANGUAGE_TEST_H_
+#define _LANGUAGE_TEST_H_
+#define LANGUAGE_EN
+//windows title Main Frame
+extern char* p_window_title_MainFrame;
+
+//toolbar options---->start
+extern char* p_toolbar_start;
+
+//toolbar options---->start---->network configuration
+extern	char* p_toolbar_start_NetConf;
+
+//toolbar options---->start---->logon system
+extern	char* p_toolbar_start_LogonSys;
+
+//toolbar options---->start---->exit system
+extern	char* p_toolbar_start_ExitSys;
+
+//toolbar options---->class
+extern	char* p_toolbar_Class ;
+
+//toolbar options---->class---->join class 
+extern	char* p_toolbar_Class_Join;
+
+//toolbar options---->class---->quit class 
+extern	char* p_toolbar_Class_Quit;
+
+//toolbar options---->operations 
+extern char* p_toolbar_Operations;
+
+//toolbar options---->operations---->interactive 
+extern	char* p_toolbar_Operations_Interactive;
+
+//toolbar options---->operations---->Quit interactive 
+extern	char* p_toolbar_Operations_QInteractive;
+
+//toolbar options---->help 
+extern	char* p_toolbar_Help;
+
+//toolbar options---->help---->about 
+extern	char* p_toolbar_Help_About;
+
+//Graphic Buttons Network Configure 
+extern	char* p_GraphButt_NetConf;
+
+//Graphic Buttons Comment Network configuration 
+extern	char* p_GraphButt_Comment_NetConf;
+
+//Graphic Buttons Logon System 
+extern	char* p_GraphButt_LogSys;
+
+//Graphic Buttons Comment Logon System 
+extern	char* p_GraphButt_Comment_LogSys;
+
+//Graphic Buttons Join Class 
+extern	char* p_GraphButt_JoinClass;
+
+//Graphic Buttons Comment Join Class 
+extern	char* p_GraphButt_Comment_JoinClass;
+
+//Graphic Buttons Quit Class 
+extern	char* p_GraphButt_QuitClass;
+
+//Graphic Buttons Comment Quit Class 
+extern	char* p_GraphButt_Comment_QuitClass;
+
+//Graphic Buttons Interactive 
+extern	char* p_GraphButt_Interactive;
+
+//Graphic Buttons Comment Interactive 
+extern	char* p_GraphButt_Comment_Interactive;
+
+//Graphic Buttons Quit interactive
+extern	char* p_GraphButt_QInteractive;
+
+//Graphic Buttons Comment Quit Interactive 
+extern	char* p_GraphButt_Comment_QInteractive;
+
+//Graphic Buttons Exit System
+extern	char* p_GraphButt_ExitSys;
+
+//Graphic Buttons Comment Exit System 
+extern	char* p_GraphButt_Comment_ExitSys;
+
+//Buttons Student View
+extern	char* p_Butt_StuView;
+
+//Buttons My View
+extern	char* p_Butt_MyView;
+
+//Static text Input Message
+extern	char* p_StaticTxt_InputMessage;
+
+//Buttons Send Message
+extern	char* p_Butt_SendMessage;
+
+//Buttons Clear Message
+extern	char* p_Butt_ClearMessage;
+
+///////////////////////////////////////////////////////////////
+//Windows Title Logon System
+extern	char * p_Window_Title_LogonSys;
+
+ //Static Text LogonSystem---->User Name
+extern	char * p_LogonSys_StaticTxt_UserName;
+
+ //Static Text LogonSystem---->Password
+extern	char * p_LogonSys_StaticTxt_Password;
+
+//Logon System button Cancel
+extern char * p_LogonSys_Butt_Cancel;
+
+//Logon System button OK
+extern char * p_LogonSys_Butt_OK;
+///////////////////////////////////////////////////////////////
+///////////////////////////////////////////////////////////////
+//
+//							Network configuration Dialog
+//
+//Windows Title Network configuration
+extern	char * p_Window_Title_NetConf;
+
+//Static Text Network configuration---->Class Server Center IP Address
+extern	char * p_NetConf_StaticTxt_ClassServerIP;
+
+//Static Text Network configuration---->Class Server Center Port
+extern	char * p_NetConf_StaticTxt_ClassServerPort;
+
+//Static Text Network configuration---->User IP Address
+extern	char * p_NetConf_StaticTxt_UserIP;
+
+//Static Text Network configuration---->Standard Receive Port
+extern	char * p_NetConf_StaticTxt_StdRevPort;
+
+//Network configuration Buttons Comment Amateur Cautious
+extern	char * p_NetConf_Butt_Comment_AmateurCautious;
+
+//Network configuration Buttons Advanced settings
+extern	char * p_NetConf_Butt_Advance;
+
+//Network configuration button Cancel
+extern char * p_Netconf_Butt_Cancel;
+
+//Network configuration button OK
+extern char * p_Netconf_Butt_Ok;
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+//													Exit Dialog
+//
+//Static Text Exit Dialog??
+extern char * p_StaticTxt_ExitSys;
+//
+//Buttons ExitDialog Cancel
+extern char * p_ExitDialog_Butt_Cancel;
+//
+//Buttons ExitDialog Yes
+extern char * p_ExitDialog_Butt_Yes;
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+//													Class List Dialog
+//
+//windows title class list
+extern	char * p_Window_Title_ClassList;
+//
+//Class list dialog lable class ID
+extern	char * p_Lable_ClassListDLG_ClassID;
+//
+//Class list dialog lable class name
+extern	char * p_Lable_ClassListDLG_ClassName;
+//
+//Class list dialog lable teacher name
+extern	char * p_Lable_ClassListDLG_TeacherName;
+//
+//Class list dialog lable class state
+extern	char * p_Lable_ClassListDLG_ClassState;
+//
+//Class list dialog lable class introduction
+extern	char * p_Lable_ClassListDLG_ClassIntro;
+//
+//Class list dialog button Help
+extern	char * p_Butt_ClassListDLG_Help;
+//
+//Class list dialog button Cancel
+extern	char * p_Butt_ClassListDLG_Cancel;
+//
+//Class list dialog button OK
+extern	char * p_Butt_ClassListDLG_OK;
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+//													Quit Class Dialog
+//
+//Quit Class Dialog Static text Quit Class~?
+//
+extern	char * p_StaticTxt_QuitClassDLG_QuitClass;
+//
+//Quit Class Dialog Buttons Cancle Quit
+extern	char * p_Butt_QuitClass_Cancel;
+//
+//Quit Class Dialog Buttons Quit Class
+//
+extern	char * p_Butt_QuitClass_QuitClass;
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+/////////////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////////////
+//
+//
+//													About Dialog
+//
+//About Dialog windows title
+extern char * p_Window_Title_AboutDlg;
+//
+//About Dialog Static text System informations
+extern char * p_StaticTxt_AboutDlg_AboutSys;
+//
+//About Dialog Buttons OK
+extern char * p_Butt_AboutDLG_OK;
+#endif

Added: incubator/bluesky/trunk/sourcecode/student_src_v1.0/nc_stu.cc
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/sourcecode/student_src_v1.0/nc_stu.cc?rev=774247&view=auto
==============================================================================
--- incubator/bluesky/trunk/sourcecode/student_src_v1.0/nc_stu.cc (added)
+++ incubator/bluesky/trunk/sourcecode/student_src_v1.0/nc_stu.cc Wed May 13 07:44:26 2009
@@ -0,0 +1,103 @@
+//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. 
+
+
+
+// generated 2006/5/17 19:19:23 HKT by root@10h82.(none)
+// using glademm V2.0.0.1
+//
+// newer (non customized) versions of this file go to test.cc_new
+
+// This file is for your program, I won't touch it again!
+
+#include <config.h>
+
+#include <gtk/gtk.h>
+#include <gdk/gdk.h>
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+
+#include <glib.h>
+
+#include "interface.hh"
+#include "support.hh"
+#include "ncclient.hh"
+#include "client_communicate.h"
+
+#include "callbacks.hh" 
+ 
+#define STUDENT_VERSION  "2.0"
+#define MODIFY_INFO "modify clientsocket.cc and pixmap"
+
+client_ts_communicate client_comm;
+
+
+
+ DWORD TeacherMode;
+ DWORD chatMode;
+ DWORD Focus_student;
+ struct class_center  center;
+
+ 
+int main(int argc, char **argv)
+{  
+	 if(argc==2)                 //below printf the version information
+    {
+    	if( (strcmp(argv[1],"--version")==0) )
+   		 {
+     		   printf("\n nc_student (copyright ? XJTU), version %s\n\n",STUDENT_VERSION);
+      		  return 0;
+   		 }
+		 else if(strcmp(argv[1],"-v")==0)
+		 {
+			 printf("%s\n",STUDENT_VERSION);
+		 }
+  		 else if(strcmp(argv[1],"-d")==0)
+		 {
+			 printf("%s\n",MODIFY_INFO);
+		 }
+        else	
+		 printf("\n unknow parameter!\n\n");
+		 
+		 return 0;
+    	}       
+  		 GtkWidget *mainwindow;		 		
+ 		TeacherMode=1;      
+	   	Focus_student=0;
+  		gtk_set_locale ();
+  	    config_file_read();
+
+ 		 gtk_init (&argc, &argv);
+
+        add_pixmap_directory (PACKAGE_DATA_DIR "/" PACKAGE "/pixmaps");
+  /*
+   * The following code was added by Glade to create one of each component
+   * (except popup menus), just so that you see something after building
+   * the project. Delete any components that you don't want shown initially.
+   */
+   getip() ;
+
+		
+   mainwindow = create_mainwindow();
+   gtk_widget_show (mainwindow);
+   gtk_timeout_add(1000,timer_callback,NULL);
+   gtk_main ();   
+   return 0;
+}



Mime
View raw message