83 ui_menuitem("Dokument 2", action_doc2, NULL); |
83 ui_menuitem("Dokument 2", action_doc2, NULL); |
84 ui_menuseparator(); |
84 ui_menuseparator(); |
85 ui_checkitem_nv("Check", "check1"); |
85 ui_checkitem_nv("Check", "check1"); |
86 ui_menuitem("Close", action_close, NULL); |
86 ui_menuitem("Close", action_close, NULL); |
87 |
87 |
|
88 ui_toolitem_st("new", UI_STOCK_NEW, action_new, NULL); |
|
89 ui_toolitem_st("open", UI_STOCK_OPEN, action_open, NULL); |
|
90 ui_toolitem_st("close", UI_STOCK_CLOSE, action_close, NULL); |
|
91 |
|
92 ui_toolbar_add_default("new"); |
|
93 ui_toolbar_add_default("open"); |
|
94 ui_toolbar_add_default("close"); |
|
95 |
|
96 |
88 UiObject *window = ui_window("Mod0", NULL); |
97 UiObject *window = ui_window("Mod0", NULL); |
89 TestWindowData *wdata = malloc(sizeof(TestWindowData)); |
98 TestWindowData *wdata = malloc(sizeof(TestWindowData)); |
90 window->window = wdata; |
99 window->window = wdata; |
91 |
100 |
92 TestDocument *doc1 = ui_document_new(sizeof(TestDocument)); |
101 TestDocument *doc1 = ui_document_new(sizeof(TestDocument)); |