| 41 static const char *application_name; |
41 static const char *application_name; |
| 42 |
42 |
| 43 static ui_callback startup_func; |
43 static ui_callback startup_func; |
| 44 static void *startup_data; |
44 static void *startup_data; |
| 45 static ui_callback open_func; |
45 static ui_callback open_func; |
| 46 void *open_data; |
46 static void *open_data; |
| 47 static ui_callback exit_func; |
47 static ui_callback exit_func; |
| 48 void *exit_data; |
48 static void *exit_data; |
| 49 |
49 |
| 50 static int is_toplevel_realized = 0; |
50 static int is_toplevel_realized = 0; |
| 51 |
51 |
| 52 int app_argc; |
52 static int app_argc; |
| 53 char **app_argv; |
53 static char **app_argv; |
| 54 QApplication *application = NULL; |
54 static QApplication *application = NULL; |
| |
55 |
| |
56 static UiBool exit_on_shutdown; |
| 55 |
57 |
| 56 void ui_init(const char *appname, int argc, char **argv) { |
58 void ui_init(const char *appname, int argc, char **argv) { |
| 57 application_name = appname; |
59 application_name = appname; |
| 58 |
60 |
| 59 app_argc = argc; |
61 app_argc = argc; |