More fixes. It builds and runs now, but isn't quite perfect.
This commit is contained in:
parent
c1d2fcfb3f
commit
c1773621ac
|
@ -203,6 +203,7 @@ static void boxResize(uiControl *c, intmax_t x, intmax_t y, intmax_t width, intm
|
||||||
uiFreeSizing(dchild);
|
uiFreeSizing(dchild);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO this doesn't really work the way we want for Z-orders
|
||||||
static void boxSysFunc(uiControl *c, uiControlSysFuncParams *p)
|
static void boxSysFunc(uiControl *c, uiControlSysFuncParams *p)
|
||||||
{
|
{
|
||||||
struct box *b = (struct box *) c;
|
struct box *b = (struct box *) c;
|
||||||
|
@ -263,8 +264,7 @@ uiBox *uiNewHorizontalBox(void)
|
||||||
{
|
{
|
||||||
struct box *b;
|
struct box *b;
|
||||||
|
|
||||||
b = uiNew(struct box);
|
b = (struct box *) uiNewControl(uiTypeBox());
|
||||||
uiTyped(b)->Type = uiTypeBox();
|
|
||||||
|
|
||||||
b->handle = uiMakeContainer(uiControl(b));
|
b->handle = uiMakeContainer(uiControl(b));
|
||||||
|
|
||||||
|
|
|
@ -148,8 +148,7 @@ uiRadioButtons *uiNewRadioButtons(void)
|
||||||
{
|
{
|
||||||
struct radiobuttons *r;
|
struct radiobuttons *r;
|
||||||
|
|
||||||
r = uiNew(struct radiobuttons);
|
r = (struct radiobuttons *) uiNewControl(uiTypeRadioButtons());
|
||||||
uiTyped(r)->Type = uiTypeRadioButtons();
|
|
||||||
|
|
||||||
r->hwnds = newPtrArray();
|
r->hwnds = newPtrArray();
|
||||||
|
|
||||||
|
|
|
@ -145,8 +145,8 @@ static uiSizing *windowSizing(uiControl *c)
|
||||||
|
|
||||||
static int windowContainerVisible(uiControl *c)
|
static int windowContainerVisible(uiControl *c)
|
||||||
{
|
{
|
||||||
complain("attempt to get container visibility state of uiWindow %p", c);
|
// TODO
|
||||||
return 0; // make compiler happy
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void windowShow(uiControl *c)
|
static void windowShow(uiControl *c)
|
||||||
|
@ -358,6 +358,8 @@ uiWindow *uiNewWindow(const char *title, int width, int height, int hasMenubar)
|
||||||
uiControl(w)->ContainerVisible = windowContainerVisible;
|
uiControl(w)->ContainerVisible = windowContainerVisible;
|
||||||
uiControl(w)->Show = windowShow;
|
uiControl(w)->Show = windowShow;
|
||||||
uiControl(w)->Hide = windowHide;
|
uiControl(w)->Hide = windowHide;
|
||||||
|
// TODO
|
||||||
|
uiControl(w)->ContainerEnabled = windowContainerVisible;
|
||||||
uiControl(w)->Enable = windowEnable;
|
uiControl(w)->Enable = windowEnable;
|
||||||
uiControl(w)->Disable = windowDisable;
|
uiControl(w)->Disable = windowDisable;
|
||||||
uiControl(w)->SysFunc = windowSysFunc;
|
uiControl(w)->SysFunc = windowSysFunc;
|
||||||
|
|
Loading…
Reference in New Issue