|
@@ -1359,7 +1359,7 @@ void laui_Screen(laUiList *uil, laPropPack *This, laPropPack *Extra, laColumn *U
|
|
void laui_UserPreference(laUiList *uil, laPropPack *Base, laPropPack *OperatorInst, laColumn *ExtraColumns, int context){
|
|
void laui_UserPreference(laUiList *uil, laPropPack *Base, laPropPack *OperatorInst, laColumn *ExtraColumns, int context){
|
|
laColumn* c = laFirstColumn(uil),*cl,*cr; laSplitColumn(uil,c,0.5);cl=laLeftColumn(c,0);cr=laRightColumn(c,0);
|
|
laColumn* c = laFirstColumn(uil),*cl,*cr; laSplitColumn(uil,c,0.5);cl=laLeftColumn(c,0);cr=laRightColumn(c,0);
|
|
laUiList *muil;
|
|
laUiList *muil;
|
|
- laColumn *mc, *mcl, *mcr, *mcll, *mclr;
|
|
|
|
|
|
+ laColumn *mc, *mcl, *mcr, *mcll, *mclr, *mcrl, *mcrr;
|
|
laUiItem *b, *bracket;
|
|
laUiItem *b, *bracket;
|
|
|
|
|
|
b=laBeginRow(uil,cl,0,0);
|
|
b=laBeginRow(uil,cl,0,0);
|
|
@@ -1376,16 +1376,15 @@ void laui_UserPreference(laUiList *uil, laPropPack *Base, laPropPack *OperatorIn
|
|
bracket = laMakeTab(uil, c, 0);{
|
|
bracket = laMakeTab(uil, c, 0);{
|
|
|
|
|
|
for(laExtraPreferencePage* epp=MAIN.ExtraPreferencePages.pFirst;epp;epp=epp->Item.pNext){
|
|
for(laExtraPreferencePage* epp=MAIN.ExtraPreferencePages.pFirst;epp;epp=epp->Item.pNext){
|
|
- muil = laAddTabPage(bracket, epp->Name); epp->Func(muil,0,0,0,0);
|
|
|
|
|
|
+ muil = laAddTabPage(bracket, epp->Name);
|
|
|
|
+ muil->HeightCoeff = -1; epp->Func(muil,0,0,0,0);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
muil = laAddTabPage(bracket, "Display");{
|
|
muil = laAddTabPage(bracket, "Display");{
|
|
- //muil->HeightCoeff = -1;
|
|
|
|
- mc = laFirstColumn(muil);
|
|
|
|
- laSplitColumn(muil, mc, 0.5);
|
|
|
|
- mcl = laLeftColumn(mc, 0);
|
|
|
|
- mcr = laRightColumn(mc, 0);
|
|
|
|
|
|
+ muil->HeightCoeff = -1;
|
|
|
|
+ mc = laFirstColumn(muil); laSplitColumn(muil, mc, 0.33);
|
|
|
|
+ mcl = laLeftColumn(mc, 0); mcr = laRightColumn(mc, 0);
|
|
|
|
|
|
if(MAIN.PreferencePageDisplay){
|
|
if(MAIN.PreferencePageDisplay){
|
|
MAIN.PreferencePageDisplay(muil,0,0,0,0);
|
|
MAIN.PreferencePageDisplay(muil,0,0,0,0);
|
|
@@ -1393,41 +1392,34 @@ void laui_UserPreference(laUiList *uil, laPropPack *Base, laPropPack *OperatorIn
|
|
}
|
|
}
|
|
|
|
|
|
laShowLabel(muil, mc, "Translation:", 0, 0);
|
|
laShowLabel(muil, mc, "Translation:", 0, 0);
|
|
- laShowLabel(muil, mcl, "Enable Translation:", 0, 0);
|
|
|
|
- laShowItemFull(muil, mcr, &UP->PP, "enable_translation",LA_WIDGET_ENUM_CYCLE,0,0,0);
|
|
|
|
|
|
+ laShowItemWithLabel(muil,mcl,mcr,&UP->PP,"enable_translation",LA_WIDGET_ENUM_CYCLE,0,0,0,0,0,0);
|
|
b = laOnConditionThat(muil, mcl, laPropExpression(&UP->PP, "enable_translation"));{
|
|
b = laOnConditionThat(muil, mcl, laPropExpression(&UP->PP, "enable_translation"));{
|
|
- laShowLabel(muil, mcl, "Language:", 0, 0);
|
|
|
|
- laShowItemFull(muil, mcr, &UP->PP, "languages", LA_WIDGET_COLLECTION_SELECTOR, 0, 0, 0);
|
|
|
|
- laShowItem(muil, mcl, 0, "LA_translation_dump");
|
|
|
|
|
|
+ laShowItemWithLabel(muil,mcl,mcr,&UP->PP,"languages", LA_WIDGET_COLLECTION_SELECTOR,0,0,0,"Language",0,0);
|
|
|
|
+ laShowItem(muil, mcr, 0, "LA_translation_dump");
|
|
}
|
|
}
|
|
laEndCondition(muil, b);
|
|
laEndCondition(muil, b);
|
|
|
|
|
|
laShowSeparator(muil, mc);
|
|
laShowSeparator(muil, mc);
|
|
|
|
|
|
laShowLabel(muil, mc, "Interface:", 0, 0);
|
|
laShowLabel(muil, mc, "Interface:", 0, 0);
|
|
- laShowLabel(muil, mcl, "Row Height:", 0, 0);
|
|
|
|
laShowItem(muil, mcr, &UP->PP, "interface_size");
|
|
laShowItem(muil, mcr, &UP->PP, "interface_size");
|
|
- laShowLabel(muil, mcl, "Font Size:", 0, 0);
|
|
|
|
laShowItem(muil, mcr, &UP->PP, "font_size");
|
|
laShowItem(muil, mcr, &UP->PP, "font_size");
|
|
- laShowLabel(muil, mcl, "Margin Size:", 0, 0);
|
|
|
|
laShowItem(muil, mcr, &UP->PP, "margin_size");
|
|
laShowItem(muil, mcr, &UP->PP, "margin_size");
|
|
|
|
+ laShowItem(muil, mcr, &UP->PP, "top_framerate");
|
|
#ifndef LA_USE_GLES
|
|
#ifndef LA_USE_GLES
|
|
- laShowLabel(muil, mcl, "Panel Multisample:", 0, 0);
|
|
|
|
- laShowItem(muil, mcr, &UP->PP, "panel_multisample")->Flags|=LA_UI_FLAGS_EXPAND;
|
|
|
|
|
|
+ laShowItemWithLabel(muil,mcl,mcr,&UP->PP,"panel_multisample",0,0,0,0,"Panel Multisample",0,mc)->Flags|=LA_UI_FLAGS_EXPAND;
|
|
#endif
|
|
#endif
|
|
- laShowLabel(muil, mcl, "Top Framerate:", 0, 0);
|
|
|
|
- laShowItem(muil, mc, &UP->PP, "top_framerate");
|
|
|
|
|
|
|
|
laShowSeparator(muil, mc);
|
|
laShowSeparator(muil, mc);
|
|
|
|
|
|
laShowLabel(muil, mc, "Color:", 0, 0);
|
|
laShowLabel(muil, mc, "Color:", 0, 0);
|
|
- laShowItem(muil, mcl, &UP->PP, "color_picker_gamma");
|
|
|
|
- laShowItem(muil, mcr, &UP->PP, "enable_color_management");
|
|
|
|
|
|
+ laShowItem(muil, mcr, &UP->PP, "color_picker_gamma");
|
|
|
|
+ laShowItem(muil, mcr, &UP->PP, "enable_color_management")->Flags|=LA_UI_FLAGS_CHECKBOX;
|
|
|
|
|
|
#ifndef LAGUI_ANDROID
|
|
#ifndef LAGUI_ANDROID
|
|
laUiItem* bb=laOnConditionThat(muil,mc,laPropExpression(&UP->PP,"enable_color_management"));{
|
|
laUiItem* bb=laOnConditionThat(muil,mc,laPropExpression(&UP->PP,"enable_color_management"));{
|
|
laUiItem*bbr=laBeginRow(muil,mc,0,0);
|
|
laUiItem*bbr=laBeginRow(muil,mc,0,0);
|
|
- laShowLabel(muil, mcl, "Per screen config:", 0, 0)->Expand=1;
|
|
|
|
|
|
+ laShowLabel(muil, mc, "Per screen config:", 0, 0)->Expand=1;
|
|
laShowItem(muil,mc,0,"LA_refresh_screens")->Flags|=LA_UI_FLAGS_ICON;
|
|
laShowItem(muil,mc,0,"LA_refresh_screens")->Flags|=LA_UI_FLAGS_ICON;
|
|
laShowItemFull(muil, mcr, &UP->PP, "auto_switch_color_space",0,"text=Auto Switch",0,0);
|
|
laShowItemFull(muil, mcr, &UP->PP, "auto_switch_color_space",0,"text=Auto Switch",0,0);
|
|
laEndRow(muil,bbr);
|
|
laEndRow(muil,bbr);
|
|
@@ -1451,30 +1443,28 @@ void laui_UserPreference(laUiList *uil, laPropPack *Base, laPropPack *OperatorIn
|
|
}
|
|
}
|
|
|
|
|
|
muil = laAddTabPage(bracket, "Input");{
|
|
muil = laAddTabPage(bracket, "Input");{
|
|
- //muil->HeightCoeff = -1;
|
|
|
|
- mc = laFirstColumn(muil);
|
|
|
|
- laSplitColumn(muil, mc, 0.5);
|
|
|
|
- mcl = laLeftColumn(mc, 0);
|
|
|
|
- mcr = laRightColumn(mc, 0);
|
|
|
|
|
|
+ muil->HeightCoeff = -1;
|
|
|
|
+ mc = laFirstColumn(muil); laSplitColumn(muil, mc, 0.33);
|
|
|
|
+ mcl = laLeftColumn(mc, 0); mcr = laRightColumn(mc, 0);
|
|
|
|
+ laSplitColumn(muil, mcr, 0.5);
|
|
|
|
+ mcrl = laLeftColumn(mcr, 0); mcrr = laRightColumn(mcr, 0);
|
|
|
|
|
|
if(MAIN.PreferencePageInput){ MAIN.PreferencePageInput(muil,0,0,0,0); }
|
|
if(MAIN.PreferencePageInput){ MAIN.PreferencePageInput(muil,0,0,0,0); }
|
|
|
|
|
|
laShowLabel(muil, mc, "User Interactions:", 0, 0);
|
|
laShowLabel(muil, mc, "User Interactions:", 0, 0);
|
|
- laShowItem(muil, mc, &UP->PP, "scroll_speed");
|
|
|
|
- laShowItem(muil, mcl, &UP->PP, "animation_speed");
|
|
|
|
|
|
+ laShowItem(muil, mcr, &UP->PP, "scroll_speed");
|
|
|
|
+ laShowItem(muil, mcr, &UP->PP, "animation_speed");
|
|
laShowItem(muil, mcr, &UP->PP, "panel_animation_speed");
|
|
laShowItem(muil, mcr, &UP->PP, "panel_animation_speed");
|
|
- laShowItem(muil, mc, &UP->PP, "valuator_threshold");
|
|
|
|
- laShowItem(muil, mc, &UP->PP, "zoom_speed_2d");
|
|
|
|
- laShowItem(muil, mcl, &UP->PP, "tooltip_close_distance");
|
|
|
|
|
|
+ laShowItem(muil, mcr, &UP->PP, "valuator_threshold");
|
|
|
|
+ laShowItem(muil, mcr, &UP->PP, "zoom_speed_2d");
|
|
|
|
+ laShowItem(muil, mcr, &UP->PP, "tooltip_close_distance");
|
|
laShowItem(muil, mcr, &UP->PP, "idle_time");
|
|
laShowItem(muil, mcr, &UP->PP, "idle_time");
|
|
|
|
|
|
laShowSeparator(muil,mc);
|
|
laShowSeparator(muil,mc);
|
|
|
|
|
|
laShowLabel(muil, mc, "Input device handling:", 0, 0);
|
|
laShowLabel(muil, mc, "Input device handling:", 0, 0);
|
|
- laShowLabel(muil, mcl, "Input Mapping:", 0, 0)->Flags|=LA_TEXT_ALIGN_RIGHT;
|
|
|
|
- laShowItemFull(muil, mcr, 0, "LA_panel_activator",0,"panel_id=LAUI_input_mapping;text=Configure",0,0);
|
|
|
|
- laShowLabel(muil, mcl, "Pads/Joysticks:", 0, 0)->Flags|=LA_TEXT_ALIGN_RIGHT;
|
|
|
|
- laShowItemFull(muil, mcr, 0, "LA_panel_activator",0,"panel_id=LAUI_controllers;text=Configure",0,0);
|
|
|
|
|
|
+ laShowItemWithLabel(muil,mcrl,mcrl,0,"LA_panel_activator",0,"panel_id=LAUI_input_mapping;text=Configure",0,0,"Input Mapping",LA_TEXT_ALIGN_LEFT,0);
|
|
|
|
+ laShowItemWithLabel(muil,mcrr,mcrr, 0,"LA_panel_activator",0,"panel_id=LAUI_controllers;text=Configure",0,0,"Pads/Joysticks",LA_TEXT_ALIGN_LEFT,0);
|
|
|
|
|
|
#ifndef LAGUI_ANDROID
|
|
#ifndef LAGUI_ANDROID
|
|
laShowSeparator(muil,mc);
|
|
laShowSeparator(muil,mc);
|
|
@@ -1486,14 +1476,15 @@ void laui_UserPreference(laUiList *uil, laPropPack *Base, laPropPack *OperatorIn
|
|
laEndRow(muil, b);
|
|
laEndRow(muil, b);
|
|
laShowItem(muil, mcr, &UP->PP, "wacom_driver");
|
|
laShowItem(muil, mcr, &UP->PP, "wacom_driver");
|
|
#else
|
|
#else
|
|
- laShowItem(muil, mcl, &UP->PP, "wacom_device_stylus");
|
|
|
|
- laShowItem(muil, mcl, &UP->PP, "wacom_device_eraser");
|
|
|
|
- laShowItemFull(muil, mcr, 0, "LA_refresh_controllers",0,"text=Refresh",0,0);
|
|
|
|
|
|
+ laShowItem(muil, mcrl, &UP->PP, "wacom_device_stylus");
|
|
|
|
+ laShowItem(muil, mcrr, &UP->PP, "wacom_device_eraser");
|
|
|
|
+ laShowItemFull(muil, mcrl, 0, "LA_refresh_controllers",0,"text=Refresh",0,0);
|
|
#endif //!win32
|
|
#endif //!win32
|
|
#endif //!android
|
|
#endif //!android
|
|
}
|
|
}
|
|
if(MAIN.InitArgs.HasAudio){
|
|
if(MAIN.InitArgs.HasAudio){
|
|
muil = laAddTabPage(bracket, "Audio");{
|
|
muil = laAddTabPage(bracket, "Audio");{
|
|
|
|
+ muil->HeightCoeff = -1;
|
|
mc = laFirstColumn(muil); laSplitColumn(muil, mc, 0.5);
|
|
mc = laFirstColumn(muil); laSplitColumn(muil, mc, 0.5);
|
|
mcl = laLeftColumn(mc, 0); mcr = laRightColumn(mc, 0);
|
|
mcl = laLeftColumn(mc, 0); mcr = laRightColumn(mc, 0);
|
|
b=laBeginRow(muil,mcl,0,0);
|
|
b=laBeginRow(muil,mcl,0,0);
|
|
@@ -1507,7 +1498,7 @@ void laui_UserPreference(laUiList *uil, laPropPack *Base, laPropPack *OperatorIn
|
|
}
|
|
}
|
|
|
|
|
|
muil = laAddTabPage(bracket, "Resource");{
|
|
muil = laAddTabPage(bracket, "Resource");{
|
|
- //muil->HeightCoeff = -1;
|
|
|
|
|
|
+ muil->HeightCoeff = -1;
|
|
mc = laFirstColumn(muil);
|
|
mc = laFirstColumn(muil);
|
|
|
|
|
|
laSplitColumn(muil, mc, 0.5);
|
|
laSplitColumn(muil, mc, 0.5);
|
|
@@ -1529,7 +1520,7 @@ void laui_UserPreference(laUiList *uil, laPropPack *Base, laPropPack *OperatorIn
|
|
}
|
|
}
|
|
|
|
|
|
muil = laAddTabPage(bracket, "Theme");{
|
|
muil = laAddTabPage(bracket, "Theme");{
|
|
- //muil->HeightCoeff = -1;
|
|
|
|
|
|
+ muil->HeightCoeff = -1;
|
|
mc = laFirstColumn(muil);
|
|
mc = laFirstColumn(muil);
|
|
//laSplitColumn(muil,mc,0.4); mcl=laLeftColumn(mc,7);mcr=laRightColumn(mc,0);
|
|
//laSplitColumn(muil,mc,0.4); mcl=laLeftColumn(mc,7);mcr=laRightColumn(mc,0);
|
|
|
|
|
|
@@ -1551,6 +1542,7 @@ void laui_UserPreference(laUiList *uil, laPropPack *Base, laPropPack *OperatorIn
|
|
}
|
|
}
|
|
|
|
|
|
muil = laAddTabPage(bracket, "System");{
|
|
muil = laAddTabPage(bracket, "System");{
|
|
|
|
+ muil->HeightCoeff = -1;
|
|
mc = laFirstColumn(muil); laSplitColumn(muil, mc, 0.5);
|
|
mc = laFirstColumn(muil); laSplitColumn(muil, mc, 0.5);
|
|
mcl = laLeftColumn(mc, 0); mcr = laRightColumn(mc, 0);
|
|
mcl = laLeftColumn(mc, 0); mcr = laRightColumn(mc, 0);
|
|
laShowLabel(muil,mcl,"OpenGL Debugging:",0,0);
|
|
laShowLabel(muil,mcl,"OpenGL Debugging:",0,0);
|