ui/qt/container.h

changeset 520
ea1bba55de44
parent 519
8884c7fbe4cb
child 525
878df45e6441
equal deleted inserted replaced
519:8884c7fbe4cb 520:ea1bba55de44
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
57 #define ui_obj_container(obj) (UiContainerPrivate*)obj->container_end 57 #define ui_obj_container(obj) (UiContainerPrivate*)((UiContainerX*)obj->container_end)->container
58 58
59 typedef enum UiLayoutBool { 59 typedef enum UiLayoutBool {
60 UI_LAYOUT_UNDEFINED = 0, 60 UI_LAYOUT_UNDEFINED = 0,
61 UI_LAYOUT_TRUE, 61 UI_LAYOUT_TRUE,
62 UI_LAYOUT_FALSE, 62 UI_LAYOUT_FALSE,
104 UiGridContainer(QGridLayout *grid, int margin, int columnspacing, int rowspacing); 104 UiGridContainer(QGridLayout *grid, int margin, int columnspacing, int rowspacing);
105 105
106 virtual void add(QWidget *widget, bool fill); 106 virtual void add(QWidget *widget, bool fill);
107 }; 107 };
108 108
109 void ui_container_add(UiObject *obj, UiContainerPrivate *ct);
110
109 111
110 #endif /* CONTAINER_H */ 112 #endif /* CONTAINER_H */
111 113

mercurial