| 39 #include <QTabWidget> |
39 #include <QTabWidget> |
| 40 #include <QStackedWidget> |
40 #include <QStackedWidget> |
| 41 #include <QSplitter> |
41 #include <QSplitter> |
| 42 |
42 |
| 43 #define UI_APPLY_LAYOUT(layout, args) \ |
43 #define UI_APPLY_LAYOUT(layout, args) \ |
| 44 layout.fill = args.fill; \ |
44 layout.fill = args->fill; \ |
| 45 layout.hexpand = args.hexpand; \ |
45 layout.hexpand = args->hexpand; \ |
| 46 layout.vexpand = args.vexpand; \ |
46 layout.vexpand = args->vexpand; \ |
| 47 layout.hfill = args.hfill; \ |
47 layout.hfill = args->hfill; \ |
| 48 layout.vfill = args.vfill; \ |
48 layout.vfill = args->vfill; \ |
| 49 layout.override_defaults = args.override_defaults; \ |
49 layout.override_defaults = args->override_defaults; \ |
| 50 layout.colspan = args.colspan; \ |
50 layout.colspan = args->colspan; \ |
| 51 layout.rowspan = args.rowspan |
51 layout.rowspan = args->rowspan |
| 52 |
52 |
| 53 #define ui_reset_layout(layout) memset(&(layout), 0, sizeof(UiLayout)) |
53 #define ui_reset_layout(layout) memset(&(layout), 0, sizeof(UiLayout)) |
| 54 #define ui_lb2bool(b) ((b) == UI_LAYOUT_TRUE ? TRUE : FALSE) |
54 #define ui_lb2bool(b) ((b) == UI_LAYOUT_TRUE ? TRUE : FALSE) |
| 55 #define ui_bool2lb(b) ((b) ? UI_LAYOUT_TRUE : UI_LAYOUT_FALSE) |
55 #define ui_bool2lb(b) ((b) ? UI_LAYOUT_TRUE : UI_LAYOUT_FALSE) |
| 56 |
56 |