From b535d797a055abc960eac1e29a433cdb2aaf2d82 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Thu, 23 Sep 2010 19:59:18 +0200 Subject: [PATCH 1/2] Cleanup of stereoscopic view options dialog Rename OSG Display Settings dialog to Stereoscopic View Options and move the Menubar element from Debug to View --- ...ings.xml => stereoscopic-view-options.xml} | 80 +------------------ gui/menubar.xml | 18 ++--- 2 files changed, 11 insertions(+), 87 deletions(-) rename gui/dialogs/{osg_display_settings.xml => stereoscopic-view-options.xml} (54%) diff --git a/gui/dialogs/osg_display_settings.xml b/gui/dialogs/stereoscopic-view-options.xml similarity index 54% rename from gui/dialogs/osg_display_settings.xml rename to gui/dialogs/stereoscopic-view-options.xml index da319f633..b873861fa 100644 --- a/gui/dialogs/osg_display_settings.xml +++ b/gui/dialogs/stereoscopic-view-options.xml @@ -2,8 +2,7 @@ - - osg-display-settings + stereoscopic-view-options false false vbox @@ -18,7 +17,7 @@ - + @@ -71,7 +70,7 @@ true 0 - 1.0 + 10.0 /sim/rendering/osg-displaysettings/screen-distance dialog-apply @@ -106,77 +105,4 @@ - - hbox - 1 - - true - - true - /sim/rendering/osg-displaysettings/double-buffer - - dialog-apply - - - - - - hbox - 1 - - true - - true - /sim/rendering/osg-displaysettings/depth-buffer - - dialog-apply - - - - - - hbox - 1 - - true - - true - /sim/rendering/osg-displaysettings/rgb - - dialog-apply - - - - - - hbox - 1 - - true - - 100 - 25 - true - /sim/rendering/osg-displaysettings/screen-width - - dialog-apply - - - - - - hbox - 1 - - true - - 100 - 25 - true - /sim/rendering/osg-displaysettings/screen-height - - dialog-apply - - - diff --git a/gui/menubar.xml b/gui/menubar.xml index cbe04fd6c..0429ac003 100644 --- a/gui/menubar.xml +++ b/gui/menubar.xml @@ -193,6 +193,14 @@ replay + + + + + dialog-show + stereoscopic-view-options + + @@ -649,16 +657,6 @@ - - - - - - - dialog-show - osg-display-settings - - From 284a283acbe7274c01a1aac5535e938ee0a78a53 Mon Sep 17 00:00:00 2001 From: Torsten Dreyer Date: Thu, 23 Sep 2010 20:31:57 +0200 Subject: [PATCH 2/2] Some fixes for the GlobalWeather dialog - make aloft and boundary data editable in "Disabled" mode - make aloft and boundary data not-editable in other modes - fix live-update issues on many input fields --- gui/dialogs/weather.xml | 808 +++++++++++++++++++++++++++++++++++----- 1 file changed, 708 insertions(+), 100 deletions(-) diff --git a/gui/dialogs/weather.xml b/gui/dialogs/weather.xml index 362c0e322..058e25879 100644 --- a/gui/dialogs/weather.xml +++ b/gui/dialogs/weather.xml @@ -96,6 +96,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -113,6 +119,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -123,6 +135,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -136,6 +154,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -153,6 +177,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -163,6 +193,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -176,6 +212,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -193,6 +235,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -203,6 +251,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -216,6 +270,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -233,6 +293,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -243,6 +309,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -256,6 +328,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -274,6 +352,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -284,6 +368,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -336,6 +426,12 @@ dialog-apply true + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -348,6 +444,12 @@ dialog-apply + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -357,11 +459,22 @@ + pressure-sea-level-inhg 1 3 - true 50 /environment/config/boundary/entry[0]/pressure-sea-level-inhg + + + /sim/gui/dialogs/weather-scenario/state + 1 + + + true + + dialog-apply + pressure-sea-level-inhg + @@ -441,243 +554,573 @@ + aloft-4-elevation-ft 1 0 52 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[4]/elevation-ft true + + dialog-apply + aloft-4-elevation-ft + + aloft-4-wind-from-heading-deg 1 1 40 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[4]/wind-from-heading-deg true + + dialog-apply + aloft-4-wind-from-heading-deg + + aloft-4-wind-speed-kt 1 2 35 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[4]/wind-speed-kt true + + dialog-apply + aloft-4-wind-speed-kt + + aloft-4-visibility-m 1 3 55 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[4]/visibility-m true + + dialog-apply + aloft-4-visibility-m + + aloft-4-temperature-degc 1 4 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[4]/temperature-degc true + + dialog-apply + aloft-4-temperature-degc + + aloft-4-dewpoint-degc 1 5 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[4]/dewpoint-degc true + + dialog-apply + aloft-4-dewpoint-degc + + aloft-3-elevation-ft 2 0 52 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[3]/elevation-ft true + + dialog-apply + aloft-3-elevation-ft + + aloft-3-wind-from-heading-deg 2 1 40 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[3]/wind-from-heading-deg true + + dialog-apply + aloft-3-wind-from-heading-deg + + aloft-3-wind-speed-kt 2 2 35 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[3]/wind-speed-kt true + + dialog-apply + aloft-3-wind-speed-kt + + aloft-3-visibility-m 2 3 55 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[3]/visibility-m true + + dialog-apply + aloft-3-visibility-m + + aloft-3-temperature-degc 2 4 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[3]/temperature-degc true + + dialog-apply + aloft-3-temperature-degc + + aloft-3-dewpoint-degc 2 5 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[3]/dewpoint-degc true + + dialog-apply + aloft-3-dewpoint-degc + + aloft-2-elevation-ft 3 0 52 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[2]/elevation-ft true + + dialog-apply + aloft-2-elevation-ft + + aloft-2-wind-from-heading-deg 3 1 40 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[2]/wind-from-heading-deg true + + dialog-apply + aloft-2-wind-from-heading-deg + + aloft-2-wind-speed-kt 3 2 35 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[2]/wind-speed-kt true + + dialog-apply + aloft-2-wind-speed-kt + + aloft-2-visibility-m 3 3 55 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[2]/visibility-m true + + dialog-apply + aloft-2-visibility-m + + aloft-2-temperature-degc 3 4 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[2]/temperature-degc true + + dialog-apply + aloft-2-temperature-degc + + aloft-2-dewpoint-degc 3 5 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[2]/dewpoint-degc true + + dialog-apply + aloft-2-dewpoint-degc + + aloft-1-elevation-ft 4 0 52 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[1]/elevation-ft true + + dialog-apply + aloft-1-elevation-ft + + aloft-1-wind-from-heading-deg 4 1 40 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[1]/wind-from-heading-deg true + + dialog-apply + aloft-1-wind-from-heading-deg + + aloft-1-wind-speed-kt 4 2 35 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[1]/wind-speed-kt true + + dialog-apply + aloft-1-wind-speed-kt + + aloft-1-visibility-m 4 3 55 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[1]/visibility-m true + + dialog-apply + aloft-1-visibility-m + + aloft-1-temperature-degc 4 4 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[1]/temperature-degc true + + dialog-apply + aloft-1-temperature-degc + + aloft-1-dewpoint-degc 4 5 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[1]/dewpoint-degc true + + dialog-apply + aloft-1-dewpoint-degc + + aloft-0-elevation-ft 5 0 52 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[0]/elevation-ft true + + dialog-apply + aloft-0-elevation-ft + + aloft-0-wind-from-heading-deg 5 1 40 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[0]/wind-from-heading-deg true + + dialog-apply + aloft-0-wind-from-heading-deg + + aloft-0-wind-speed-kt 5 2 35 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[0]/wind-speed-kt true + + dialog-apply + aloft-0-wind-speed-kt + + aloft-0-visibility-m 5 3 55 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[0]/visibility-m true + + dialog-apply + aloft-0-visibility-m + + aloft-0-temperature-degc 5 4 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[0]/temperature-degc true + + dialog-apply + aloft-0-temperature-degc + + aloft-0-dewpoint-degc 5 5 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/aloft/entry[0]/dewpoint-degc true + + dialog-apply + aloft-0-dewpoint-degc + @@ -741,99 +1184,231 @@ + boundary-1-elevation-ft 1 0 52 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/boundary/entry[1]/elevation-ft true + + dialog-apply + boundary-1-elevation-ft + + boundary-1-wind-from-heading-deg 1 1 40 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/boundary/entry[1]/wind-from-heading-deg true + + dialog-apply + boundary-1-wind-from-heading-deg + + boundary-1-wind-speed-kt 1 2 35 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/boundary/entry[1]/wind-speed-kt true + + dialog-apply + boundary-1-wind-speed-kt + + boundary-1-visibility-m 1 3 55 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/boundary/entry[1]/visibility-m true + + dialog-apply + boundary-1-visibility-m + + boundary-1-temperature-degc 1 4 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/boundary/entry[1]/temperature-degc true + + dialog-apply + boundary-1-temperature-degc + + boundary-1-dewpoint-degc 1 5 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/boundary/entry[1]/dewpoint-degc true + + dialog-apply + boundary-1-dewpoint-degc + + boundary-0-elevation-ft 2 0 52 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/boundary/entry[0]/elevation-ft true + + dialog-apply + boundary-0-elevation-ft + + boundary-0-wind-from-heading-deg 2 1 40 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/boundary/entry[0]/wind-from-heading-deg true + + dialog-apply + boundary-0-wind-from-heading-deg + + boundary-0-wind-speed-kt 2 2 35 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/boundary/entry[0]/wind-speed-kt true + + dialog-apply + boundary-0-wind-speed-kt + + boundary-0-visibility-m 2 3 55 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/boundary/entry[0]/visibility-m true + + dialog-apply + boundary-0-visibility-m + + boundary-0-temperature-degc 2 4 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/boundary/entry[0]/temperature-degc true + + dialog-apply + boundary-0-temperature-degc + + boundary-0-dewpoint-degc 2 5 60 + + + /sim/gui/dialogs/weather-scenario/state + 1 + + /environment/config/boundary/entry[0]/dewpoint-degc true + + dialog-apply + boundary-0-dewpoint-degc + @@ -881,18 +1456,16 @@ dialog-update metar - - nasal - - + metar-updates-winds-aloft /environment/params/metar-updates-winds-aloft true dialog-apply + metar-updates-winds-aloft aloft @@ -933,6 +1506,12 @@ true false sim/gui/dialogs/weather-scenario/metar + + + /sim/gui/dialogs/weather-scenario/state + 1 + + @@ -941,111 +1520,140 @@