00001 /* 00002 * This file is part of settings. 00003 * 00004 * settings is free software: you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation, either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * settings is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00016 */ 00017 00031 #ifndef __ILIAD_TIMEDIDS_SCREEN_H__ 00032 #define __ILIAD_TIMEDIDS_SCREEN_H__ 00033 00034 #include "background.h" 00035 00036 #ifdef __cplusplus 00037 extern "C" 00038 { 00039 #endif 00040 00041 #define TIMEDIDS_ITEM_SPACING 10 00042 #define ENABLE_TIMEDIDS_HEIGHT 115 00043 00044 #define TIMEDIDS_SCREEN_ITEM_PADDING_TOP 10 00045 #define TIMEDIDS_SCREEN_ITEM_PADDING_BOTTOM 10 00046 #define TIMEDIDS_SCREEN_ITEM_PADDING_LEFT 13 00047 #define TIMEDIDS_SCREEN_ITEM_PADDING_RIGHT 13 00048 00049 #define ENABLE_TIMEDIDS_LABEL_WIDTH (TITLE_MIN_WIDTH \ 00050 - TIMEDIDS_SCREEN_ITEM_PADDING_LEFT \ 00051 - TIMEDIDS_SCREEN_ITEM_PADDING_RIGHT) 00052 #define ENABLE_TIMEDIDS_ITEM_SPACING 15 00053 #define TIME_SETTINGS_HEIGHT 230 00054 #define TIME_SETTINGS_ITEM_SPACING 10 00055 #define TIME_SETTINGS_CONNECTAT_WIDTH 120 00056 #define TIME_SETTINGS_COLON_WIDTH 10 00057 #define TIME_SETTINGS_ENTRY_WIDTH 40 00058 #define TIME_SETTINGS_ENTRY_HEIGHT 30 00059 00060 typedef struct 00061 { 00062 GtkWidget* settingitem; 00063 GtkWidget* label_desc; 00064 GtkToggleButton* button_timedids_on; 00065 GtkToggleButton* button_timedids_off; 00066 }gtk_enable_timedids_t; 00067 00068 typedef struct 00069 { 00070 GtkWidget* label_connectat; 00071 GtkWidget* entry_hour; 00072 GtkWidget* entry_minute; 00073 }gtk_time_entry_t; 00074 00075 typedef struct 00076 { 00077 GtkWidget* settingitem; 00078 GtkWidget* label_desc; 00079 gtk_time_entry_t time_entries[TIME_OPTIONS]; 00080 GtkWidget* check_software_update; 00081 GtkWidget* check_auto_shutdown; 00082 }gtk_time_settings_t; 00083 00084 typedef struct 00085 { 00086 gtk_enable_timedids_t enable_timedids; 00087 gtk_time_settings_t settime; 00088 GtkWidget* infoitem; 00089 }gtk_timedids_screen_t; 00090 00091 GtkWidget* iLiad_timedids_screen_create(void); 00092 void iLiad_timedids_screen_set_text(void); 00093 void iLiad_timedids_screen_data_display(void); 00094 void iLiad_timedids_handle_page_switch(void); 00095 00096 #ifdef __cplusplus 00097 } 00098 #endif 00099 #endif //__ILIAD_TIMEDIDS_SCREEN_H__
1.5.6