
Go to the source code of this file.
Defines | |
| #define | PC_CONNECT_SCREEN_WIDTH 666 |
| #define | PC_CONNECT_SCREEN_PADDING_TOP 10 |
| #define | PC_CONNECT_SCREEN_PADDING_BOTTOM 10 |
| #define | PC_CONNECT_SCREEN_PADDING_LEFT 13 |
| #define | PC_CONNECT_SCREEN_PADDING_RIGHT 13 |
| #define | PC_CONNECT_SCREEN_SPACING_H 5 |
| #define | PC_CONNECT_SCREEN_SPACING_V 5 |
| #define | PC_CONNECT_PCNAME_HEIGHT 115 |
| #define | PC_CONNECT_SHARENAME_HEIGHT 115 |
| #define | PC_CONNECT_WORKGROUP_HEIGHT 115 |
| #define | PC_CONNECT_USER_PASSWORD_BK_WIDTH 666 |
| #define | PC_CONNECT_USER_PASSWORD_BK_HEIGHT 115 |
| #define | PC_CONNECT_SCREEN_USER_PASSWORD_SPACING_V 5 |
| #define | PC_CONNECT_SCREEN_USER_PASSWORD_SPACING_H 50 |
| #define | PC_CONNECT_INPUT_ENTRY_WIDTH 200 |
| #define | PC_CONNECT_INPUT_ENTRY_HEIGHT 30 |
Functions | |
| GtkWidget * | iLiad_pc_connect_screen_create (void) |
| void | iLiad_pc_connect_screen_set_text (void) |
| void | iLiad_pc_connect_screen_display_settings () |
Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.
Definition in file iLiadPCConnectScreen.h.
| #define PC_CONNECT_INPUT_ENTRY_HEIGHT 30 |
Definition at line 53 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_INPUT_ENTRY_WIDTH 200 |
Definition at line 52 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_PCNAME_HEIGHT 115 |
Definition at line 42 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_SCREEN_PADDING_BOTTOM 10 |
Definition at line 35 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_SCREEN_PADDING_LEFT 13 |
Definition at line 36 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_SCREEN_PADDING_RIGHT 13 |
Definition at line 37 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_SCREEN_PADDING_TOP 10 |
Definition at line 34 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_SCREEN_SPACING_H 5 |
Definition at line 39 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_SCREEN_SPACING_V 5 |
Definition at line 40 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_SCREEN_USER_PASSWORD_SPACING_H 50 |
Definition at line 50 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_SCREEN_USER_PASSWORD_SPACING_V 5 |
Definition at line 49 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_SCREEN_WIDTH 666 |
Definition at line 32 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_SHARENAME_HEIGHT 115 |
Definition at line 43 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_USER_PASSWORD_BK_HEIGHT 115 |
Definition at line 47 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_USER_PASSWORD_BK_WIDTH 666 |
Definition at line 46 of file iLiadPCConnectScreen.h.
| #define PC_CONNECT_WORKGROUP_HEIGHT 115 |
Definition at line 44 of file iLiadPCConnectScreen.h.
| GtkWidget* iLiad_pc_connect_screen_create | ( | void | ) |
Definition at line 129 of file iLiadPCConnectScreen.c.
00130 { 00131 GtkWidget *item; 00132 GtkWidget *top_vbox; 00133 GtkWidget *vbox; 00134 GtkWidget *pcname; 00135 GtkWidget *pcname_info; 00136 GtkWidget *sharename; 00137 GtkWidget *sharename_info; 00138 GtkWidget *workgroup; 00139 GtkWidget *workgroup_info; 00140 GtkWidget *user_password; 00141 GtkWidget *user_password_info; 00142 00143 ST_LOGPRINTF("entry"); 00144 00145 // g_edit_pc_connect 00146 item = gtk_settingitem_new(""); 00147 gtk_widget_set_size_request(item, PC_CONNECT_SCREEN_WIDTH, -1); 00148 // top_vbox 00149 top_vbox = gtk_vbox_new(FALSE, PC_CONNECT_SCREEN_SPACING_V); 00150 gtk_settingitem_add_details(GTK_SETTINGITEM(item), top_vbox); 00151 gtk_widget_show(top_vbox); 00152 // vbox 00153 vbox = gtk_vbox_new(FALSE, 1); 00154 gtk_box_pack_start(GTK_BOX(top_vbox), vbox, FALSE, FALSE, 0); 00155 gtk_widget_show(vbox); 00156 // pcname 00157 pcname = gtk_settingitem_textentry_new(); 00158 gtk_widget_set_size_request(pcname, -1, PC_CONNECT_PCNAME_HEIGHT); 00159 gtk_box_pack_start(GTK_BOX(vbox), pcname, FALSE, FALSE, 0); 00160 // pcname_info 00161 pcname_info = gtk_infoitem_new(TRUE); 00162 gtk_box_pack_start(GTK_BOX(vbox), pcname_info, FALSE, FALSE, 0); 00163 // vbox 00164 vbox = gtk_vbox_new(FALSE, 1); 00165 gtk_box_pack_start(GTK_BOX(top_vbox), vbox, FALSE, FALSE, 0); 00166 gtk_widget_show(vbox); 00167 // sharename 00168 sharename = gtk_settingitem_textentry_new(); 00169 gtk_widget_set_size_request(sharename, -1, PC_CONNECT_SHARENAME_HEIGHT); 00170 gtk_box_pack_start(GTK_BOX(vbox), sharename, FALSE, FALSE, 0); 00171 // sharename_info 00172 sharename_info = gtk_infoitem_new(TRUE); 00173 gtk_box_pack_start(GTK_BOX(vbox), sharename_info, FALSE, FALSE, 0); 00174 // vbox 00175 vbox = gtk_vbox_new(FALSE, 1); 00176 gtk_box_pack_start(GTK_BOX(top_vbox), vbox, FALSE, FALSE, 0); 00177 gtk_widget_show(vbox); 00178 // workgroup 00179 workgroup = gtk_settingitem_textentry_new(); 00180 gtk_widget_set_size_request(workgroup, -1, PC_CONNECT_WORKGROUP_HEIGHT); 00181 gtk_box_pack_start(GTK_BOX(vbox), workgroup, FALSE, FALSE, 0); 00182 // workgroup_info 00183 workgroup_info = gtk_infoitem_new(TRUE); 00184 gtk_box_pack_start(GTK_BOX(vbox), workgroup_info, FALSE, FALSE, 0); 00185 // vbox 00186 vbox = gtk_vbox_new(FALSE, 1); 00187 gtk_box_pack_start(GTK_BOX(top_vbox), vbox, FALSE, FALSE, 0); 00188 gtk_widget_show(vbox); 00189 // user_password widget 00190 user_password = create_user_password_widget(); 00191 gtk_box_pack_start(GTK_BOX(vbox), user_password, FALSE, FALSE, 0); 00192 // user_password_info 00193 user_password_info = gtk_infoitem_new(TRUE); 00194 gtk_box_pack_start(GTK_BOX(vbox), user_password_info, FALSE, FALSE, 0); 00195 00196 // signals functions 00197 gtk_settingitem_textentry_callback_on_changed(GTK_SETTINGITEM_TEXTENTRY(pcname), on_pcname_changed); 00198 gtk_settingitem_textentry_callback_on_validate(GTK_SETTINGITEM_TEXTENTRY(pcname), on_pcname_validate); 00199 gtk_settingitem_textentry_callback_on_button_press(GTK_SETTINGITEM_TEXTENTRY(pcname), on_pcname_button_press); 00200 gtk_infoitem_callback_on_buttonclicked(GTK_INFOITEM(pcname_info), on_pcname_info_button_clicked); 00201 00202 gtk_settingitem_textentry_callback_on_changed(GTK_SETTINGITEM_TEXTENTRY(sharename), on_sharename_changed); 00203 gtk_settingitem_textentry_callback_on_button_press(GTK_SETTINGITEM_TEXTENTRY(sharename), on_sharename_button_press); 00204 gtk_infoitem_callback_on_buttonclicked(GTK_INFOITEM(sharename_info), on_sharename_info_button_clicked); 00205 00206 gtk_settingitem_textentry_callback_on_changed(GTK_SETTINGITEM_TEXTENTRY(workgroup), on_workgroup_changed); 00207 gtk_settingitem_textentry_callback_on_validate(GTK_SETTINGITEM_TEXTENTRY(workgroup), on_workgroup_validate); 00208 gtk_settingitem_textentry_callback_on_button_press(GTK_SETTINGITEM_TEXTENTRY(workgroup), on_workgroup_button_press); 00209 gtk_infoitem_callback_on_buttonclicked(GTK_INFOITEM(workgroup_info), on_workgroup_info_button_clicked); 00210 00211 gtk_infoitem_callback_on_buttonclicked(GTK_INFOITEM(user_password_info), on_user_password_info_button_clicked); 00212 00213 // global variables 00214 g_edit_pc_connect = item; 00215 g_pcname = pcname; 00216 g_pcname_info = pcname_info; 00217 g_sharename = sharename; 00218 g_sharename_info = sharename_info; 00219 g_workgroup = workgroup; 00220 g_workgroup_info = workgroup_info; 00221 g_user_password = user_password; 00222 g_user_password_info = user_password_info; 00223 // show hide widgets 00224 gtk_widget_show(item); 00225 gtk_widget_show(pcname); 00226 gtk_widget_hide(pcname_info); 00227 gtk_widget_show(sharename); 00228 gtk_widget_hide(sharename_info); 00229 gtk_widget_show(workgroup); 00230 gtk_widget_hide(workgroup_info); 00231 gtk_widget_show(user_password); 00232 gtk_widget_hide(user_password_info); 00233 00234 ST_LOGPRINTF("done"); 00235 // return 00236 return g_edit_pc_connect; 00237 }

| void iLiad_pc_connect_screen_display_settings | ( | ) |
Definition at line 423 of file iLiadPCConnectScreen.c.
00424 { 00425 ST_LOGPRINTF("entry"); 00426 00427 const regPCProfile_t *setting = iLiad_pc_connect_get_profiledata(0); 00428 00429 // set screen objects 00430 if (NULL == setting) 00431 { 00432 gtk_settingitem_textentry_settext(GTK_SETTINGITEM_TEXTENTRY(g_pcname), ""); 00433 gtk_settingitem_textentry_settext(GTK_SETTINGITEM_TEXTENTRY(g_sharename), ""); 00434 gtk_settingitem_textentry_settext(GTK_SETTINGITEM_TEXTENTRY(g_workgroup), ""); 00435 gtk_entry_set_text(GTK_ENTRY(g_user_entry), ""); 00436 gtk_entry_set_text(GTK_ENTRY(g_password_entry), ""); 00437 } 00438 else 00439 { 00440 gtk_settingitem_textentry_settext(GTK_SETTINGITEM_TEXTENTRY(g_pcname), setting->pcname ); 00441 gtk_settingitem_textentry_settext(GTK_SETTINGITEM_TEXTENTRY(g_sharename), setting->sharename); 00442 gtk_settingitem_textentry_settext(GTK_SETTINGITEM_TEXTENTRY(g_workgroup), setting->workgroup); 00443 gtk_entry_set_text(GTK_ENTRY(g_user_entry), setting->username); 00444 gtk_entry_set_text(GTK_ENTRY(g_password_entry), setting->password); 00445 } 00446 00447 // set screen mode 00448 iLiad_pc_connect_set_screenmode(e_screen_show_all); 00449 }

| void iLiad_pc_connect_screen_set_text | ( | void | ) |
Definition at line 347 of file iLiadPCConnectScreen.c.
00348 { 00349 ST_LOGPRINTF("entry"); 00350 00351 gchar *info_proceed = _("Proceed"); 00352 00353 // title 00354 if (g_edit_pc_connect) 00355 { 00356 gtk_settingitem_set_header_text(GTK_SETTINGITEM(g_edit_pc_connect), 00357 _("iLiad settings / Setting for computer connection ")); 00358 } 00359 // pcname 00360 if (g_pcname) 00361 { 00362 gtk_settingitem_textentry_setlabel(GTK_SETTINGITEM_TEXTENTRY(g_pcname), 00363 _("STEP 1: Please type the name of your computer.")); 00364 } 00365 if (g_pcname_info) 00366 { 00367 gtk_infoitem_set_text(GTK_INFOITEM(g_pcname_info), 00368 _("You can create a connection between the iLiad" 00369 " and your computer by entering the specifications" 00370 " of your PC.\n" 00371 "The \"full computer name\" is located at the system" 00372 " properties of your computer.")); 00373 gtk_infoitem_set_buttontext(GTK_INFOITEM(g_pcname_info), info_proceed); 00374 } 00375 // sharename 00376 if (g_sharename) 00377 { 00378 gtk_settingitem_textentry_setlabel(GTK_SETTINGITEM_TEXTENTRY(g_sharename), 00379 _("STEP 2: Please enter the name of the \"shared\" destination folder.")); 00380 } 00381 if (g_sharename_info) 00382 { 00383 gtk_infoitem_set_text(GTK_INFOITEM(g_sharename_info), 00384 _("Create a destination folder on your computer. In the folder properties" 00385 " you can \"share this folder\".")); 00386 gtk_infoitem_set_buttontext(GTK_INFOITEM(g_sharename_info), info_proceed); 00387 } 00388 // workgroup 00389 if (g_workgroup) 00390 { 00391 gtk_settingitem_textentry_setlabel(GTK_SETTINGITEM_TEXTENTRY(g_workgroup), 00392 _("STEP 3: Please enter the domain group / work group of your computer.")); 00393 } 00394 if (g_workgroup_info) 00395 { 00396 gtk_infoitem_set_text(GTK_INFOITEM(g_workgroup_info), 00397 _("When the computer is part of a business network, you can enter the domain group.\n" 00398 "In most cases you can leave this entry field blank.")); 00399 gtk_infoitem_set_buttontext(GTK_INFOITEM(g_workgroup_info), info_proceed); 00400 } 00401 if (g_user_password_label) 00402 { 00403 gtk_label_set_text(GTK_LABEL(g_user_password_label), _("STEP 4: Please enter the username and password of your computer.")); 00404 } 00405 if (g_user_label) 00406 { 00407 gtk_label_set_text(GTK_LABEL(g_user_label), _("User name")); 00408 } 00409 if (g_password_label) 00410 { 00411 gtk_label_set_text(GTK_LABEL(g_password_label), _("Password")); 00412 } 00413 if (g_user_password_info) 00414 { 00415 gtk_infoitem_set_text(GTK_INFOITEM(g_user_password_info), 00416 _("You can leave this entry field blank when you didn't create a user name and password.")); 00417 gtk_infoitem_set_buttontext(GTK_INFOITEM(g_user_password_info), info_proceed); 00418 } 00419 00420 ST_LOGPRINTF("done"); 00421 }

1.5.6