32 |
32 |
33 #include <cx/allocator.h> |
33 #include <cx/allocator.h> |
34 #include <cx/mempool.h> |
34 #include <cx/mempool.h> |
35 |
35 |
36 #include "../common/context.h" |
36 #include "../common/context.h" |
|
37 #include "../common/document.h" |
37 #include "../common/toolbar.h" |
38 #include "../common/toolbar.h" |
38 |
39 |
39 #include "icons.h" |
40 #include "icons.h" |
40 |
41 |
41 #include "MainWindow.xaml.h" |
42 #include "MainWindow.xaml.h" |
155 void ui_init(const char* appname, int argc, char** argv) { |
156 void ui_init(const char* appname, int argc, char** argv) { |
156 application_name = appname; |
157 application_name = appname; |
157 |
158 |
158 //ui_appsdk_bootstrap(); |
159 //ui_appsdk_bootstrap(); |
159 |
160 |
|
161 uic_init_global_context(); |
|
162 uic_docmgr_init(); |
160 uic_toolbar_init(); |
163 uic_toolbar_init(); |
161 } |
164 } |
162 |
165 |
163 const char* ui_appname() { |
166 const char* ui_appname() { |
164 return application_name; |
167 return application_name; |