#include "background.h"

Go to the source code of this file.
Classes | |
| struct | gtk_enable_timedids_t |
| struct | gtk_time_entry_t |
| struct | gtk_time_settings_t |
| struct | gtk_timedids_screen_t |
Defines | |
| #define | TIMEDIDS_ITEM_SPACING 10 |
| #define | ENABLE_TIMEDIDS_HEIGHT 115 |
| #define | TIMEDIDS_SCREEN_ITEM_PADDING_TOP 10 |
| #define | TIMEDIDS_SCREEN_ITEM_PADDING_BOTTOM 10 |
| #define | TIMEDIDS_SCREEN_ITEM_PADDING_LEFT 13 |
| #define | TIMEDIDS_SCREEN_ITEM_PADDING_RIGHT 13 |
| #define | ENABLE_TIMEDIDS_LABEL_WIDTH |
| #define | ENABLE_TIMEDIDS_ITEM_SPACING 15 |
| #define | TIME_SETTINGS_HEIGHT 230 |
| #define | TIME_SETTINGS_ITEM_SPACING 10 |
| #define | TIME_SETTINGS_CONNECTAT_WIDTH 120 |
| #define | TIME_SETTINGS_COLON_WIDTH 10 |
| #define | TIME_SETTINGS_ENTRY_WIDTH 40 |
| #define | TIME_SETTINGS_ENTRY_HEIGHT 30 |
Functions | |
| GtkWidget * | iLiad_timedids_screen_create (void) |
| void | iLiad_timedids_screen_set_text (void) |
| void | iLiad_timedids_screen_data_display (void) |
| void | iLiad_timedids_handle_page_switch (void) |
Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.
User interface for user to set the timed iDS connection
Definition in file iLiadTimediDSScreen.h.
| #define ENABLE_TIMEDIDS_HEIGHT 115 |
Definition at line 42 of file iLiadTimediDSScreen.h.
| #define ENABLE_TIMEDIDS_ITEM_SPACING 15 |
Definition at line 52 of file iLiadTimediDSScreen.h.
| #define ENABLE_TIMEDIDS_LABEL_WIDTH |
Value:
Definition at line 49 of file iLiadTimediDSScreen.h.
| #define TIME_SETTINGS_COLON_WIDTH 10 |
Definition at line 56 of file iLiadTimediDSScreen.h.
| #define TIME_SETTINGS_CONNECTAT_WIDTH 120 |
Definition at line 55 of file iLiadTimediDSScreen.h.
| #define TIME_SETTINGS_ENTRY_HEIGHT 30 |
Definition at line 58 of file iLiadTimediDSScreen.h.
| #define TIME_SETTINGS_ENTRY_WIDTH 40 |
Definition at line 57 of file iLiadTimediDSScreen.h.
| #define TIME_SETTINGS_HEIGHT 230 |
Definition at line 53 of file iLiadTimediDSScreen.h.
| #define TIME_SETTINGS_ITEM_SPACING 10 |
Definition at line 54 of file iLiadTimediDSScreen.h.
| #define TIMEDIDS_ITEM_SPACING 10 |
Definition at line 41 of file iLiadTimediDSScreen.h.
| #define TIMEDIDS_SCREEN_ITEM_PADDING_BOTTOM 10 |
Definition at line 45 of file iLiadTimediDSScreen.h.
| #define TIMEDIDS_SCREEN_ITEM_PADDING_LEFT 13 |
Definition at line 46 of file iLiadTimediDSScreen.h.
| #define TIMEDIDS_SCREEN_ITEM_PADDING_RIGHT 13 |
Definition at line 47 of file iLiadTimediDSScreen.h.
| #define TIMEDIDS_SCREEN_ITEM_PADDING_TOP 10 |
Definition at line 44 of file iLiadTimediDSScreen.h.
| void iLiad_timedids_handle_page_switch | ( | void | ) |
Definition at line 391 of file iLiadTimediDSScreen.c.
00392 { 00393 // If disabled timed-iDS, toggle button 00394 gtk_enable_timedids_t* enable_timedids = &g_timedids_screen->enable_timedids; 00395 00396 if (!g_cur_settings->enable) 00397 { 00398 gtk_toggle_button_set_active(enable_timedids->button_timedids_off, TRUE); 00399 } 00400 }
| GtkWidget* iLiad_timedids_screen_create | ( | void | ) |
Definition at line 75 of file iLiadTimediDSScreen.c.
00076 { 00077 GtkWidget* vbox; 00078 GtkWidget* enable_timedids; 00079 GtkWidget* settime; 00080 GtkWidget* info; 00081 00082 ST_LOGPRINTF("entry"); 00083 00084 vbox = gtk_vbox_new(FALSE, TIMEDIDS_ITEM_SPACING); 00085 00086 g_timedids_screen = g_new0(gtk_timedids_screen_t, 1); 00087 00088 enable_timedids = create_enable_timedids(&g_timedids_screen->enable_timedids); 00089 gtk_box_pack_start(GTK_BOX(vbox), enable_timedids, FALSE, FALSE, 0); 00090 00091 settime = create_time_settings(&g_timedids_screen->settime); 00092 gtk_box_pack_start(GTK_BOX(vbox), settime, FALSE, FALSE, 0); 00093 00094 info = gtk_infoitem_new(FALSE); 00095 gtk_box_pack_start(GTK_BOX(vbox), info, FALSE, FALSE, 0); 00096 g_timedids_screen->infoitem = info; 00097 00098 // show widgets 00099 gtk_widget_show(vbox); 00100 return vbox; 00101 }

| void iLiad_timedids_screen_data_display | ( | void | ) |
Definition at line 351 of file iLiadTimediDSScreen.c.
00352 { 00353 ST_LOGPRINTF("entry"); 00354 00355 gtk_enable_timedids_t* enable_timedids = &g_timedids_screen->enable_timedids; 00356 gtk_time_settings_t* settime = &g_timedids_screen->settime; 00357 00358 g_cur_settings = get_current_timedids_settings(); 00359 00360 // Enable timed-iDS or not 00361 if (g_cur_settings->enable) 00362 { 00363 gtk_toggle_button_set_active(enable_timedids->button_timedids_on, TRUE); 00364 } 00365 else 00366 { 00367 gtk_toggle_button_set_active(enable_timedids->button_timedids_off, TRUE); 00368 } 00369 00370 // Time set 00371 int i; 00372 char hh[4], mm[4]; 00373 for (i=0; i<g_cur_settings->timeCnt; i++) 00374 { 00375 snprintf(hh, 4, "%02d", g_cur_settings->timeSet[i] / 3600); 00376 gtk_entry_set_text(GTK_ENTRY(settime->time_entries[i].entry_hour), hh); 00377 00378 snprintf(mm, 4, "%02d", g_cur_settings->timeSet[i] / 60 % 60); 00379 gtk_entry_set_text(GTK_ENTRY(settime->time_entries[i].entry_minute), mm); 00380 } 00381 00382 // Include software updates while connected to iDS 00383 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(settime->check_software_update), 00384 g_cur_settings->swUpdate); 00385 00386 // Switch off iLiad again after waking iLiad up 00387 gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(settime->check_auto_shutdown), 00388 g_cur_settings->switchOff); 00389 }

| void iLiad_timedids_screen_set_text | ( | void | ) |
Definition at line 312 of file iLiadTimediDSScreen.c.
00313 { 00314 ST_LOGPRINTF("entry"); 00315 if (g_timedids_screen == NULL) 00316 { 00317 return; 00318 } 00319 00320 gtk_enable_timedids_t* enable_timedids = &g_timedids_screen->enable_timedids; 00321 gtk_time_settings_t* settime = &g_timedids_screen->settime; 00322 00323 gtk_settingitem_set_header_text(GTK_SETTINGITEM(enable_timedids->settingitem), 00324 _("Time to connect to iDS")); 00325 gtk_label_set_text(GTK_LABEL(enable_timedids->label_desc), 00326 _("Enabling \"time to connection\" causes the iLiad to download content from the iDS at a set time.")); 00327 00328 gtk_button_set_label(GTK_BUTTON(enable_timedids->button_timedids_on), _("On")); 00329 gtk_button_set_label(GTK_BUTTON(enable_timedids->button_timedids_off), _("Off")); 00330 00331 gtk_settingitem_set_header_text(GTK_SETTINGITEM(settime->settingitem), 00332 _("Set the time")); 00333 gtk_label_set_text(GTK_LABEL(settime->label_desc), _("The iLiad will connect to iDS at the set time:")); 00334 00335 int i; 00336 for (i=0; i<TIME_OPTIONS; i++) 00337 { 00338 gtk_label_set_text(GTK_LABEL(settime->time_entries[i].label_connectat), _("Connect at")); 00339 } 00340 00341 gtk_button_set_label(GTK_BUTTON(settime->check_software_update), 00342 _("Include software downloads while connected to iDS.")); 00343 gtk_button_set_label(GTK_BUTTON(settime->check_auto_shutdown), 00344 _("Switch off again after waking up the device.")); 00345 00346 // Information text 00347 gtk_infoitem_set_text(GTK_INFOITEM(g_timedids_screen->infoitem), 00348 _("When the iLiad is switched off, it will 'wake-up' to download content from the iDS.")); 00349 }

1.5.6