incubator-bluesky-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mabo...@apache.org
Subject svn commit: r818464 [6/7] - in /incubator/bluesky/trunk/RealClass/DTU: ./ src/ src/.deps/
Date Thu, 24 Sep 2009 12:40:47 GMT
Added: incubator/bluesky/trunk/RealClass/DTU/src/interface.cpp
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/RealClass/DTU/src/interface.cpp?rev=818464&view=auto
==============================================================================
--- incubator/bluesky/trunk/RealClass/DTU/src/interface.cpp (added)
+++ incubator/bluesky/trunk/RealClass/DTU/src/interface.cpp Thu Sep 24 12:40:45 2009
@@ -0,0 +1,1396 @@
+//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 <stdlib.h>
+
+#include <gdk/gdkkeysyms.h>
+#include <gtk/gtk.h>
+
+#include "callbacks.h"
+#include "interface.h"
+#include "support.h"
+
+#include "language_test.h"
+
+GtkWidget *select1;
+GtkWidget *join1;
+GtkWidget *leave1;
+GtkWidget *joingroup;
+GtkWidget *leavegroup;
+GtkWidget *group_clist;
+
+GtkWidget *select_tool_button;
+GtkWidget *join_toolbar_button;
+GtkWidget *leave_toolbar_button;
+GtkWidget *joinclass_toolbar_button;
+GtkWidget *leaveclass_toolbar_button;
+
+GtkWidget *refresh_transfer_clist_button;
+
+GtkWidget *class_name_entry;
+GtkWidget *teacher_name_entry;
+
+GtkWidget *entry_serverip;
+GtkWidget *entry_serverport;
+GtkWidget *entry_mcuip;
+GtkWidget *entry_mcuport;
+
+GtkWidget *para_advancebutton;
+
+GtkWidget *entry_name;
+GtkWidget *entry_password;
+GtkWidget *ok_groupjoin;
+
+GtkWidget *transfer_clist; //forward nodes info list
+GtkWidget *status_clist; //five ports of forward status list
+GtkWidget *log_textview; //panel of log
+
+
+GtkTextBuffer *log_buffer; //operation on textview of log
+GtkTextIter log_end;
+GtkTextIter log_start;
+
+extern struct entry_setpara mcu_get_para; //  record MCU configuration info,define in dut.cpp
+extern struct entry_usepara mcu_get_user; //  record user infomation
+
+extern int mcu_or_semcu; //  mcu or semcu?  0:mcu 1:semcu define in dtufunction.cpp
+
+//extern char mcu_ip[100];   //define in dtu.cpp
+
+void para_set_true()
+{
+	gtk_widget_set_sensitive(select1, TRUE);
+	gtk_widget_set_sensitive(select_tool_button, TRUE);
+
+	gtk_widget_set_sensitive(join1, TRUE);
+	gtk_widget_set_sensitive(join_toolbar_button, TRUE);
+}
+
+void join_set_true()
+{
+	gtk_widget_set_sensitive(select1, FALSE);
+	gtk_widget_set_sensitive(select_tool_button, FALSE);
+
+	gtk_widget_set_sensitive(join1, FALSE);
+	gtk_widget_set_sensitive(join_toolbar_button, FALSE);
+
+	gtk_widget_set_sensitive(leave1, TRUE);
+	gtk_widget_set_sensitive(leave_toolbar_button, TRUE);
+}
+
+void leave_set_false()
+{
+	gtk_widget_set_sensitive(select1, TRUE);
+	gtk_widget_set_sensitive(select_tool_button, TRUE);
+
+	gtk_widget_set_sensitive(join1, TRUE);
+	gtk_widget_set_sensitive(join_toolbar_button, TRUE);
+
+	gtk_widget_set_sensitive(leave1, FALSE);
+	gtk_widget_set_sensitive(leave_toolbar_button, FALSE);
+
+}
+
+void joingroup_set(int i)
+{
+	if (i == 0)
+	{
+		gtk_widget_set_sensitive(joingroup, FALSE);
+		gtk_widget_set_sensitive(joinclass_toolbar_button, FALSE);
+
+		gtk_widget_set_sensitive(leavegroup, TRUE);
+		gtk_widget_set_sensitive(leaveclass_toolbar_button, TRUE);
+
+	}
+	else if (i == 1)
+	{
+		gtk_widget_set_sensitive(joingroup, TRUE);
+		gtk_widget_set_sensitive(joinclass_toolbar_button, TRUE);
+
+		gtk_widget_set_sensitive(leavegroup, FALSE);
+		gtk_widget_set_sensitive(leaveclass_toolbar_button, FALSE);
+	}
+	else if (i == 2)
+	{
+		gtk_widget_set_sensitive(joingroup, TRUE);
+		gtk_widget_set_sensitive(joinclass_toolbar_button, TRUE);
+
+		gtk_widget_set_sensitive(leavegroup, TRUE);
+		gtk_widget_set_sensitive(leaveclass_toolbar_button, TRUE);
+	}
+	else if (i == 3)
+	{
+		gtk_widget_set_sensitive(joingroup, FALSE);
+		gtk_widget_set_sensitive(joinclass_toolbar_button, FALSE);
+
+		gtk_widget_set_sensitive(leavegroup, FALSE);
+		gtk_widget_set_sensitive(leaveclass_toolbar_button, FALSE);
+	}
+
+}
+
+void para_advance_set_true()
+{
+	gtk_widget_set_sensitive(entry_serverport, TRUE);
+	gtk_widget_set_sensitive(entry_mcuip, TRUE);
+	gtk_widget_set_sensitive(entry_mcuport, TRUE);
+	gtk_widget_set_sensitive(para_advancebutton, FALSE);
+}
+
+void joingroup_okbutt_set_false()
+{
+	gtk_widget_set_sensitive(ok_groupjoin, FALSE);
+}
+
+void joingroup_okbutt_set()
+{
+	gtk_widget_set_sensitive(ok_groupjoin, TRUE);
+}
+
+void refresh_transfer_clist_button_set(int i)
+{
+	if (i == 0)
+		gtk_widget_set_sensitive(refresh_transfer_clist_button, TRUE);
+	if (i == 1)
+		gtk_widget_set_sensitive(refresh_transfer_clist_button, FALSE);
+
+}
+
+GtkWidget*
+create_main_window(void)
+{
+
+	GtkWidget *window1;
+	GtkWidget *vbox1;
+	GtkWidget *menubar1;
+	GtkWidget *menuitem1;
+	GtkWidget *menuitem1_menu;
+
+	GtkWidget *separatormenuitem1;
+	GtkWidget * exit;
+	GtkWidget *menuitem2;
+	GtkWidget *menuitem2_menu;
+	GtkWidget *setpara;
+	GtkWidget *groupselect;
+	GtkWidget *groupselect_menu;
+
+	GtkWidget *menuitem4;
+
+	GtkWidget *toolbar1;
+	GtkIconSize tmp_toolbar_icon_size;
+	GtkWidget *toolitem1;
+	GtkWidget *para_toolbar_button;
+	GtkWidget *image13;
+	GtkWidget *toolitem10;
+	GtkWidget *label9;
+	GtkWidget *toolitem11;
+	GtkWidget *image12;
+	GtkWidget *toolitem6;
+	GtkWidget *label_blank1;
+	GtkWidget *toolitem2;
+	GtkWidget *image7;
+	GtkWidget *toolitem8;
+	GtkWidget *label_blank3;
+	GtkWidget *toolitem3;
+	GtkWidget *image8;
+	GtkWidget *toolitem7;
+	GtkWidget *label_blank2;
+	GtkWidget *toolitem4;
+	GtkWidget *image9;
+	GtkWidget *toolitem9;
+	GtkWidget *label_blank4;
+	GtkWidget *toolitem5;
+	GtkWidget *image10;
+	GtkWidget *vbox7;
+	GtkWidget *notebook1;
+	GtkWidget *vbox8;
+	GtkWidget *scrolledwindow2;
+	GtkWidget *transfer_clist_label1;
+	GtkWidget *transfer_clist_label2;
+	GtkWidget *transfer_clist_label3;
+	GtkWidget *transfer_clist_label4;
+	GtkWidget *transfer_clist_label5;
+	GtkWidget *transfer_clist_label6;
+	GtkWidget *transfer_clist_label7;
+	GtkWidget *vbox9;
+	GtkWidget *label26;
+	GtkWidget *hbox9;
+	GtkWidget *label27;
+	GtkWidget *tansfer_label;
+	GtkWidget *vbox10;
+	GtkWidget *hbox10;
+	GtkWidget *vbox13;
+	GtkWidget *vpaned1;
+	GtkWidget *hbox12;
+	GtkWidget *label_stauts1;
+	GtkWidget *label_status2;
+	GtkWidget *label_status3;
+	GtkWidget *label_status4;
+	GtkWidget *hbox13;
+	GtkWidget *label_status5;
+	GtkWidget *hseparator1;
+	GtkWidget *vbox14;
+	GtkWidget *status_label6;
+	GtkWidget *scrolledwindow3;
+
+	GtkWidget *clist_status_label1;
+	GtkWidget *clist_status_label2;
+	GtkWidget *clist_status_label3;
+	GtkWidget *clist_status_label4;
+	GtkWidget *clist_status_label5;
+	GtkWidget *clist_status_label6;
+	GtkWidget *clist_status_label7;
+	GtkWidget *status_label;
+	GtkWidget *scrolledwindow4;
+	GtkWidget *viewport1;
+	GtkWidget *vbox15;
+	GtkWidget *log_scrolledwindow;
+	GtkWidget *vpaned2;
+	GtkWidget *hbox14;
+	GtkWidget *log_label;
+	GtkWidget *log_button1;
+
+	GtkWidget *statusbar1;
+	GtkTooltips *tooltips;
+
+	tooltips = gtk_tooltips_new();
+
+	window1 = gtk_window_new(GTK_WINDOW_TOPLEVEL);
+	gtk_widget_set_size_request(window1, 500, 400);
+
+	//Main Frame windows title
+	gtk_window_set_title(GTK_WINDOW(window1), p_mainframe_WinTitle);
+	gtk_window_set_resizable(GTK_WINDOW(window1), FALSE);
+
+	vbox1 = gtk_vbox_new(FALSE, 0);
+	gtk_widget_show(vbox1);
+	gtk_container_add(GTK_CONTAINER(window1), vbox1);
+
+	menubar1 = gtk_menu_bar_new();
+	gtk_widget_show(menubar1);
+	gtk_box_pack_start(GTK_BOX(vbox1), menubar1, FALSE, FALSE, 0);
+
+	//Toolbar---->menu start
+	menuitem1 = gtk_menu_item_new_with_mnemonic(p_Toolbar_Menu_Start);
+	gtk_widget_show(menuitem1);
+	gtk_container_add(GTK_CONTAINER(menubar1), menuitem1);
+
+	menuitem1_menu = gtk_menu_new();
+	gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem1), menuitem1_menu);
+
+	//Toolbar---->menu start---->type select
+	select1 = gtk_menu_item_new_with_mnemonic(p_Toolbar_Menu_Start_Type);
+	gtk_widget_show(select1);
+	gtk_container_add(GTK_CONTAINER(menuitem1_menu), select1);
+	gtk_widget_set_sensitive(select1, FALSE);
+
+	//Toolbar---->menu start---->logon Tserver
+	join1 = gtk_menu_item_new_with_mnemonic(p_Toolbar_Menu_Start_Logon);
+	gtk_widget_show(join1);
+	gtk_container_add(GTK_CONTAINER(menuitem1_menu), join1);
+	gtk_widget_set_sensitive(join1, FALSE);
+
+	//Toolbar---->menu start---->logout Tserver
+	leave1 = gtk_menu_item_new_with_mnemonic(p_Toolbar_Menu_Start_Logout);
+	gtk_widget_show(leave1);
+	gtk_container_add(GTK_CONTAINER(menuitem1_menu), leave1);
+	gtk_widget_set_sensitive(leave1, FALSE);
+
+	separatormenuitem1 = gtk_separator_menu_item_new();
+	gtk_widget_show(separatormenuitem1);
+	gtk_container_add(GTK_CONTAINER(menuitem1_menu), separatormenuitem1);
+	gtk_widget_set_sensitive(separatormenuitem1, FALSE);
+
+	//Toolbar---->menu start---->exit system
+	exit = gtk_menu_item_new_with_mnemonic(p_Toolbar_Menu_Start_Exit);
+	gtk_widget_show(exit);
+	gtk_container_add(GTK_CONTAINER(menuitem1_menu), exit);
+
+	//Toolbar---->settings
+	menuitem2 = gtk_menu_item_new_with_mnemonic(p_Toolbar_Setting);
+	gtk_widget_show(menuitem2);
+	gtk_container_add(GTK_CONTAINER(menubar1), menuitem2);
+
+	menuitem2_menu = gtk_menu_new();
+	gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem2), menuitem2_menu);
+
+	//Toolbar---->settings---->set parameters
+	setpara = gtk_menu_item_new_with_mnemonic(p_Toolbar_Setting_SetPara);
+	gtk_widget_show(setpara);
+	gtk_container_add(GTK_CONTAINER(menuitem2_menu), setpara);
+
+	//Toolbar---->Class options
+	groupselect = gtk_menu_item_new_with_mnemonic(p_Toolbar_ClassOption);
+	gtk_widget_show(groupselect);
+	gtk_container_add(GTK_CONTAINER(menubar1), groupselect);
+
+	groupselect_menu = gtk_menu_new();
+	gtk_menu_item_set_submenu(GTK_MENU_ITEM(groupselect), groupselect_menu);
+
+	//Toolbar---->Class options---->join class
+	joingroup = gtk_menu_item_new_with_mnemonic(p_Toolbar_ClassOption_Join);
+	gtk_widget_show(joingroup);
+	gtk_container_add(GTK_CONTAINER(groupselect_menu), joingroup);
+	gtk_widget_set_sensitive(joingroup, FALSE);
+
+	//Toolbar---->Class options---->quit class
+	leavegroup = gtk_menu_item_new_with_mnemonic(p_Toolbar_ClassOption_Quit);
+	gtk_widget_show(leavegroup);
+	gtk_container_add(GTK_CONTAINER(groupselect_menu), leavegroup);
+	gtk_widget_set_sensitive(leavegroup, FALSE);
+
+	//Toolbar---->Help
+	menuitem4 = gtk_menu_item_new_with_mnemonic(p_Toolbar_Help);
+	gtk_widget_show(menuitem4);
+	gtk_container_add(GTK_CONTAINER(menubar1), menuitem4);
+
+	toolbar1 = gtk_toolbar_new();
+	gtk_widget_show(toolbar1);
+	gtk_box_pack_start(GTK_BOX(vbox1), toolbar1, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(toolbar1, -1, 33);
+	gtk_toolbar_set_style(GTK_TOOLBAR(toolbar1), GTK_TOOLBAR_BOTH);
+	tmp_toolbar_icon_size = gtk_toolbar_get_icon_size(GTK_TOOLBAR(toolbar1));
+
+	toolitem1 = (GtkWidget*) gtk_tool_item_new();
+	gtk_widget_show(toolitem1);
+	gtk_container_add(GTK_CONTAINER(toolbar1), toolitem1);
+
+	para_toolbar_button = gtk_button_new();
+	gtk_widget_show(para_toolbar_button);
+	gtk_container_add(GTK_CONTAINER(toolitem1), para_toolbar_button);
+	gtk_widget_set_size_request(para_toolbar_button, 34, -1);
+
+	//Graphic buttons---->set parameters
+	gtk_tooltips_set_tip(tooltips, para_toolbar_button, p_GraphButt_SetPara,
+			NULL);
+
+	image13 = gtk_image_new_from_stock("gtk-preferences", GTK_ICON_SIZE_BUTTON);
+	gtk_widget_show(image13);
+	gtk_container_add(GTK_CONTAINER(para_toolbar_button), image13);
+
+	toolitem10 = (GtkWidget*) gtk_tool_item_new();
+	gtk_widget_show(toolitem10);
+	gtk_container_add(GTK_CONTAINER(toolbar1), toolitem10);
+
+	label9 = gtk_label_new(" ");
+	gtk_widget_show(label9);
+	gtk_container_add(GTK_CONTAINER(toolitem10), label9);
+
+	toolitem11 = (GtkWidget*) gtk_tool_item_new();
+	gtk_widget_show(toolitem11);
+	gtk_container_add(GTK_CONTAINER(toolbar1), toolitem11);
+
+	select_tool_button = gtk_button_new();
+	gtk_widget_show(select_tool_button);
+	gtk_container_add(GTK_CONTAINER(toolitem11), select_tool_button);
+	gtk_widget_set_sensitive(select_tool_button, FALSE);
+
+	//Graphic buttons---->type select
+	gtk_tooltips_set_tip(tooltips, select_tool_button, p_GraphButt_TypeSel,
+			NULL);
+
+	image12 = gtk_image_new_from_stock("gtk-properties", GTK_ICON_SIZE_BUTTON);
+	gtk_widget_show(image12);
+	gtk_container_add(GTK_CONTAINER(select_tool_button), image12);
+
+	toolitem6 = (GtkWidget*) gtk_tool_item_new();
+	gtk_widget_show(toolitem6);
+	gtk_container_add(GTK_CONTAINER(toolbar1), toolitem6);
+
+	label_blank1 = gtk_label_new("    ");
+	gtk_widget_show(label_blank1);
+	gtk_container_add(GTK_CONTAINER(toolitem6), label_blank1);
+	gtk_widget_set_size_request(label_blank1, 22, -1);
+
+	toolitem2 = (GtkWidget*) gtk_tool_item_new();
+	gtk_widget_show(toolitem2);
+	gtk_container_add(GTK_CONTAINER(toolbar1), toolitem2);
+
+	join_toolbar_button = gtk_button_new();
+	gtk_widget_show(join_toolbar_button);
+	gtk_container_add(GTK_CONTAINER(toolitem2), join_toolbar_button);
+	gtk_widget_set_size_request(join_toolbar_button, 34, -1);
+	gtk_widget_set_sensitive(join_toolbar_button, FALSE);
+
+	//Graphic buttons---->logon Tserver
+	gtk_tooltips_set_tip(tooltips, join_toolbar_button, p_GraphButt_Logon, NULL);
+
+	image7 = gtk_image_new_from_stock("gtk-go-forward", GTK_ICON_SIZE_BUTTON);
+	gtk_widget_show(image7);
+	gtk_container_add(GTK_CONTAINER(join_toolbar_button), image7);
+
+	toolitem8 = (GtkWidget*) gtk_tool_item_new();
+	gtk_widget_show(toolitem8);
+	gtk_container_add(GTK_CONTAINER(toolbar1), toolitem8);
+
+	label_blank3 = gtk_label_new(" ");
+	gtk_widget_show(label_blank3);
+	gtk_container_add(GTK_CONTAINER(toolitem8), label_blank3);
+	gtk_widget_set_size_request(label_blank3, 6, -1);
+
+	toolitem3 = (GtkWidget*) gtk_tool_item_new();
+	gtk_widget_show(toolitem3);
+	gtk_container_add(GTK_CONTAINER(toolbar1), toolitem3);
+
+	leave_toolbar_button = gtk_button_new();
+	gtk_widget_show(leave_toolbar_button);
+	gtk_container_add(GTK_CONTAINER(toolitem3), leave_toolbar_button);
+	gtk_widget_set_size_request(leave_toolbar_button, 34, -1);
+	gtk_widget_set_sensitive(leave_toolbar_button, FALSE);
+
+	//Graphic buttons---->logout Tserver
+	gtk_tooltips_set_tip(tooltips, leave_toolbar_button, p_GraphButt_Logout,
+			NULL);
+
+	image8 = gtk_image_new_from_stock("gtk-quit", GTK_ICON_SIZE_BUTTON);
+	gtk_widget_show(image8);
+	gtk_container_add(GTK_CONTAINER(leave_toolbar_button), image8);
+
+	toolitem7 = (GtkWidget*) gtk_tool_item_new();
+	gtk_widget_show(toolitem7);
+	gtk_container_add(GTK_CONTAINER(toolbar1), toolitem7);
+
+	label_blank2 = gtk_label_new("    ");
+	gtk_widget_show(label_blank2);
+	gtk_container_add(GTK_CONTAINER(toolitem7), label_blank2);
+	gtk_widget_set_size_request(label_blank2, 22, -1);
+
+	toolitem4 = (GtkWidget*) gtk_tool_item_new();
+	gtk_widget_show(toolitem4);
+	gtk_container_add(GTK_CONTAINER(toolbar1), toolitem4);
+
+	joinclass_toolbar_button = gtk_button_new();
+	gtk_widget_show(joinclass_toolbar_button);
+	gtk_container_add(GTK_CONTAINER(toolitem4), joinclass_toolbar_button);
+	gtk_widget_set_size_request(joinclass_toolbar_button, 34, -1);
+	gtk_widget_set_sensitive(joinclass_toolbar_button, FALSE);
+
+	//Graphic buttons---->join class
+	gtk_tooltips_set_tip(tooltips, joinclass_toolbar_button,
+			p_GraphButt_JoinClass, NULL);
+
+	image9 = gtk_image_new_from_stock("gtk-yes", GTK_ICON_SIZE_BUTTON);
+	gtk_widget_show(image9);
+	gtk_container_add(GTK_CONTAINER(joinclass_toolbar_button), image9);
+
+	toolitem9 = (GtkWidget*) gtk_tool_item_new();
+	gtk_widget_show(toolitem9);
+	gtk_container_add(GTK_CONTAINER(toolbar1), toolitem9);
+
+	label_blank4 = gtk_label_new(" ");
+	gtk_widget_show(label_blank4);
+	gtk_container_add(GTK_CONTAINER(toolitem9), label_blank4);
+	gtk_widget_set_size_request(label_blank4, 8, -1);
+
+	toolitem5 = (GtkWidget*) gtk_tool_item_new();
+	gtk_widget_show(toolitem5);
+	gtk_container_add(GTK_CONTAINER(toolbar1), toolitem5);
+
+	leaveclass_toolbar_button = gtk_button_new();
+	gtk_widget_show(leaveclass_toolbar_button);
+	gtk_container_add(GTK_CONTAINER(toolitem5), leaveclass_toolbar_button);
+	gtk_widget_set_size_request(leaveclass_toolbar_button, 34, -1);
+	gtk_widget_set_sensitive(leaveclass_toolbar_button, FALSE);
+
+	//Graphic buttons---->quit class
+	gtk_tooltips_set_tip(tooltips, leaveclass_toolbar_button,
+			p_GraphButt_QuitClass, NULL);
+
+	image10 = gtk_image_new_from_stock("gtk-stop", GTK_ICON_SIZE_BUTTON);
+	gtk_widget_show(image10);
+	gtk_container_add(GTK_CONTAINER(leaveclass_toolbar_button), image10);
+
+	vbox7 = gtk_vbox_new(FALSE, 0);
+	gtk_widget_show(vbox7);
+	gtk_box_pack_start(GTK_BOX(vbox1), vbox7, TRUE, TRUE, 0);
+
+	notebook1 = gtk_notebook_new();
+	gtk_widget_show(notebook1);
+	gtk_box_pack_start(GTK_BOX(vbox7), notebook1, TRUE, TRUE, 0);
+	gtk_widget_set_size_request(notebook1, -1, 160);
+
+	vbox8 = gtk_vbox_new(FALSE, 0);
+	gtk_widget_show(vbox8);
+	gtk_container_add(GTK_CONTAINER(notebook1), vbox8);
+
+	scrolledwindow2 = gtk_scrolled_window_new(NULL, NULL);
+	gtk_widget_show(scrolledwindow2);
+	gtk_box_pack_start(GTK_BOX(vbox8), scrolledwindow2, TRUE, TRUE, 0);
+	gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolledwindow2),
+			GTK_SHADOW_IN);
+
+	transfer_clist = gtk_clist_new(7);
+	gtk_widget_show(transfer_clist);
+	gtk_container_add(GTK_CONTAINER(scrolledwindow2), transfer_clist);
+	gtk_widget_set_size_request(transfer_clist, -1, 231);
+	gtk_clist_set_column_width(GTK_CLIST(transfer_clist), 0, 17);
+	gtk_clist_set_column_width(GTK_CLIST(transfer_clist), 1, 100);
+	gtk_clist_set_column_width(GTK_CLIST(transfer_clist), 2, 80);
+	gtk_clist_set_column_width(GTK_CLIST(transfer_clist), 3, 80);
+	gtk_clist_set_column_width(GTK_CLIST(transfer_clist), 4, 80);
+	gtk_clist_set_column_width(GTK_CLIST(transfer_clist), 5, 91);
+	gtk_clist_set_column_width(GTK_CLIST(transfer_clist), 6, 91);
+	gtk_clist_column_titles_show(GTK_CLIST(transfer_clist));
+
+	//Transmit Node List members---->Transmit Node ID
+	transfer_clist_label1 = gtk_label_new(p_TranNodeListMem_ID);//\350\275\254\345\217\221\350\212\202\347\202\271ID");
+	gtk_widget_show(transfer_clist_label1);
+	gtk_clist_set_column_widget(GTK_CLIST(transfer_clist), 0,
+			transfer_clist_label1);
+
+	//Transmit Node List members---->Transmit Node IP
+	transfer_clist_label2 = gtk_label_new(p_TranNodeListMem_IP);
+	gtk_widget_show(transfer_clist_label2);
+	gtk_clist_set_column_widget(GTK_CLIST(transfer_clist), 1,
+			transfer_clist_label2);
+
+	//Transmit Node List members---->Teacher screen port
+	transfer_clist_label3 = gtk_label_new(p_TranNodeListMem_TeacherScrPort);
+	gtk_widget_show(transfer_clist_label3);
+	gtk_clist_set_column_widget(GTK_CLIST(transfer_clist), 2,
+			transfer_clist_label3);
+
+	//Transmit Node List members---->Teacher video port
+	transfer_clist_label4 = gtk_label_new(p_TranNodeListMem_TeacherVideoPort);
+	gtk_widget_show(transfer_clist_label4);
+	gtk_clist_set_column_widget(GTK_CLIST(transfer_clist), 3,
+			transfer_clist_label4);
+
+	//Transmit Node List members---->Teacher audio port
+	transfer_clist_label5 = gtk_label_new(p_TranNodeListMem_TeacherAudioPort);
+	gtk_widget_show(transfer_clist_label5);
+	gtk_clist_set_column_widget(GTK_CLIST(transfer_clist), 4,
+			transfer_clist_label5);
+
+	//Transmit Node List members---->Students video port
+	transfer_clist_label6 = gtk_label_new(p_TranNodeListMem_StuVideoPort);
+	gtk_widget_show(transfer_clist_label6);
+	gtk_clist_set_column_widget(GTK_CLIST(transfer_clist), 5,
+			transfer_clist_label6);
+
+	//Transmit Node List members---->Students audio port
+	transfer_clist_label7 = gtk_label_new(p_TranNodeListMem_StuAudioPort);
+	gtk_widget_show(transfer_clist_label7);
+	gtk_clist_set_column_widget(GTK_CLIST(transfer_clist), 6,
+			transfer_clist_label7);
+
+	vbox9 = gtk_vbox_new(FALSE, 0);
+	gtk_widget_show(vbox9);
+	gtk_box_pack_start(GTK_BOX(vbox8), vbox9, TRUE, TRUE, 0);
+
+	label26 = gtk_label_new("");
+	gtk_widget_show(label26);
+	gtk_box_pack_start(GTK_BOX(vbox9), label26, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(label26, -1, 4);
+
+	hbox9 = gtk_hbox_new(FALSE, 0);
+	gtk_widget_show(hbox9);
+	gtk_box_pack_start(GTK_BOX(vbox9), hbox9, TRUE, TRUE, 0);
+
+	label27 = gtk_label_new("");
+	gtk_widget_show(label27);
+	gtk_box_pack_start(GTK_BOX(hbox9), label27, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(label27, 427, -1);
+
+	//Transmit Node List Buttons---->Refresh list
+	refresh_transfer_clist_button = gtk_button_new_with_mnemonic(
+			p_TranNodeList_Butt_Refresh);
+	gtk_widget_show(refresh_transfer_clist_button);
+	gtk_box_pack_start(GTK_BOX(hbox9), refresh_transfer_clist_button, FALSE,
+			FALSE, 0);
+	gtk_widget_set_sensitive(refresh_transfer_clist_button, FALSE);
+
+	//Transmit Node List Title
+	tansfer_label = gtk_label_new(p_TranNodeList_Title);
+	gtk_widget_show(tansfer_label);
+	gtk_notebook_set_tab_label(GTK_NOTEBOOK(notebook1),
+			gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook1), 0),
+			tansfer_label);
+	gtk_widget_set_size_request(tansfer_label, -1, 16);
+
+	vbox10 = gtk_vbox_new(FALSE, 0);
+	gtk_widget_show(vbox10);
+	gtk_container_add(GTK_CONTAINER(notebook1), vbox10);
+
+	hbox10 = gtk_hbox_new(FALSE, 0);
+	gtk_widget_show(hbox10);
+	gtk_box_pack_start(GTK_BOX(vbox10), hbox10, TRUE, TRUE, 0);
+
+	vbox13 = gtk_vbox_new(FALSE, 0);
+	gtk_widget_show(vbox13);
+	gtk_box_pack_end(GTK_BOX(hbox10), vbox13, TRUE, TRUE, 0);
+
+	vpaned1 = gtk_vpaned_new();
+	gtk_widget_show(vpaned1);
+	gtk_box_pack_start(GTK_BOX(vbox13), vpaned1, TRUE, TRUE, 0);
+	gtk_widget_set_size_request(vpaned1, -1, 11);
+	gtk_container_set_border_width(GTK_CONTAINER(vpaned1), 3);
+	gtk_paned_set_position(GTK_PANED(vpaned1), 0);
+
+	hbox12 = gtk_hbox_new(FALSE, 0);
+	gtk_widget_show(hbox12);
+	gtk_paned_pack2(GTK_PANED(vpaned1), hbox12, TRUE, TRUE);
+
+	label_stauts1 = gtk_label_new("");
+	gtk_widget_show(label_stauts1);
+	gtk_box_pack_start(GTK_BOX(hbox12), label_stauts1, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(label_stauts1, 10, -1);
+
+	//Transmit State List---->lable class name
+	label_status2 = gtk_label_new(p_TranStateList_labClassName);
+	gtk_widget_show(label_status2);
+	gtk_box_pack_start(GTK_BOX(hbox12), label_status2, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(label_status2, 75, -1);
+
+	class_name_entry = gtk_entry_new();
+	gtk_widget_show(class_name_entry);
+	gtk_box_pack_start(GTK_BOX(hbox12), class_name_entry, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(class_name_entry, 150, -1);
+	gtk_widget_set_sensitive(class_name_entry, FALSE);
+	gtk_editable_set_editable(GTK_EDITABLE(class_name_entry), FALSE);
+
+	label_status3 = gtk_label_new("");
+	gtk_widget_show(label_status3);
+	gtk_box_pack_start(GTK_BOX(hbox12), label_status3, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(label_status3, 10, -1);
+
+	//Transmit State List---->lable teacher name
+	label_status4 = gtk_label_new(p_TranStateList_labTeacherName);
+	gtk_widget_show(label_status4);
+	gtk_box_pack_start(GTK_BOX(hbox12), label_status4, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(label_status4, 75, -1);
+
+	hbox13 = gtk_hbox_new(FALSE, 0);
+	gtk_widget_show(hbox13);
+	gtk_box_pack_start(GTK_BOX(hbox12), hbox13, TRUE, TRUE, 0);
+
+	teacher_name_entry = gtk_entry_new();
+	gtk_widget_show(teacher_name_entry);
+	gtk_box_pack_start(GTK_BOX(hbox13), teacher_name_entry, TRUE, TRUE, 0);
+	gtk_widget_set_size_request(teacher_name_entry, 150, -1);
+	gtk_widget_set_sensitive(teacher_name_entry, FALSE);
+	gtk_editable_set_editable(GTK_EDITABLE(teacher_name_entry), FALSE);
+
+	label_status5 = gtk_label_new("");
+	gtk_widget_show(label_status5);
+	gtk_box_pack_start(GTK_BOX(hbox13), label_status5, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(label_status5, 19, -1);
+
+	hseparator1 = gtk_hseparator_new();
+	gtk_widget_show(hseparator1);
+	gtk_box_pack_start(GTK_BOX(vbox13), hseparator1, FALSE, FALSE, 0);
+
+	vbox14 = gtk_vbox_new(FALSE, 0);
+	gtk_widget_show(vbox14);
+	gtk_box_pack_start(GTK_BOX(vbox10), vbox14, TRUE, TRUE, 0);
+
+	status_label6 = gtk_label_new("");
+	gtk_widget_show(status_label6);
+	gtk_box_pack_start(GTK_BOX(vbox14), status_label6, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(status_label6, -1, 5);
+
+	scrolledwindow3 = gtk_scrolled_window_new(NULL, NULL);
+	gtk_widget_show(scrolledwindow3);
+	gtk_box_pack_start(GTK_BOX(vbox14), scrolledwindow3, TRUE, TRUE, 0);
+	gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolledwindow3),
+			GTK_SHADOW_IN);
+
+	status_clist = gtk_clist_new(7);
+	gtk_widget_show(status_clist);
+	gtk_container_add(GTK_CONTAINER(scrolledwindow3), status_clist);
+	gtk_widget_set_size_request(status_clist, -1, 190);
+	gtk_clist_set_column_width(GTK_CLIST(status_clist), 0, 59);
+	gtk_clist_set_column_width(GTK_CLIST(status_clist), 1, 49);
+	gtk_clist_set_column_width(GTK_CLIST(status_clist), 2, 59);
+	gtk_clist_set_column_width(GTK_CLIST(status_clist), 3, 61);
+	gtk_clist_set_column_width(GTK_CLIST(status_clist), 4, 68);
+	gtk_clist_set_column_width(GTK_CLIST(status_clist), 5, 55);
+	gtk_clist_set_column_width(GTK_CLIST(status_clist), 6, 71);
+	gtk_clist_column_titles_show(GTK_CLIST(status_clist));
+
+	//Transmit State List----> members---->Port ID
+	clist_status_label1 = gtk_label_new(p_TranStateListMem_PortID);
+	gtk_widget_show(clist_status_label1);
+	gtk_clist_set_column_widget(GTK_CLIST(status_clist), 0, clist_status_label1);
+
+	//Transmit State List----> members---->Port Number
+	clist_status_label2 = gtk_label_new(p_TranStateListMem_PortNum);
+	gtk_widget_show(clist_status_label2);
+	gtk_clist_set_column_widget(GTK_CLIST(status_clist), 1, clist_status_label2);
+
+	//Transmit State List----> members---->Instant bandwidth
+	clist_status_label3 = gtk_label_new(p_TranStateListMem_InsBW);
+	gtk_widget_show(clist_status_label3);
+	gtk_clist_set_column_widget(GTK_CLIST(status_clist), 2, clist_status_label3);
+
+	//Transmit State List----> members---->Average bandwidth
+	clist_status_label4 = gtk_label_new(p_TranStateListMem_AvgBW);
+	gtk_widget_show(clist_status_label4);
+	gtk_clist_set_column_widget(GTK_CLIST(status_clist), 3, clist_status_label4);
+
+	//Transmit State List----> members---->Transmit channel number
+	clist_status_label5 = gtk_label_new(p_TranStateListMem_ChNum);
+	gtk_widget_show(clist_status_label5);
+	gtk_clist_set_column_widget(GTK_CLIST(status_clist), 4, clist_status_label5);
+
+	//Transmit State List----> members---->Data packets number
+	clist_status_label6 = gtk_label_new(p_TranStateListMem_PacketNum);
+	gtk_widget_show(clist_status_label6);
+	gtk_clist_set_column_widget(GTK_CLIST(status_clist), 5, clist_status_label6);
+
+	//Transmit State List----> members---->Data packets size
+	clist_status_label7 = gtk_label_new(p_TranStateListMem_PacketSize);
+	gtk_widget_show(clist_status_label7);
+	gtk_clist_set_column_widget(GTK_CLIST(status_clist), 6, clist_status_label7);
+
+	//Transmit State List---->Table title
+	status_label = gtk_label_new(p_TranStateList_TabTitle);
+	gtk_widget_show(status_label);
+	gtk_notebook_set_tab_label(GTK_NOTEBOOK(notebook1),
+			gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook1), 1), status_label);
+	gtk_widget_set_size_request(status_label, -1, 16);
+
+	scrolledwindow4 = gtk_scrolled_window_new(NULL, NULL);
+	gtk_widget_show(scrolledwindow4);
+	gtk_container_add(GTK_CONTAINER(notebook1), scrolledwindow4);
+	gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolledwindow4),
+			GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
+	gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolledwindow4),
+			GTK_SHADOW_IN);
+
+	viewport1 = gtk_viewport_new(NULL, NULL);
+	gtk_widget_show(viewport1);
+	gtk_container_add(GTK_CONTAINER(scrolledwindow4), viewport1);
+
+	vbox15 = gtk_vbox_new(FALSE, 0);
+	gtk_widget_show(vbox15);
+	gtk_container_add(GTK_CONTAINER(viewport1), vbox15);
+
+	log_scrolledwindow = gtk_scrolled_window_new(NULL, NULL);
+	gtk_widget_show(log_scrolledwindow);
+	gtk_box_pack_start(GTK_BOX(vbox15), log_scrolledwindow, TRUE, TRUE, 0);
+	gtk_scrolled_window_set_shadow_type(
+			GTK_SCROLLED_WINDOW(log_scrolledwindow), GTK_SHADOW_IN);
+
+	log_textview = gtk_text_view_new();
+	gtk_widget_show(log_textview);
+	gtk_container_add(GTK_CONTAINER(log_scrolledwindow), log_textview);
+	gtk_widget_set_size_request(log_textview, -1, 215);
+	gtk_text_view_set_editable(GTK_TEXT_VIEW(log_textview), FALSE);
+
+	log_buffer = gtk_text_view_get_buffer(GTK_TEXT_VIEW(log_textview));
+	gtk_text_buffer_get_end_iter(log_buffer, &log_end);
+
+	vpaned2 = gtk_vpaned_new();
+	gtk_widget_show(vpaned2);
+	gtk_box_pack_start(GTK_BOX(vbox15), vpaned2, TRUE, TRUE, 0);
+	gtk_widget_set_size_request(vpaned2, -1, 21);
+	gtk_container_set_border_width(GTK_CONTAINER(vpaned2), 3);
+	gtk_paned_set_position(GTK_PANED(vpaned2), 0);
+
+	hbox14 = gtk_hbox_new(FALSE, 0);
+	gtk_widget_show(hbox14);
+	gtk_paned_pack2(GTK_PANED(vpaned2), hbox14, TRUE, TRUE);
+	gtk_widget_set_size_request(hbox14, -1, 6);
+
+	log_label = gtk_label_new("");
+	gtk_widget_show(log_label);
+	gtk_box_pack_start(GTK_BOX(hbox14), log_label, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(log_label, 419, -1);
+
+	//MCU System Log---->Clear
+	log_button1 = gtk_button_new_with_mnemonic(p_McuSysLog_Butt_Clr);
+	gtk_widget_show(log_button1);
+	gtk_box_pack_start(GTK_BOX(hbox14), log_button1, FALSE, FALSE, 0);
+
+	//MCU System Log---->Table Title
+	log_label = gtk_label_new(p_McuSysLog_TabTitle);
+	gtk_widget_show(log_label);
+	gtk_notebook_set_tab_label(GTK_NOTEBOOK(notebook1),
+			gtk_notebook_get_nth_page(GTK_NOTEBOOK(notebook1), 2), log_label);
+	gtk_widget_set_size_request(log_label, -1, 16);
+
+	statusbar1 = gtk_statusbar_new();
+	gtk_widget_show(statusbar1);
+	gtk_box_pack_start(GTK_BOX(vbox7), statusbar1, FALSE, FALSE, 0);
+
+	g_signal_connect(G_OBJECT(window1), "destroy", G_CALLBACK(gtk_main_quit),
+			NULL);
+
+	g_signal_connect((gpointer) select1, "activate", G_CALLBACK(
+			on_select_activate), NULL);
+	g_signal_connect((gpointer) join1, "activate",
+			G_CALLBACK(on_join_activate), NULL);
+	g_signal_connect((gpointer) leave1, "activate", G_CALLBACK(
+			on_leave_activate), NULL);
+
+	g_signal_connect((gpointer) exit, "activate", G_CALLBACK(on_exit_activate),
+			window1);
+	g_signal_connect((gpointer) setpara, "activate", G_CALLBACK(
+			on_setpara_activate), NULL);
+
+	g_signal_connect((gpointer) joingroup, "activate", G_CALLBACK(
+			on_joingroup_activate), NULL);
+	g_signal_connect((gpointer) leavegroup, "activate", G_CALLBACK(
+			on_leavegroup_activate), NULL);
+
+	g_signal_connect((gpointer) para_toolbar_button, "clicked", G_CALLBACK(
+			on_para_toolbar_button_clicked), NULL);
+	g_signal_connect((gpointer) para_toolbar_button, "enter", G_CALLBACK(
+			on_para_toolbar_button_enter), NULL);
+	g_signal_connect((gpointer) select_tool_button, "clicked", G_CALLBACK(
+			on_select_tool_button_clicked), NULL);
+	g_signal_connect((gpointer) join_toolbar_button, "clicked", G_CALLBACK(
+			on_join_toolbar_button_clicked), NULL);
+	g_signal_connect((gpointer) join_toolbar_button, "enter", G_CALLBACK(
+			on_join_toolbar_button_enter), NULL);
+	g_signal_connect((gpointer) leave_toolbar_button, "clicked", G_CALLBACK(
+			on_leave_toolbar_button_clicked), NULL);
+	g_signal_connect((gpointer) leave_toolbar_button, "enter", G_CALLBACK(
+			on_leave_toolbar_button_enter), NULL);
+	g_signal_connect((gpointer) joinclass_toolbar_button, "clicked",
+			G_CALLBACK(on_joinclass_toolbar_button_clicked), NULL);
+	g_signal_connect((gpointer) joinclass_toolbar_button, "enter", G_CALLBACK(
+			on_joinclass_toolbar_button_enter), NULL);
+	g_signal_connect((gpointer) leaveclass_toolbar_button, "clicked",
+			G_CALLBACK(on_leaveclass_toolbar_button_clicked), NULL);
+	g_signal_connect((gpointer) leaveclass_toolbar_button, "enter", G_CALLBACK(
+			on_leaveclass_toolbar_button_enter), NULL);
+	g_signal_connect((gpointer) refresh_transfer_clist_button, "clicked",
+			G_CALLBACK(on_refresh_transfer_clist_button_clicked), NULL);
+	g_signal_connect((gpointer) log_button1, "clicked", G_CALLBACK(
+			on_log_button1_clicked), NULL);
+
+	return window1;
+}
+
+GtkWidget*
+create_para_dialog(void)
+{
+
+	GtkWidget *dialog1;
+	GtkWidget *dialog_vbox5;
+	GtkWidget *vbox16;
+	GtkWidget *hbox15;
+	GtkWidget *label1;
+	GtkWidget *hbox16;
+	GtkWidget *label2;
+	GtkWidget *hbox17;
+	GtkWidget *label3;
+	GtkWidget *hbox18;
+	GtkWidget *label31;
+	GtkWidget *dialog_action_area5;
+	GtkWidget *alignment1;
+	GtkWidget *hbox19;
+	GtkWidget *image14;
+	GtkWidget *label32;
+	GtkWidget *para_cancelbutton;
+	GtkWidget *para_okbutton;
+	GtkTooltips *tooltips;
+
+	tooltips = gtk_tooltips_new();
+
+	dialog1 = gtk_dialog_new();
+	gtk_widget_set_size_request(dialog1, 400, 250);
+
+	//MCU Set Parameter Dialog---->windows title
+	gtk_window_set_title(GTK_WINDOW(dialog1), p_McuSetPara_WinTitle);
+	gtk_window_set_modal(GTK_WINDOW(dialog1), TRUE);
+	gtk_window_set_resizable(GTK_WINDOW(dialog1), FALSE);
+	gtk_window_set_type_hint(GTK_WINDOW(dialog1), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+	dialog_vbox5 = GTK_DIALOG(dialog1)->vbox;
+	gtk_widget_show(dialog_vbox5);
+
+	vbox16 = gtk_vbox_new(FALSE, 0);
+	gtk_widget_show(vbox16);
+	gtk_box_pack_start(GTK_BOX(dialog_vbox5), vbox16, TRUE, TRUE, 0);
+
+	hbox15 = gtk_hbox_new(FALSE, 0);
+	gtk_widget_show(hbox15);
+	gtk_box_pack_start(GTK_BOX(vbox16), hbox15, TRUE, TRUE, 0);
+
+	//MCU Set Parameter Dialog---->Lable---->class server address
+	label1 = gtk_label_new(p_McuSetPara_Lable_ClassServerIP);
+	gtk_widget_show(label1);
+	gtk_box_pack_start(GTK_BOX(hbox15), label1, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(label1, 140, 30);
+
+	entry_serverip = gtk_entry_new();
+	gtk_widget_show(entry_serverip);
+	gtk_box_pack_start(GTK_BOX(hbox15), entry_serverip, TRUE, TRUE, 0);
+	gtk_widget_set_size_request(entry_serverip, 90, 30);
+	gtk_entry_set_text(GTK_ENTRY(entry_serverip), mcu_get_para.serverip);
+
+	hbox16 = gtk_hbox_new(FALSE, 0);
+	gtk_widget_show(hbox16);
+	gtk_box_pack_start(GTK_BOX(vbox16), hbox16, TRUE, TRUE, 0);
+
+	//MCU Set Parameter Dialog---->Lable---->class server port
+	label2 = gtk_label_new(p_McuSetPara_Lable_ClassServerPort);
+	gtk_widget_show(label2);
+	gtk_box_pack_start(GTK_BOX(hbox16), label2, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(label2, 140, 30);
+
+	entry_serverport = gtk_entry_new();
+	gtk_widget_show(entry_serverport);
+	gtk_box_pack_start(GTK_BOX(hbox16), entry_serverport, TRUE, TRUE, 0);
+	gtk_widget_set_size_request(entry_serverport, 90, 30);
+	gtk_widget_set_sensitive(entry_serverport, FALSE);
+	char port_tmp[50];
+	sprintf(port_tmp, "%d", mcu_get_para.serverport);
+	gtk_entry_set_text(GTK_ENTRY(entry_serverport), port_tmp);
+
+	hbox17 = gtk_hbox_new(FALSE, 0);
+	gtk_widget_show(hbox17);
+	gtk_box_pack_start(GTK_BOX(vbox16), hbox17, TRUE, TRUE, 0);
+
+	//MCU Set Parameter Dialog---->Lable---->mcu server address
+	label3 = gtk_label_new(p_McuSetPara_Lable_McuServerIP);
+	gtk_widget_show(label3);
+	gtk_box_pack_start(GTK_BOX(hbox17), label3, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(label3, 140, 30);
+
+	entry_mcuip = gtk_entry_new();
+	gtk_widget_show(entry_mcuip);
+	gtk_box_pack_start(GTK_BOX(hbox17), entry_mcuip, TRUE, TRUE, 0);
+	gtk_widget_set_size_request(entry_mcuip, 90, 30);
+	gtk_widget_set_sensitive(entry_mcuip, FALSE);
+	gtk_entry_set_text(GTK_ENTRY(entry_mcuip), mcu_get_para.mcuip);
+
+	hbox18 = gtk_hbox_new(FALSE, 0);
+	gtk_widget_show(hbox18);
+	gtk_box_pack_start(GTK_BOX(vbox16), hbox18, TRUE, TRUE, 0);
+
+	//MCU Set Parameter Dialog---->Lable---->mcu server send port
+	label31 = gtk_label_new(p_McuSetPara_Lable_McuServerSendPort);
+	gtk_widget_show(label31);
+	gtk_box_pack_start(GTK_BOX(hbox18), label31, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(label31, 140, 30);
+
+	entry_mcuport = gtk_entry_new();
+	gtk_widget_show(entry_mcuport);
+	gtk_box_pack_start(GTK_BOX(hbox18), entry_mcuport, TRUE, TRUE, 0);
+	gtk_widget_set_size_request(entry_mcuport, 90, 30);
+	gtk_widget_set_sensitive(entry_mcuport, FALSE);
+	char tmp_mucport[50];
+	sprintf(tmp_mucport, "%d", mcu_get_para.mcuport);
+	gtk_entry_set_text(GTK_ENTRY(entry_mcuport), tmp_mucport);
+
+	dialog_action_area5 = GTK_DIALOG(dialog1)->action_area;
+	gtk_widget_show(dialog_action_area5);
+	gtk_button_box_set_layout(GTK_BUTTON_BOX(dialog_action_area5),
+			GTK_BUTTONBOX_END);
+
+	para_advancebutton = gtk_button_new();
+	gtk_widget_show(para_advancebutton);
+	gtk_dialog_add_action_widget(GTK_DIALOG(dialog1), para_advancebutton,
+			GTK_RESPONSE_HELP);
+	GTK_WIDGET_SET_FLAGS(para_advancebutton, GTK_CAN_DEFAULT);
+
+	//MCU Set Parameter Dialog---->Button comments---->For professional user only
+	gtk_tooltips_set_tip(tooltips, para_advancebutton,
+			p_McuSetPara_ButtComm_Advanced, NULL);
+
+	alignment1 = gtk_alignment_new(0.5, 0.5, 0, 0);
+	gtk_widget_show(alignment1);
+	gtk_container_add(GTK_CONTAINER(para_advancebutton), alignment1);
+
+	hbox19 = gtk_hbox_new(FALSE, 2);
+	gtk_widget_show(hbox19);
+	gtk_container_add(GTK_CONTAINER(alignment1), hbox19);
+
+	image14 = gtk_image_new_from_stock("gtk-add", GTK_ICON_SIZE_BUTTON);
+	gtk_widget_show(image14);
+	gtk_box_pack_start(GTK_BOX(hbox19), image14, FALSE, FALSE, 0);
+
+	//MCU Set Parameter Dialog---->Buttons---->Advanced
+	label32 = gtk_label_new_with_mnemonic(p_McuSetPara_Butt_Advanced);
+	gtk_widget_show(label32);
+	gtk_box_pack_start(GTK_BOX(hbox19), label32, FALSE, FALSE, 0);
+
+	//MCU Set Parameter Dialog---->Buttons---->Cancel
+	para_cancelbutton = gtk_button_new_from_stock(p_McuSetPara_Butt_Cancel);
+	gtk_widget_show(para_cancelbutton);
+	gtk_dialog_add_action_widget(GTK_DIALOG(dialog1), para_cancelbutton,
+			GTK_RESPONSE_CANCEL);
+	GTK_WIDGET_SET_FLAGS(para_cancelbutton, GTK_CAN_DEFAULT);
+
+	//MCU Set Parameter Dialog---->Buttons---->OK
+	para_okbutton = gtk_button_new_from_stock(p_McuSetPara_Butt_OK);
+	gtk_widget_show(para_okbutton);
+	gtk_dialog_add_action_widget(GTK_DIALOG(dialog1), para_okbutton,
+			GTK_RESPONSE_OK);
+	GTK_WIDGET_SET_FLAGS(para_okbutton, GTK_CAN_DEFAULT);
+
+	g_signal_connect((gpointer) para_cancelbutton, "clicked", G_CALLBACK(
+			on_para_cancelbutton_clicked), dialog1);
+	g_signal_connect((gpointer) para_okbutton, "clicked", G_CALLBACK(
+			on_para_okbutton_clicked), dialog1);
+	g_signal_connect((gpointer) para_advancebutton, "clicked", G_CALLBACK(
+			on_para_advancebutton_clicked), NULL);
+	return dialog1;
+}
+
+GtkWidget*
+create_radio_dialog(void)
+{
+	GtkWidget *dialog2;
+	GtkWidget *dialog_vbox2;
+	GtkWidget *vbox3;
+	GtkWidget *vbox4;
+	GtkWidget *label6;
+	GtkWidget *radiobutton_mcu;
+	GSList *radiobutton_mcu_group = NULL;
+	GtkWidget *radiobutton_semcu;
+	GtkWidget *dialog_action_area2;
+	GtkWidget *select_cancel_button;
+	GtkWidget *select_okbutton;
+
+	dialog2 = gtk_dialog_new();
+	gtk_widget_set_size_request(dialog2, 350, 220);
+
+	//Mcu Type Select Dialog---->windows title
+	gtk_window_set_title(GTK_WINDOW(dialog2), p_McuTypeSel_WinTitle);
+	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);
+
+	vbox3 = gtk_vbox_new(FALSE, 0);
+	gtk_widget_show(vbox3);
+	gtk_box_pack_start(GTK_BOX(dialog_vbox2), vbox3, TRUE, TRUE, 0);
+
+	vbox4 = gtk_vbox_new(FALSE, 0);
+	gtk_widget_show(vbox4);
+	gtk_box_pack_start(GTK_BOX(vbox3), vbox4, TRUE, TRUE, 0);
+
+	label6 = gtk_label_new("");
+	gtk_widget_show(label6);
+	gtk_box_pack_start(GTK_BOX(vbox4), label6, FALSE, FALSE, 0);
+
+	//Mcu Type Select Dialog---->radio label---->main mcu
+	radiobutton_mcu = gtk_radio_button_new_with_mnemonic(NULL,
+			p_McuTypeSel_RadioLab_MainMcu);
+	gtk_widget_show(radiobutton_mcu);
+	gtk_box_pack_start(GTK_BOX(vbox4), radiobutton_mcu, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(radiobutton_mcu, 350, 80);
+	gtk_container_set_border_width(GTK_CONTAINER(radiobutton_mcu), 25);
+	gtk_radio_button_set_group(GTK_RADIO_BUTTON(radiobutton_mcu),
+			radiobutton_mcu_group);
+	radiobutton_mcu_group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(
+			radiobutton_mcu));
+	//gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radiobutton_mcu), TRUE);
+
+	//Mcu Type Select Dialog---->radio label---->assist mcu
+	radiobutton_semcu = gtk_radio_button_new_with_mnemonic(NULL,
+			p_McuTypeSel_RadioLab_AssistMcu);
+	gtk_widget_show(radiobutton_semcu);
+	gtk_box_pack_start(GTK_BOX(vbox4), radiobutton_semcu, FALSE, FALSE, 0);
+	gtk_widget_set_size_request(radiobutton_semcu, 350, 80);
+	gtk_container_set_border_width(GTK_CONTAINER(radiobutton_semcu), 25);
+	gtk_radio_button_set_group(GTK_RADIO_BUTTON(radiobutton_semcu),
+			radiobutton_mcu_group);
+	radiobutton_mcu_group = gtk_radio_button_get_group(GTK_RADIO_BUTTON(
+			radiobutton_semcu));
+
+	switch (mcu_or_semcu)
+	{
+	case 0:
+		gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radiobutton_mcu), TRUE);
+		break;
+	case 1:
+		gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(radiobutton_semcu), TRUE);
+		break;
+	}
+
+	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);
+
+	//Mcu Type Select Dialog---->Buttons---->cancel
+	select_cancel_button
+			= gtk_button_new_from_stock(p_McuTypeSel_Button_Cancel);
+	gtk_widget_show(select_cancel_button);
+	gtk_dialog_add_action_widget(GTK_DIALOG(dialog2), select_cancel_button,
+			GTK_RESPONSE_CANCEL);
+	GTK_WIDGET_SET_FLAGS(select_cancel_button, GTK_CAN_DEFAULT);
+
+	//Mcu Type Select Dialog---->Buttons---->OK
+	select_okbutton = gtk_button_new_from_stock(p_McuTypeSel_Button_OK);
+	gtk_widget_show(select_okbutton);
+	gtk_dialog_add_action_widget(GTK_DIALOG(dialog2), select_okbutton,
+			GTK_RESPONSE_OK);
+	GTK_WIDGET_SET_FLAGS(select_okbutton, GTK_CAN_DEFAULT);
+
+	g_signal_connect((gpointer) radiobutton_mcu, "clicked", G_CALLBACK(
+			on_radiobutton_clicked), (gpointer) 0);
+	g_signal_connect((gpointer) radiobutton_semcu, "clicked", G_CALLBACK(
+			on_radiobutton_clicked), (gpointer) 1);
+	g_signal_connect((gpointer) select_cancel_button, "clicked", G_CALLBACK(
+			on_select_cancel_button_clicked), dialog2);
+	g_signal_connect((gpointer) select_okbutton, "clicked", G_CALLBACK(
+			on_select_okbutton_clicked), dialog2);
+	return dialog2;
+}
+
+GtkWidget*
+create_login_dialog(void)
+{
+	GtkWidget *dialog3;
+	GtkWidget *dialog_vbox3;
+	GtkWidget *vbox5;
+	GtkWidget *vbox6;
+	GtkWidget *hbox7;
+	GtkWidget *label7;
+	GtkWidget *hbox8;
+	GtkWidget *label8;
+	GtkWidget *dialog_action_area3;
+	GtkWidget *join_cancle_button;
+	GtkWidget *join_okbutton;
+
+	dialog3 = gtk_dialog_new();
+	gtk_widget_set_size_request(dialog3, 300, 230);
+
+	//MCU User Login Dialog---->windows title
+	gtk_window_set_title(GTK_WINDOW(dialog3), p_McuUserLogon_WinTitle);
+	gtk_window_set_modal(GTK_WINDOW(dialog3), TRUE);
+	gtk_window_set_resizable(GTK_WINDOW(dialog3), FALSE);
+	gtk_window_set_type_hint(GTK_WINDOW(dialog3), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+	dialog_vbox3 = GTK_DIALOG(dialog3)->vbox;
+	gtk_widget_show(dialog_vbox3);
+
+	vbox5 = gtk_vbox_new(FALSE, 0);
+	gtk_widget_show(vbox5);
+	gtk_box_pack_start(GTK_BOX(dialog_vbox3), vbox5, TRUE, TRUE, 0);
+
+	vbox6 = gtk_vbox_new(FALSE, 0);
+	gtk_widget_show(vbox6);
+	gtk_box_pack_start(GTK_BOX(vbox5), vbox6, TRUE, TRUE, 0);
+
+	hbox7 = gtk_hbox_new(FALSE, 0);
+	gtk_widget_show(hbox7);
+	gtk_box_pack_start(GTK_BOX(vbox6), hbox7, TRUE, TRUE, 0);
+
+	//MCU User Login Dialog---->Label---->User name
+	label7 = gtk_label_new(p_McuUserLogon_Label_UserName);
+	gtk_widget_show(label7);
+	gtk_box_pack_start(GTK_BOX(hbox7), label7, FALSE, FALSE, 0);
+
+	entry_name = gtk_entry_new();
+	gtk_widget_show(entry_name);
+	gtk_box_pack_start(GTK_BOX(hbox7), entry_name, TRUE, TRUE, 0);
+	gtk_entry_set_text(GTK_ENTRY(entry_name), mcu_get_user.username);
+
+	hbox8 = gtk_hbox_new(FALSE, 0);
+	gtk_widget_show(hbox8);
+	gtk_box_pack_start(GTK_BOX(vbox6), hbox8, TRUE, TRUE, 0);
+
+	//MCU User Login Dialog---->Label---->Password
+	label8 = gtk_label_new(p_McuUserLogon_Label_Password);
+	gtk_widget_show(label8);
+	gtk_box_pack_start(GTK_BOX(hbox8), label8, FALSE, FALSE, 0);
+
+	entry_password = gtk_entry_new();
+	gtk_widget_show(entry_password);
+	gtk_box_pack_start(GTK_BOX(hbox8), entry_password, TRUE, TRUE, 0);
+	gtk_entry_set_visibility(GTK_ENTRY(entry_password), FALSE);
+	gtk_entry_set_text(GTK_ENTRY(entry_password), mcu_get_user.password);
+
+	dialog_action_area3 = GTK_DIALOG(dialog3)->action_area;
+	gtk_widget_show(dialog_action_area3);
+	gtk_button_box_set_layout(GTK_BUTTON_BOX(dialog_action_area3),
+			GTK_BUTTONBOX_END);
+
+	//MCU User Login Dialog---->Buttons---->Cancel
+	join_cancle_button
+			= gtk_button_new_from_stock(p_McuUserLogon_Button_Cancel);
+	gtk_widget_show(join_cancle_button);
+	gtk_dialog_add_action_widget(GTK_DIALOG(dialog3), join_cancle_button,
+			GTK_RESPONSE_CANCEL);
+	GTK_WIDGET_SET_FLAGS(join_cancle_button, GTK_CAN_DEFAULT);
+
+	//MCU User Login Dialog---->Buttons---->OK
+	join_okbutton = gtk_button_new_from_stock(p_McuUserLogon_Button_OK);
+	gtk_widget_show(join_okbutton);
+	gtk_dialog_add_action_widget(GTK_DIALOG(dialog3), join_okbutton,
+			GTK_RESPONSE_OK);
+	GTK_WIDGET_SET_FLAGS(join_okbutton, GTK_CAN_DEFAULT);
+
+	g_signal_connect((gpointer) join_cancle_button, "clicked", G_CALLBACK(
+			on_join_cancle_button_clicked), dialog3);
+	g_signal_connect((gpointer) join_okbutton, "clicked", G_CALLBACK(
+			on_join_okbutton_clicked), dialog3);
+
+	return dialog3;
+}
+
+GtkWidget*
+create_chose_class_dialog(void)
+{
+	GtkWidget *dialog4;
+	GtkWidget *dialog_vbox4;
+	GtkWidget *scrolledwindow1;
+
+	GtkWidget *group_id;
+	GtkWidget *group_name;
+	GtkWidget *teacher_name;
+	GtkWidget *dialog_action_area4;
+	GtkWidget *refresh_group;
+	GtkWidget *cancle_groupjoin;
+
+	dialog4 = gtk_dialog_new();
+	gtk_widget_set_size_request(dialog4, 450, 300);
+
+	//Class Select Dialog---->windows title
+	gtk_window_set_title(GTK_WINDOW(dialog4), p_ClassSel_WinTitle);
+
+	gtk_window_set_modal(GTK_WINDOW(dialog4), TRUE);
+	gtk_window_set_resizable(GTK_WINDOW(dialog4), FALSE);
+	gtk_window_set_type_hint(GTK_WINDOW(dialog4), GDK_WINDOW_TYPE_HINT_DIALOG);
+
+	dialog_vbox4 = GTK_DIALOG(dialog4)->vbox;
+	gtk_widget_show(dialog_vbox4);
+
+	scrolledwindow1 = gtk_scrolled_window_new(NULL, NULL);
+	gtk_widget_show(scrolledwindow1);
+	gtk_box_pack_start(GTK_BOX(dialog_vbox4), scrolledwindow1, TRUE, TRUE, 0);
+	gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolledwindow1),
+			GTK_SHADOW_IN);
+
+	group_clist = gtk_clist_new(3);
+	gtk_widget_show(group_clist);
+	gtk_container_add(GTK_CONTAINER(scrolledwindow1), group_clist);
+	gtk_widget_set_size_request(group_clist, 264, -1);
+	gtk_clist_set_column_width(GTK_CLIST(group_clist), 0, 81);
+	gtk_clist_set_column_width(GTK_CLIST(group_clist), 1, 192);
+	gtk_clist_set_column_width(GTK_CLIST(group_clist), 2, 80);
+	gtk_clist_column_titles_show(GTK_CLIST(group_clist));
+
+	//Class Select---->Class list memeber---->Class ID
+	group_id = gtk_label_new(p_ClassSel_ClasslistMem_ClassID);
+
+	gtk_widget_show(group_id);
+	gtk_clist_set_column_widget(GTK_CLIST(group_clist), 0, group_id);
+
+	//Class Select---->Class list memeber---->Class Name
+	group_name = gtk_label_new(p_ClassSel_ClasslistMem_ClassName);
+
+	gtk_widget_show(group_name);
+	gtk_clist_set_column_widget(GTK_CLIST(group_clist), 1, group_name);
+
+	//Class Select---->Class list memeber---->Teacher Name
+	teacher_name = gtk_label_new(p_ClassSel_ClasslistMem_TecherName);
+
+	gtk_widget_show(teacher_name);
+	gtk_clist_set_column_widget(GTK_CLIST(group_clist), 2, teacher_name);
+
+	dialog_action_area4 = GTK_DIALOG(dialog4)->action_area;
+	gtk_widget_show(dialog_action_area4);
+	gtk_button_box_set_layout(GTK_BUTTON_BOX(dialog_action_area4),
+			GTK_BUTTONBOX_END);
+
+	//Class Select---->Buttons---->Refresh class list
+	refresh_group = gtk_button_new_with_mnemonic(p_ClassSel_Butt_Refresh);
+
+	gtk_widget_show(refresh_group);
+	gtk_dialog_add_action_widget(GTK_DIALOG(dialog4), refresh_group, 0);
+	GTK_WIDGET_SET_FLAGS(refresh_group, GTK_CAN_DEFAULT);
+
+	//Class Select---->Buttons---->Cancel
+	cancle_groupjoin = gtk_button_new_with_mnemonic(p_ClassSel_Butt_Cancel);
+
+	gtk_widget_show(cancle_groupjoin);
+	gtk_dialog_add_action_widget(GTK_DIALOG(dialog4), cancle_groupjoin, 0);
+	GTK_WIDGET_SET_FLAGS(cancle_groupjoin, GTK_CAN_DEFAULT);
+
+	//Class Select---->Buttons---->OK Join
+	ok_groupjoin = gtk_button_new_with_mnemonic(p_ClassSel_Butt_OKJoin);
+
+	gtk_widget_show(ok_groupjoin);
+	gtk_dialog_add_action_widget(GTK_DIALOG(dialog4), ok_groupjoin, 0);
+	GTK_WIDGET_SET_FLAGS(ok_groupjoin, GTK_CAN_DEFAULT);
+	gtk_widget_set_sensitive(ok_groupjoin, FALSE);
+
+	g_signal_connect((gpointer) group_clist, "select_row", G_CALLBACK(
+			on_group_clist_select_row), NULL);
+	g_signal_connect((gpointer) refresh_group, "clicked", G_CALLBACK(
+			on_refresh_group_clicked), NULL);
+	g_signal_connect((gpointer) cancle_groupjoin, "clicked", G_CALLBACK(
+			on_cancle_groupjoin_clicked), dialog4);
+	g_signal_connect((gpointer) ok_groupjoin, "clicked", G_CALLBACK(
+			on_ok_groupjoin_clicked), dialog4);
+
+	return dialog4;
+}
+
+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_entry_setpara()
+{
+	const char *entry1 = gtk_entry_get_text(GTK_ENTRY(entry_serverip));
+	const char *entry2 = gtk_entry_get_text(GTK_ENTRY(entry_serverport));
+	const char *entry3 = gtk_entry_get_text(GTK_ENTRY(entry_mcuip));
+	const char *entry4 = gtk_entry_get_text(GTK_ENTRY(entry_mcuport));
+	DWORD temp;
+
+	strcpy(mcu_get_para.serverip, entry1);
+	strcpy(mcu_get_para.mcuip, entry3);
+
+	temp = atol(entry2);
+	mcu_get_para.serverport = temp;
+
+	temp = atol(entry4);
+	mcu_get_para.mcuport = temp;
+
+}
+
+void get_entry_userpara()
+{
+
+	const char *entry1 = gtk_entry_get_text(GTK_ENTRY(entry_name));
+	const char *entry2 = gtk_entry_get_text(GTK_ENTRY(entry_password));
+
+	strcpy(mcu_get_user.username, entry1);
+	strcpy(mcu_get_user.password, entry2);
+}

Added: incubator/bluesky/trunk/RealClass/DTU/src/interface.h
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/RealClass/DTU/src/interface.h?rev=818464&view=auto
==============================================================================
--- incubator/bluesky/trunk/RealClass/DTU/src/interface.h (added)
+++ incubator/bluesky/trunk/RealClass/DTU/src/interface.h Thu Sep 24 12:40:45 2009
@@ -0,0 +1,59 @@
+//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
+
+#define ENTRY_MAXLENGTH 200
+
+#include "stdafx.h"
+
+struct entry_setpara
+{
+	char serverip[16];
+	DWORD serverport;
+	char mcuip[16];
+	DWORD mcuport;
+};
+
+struct entry_usepara
+{
+	char username[ENTRY_MAXLENGTH];
+	char password[16];
+};
+
+void get_entry_setpara();
+void get_entry_userpara();
+
+void para_set_true();
+void join_set_true();
+void leave_set_false();
+void joingroup_set(int);
+void joingroup_okbutt_set();
+void joingroup_okbutt_set_false();
+void refresh_transfer_clist_button_set(int);
+
+void para_advance_set_true();
+
+GtkWidget* create_main_window(void);
+GtkWidget* create_para_dialog(void);
+GtkWidget* create_radio_dialog(void);
+GtkWidget* create_login_dialog(void);
+GtkWidget* create_chose_class_dialog(void);
+
+void Error_dia(gchar *, gchar *input);
+
+#endif

Added: incubator/bluesky/trunk/RealClass/DTU/src/language_test.cpp
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/RealClass/DTU/src/language_test.cpp?rev=818464&view=auto
==============================================================================
--- incubator/bluesky/trunk/RealClass/DTU/src/language_test.cpp (added)
+++ incubator/bluesky/trunk/RealClass/DTU/src/language_test.cpp Thu Sep 24 12:40:45 2009
@@ -0,0 +1,646 @@
+//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.
+
+#include "language_test.h"
+
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//												Main Frame
+//
+//
+// Main Frame windows title
+#ifdef LANGUAGE_EN
+char * p_mainframe_WinTitle = "DTU";
+#endif
+#ifdef LANGUAGE_CH
+char * p_mainframe_WinTitle = "DTU";
+#endif
+//
+//
+//												Main Frame
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//													Toolbar
+//
+//
+//Toolbar---->menu start
+#ifdef LANGUAGE_EN
+char * p_Toolbar_Menu_Start = "Start";
+#endif
+#ifdef LANGUAGE_CH
+char * p_Toolbar_Menu_Start = "\345\274\200\345\247\213";
+#endif
+//
+//Toolbar---->menu start---->type select
+#ifdef LANGUAGE_EN
+char * p_Toolbar_Menu_Start_Type = "DTU Type Select";
+#endif
+#ifdef LANGUAGE_CH
+char * p_Toolbar_Menu_Start_Type = "\351\200\211\346\213\251\347\261\273\345\236\213";
+#endif
+//
+//Toolbar---->menu start---->logon Tserver
+#ifdef LANGUAGE_EN
+char * p_Toolbar_Menu_Start_Logon = "Login Server";
+#endif
+#ifdef LANGUAGE_CH
+char * p_Toolbar_Menu_Start_Logon = "\347\231\273\345\275\225";
+#endif
+//
+//Toolbar---->menu start---->logout Tserver
+#ifdef LANGUAGE_EN
+char * p_Toolbar_Menu_Start_Logout = "Logout Server";
+#endif
+#ifdef LANGUAGE_CH
+char * p_Toolbar_Menu_Start_Logout = "\347\246\273\345\274\200";
+#endif
+//
+//Toolbar---->menu start---->exit system
+#ifdef LANGUAGE_EN
+char * p_Toolbar_Menu_Start_Exit = "Quit";
+#endif
+#ifdef LANGUAGE_CH
+char * p_Toolbar_Menu_Start_Exit = "\351\200\200\345\207\272";
+#endif
+//
+//Toolbar---->settings
+#ifdef LANGUAGE_EN
+char * p_Toolbar_Setting = "Setting";
+#endif
+#ifdef LANGUAGE_CH
+char * p_Toolbar_Setting = "\350\256\276\347\275\256";
+#endif
+//
+//Toolbar---->settings---->set parameters
+#ifdef LANGUAGE_EN
+char * p_Toolbar_Setting_SetPara = "Network Configure";
+#endif
+#ifdef LANGUAGE_CH
+char * p_Toolbar_Setting_SetPara = "\345\217\202\346\225\260\350\256\276\347\275\256";
+#endif
+//
+//Toolbar---->Class options
+#ifdef LANGUAGE_EN
+char * p_Toolbar_ClassOption = "Class Options";
+#endif
+#ifdef LANGUAGE_CH
+char * p_Toolbar_ClassOption = "\350\257\276\345\240\202\351\200\211\346\213\251";
+#endif
+//
+//Toolbar---->Class options---->join class
+#ifdef LANGUAGE_EN
+char * p_Toolbar_ClassOption_Join = "Join Class";
+#endif
+#ifdef LANGUAGE_CH
+char * p_Toolbar_ClassOption_Join = "\345\212\240\345\205\245\350\257\276\345\240\202";
+#endif
+//
+//Toolbar---->Class options---->quit class
+#ifdef LANGUAGE_EN
+char * p_Toolbar_ClassOption_Quit = "Exit Class";
+#endif
+#ifdef LANGUAGE_CH
+char * p_Toolbar_ClassOption_Quit = "\351\200\200\345\207\272\350\257\276\345\240\202";
+#endif
+//
+//Toolbar---->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
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//											Graphic buttons
+//
+//
+//Graphic buttons---->set parameters
+#ifdef LANGUAGE_EN
+char * p_GraphButt_SetPara = "Network Configure";
+#endif
+#ifdef LANGUAGE_CH
+char * p_GraphButt_SetPara = "\345\261\236\346\200\247\350\256\276\347\275\256";
+#endif
+//
+//Graphic buttons---->type select
+#ifdef LANGUAGE_EN
+char * p_GraphButt_TypeSel = "DTU Type Select";
+#endif
+#ifdef LANGUAGE_CH
+char * p_GraphButt_TypeSel = "\347\231\273\345\275\225\347\261\273\345\236\213\351\200\211\346\213\251";
+#endif
+//
+//Graphic buttons---->logon Tserver
+#ifdef LANGUAGE_EN
+char * p_GraphButt_Logon = "Login Server";
+#endif
+#ifdef LANGUAGE_CH
+char * p_GraphButt_Logon = "\347\231\273\345\275\225";
+#endif
+//
+//Graphic buttons---->logout Tserver
+#ifdef LANGUAGE_EN
+char * p_GraphButt_Logout = "Logout Server";
+#endif
+#ifdef LANGUAGE_CH
+char * p_GraphButt_Logout = "\351\200\200\345\207\272";
+#endif
+//
+//Graphic buttons---->join class
+#ifdef LANGUAGE_EN
+char * p_GraphButt_JoinClass = "Join Class";
+#endif
+#ifdef LANGUAGE_CH
+char * p_GraphButt_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 = "Exit Class";
+#endif
+#ifdef LANGUAGE_CH
+char * p_GraphButt_QuitClass = "\347\246\273\345\274\200\350\257\276\345\240\202";
+#endif
+//
+//
+//
+//											Graphic buttons
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//														Table
+//
+//										Transmit Node List 
+//												
+//
+//
+//Transmit Node List members---->Transmit Node ID
+#ifdef LANGUAGE_EN
+char * p_TranNodeListMem_ID = "ID";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranNodeListMem_ID = "ID";
+#endif
+//
+//Transmit Node List members---->Transmit Node IP
+#ifdef LANGUAGE_EN
+char * p_TranNodeListMem_IP = "Node IP";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranNodeListMem_IP = "\350\275\254\345\217\221\350\212\202\347\202\271IP";
+#endif
+//
+//Transmit Node List members---->Teacher screen port
+#ifdef LANGUAGE_EN
+char * p_TranNodeListMem_TeacherScrPort = "T screen port";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranNodeListMem_TeacherScrPort = "\346\225\231\345\270\210\345\261\217\345\271\225\347\253\257\345\217\243";
+#endif
+//
+//Transmit Node List members---->Teacher video port
+#ifdef LANGUAGE_EN
+char * p_TranNodeListMem_TeacherVideoPort = "T video port";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranNodeListMem_TeacherVideoPort = "\346\225\231\345\270\210\350\247\206\351\242\221\347\253\257\345\217\243";
+#endif
+//
+//Transmit Node List members---->Teacher audio port 
+#ifdef LANGUAGE_EN
+char * p_TranNodeListMem_TeacherAudioPort = "T audio port";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranNodeListMem_TeacherAudioPort = "\346\225\231\345\270\210\351\237\263\351\242\221\347\253\257\345\217\243";
+#endif
+//
+//Transmit Node List members---->Students video port
+#ifdef LANGUAGE_EN
+char * p_TranNodeListMem_StuVideoPort = "S video port";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranNodeListMem_StuVideoPort = "\345\255\246\347\224\237\347\253\257\350\247\206\351\242\221\347\253\257\345\217\243";
+#endif
+//
+//Transmit Node List members---->Students audio port
+#ifdef LANGUAGE_EN
+char * p_TranNodeListMem_StuAudioPort = "S audio port";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranNodeListMem_StuAudioPort = "\345\255\246\347\224\237\347\253\257\351\237\263\351\242\221\347\253\257\345\217\243";
+#endif
+//
+//Transmit Node List Buttons---->Refresh list
+#ifdef LANGUAGE_EN
+char * p_TranNodeList_Butt_Refresh = "Refresh";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranNodeList_Butt_Refresh = "\346\233\264\346\226\260\345\210\227\350\241\250";
+#endif
+//
+//Transmit Node List Title
+#ifdef LANGUAGE_EN
+char * p_TranNodeList_Title = "Transmit Nodes List";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranNodeList_Title = "\350\275\254\345\217\221\350\212\202\347\202\271\345\210\227\350\241\250";
+#endif
+//
+//
+//
+//										Transmit Node List
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//														Table
+//
+//									 Transmit State List 
+//												
+//
+//
+//Transmit State List---->lable class name
+#ifdef LANGUAGE_EN
+char * p_TranStateList_labClassName = "ClassName";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranStateList_labClassName = "\350\257\276\345\240\202\345\220\215\347\247\260";
+#endif
+//
+//Transmit State List---->lable teacher name
+#ifdef LANGUAGE_EN
+char * p_TranStateList_labTeacherName = "Teacher";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranStateList_labTeacherName = "\346\225\231\345\270\210\345\220\215\347\247\260";
+#endif
+//
+//Transmit State List members---->Port ID
+#ifdef LANGUAGE_EN
+char * p_TranStateListMem_PortID = "PortID";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranStateListMem_PortID = "\347\253\257\345\217\243\345\220\215";
+#endif
+//
+//Transmit State List members---->Port Number
+#ifdef LANGUAGE_EN
+char * p_TranStateListMem_PortNum = "PortNum";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranStateListMem_PortNum = "\347\253\257\345\217\243\345\217\267";
+#endif
+//
+//Transmit State List members---->Instant bandwidth
+#ifdef LANGUAGE_EN
+char * p_TranStateListMem_InsBW = "Inst BW";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranStateListMem_InsBW = "\347\236\254\351\227\264\345\270\246\345\256\275";
+#endif
+//
+//Transmit State List members---->Average bandwidth
+#ifdef LANGUAGE_EN
+char * p_TranStateListMem_AvgBW = "Avg BW";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranStateListMem_AvgBW = "\345\271\263\345\235\207\345\270\246\345\256\275";
+#endif
+//
+//Transmit State List members---->Transmit channel number
+#ifdef LANGUAGE_EN
+char * p_TranStateListMem_ChNum = "Ch Num";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranStateListMem_ChNum = "\350\275\254\345\217\221\350\267\257\346\225\260";
+#endif
+//
+//Transmit State List members---->Data packets number
+#ifdef LANGUAGE_EN
+char * p_TranStateListMem_PacketNum = "Packet";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranStateListMem_PacketNum = "\346\225\260\346\215\256\345\214\205\346\225\260";
+#endif
+//
+//Transmit State List members---->Data packets size
+#ifdef LANGUAGE_EN
+char * p_TranStateListMem_PacketSize = "Packet size";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranStateListMem_PacketSize = "\346\225\260\346\215\256\345\214\205\345\244\247\345\260\217";
+#endif
+//
+//Transmit State List---->Table title
+#ifdef LANGUAGE_EN
+char * p_TranStateList_TabTitle = "Transmit State List";
+#endif
+#ifdef LANGUAGE_CH
+char * p_TranStateList_TabTitle = "\350\275\254\345\217\221\347\212\266\346\200\201\345\210\227\350\241\250";
+#endif
+//
+//
+//
+//									 Transmit State List
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//														Table
+//
+//									 		MCU System Log
+//												
+//
+//
+//MCU System Log---->Buttons---->Clear
+#ifdef LANGUAGE_EN
+char * p_McuSysLog_Butt_Clr = "Clear";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuSysLog_Butt_Clr = "\346\270\205\351\231\244\350\256\260\345\275\225";
+#endif
+//
+//MCU System Log---->Table Title
+#ifdef LANGUAGE_EN
+char * p_McuSysLog_TabTitle = "System Log";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuSysLog_TabTitle = "\346\227\245\345\277\227\344\277\241\346\201\257";
+#endif
+//
+//
+//
+//									 		MCU System Log
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//														Dialog
+//
+//									 	 MCU Set Parameter
+//												
+//
+//
+//MCU Set Parameter Dialog---->windows title
+#ifdef LANGUAGE_EN
+char * p_McuSetPara_WinTitle = "DTU Network Configuration";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuSetPara_WinTitle = "DTU\345\217\202\346\225\260\350\256\276\347\275\256";
+#endif
+//
+//MCU Set Parameter Dialog---->Lable---->class server address
+#ifdef LANGUAGE_EN
+char * p_McuSetPara_Lable_ClassServerIP = "Server IP";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuSetPara_Lable_ClassServerIP = "\350\257\276\345\240\202\346\234\215\345\212\241\344\270\255\345\277\203\345\234\260\345\235\200";
+#endif
+//
+//MCU Set Parameter Dialog---->Lable---->class server port
+#ifdef LANGUAGE_EN
+char * p_McuSetPara_Lable_ClassServerPort = "Server Port";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuSetPara_Lable_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
+//
+//MCU Set Parameter Dialog---->Lable---->mcu server address
+#ifdef LANGUAGE_EN
+char * p_McuSetPara_Lable_McuServerIP = "DTU IP";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuSetPara_Lable_McuServerIP = "DTU\346\234\215\345\212\241\345\231\250\345\234\260\345\235\200";
+#endif
+//
+//MCU Set Parameter Dialog---->Lable---->mcu server send port
+#ifdef LANGUAGE_EN
+char * p_McuSetPara_Lable_McuServerSendPort = "DTU Sending Port";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuSetPara_Lable_McuServerSendPort = "DTU\346\225\260\346\215\256\350\275\254\345\217\221\345\237\272\345\207\206\347\253\257\345\217\243";
+#endif
+//
+//MCU Set Parameter Dialog---->Button comments---->For professional user only
+#ifdef LANGUAGE_EN
+char * p_McuSetPara_ButtComm_Advanced = "For professional user only";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuSetPara_ButtComm_Advanced = "\344\273\205\351\231\220\351\253\230\347\272\247\347\224\250\346\210\267\344\275\277\347\224\250";
+#endif
+//
+//MCU Set Parameter Dialog---->Buttons---->Advanced
+#ifdef LANGUAGE_EN
+char * p_McuSetPara_Butt_Advanced = "Advanced";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuSetPara_Butt_Advanced = "\351\253\230\347\272\247";
+#endif
+//
+//MCU Set Parameter Dialog---->Buttons---->Cancel
+#ifdef LANGUAGE_EN
+char * p_McuSetPara_Butt_Cancel = "Cancel";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuSetPara_Butt_Cancel = "gtk-cancel";
+#endif
+//
+//MCU Set Parameter Dialog---->Buttons---->OK
+#ifdef LANGUAGE_EN
+char * p_McuSetPara_Butt_OK = "OK";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuSetPara_Butt_OK = "gtk-ok";
+#endif
+//
+//
+//
+//									 	 MCU Set Parameter
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//														Dialog
+//
+//									 	 	MCU Type Select
+//												
+//
+//
+//Mcu Type Select Dialog---->windows title
+#ifdef LANGUAGE_EN
+char * p_McuTypeSel_WinTitle = "DTU type select";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuTypeSel_WinTitle = "DTU\347\231\273\345\275\225\347\261\273\345\236\213\351\200\211\346\213\251";
+#endif
+//
+//Mcu Type Select Dialog---->radio label---->main mcu
+#ifdef LANGUAGE_EN
+char * p_McuTypeSel_RadioLab_MainMcu =
+		"Main DTU(A class has a single main DTU)";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuTypeSel_RadioLab_MainMcu = "\344\270\273DTU(\350\257\267\347\241\256\344\277\235\344\270\200\351\227\250\350\257\276\344\273\205\346\234\211\344\270\200\344\270\252\344\270\273MCU)";
+#endif
+//
+//Mcu Type Select Dialog---->radio label---->assist mcu
+#ifdef LANGUAGE_EN
+char * p_McuTypeSel_RadioLab_AssistMcu = "Assist DTU";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuTypeSel_RadioLab_AssistMcu = "\350\276\205DTU";
+#endif
+//
+//Mcu Type Select Dialog---->Buttons---->cancel
+#ifdef LANGUAGE_EN
+char * p_McuTypeSel_Button_Cancel = "Cancel";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuTypeSel_Button_Cancel = "gtk-cancel";
+#endif
+//
+//Mcu Type Select Dialog---->Buttons---->OK
+#ifdef LANGUAGE_EN
+char * p_McuTypeSel_Button_OK = "OK";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuTypeSel_Button_OK = "gtk-ok";
+#endif
+//
+//
+//
+//									 	  MCU Type Select
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//														Dialog
+//
+//									 	 	 MCU User login
+//												
+//
+//
+//MCU User Logon Dialog---->windows title
+#ifdef LANGUAGE_EN
+char * p_McuUserLogon_WinTitle = "DTU user login";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuUserLogon_WinTitle = "DTU\347\224\250\346\210\267\350\256\276\347\275\256";
+#endif
+//
+//MCU User Logon Dialog---->Label---->User name
+#ifdef LANGUAGE_EN
+char * p_McuUserLogon_Label_UserName = "User name ";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuUserLogon_Label_UserName = "\347\224\250\346\210\267\345\220\215  ";
+#endif
+//
+//MCU User Logon Dialog---->Label---->Password
+#ifdef LANGUAGE_EN
+char * p_McuUserLogon_Label_Password = " Password   ";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuUserLogon_Label_Password = "\345\257\206\347\240\201    ";
+#endif
+//
+//MCU User Logon Dialog---->Buttons---->Cancel
+#ifdef LANGUAGE_EN
+char * p_McuUserLogon_Button_Cancel = "Cancel";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuUserLogon_Button_Cancel = "gtk-cancel";
+#endif
+//
+//MCU User Logon Dialog---->Buttons---->OK
+#ifdef LANGUAGE_EN
+char * p_McuUserLogon_Button_OK = "OK";
+#endif
+#ifdef LANGUAGE_CH
+char * p_McuUserLogon_Button_OK = "gtk-ok";
+#endif
+//
+//
+//
+//									 	  	 MCU User login
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//														Dialog
+//
+//									 	 	  Class Select
+//												
+//
+//
+//Class Select Dialog---->windows title
+#ifdef LANGUAGE_EN
+char * p_ClassSel_WinTitle = "Class Select";
+#endif
+#ifdef LANGUAGE_CH
+char * p_ClassSel_WinTitle = "\351\200\211\346\213\251\350\257\276\345\240\202";
+#endif
+//
+//Class Select---->Class list memeber---->Class ID
+#ifdef LANGUAGE_EN
+char * p_ClassSel_ClasslistMem_ClassID = "Class ID";
+#endif
+#ifdef LANGUAGE_CH
+char * p_ClassSel_ClasslistMem_ClassID = "\350\257\276\345\240\202ID";
+#endif
+//
+//Class Select---->Class list memeber---->Class Name
+#ifdef LANGUAGE_EN
+char * p_ClassSel_ClasslistMem_ClassName = "Class Name";
+#endif
+#ifdef LANGUAGE_CH
+char * p_ClassSel_ClasslistMem_ClassName = "\350\257\276\345\240\202\345\220\215\347\247\260";
+#endif
+//
+//Class Select---->Class list memeber---->Teacher Name
+#ifdef LANGUAGE_EN
+char * p_ClassSel_ClasslistMem_TecherName = "Teacher Name";
+#endif
+#ifdef LANGUAGE_CH
+char * p_ClassSel_ClasslistMem_TecherName = "\346\225\231\345\270\210\345\220\215\347\247\260";
+#endif
+//
+//Class Select---->Buttons---->Refresh class list
+#ifdef LANGUAGE_EN
+char * p_ClassSel_Butt_Refresh = "Refresh";
+#endif
+#ifdef LANGUAGE_CH
+char * p_ClassSel_Butt_Refresh = "\346\233\264\346\226\260\350\257\276\345\240\202";
+#endif
+//
+//Class Select---->Buttons---->Cancel
+#ifdef LANGUAGE_EN
+char * p_ClassSel_Butt_Cancel = "Cancel";
+#endif
+#ifdef LANGUAGE_CH
+char * p_ClassSel_Butt_Cancel = "\345\217\226\346\266\210";
+#endif
+//
+//Class Select---->Buttons---->OK Join
+#ifdef LANGUAGE_EN
+char * p_ClassSel_Butt_OKJoin = "Join Class";
+#endif
+#ifdef LANGUAGE_CH
+char * p_ClassSel_Butt_OKJoin = "\347\241\256\345\256\232\345\212\240\345\205\245";
+#endif

Added: incubator/bluesky/trunk/RealClass/DTU/src/language_test.h
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/RealClass/DTU/src/language_test.h?rev=818464&view=auto
==============================================================================
--- incubator/bluesky/trunk/RealClass/DTU/src/language_test.h (added)
+++ incubator/bluesky/trunk/RealClass/DTU/src/language_test.h Thu Sep 24 12:40:45 2009
@@ -0,0 +1,269 @@
+//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 _LANGUAGE_TEST_H_
+#define _LANGUAGE_TEST_H_
+
+#define LANGUAGE_EN
+
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//												Main Frame
+//
+//
+// Main Frame windows title
+extern char * p_mainframe_WinTitle;
+//
+//
+//												Main Frame
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//													Toolbar
+//
+//
+//Toolbar---->menu start
+extern char * p_Toolbar_Menu_Start;
+//Toolbar---->menu start---->type select
+extern char * p_Toolbar_Menu_Start_Type;
+//Toolbar---->menu start---->logon Tserver
+extern char * p_Toolbar_Menu_Start_Logon;
+//Toolbar---->menu start---->logout Tserver
+extern char * p_Toolbar_Menu_Start_Logout;
+//Toolbar---->menu start---->exit system
+extern char * p_Toolbar_Menu_Start_Exit;
+//Toolbar---->settings
+extern char * p_Toolbar_Setting;
+//Toolbar---->settings---->set parameters
+extern char * p_Toolbar_Setting_SetPara;
+//Toolbar---->Class options
+extern char * p_Toolbar_ClassOption;
+//Toolbar---->Class options---->join class
+extern char * p_Toolbar_ClassOption_Join;
+//Toolbar---->Class options---->quit class
+extern char * p_Toolbar_ClassOption_Quit;
+//Toolbar---->Help
+extern char * p_Toolbar_Help;
+//
+//
+//
+//													Toolbar
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//											Graphic buttons
+//
+//
+//Graphic buttons---->set parameters
+extern char * p_GraphButt_SetPara;
+//Graphic buttons---->type select
+extern char * p_GraphButt_TypeSel;
+//Graphic buttons---->logon Tserver
+extern char * p_GraphButt_Logon;
+//Graphic buttons---->logout Tserver
+extern char * p_GraphButt_Logout;
+//Graphic buttons---->join class
+extern char * p_GraphButt_JoinClass;
+//Graphic buttons---->quit class
+extern char * p_GraphButt_QuitClass;
+//
+//
+//
+//											Graphic buttons
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//														Table
+//
+//										Transmit Node List 
+//												
+//
+//
+//Transmit Node List members---->Transmit Node ID
+extern char * p_TranNodeListMem_ID;
+//Transmit Node List members---->Transmit Node IP
+extern char * p_TranNodeListMem_IP;
+//Transmit Node List members---->Teacher screen port
+extern char * p_TranNodeListMem_TeacherScrPort;
+//Transmit Node List members---->Teacher video port
+extern char * p_TranNodeListMem_TeacherVideoPort;
+//Transmit Node List members---->Teacher audio port
+extern char * p_TranNodeListMem_TeacherAudioPort;
+//Transmit Node List members---->Students video port
+extern char * p_TranNodeListMem_StuVideoPort;
+//Transmit Node List members---->Students audio port 
+extern char * p_TranNodeListMem_StuAudioPort;
+//Transmit Node List Buttons---->Refresh list
+extern char * p_TranNodeList_Butt_Refresh;
+//Transmit Node List Title
+extern char * p_TranNodeList_Title;
+//
+//
+//
+//										Transmit Node List
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//														Table
+//
+//									 Transmit State List 
+//												
+//
+//
+//Transmit State List---->lable class name
+extern char * p_TranStateList_labClassName;
+//Transmit State List---->lable teacher name
+extern char * p_TranStateList_labTeacherName;
+//Transmit State List members---->Port ID
+extern char * p_TranStateListMem_PortID;
+//Transmit State List members---->Port Number
+extern char * p_TranStateListMem_PortNum;
+//Transmit State List members---->Instant bandwidth
+extern char * p_TranStateListMem_InsBW;
+//Transmit State List members---->Average bandwidth
+extern char * p_TranStateListMem_AvgBW;
+//Transmit State List members---->Transmit channel number
+extern char * p_TranStateListMem_ChNum;
+//Transmit State List members---->Data packets number
+extern char * p_TranStateListMem_PacketNum;
+//Transmit State List members---->Data packets size
+extern char * p_TranStateListMem_PacketSize;
+//Transmit State List---->Table title
+extern char * p_TranStateList_TabTitle;
+//
+//
+//
+//									 Transmit State List
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//														Table
+//
+//									 		MCU System Log
+//												
+//
+//
+//MCU System Log---->Buttons---->Clear
+extern char * p_McuSysLog_Butt_Clr;
+//MCU System Log---->Table Title
+extern char * p_McuSysLog_TabTitle;
+//
+//
+//
+//									 		MCU System Log
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//														Dialog
+//
+//									 	 MCU Set Parameter
+//												
+//
+//
+//MCU Set Parameter Dialog---->windows title
+extern char * p_McuSetPara_WinTitle;
+//MCU Set Parameter Dialog---->Lable---->class server address
+extern char * p_McuSetPara_Lable_ClassServerIP;
+//MCU Set Parameter Dialog---->Lable---->class server port
+extern char * p_McuSetPara_Lable_ClassServerPort;
+//MCU Set Parameter Dialog---->Lable---->mcu server address
+extern char * p_McuSetPara_Lable_McuServerIP;
+//MCU Set Parameter Dialog---->Lable---->mcu server send port
+extern char * p_McuSetPara_Lable_McuServerSendPort;
+//MCU Set Parameter Dialog---->Button comments---->For professional user only
+extern char * p_McuSetPara_ButtComm_Advanced;
+//MCU Set Parameter Dialog---->Buttons---->Advanced
+extern char * p_McuSetPara_Butt_Advanced;
+//MCU Set Parameter Dialog---->Buttons---->Cancel
+extern char * p_McuSetPara_Butt_Cancel;
+//MCU Set Parameter Dialog---->Buttons---->OK
+extern char * p_McuSetPara_Butt_OK;
+//
+//
+//
+//									 	 MCU Set Parameter
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//														Dialog
+//
+//									 	 	MCU Type Select
+//												
+//
+//
+//Mcu Type Select Dialog---->windows title
+extern char * p_McuTypeSel_WinTitle;
+//Mcu Type Select Dialog---->radio label---->main mcu
+extern char * p_McuTypeSel_RadioLab_MainMcu;
+//Mcu Type Select Dialog---->radio label---->assist mcu
+extern char * p_McuTypeSel_RadioLab_AssistMcu;
+//Mcu Type Select Dialog---->Buttons---->cancel
+extern char * p_McuTypeSel_Button_Cancel;
+//Mcu Type Select Dialog---->Buttons---->OK
+extern char * p_McuTypeSel_Button_OK;
+//
+//
+//
+//									 	  MCU Type Select
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//														Dialog
+//
+//									 	 	 MCU User login
+//												
+//
+//
+//MCU User Logon Dialog---->windows title
+extern char * p_McuUserLogon_WinTitle;
+//MCU User Logon Dialog---->Label---->User name
+extern char * p_McuUserLogon_Label_UserName;
+//MCU User Logon Dialog---->Label---->Password
+extern char * p_McuUserLogon_Label_Password;
+//MCU User Login Dialog---->Buttons---->Cancel
+extern char * p_McuUserLogon_Button_Cancel;
+//MCU User Login Dialog---->Buttons---->OK
+extern char * p_McuUserLogon_Button_OK;
+//
+//
+//
+//									 	  	 MCU User login
+/////////////////////////////////////////////////////////
+/////////////////////////////////////////////////////////
+//
+//														Dialog
+//
+//									 	 	  Class Select
+//												
+//
+//
+//Class Select Dialog---->windows title
+extern char * p_ClassSel_WinTitle;
+//Class Select---->Class list memeber---->Class ID
+extern char * p_ClassSel_ClasslistMem_ClassID;
+//Class Select---->Class list memeber---->Class Name
+extern char * p_ClassSel_ClasslistMem_ClassName;
+//Class Select---->Class list memeber---->Teacher Name
+extern char * p_ClassSel_ClasslistMem_TecherName;
+//Class Select---->Buttons---->Refresh class list
+extern char * p_ClassSel_Butt_Refresh;
+//Class Select---->Buttons---->Cancel
+extern char * p_ClassSel_Butt_Cancel;
+//Class Select---->Buttons---->OK Join
+extern char * p_ClassSel_Butt_OKJoin;
+#endif

Added: incubator/bluesky/trunk/RealClass/DTU/src/mcu_para.conf
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/RealClass/DTU/src/mcu_para.conf?rev=818464&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bluesky/trunk/RealClass/DTU/src/mcu_para.conf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/bluesky/trunk/RealClass/DTU/src/mcu_setpara.conf
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/RealClass/DTU/src/mcu_setpara.conf?rev=818464&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bluesky/trunk/RealClass/DTU/src/mcu_setpara.conf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/bluesky/trunk/RealClass/DTU/src/mcu_userpara.conf
URL: http://svn.apache.org/viewvc/incubator/bluesky/trunk/RealClass/DTU/src/mcu_userpara.conf?rev=818464&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bluesky/trunk/RealClass/DTU/src/mcu_userpara.conf
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message