Some more testing hooks for Windows.
This commit is contained in:
parent
5ea3307027
commit
57b9927a25
|
@ -44,6 +44,7 @@ int main(int argc, char *argv[])
|
||||||
uiWindow *w;
|
uiWindow *w;
|
||||||
uiBox *page2, *page3, *page4, *page5;
|
uiBox *page2, *page3, *page4, *page5;
|
||||||
int nomenus = 0;
|
int nomenus = 0;
|
||||||
|
int startspaced = 0;
|
||||||
|
|
||||||
newhbox = uiNewHorizontalBox;
|
newhbox = uiNewHorizontalBox;
|
||||||
newvbox = uiNewVerticalBox;
|
newvbox = uiNewVerticalBox;
|
||||||
|
@ -52,6 +53,8 @@ int main(int argc, char *argv[])
|
||||||
for (i = 1; i < argc; i++)
|
for (i = 1; i < argc; i++)
|
||||||
if (strcmp(argv[i], "nomenus") == 0)
|
if (strcmp(argv[i], "nomenus") == 0)
|
||||||
nomenus = 1;
|
nomenus = 1;
|
||||||
|
else if (strcmp(argv[i], "startspaced") == 0)
|
||||||
|
startspaced = 1;
|
||||||
else if (strcmp(argv[i], "swaphv") == 0) {
|
else if (strcmp(argv[i], "swaphv") == 0) {
|
||||||
newhbox = uiNewVerticalBox;
|
newhbox = uiNewVerticalBox;
|
||||||
newvbox = uiNewHorizontalBox;
|
newvbox = uiNewHorizontalBox;
|
||||||
|
@ -101,6 +104,9 @@ int main(int argc, char *argv[])
|
||||||
page5 = makePage5();
|
page5 = makePage5();
|
||||||
uiTabAppend(mainTab, "Page 5", uiControl(page5));
|
uiTabAppend(mainTab, "Page 5", uiControl(page5));
|
||||||
|
|
||||||
|
if (startspaced)
|
||||||
|
setSpaced(1);
|
||||||
|
|
||||||
uiControlShow(uiControl(w));
|
uiControlShow(uiControl(w));
|
||||||
uiMain();
|
uiMain();
|
||||||
printf("after uiMain()\n");
|
printf("after uiMain()\n");
|
||||||
|
|
Loading…
Reference in New Issue