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_STARTUP_SCREEN_H__ 00032 #define __ILIAD_STARTUP_SCREEN_H__ 00033 00034 #include <sys/types.h> 00035 #include "background.h" 00036 00037 #ifdef __cplusplus 00038 extern "C" 00039 { 00040 #endif 00041 00042 #define STARTUP_ITEM_PADDING_TOP 10 00043 #define STARTUP_ITEM_PADDING_BOTTOM 10 00044 #define STARTUP_ITEM_PADDING_LEFT 13 00045 #define STARTUP_ITEM_PADDING_RIGHT 13 00046 00047 #define STARTUP_ITEM_SPACING 10 00048 00049 #define STARTUP_BEHAVIOUR_HEIGHT 300 00050 #define STARTUP_CALIBRATION_HEIGHT 115 00051 00052 #define STARTUP_LABEL_WIDTH (TITLE_MIN_WIDTH \ 00053 - STARTUP_ITEM_PADDING_LEFT \ 00054 - STARTUP_ITEM_PADDING_RIGHT) 00055 00056 #define STARTUP_BUTTON_WIDTH 310 00057 #define STARTUP_BUTTON_HEIGHT 27 00058 00059 #define STARTUP_BUTTON_NUMBER 9 00060 00061 typedef struct 00062 { 00063 GtkWidget* item; 00064 GtkWidget* label; 00065 GtkWidget* selection; 00066 GtkWidget* buttons[STARTUP_BUTTON_NUMBER]; 00067 }gtkBehaviour_t; 00068 00069 typedef struct 00070 { 00071 GtkWidget* item; 00072 GtkWidget* label; 00073 GtkWidget* button; 00074 }gtkCalibration_t; 00075 00076 typedef struct 00077 { 00078 GtkWidget* widget; 00079 gtkBehaviour_t behaviour; 00080 gtkCalibration_t calibration; 00081 }gtkStartUp_t; 00082 00083 GtkWidget *iLiad_startup_screen_create(void); 00084 void iLiad_startup_screen_set_text(void); 00085 void iLiad_startup_screen_display_data(void); 00086 00087 pid_t get_xtscal_pid(); 00088 void handle_xtscal_quit(); 00089 void stop_xtscal(); 00090 00091 #ifdef __cplusplus 00092 } 00093 #endif 00094 00095 #endif //__ILIAD_STARTUP_SCREEN_H__
1.5.6