34 #include "tree.h" |
34 #include "tree.h" |
35 |
35 |
36 #include "container.h" |
36 #include "container.h" |
37 #include "../common/object.h" |
37 #include "../common/object.h" |
38 #include "../common/context.h" |
38 #include "../common/context.h" |
39 #include <ucx/utils.h> |
39 #include <cx/utils.h> |
|
40 #include <cx/compare.h> |
|
41 #include <cx/printf.h> |
40 |
42 |
41 UIWIDGET ui_table_var(UiObject *obj, UiVar *var, UiModel *model, UiListCallbacks cb) { |
43 UIWIDGET ui_table_var(UiObject *obj, UiVar *var, UiModel *model, UiListCallbacks cb) { |
42 // TODO: check if modelinfo is complete |
44 // TODO: check if modelinfo is complete |
43 |
45 |
44 Arg args[32]; |
46 Arg args[32]; |
117 width = w; |
119 width = w; |
118 } |
120 } |
119 data = list->next(list); |
121 data = list->next(list); |
120 } |
122 } |
121 |
123 |
122 UiTableView *tableview = ucx_mempool_malloc(obj->ctx->mempool, sizeof(UiTableView)); |
124 UiTableView *tableview = cxMalloc(obj->ctx->allocator, sizeof(UiTableView)); |
123 tableview->widget = container; |
125 tableview->widget = container; |
124 tableview->var = var; |
126 tableview->var = var; |
125 tableview->model = model; |
127 tableview->model = model; |
126 |
128 |
127 // set new XmContainer width |
129 // set new XmContainer width |