1 /* Maemo version or not? */ 2 //#define HILDONIZED 3 4 #include <gtk/gtk.h> 5 6 #ifdef HILDONIZED 7 #include <hildon-widgets/hildon-app.h> 8 #include <hildon-widgets/hildon-appview.h> 9 #endif 10 11 /* Application version info */ 12 #define APP_VERSION "GtkPerf 0.40" 13 14 /* Default test count */ 15 #define DEFAULT_COUNT 100 16 17 /* D-BUS service name */ 18 #define APPLICATION_DBUS_SERVICE "gtkperf" 19 20 #ifndef APPDATA_H 21 #define APPDATA_H 22 23 #ifdef HAVE_CONFIG 24 #include <config.h> 25 #endif 26 27 /* 28 Application data 29 */ 30 typedef struct _AppData AppData; 31 struct _AppData 32 { 33 34 35 36 #ifdef HILDONIZED 37 HildonApp *app; 38 HildonAppView *window_main; 39 #else 40 GtkWidget *window_main; 41 #endif 42 43 GtkNotebook *notebook_main; 44 GtkWidget *combobox_testtype; 45 GtkWidget *statusbar_main; 46 GtkWidget *spinbutton_count; 47 GtkWidget *textview_info; 48 GtkTextBuffer *textview_info_buffer; 49 GtkTextMark *end_mark_info; 50 GtkWidget *textview_help; 51 52 GtkWidget *label_entrys; 53 GtkWidget *entry_entrys; 54 GtkWidget *combobox_entrys; 55 GtkWidget *comboboxentry_entrys; 56 GtkWidget *spinbutton_entrys; 57 GtkWidget *progressbar_entrys; 58 59 GtkWidget *label_buttons; 60 GtkWidget *togglebutton_buttons; 61 GtkWidget *checkbutton_buttons; 62 GtkWidget *radiobutton_buttons_1; 63 GtkWidget *radiobutton_buttons_2; 64 65 GtkWidget *label_text; 66 GtkWidget *textview_text; 67 GtkTextBuffer *textview_text_buffer; 68 GtkWidget *scrolledwindow_text; 69 70 GtkWidget *label_drawing; 71 GtkWidget *drawingarea_drawing; 72 GdkPixbuf *pixbuf_drawing; 73 GdkGC *graphical_context; 74 GdkColor current_color; 75 76 GtkScrollType textview_text_scroll_type; 77 78 guint idle_id; 79 guint test_idle_id; 80 double time_start_all; 81 double time_start_test; 82 int test_count; 83 int test_count_selected; 84 int test_type; 85 int test_state_data; 86 87 gboolean test_only_one; 88 gboolean scripted; 89 }; 90 91 #endif /* APPDATA_H */ 92