1
0
Fork 0
Commit graph

18 commits

Author SHA1 Message Date
James Turner
cad41649dc Fix property browser #0 not working on second open
Since we mutate the (cached) definition properties on each call to
clone(), we need to reset these values back, or the non-clone()-ed
instance gets confused paths to its input and list widgets.

https://sourceforge.net/p/flightgear/codetickets/2044/
2018-10-25 16:23:19 +01:00
Richard Harrison
da089c843a Change default height of property browswer to 500 pixels.
Realistically 768 pixels is the minimum height for most displays these days, so 500 is a reasonable figure for all displays, and it does make it easier to operate.
2018-09-02 13:57:29 +02:00
mfranz
b38cf98aa1 make dialog resizable with Ctrl-dragging 2009-01-10 21:59:27 +00:00
mfranz
601f1c14c4 Stuart BUCHANAN: fix METAR cloud interpolation
"I've managed to fix this by differentiating rebuilding the 3D layers
(e.g. due to METAR updates) from rebuilding the entire environment (due to a
change in scenario)."

/me: property-browser.xml: drop a redundant line
2008-12-21 15:54:18 +00:00
mfranz
a75f1de1dd - n.getAttribute("children") instead of size(n.getChildren()), which is
way faster to determine whether a node has children
- cosmetics
2008-12-21 08:52:49 +00:00
mfranz
6a577072da - write last clicked entry to /sim/gui/dialogs/property-browser/selected
- darken clone button
- cleanup & cosmetics
2008-05-14 10:19:17 +00:00
mfranz
cb405c955f - don't use random numbers for cloned dialogs, but good old boring
sequential numbers (looks nicer, and is slightly less risky)
- use var keyword on functions
2007-06-17 13:44:54 +00:00
mfranz
065bd859d6 don't pause the update loop 2007-05-07 16:24:16 +00:00
mfranz
c1c86bb8a5 - use <hrule/> and <vrule/> without dummy children
- minor improvements/cosmetics
2007-03-26 15:25:27 +00:00
mfranz
715a7dc50e cosmetics 2006-05-26 10:42:45 +00:00
mfranz
dfe86f89e6 fix update() for the root dialog 2006-05-26 08:50:14 +00:00
mfranz
738b5eea60 who said cloning was bad? 2006-05-26 08:30:41 +00:00
mfranz
d01ec5042b from the cosmetics department ... 2006-05-25 18:12:52 +00:00
mfranz
ae4ac0ea2d two lines less is still three lines more than in the old dialog 2006-05-24 21:19:53 +00:00
mfranz
2281563b22 cleanup 2006-05-24 09:36:20 +00:00
mfranz
c1754859e3 update widget every two seconds in addition to the usual updates. This
works for tied() properties, too. Search for "update_interval" and set
it to 0 if you don't want these updates at all.
2006-05-23 20:30:32 +00:00
mfranz
b7f4916161 - improved layout (The close button was in the way. Is the "window" close
button oK?)
- print fancy hint in the title bar if someone selects a bool value
2006-05-23 09:46:57 +00:00
mfranz
efde6c834f alternative property browser. It is meant to replace the hardcoded browser,
but as this is an integral part of FlightGear, I don't want to push for it.
Try out and comment. It's available under "Debug/Property Browser". Note,
that this isn't the slow pure-Nasal implementation, but a regular dialog
using a c++ based widget. Only the handling is done in Nasal, so there should
really be not performance degradation compared with the old dialog.

Easter Eggs: some entries work differently when the Control-key is pressed:
"."         ->  toggle output of SGPropertyNode flags
".."        ->  go to root (not just one dir level)
bool entry  ->  toggle bool entry value
2006-05-22 17:42:57 +00:00