mfranz
887a1a732e
- move format checking to the GUIInfo class. It has all the info, and this
...
keeps copy_to_gui() cleaner
- add "float", "int" and "long"
2007-04-02 15:42:45 +00:00
mfranz
d9cbdb53ff
drop plib render callback, validate <format> in setupObject(), and apply
...
it in copy_to_pui()
2007-04-02 12:12:23 +00:00
mfranz
37acfd4e25
add signal on GUI reinit; needed for reloading Nasal loaded XML dialogs
2007-03-28 20:33:18 +00:00
mfranz
f27d7b2340
layout-props.cxx: hrule/vrule shall be accepted as widgets even if they
...
have no children (in which case they default to 1px thickness & stretch).
This allows to just write <hrule/> instead of <hrule><dummy/></hrule>.
One can still use <hrule><pref-height>3</pref-height></hrule>, of course.
layout.cxx: drop silly do??Box calls for hrule/vrule (yes, I wrote that :-)
2007-03-26 15:17:38 +00:00
mfranz
1d880a944f
don't descend into <nasal> groups to avoid padding space beind added around
2007-02-24 19:43:19 +00:00
mfranz
6ebce11275
set /sim/signals/reinit to true before reset, and back to zero after it;
...
otherwise the last Hobbs time couldn't be read out at a reset
2007-01-21 00:19:39 +00:00
frohlich
826866b327
Modified Files:
...
src/GUI/gui.h src/GUI/gui_funcs.cxx src/GUI/gui_local.cxx
src/GUI/mouse.cxx src/GUI/sgVec3Slider.cxx
src/GUI/sgVec3Slider.hxx src/Main/fg_commands.cxx:
Remove some dead code.
2007-01-07 15:51:29 +00:00
frohlich
059c906be5
Modified Files:
...
src/Cockpit/panel.cxx src/Cockpit/panel.hxx
src/Cockpit/panel_io.cxx src/GUI/dialog.cxx src/GUI/dialog.hxx
src/GUI/menubar.cxx src/GUI/menubar.hxx src/GUI/new_gui.hxx
src/Input/input.cxx src/Input/input.hxx src/Main/renderer.cxx
src/Scenery/scenery.cxx src/Scenery/scenery.hxx:
Use SGBinding instead of FGBinding. Remove FGBinding. Install hooks
to make the pick animation work.
2007-01-04 13:22:27 +00:00
mfranz
a1e62b9c62
remove function declarations for long removed functions
2006-11-01 23:36:46 +00:00
mfranz
8d1ecbfa1b
remove obsolete and non-functional menu toggle command
2006-11-01 23:23:26 +00:00
mfranz
65e2ce16d6
remove obsolete preset dialogs
2006-11-01 22:55:15 +00:00
mfranz
4deaed6d99
remove obsolete preset dialogs
2006-11-01 22:48:34 +00:00
mfranz
284c73a95c
remove old property dialog
2006-11-01 22:10:22 +00:00
mfranz
91dbe0c3fe
remove old property dialog
2006-11-01 21:59:46 +00:00
frohlich
b0f9d24f9d
Modified Files:
...
configure.ac src/AIModel/AIAircraft.cxx src/AIModel/AIBase.cxx
src/AIModel/AIBase.hxx src/AIModel/AICarrier.cxx
src/AIModel/AICarrier.hxx src/AIModel/AIManager.cxx
src/AIModel/AIManager.hxx src/ATC/AIEntity.cxx
src/ATC/AIEntity.hxx src/ATC/AIMgr.cxx src/ATC/AIMgr.hxx
src/ATC/ATCdisplay.cxx src/ATC/ATCdisplay.hxx
src/Cockpit/cockpit.cxx src/Cockpit/cockpit.hxx
src/Cockpit/hud.cxx src/Cockpit/hud.hxx
src/Cockpit/hud_rwy.cxx src/Cockpit/panel.cxx
src/Cockpit/panel.hxx src/Cockpit/built_in/FGMagRibbon.cxx
src/Cockpit/built_in/FGMagRibbon.hxx src/FDM/flight.cxx
src/FDM/groundcache.cxx src/FDM/groundcache.hxx
src/GUI/gui_funcs.cxx src/Input/input.cxx
src/Instrumentation/od_gauge.cxx
src/Instrumentation/od_gauge.hxx
src/Instrumentation/render_area_2d.cxx
src/Instrumentation/render_area_2d.hxx
src/Instrumentation/wxradar.cxx
src/Instrumentation/wxradar.hxx
src/Instrumentation/HUD/HUD.cxx
src/Instrumentation/HUD/HUD.hxx
src/Instrumentation/HUD/HUD_runway.cxx src/Main/Makefile.am
src/Main/main.cxx src/Main/renderer.cxx src/Main/renderer.hxx
src/Main/viewmgr.cxx src/Model/acmodel.cxx
src/Model/acmodel.hxx src/Model/model_panel.cxx
src/Model/model_panel.hxx src/Model/modelmgr.cxx
src/Model/modelmgr.hxx src/Model/panelnode.cxx
src/Model/panelnode.hxx src/Navaids/awynet.cxx
src/Scenery/Makefile.am src/Scenery/hitlist.cxx
src/Scenery/hitlist.hxx src/Scenery/newcache.cxx
src/Scenery/scenery.cxx src/Scenery/scenery.hxx
src/Scenery/tileentry.cxx src/Scenery/tileentry.hxx
src/Scenery/tilemgr.cxx src/Scripting/NasalSys.cxx
src/Scripting/NasalSys.hxx src/Time/light.cxx
Big BLOB on the way to OSG.
2006-10-29 19:30:21 +00:00
mfranz
7ae6dd709a
don't let invisible objects prevent dragging (for example: currently
...
not shown combobox menus)
2006-07-10 14:56:07 +00:00
mfranz
d702ed379d
ok, so the old ~FGFontCache() was useless. But at least it didn't call
...
the buggy ~fnt(), causing an abort() ... ;-)
(Only loaded texture fonts (*.txf) have a new'ed puFont. The built-in
pixmap fonts don't, and may, thus, not be deleted.)
2006-06-22 08:35:50 +00:00
mfranz
229d499f7b
oh, and by the way: this destructor didn't do anything useful :-)
2006-06-21 21:17:21 +00:00
mfranz
124dfab5ae
umm ... fix a tiny leak :-)
2006-06-21 19:53:47 +00:00
mfranz
e2deb397a9
remove obsolete "lon/lat format" commands that have been labeled "deprecated"
...
and "will very soon be removed" since years
2006-06-17 16:37:33 +00:00
mfranz
e48967cb1d
fix another crash on exit by finally converting the rest of unguarded
...
SGPropertyNode to guarded ones. This is also done for JSBSim/JSBSim.hxx,
for which JSB had given explicit permission a while ago. I postponed that
back then, but now is the time.
2006-06-11 10:21:10 +00:00
mfranz
88beabb2d3
use global fontcache ... this is mostly cosmetic, as the whole file will
...
probably die a soon as the old property picker was removed
2006-06-06 16:33:38 +00:00
mfranz
355f86d6cf
FGFontCache: add getter for the fntTexFont component of a cached font
2006-06-06 12:49:42 +00:00
mfranz
43b66ac74b
don't choke on invalid nodes
2006-06-05 21:55:18 +00:00
mfranz
067e6d56c2
use global fontcache
2006-06-05 20:25:43 +00:00
mfranz
47223b0442
make FGFontCache independent of NewGUI and allow early construction in
...
FGGlobals
2006-06-05 20:23:56 +00:00
mfranz
18d09b569f
- display of SGPropertyNode flags can now be toggled per <property-list>
...
widget (Ctrl-click on "." entry), so we don't need a global property
for this
- s/dotFiles/_dot_files/ for consistency reasons
2006-06-03 11:20:19 +00:00
mfranz
9e9d463a11
not that!
2006-05-24 21:05:48 +00:00
mfranz
68beab9fb2
s/isascii/isprint/
2006-05-24 21:02:52 +00:00
mfranz
597298d5a7
- fix slider
...
- order functions like in puAuxList.cxx (plib/cvs) for easier
back/forward-porting
2006-05-24 20:46:10 +00:00
mfranz
e7e0e84add
- force multiline contents (Nasal scripts!) into one line, so that they
...
don't print over other entries or even leak out of the widget
- warning-- (MSVC)
2006-05-24 14:00:56 +00:00
fredb
790848b822
Compile
2006-05-24 10:51:35 +00:00
mfranz
b08a588fb1
ok, now I know why the destructor was commented out in prop_picker.cxx:
...
there's a bug that I had copied: update() checks each list node: if it
has no children, then a listener is attached. Later, when freeing the
children list, it assumed again that each node without children would
have a listener attached. This caused a crash when a node had children
before, but lost them in the meantime. Now we tried to remove a listener
where there never was one.
2006-05-24 09:42:10 +00:00
mfranz
6465141ac2
- don't jump to top after bool toggling
2006-05-23 21:35:38 +00:00
mfranz
91a367379c
catch non-existent nodes, too
2006-05-23 20:48:01 +00:00
mfranz
9c98766700
treat widget input correctly
2006-05-23 20:24:56 +00:00
mfranz
fdb9e94af3
ugly "fix": the constructor was commented out in prop_picker.cxx since
...
*many* years, so the property browser always leaked memory. I activated
this line in property_list.cxx and ... got a crash right there. So this
was the reason for it being commented out? Doing the same for now, until
I know the exact reason and can really fix it.
2006-05-23 16:49:32 +00:00
mfranz
4c940a55f9
fix for broken plib 1.8.4
2006-05-23 16:44:10 +00:00
mfranz
e2c195f3a6
- move the ID stuff to dialog.hxx
...
- add an identifier to fgPropertyList(), which is also PUCLASS_LIST based
2006-05-22 16:14:50 +00:00
mfranz
9ff339332c
make new widget available as <property-list>
2006-05-22 14:35:39 +00:00
mfranz
0007098aac
add property_list.[ch]xx
2006-05-22 14:34:59 +00:00
mfranz
3610680095
new property browser widget
2006-05-22 14:34:20 +00:00
mfranz
7b4238fe8c
- backport plib/cvs (transparency feature; never tried that :-)
...
- backport submissions for plib 1.8.5:
* set slider size correctly
* remove slider/arrow when all entries fit into the view
* don't allow to scroll off the list
2006-05-22 14:33:01 +00:00
mfranz
dfdb7f8107
the last patch fixed the AirportList ... and broke all other PUCLASS_LIST.;
...
Unfortunately, there's no simple way to distinguish them. plib has no
user defined widget classes, and getTypeString() -- which could be used
for that -- isn't virtual. Sigh. I'll discuss the problem on the plib list.
For now I can only offer an ugly workaround. (Don't look closely!)
2006-05-21 22:14:18 +00:00
mfranz
24981fd043
- replace string methods with property methods The class was originally adapted
...
from plib's file-picker, where it made some sense to keep the current path as
string, and to chop off elements when leaving a dir, and adding them when
entering. But it doesn't make the least sense in SGPropertyNode space, where
we already have everything to move in a tree.
- add R & W flags for TRACE_READ and TRACE_WRITE. Remember: lower case letters:
disabled (rw ... reading/writing), upper case letters: enabled (RWAUT)
- remove some verbosity & further cleanup ... to make further work easier :-)
2006-05-20 15:25:38 +00:00
mfranz
368349aa58
fix "airport list" crash: I had wrongly assumed that now all PUCLASS_LIST
...
would actually be an fgList class. The airport list is a PUCLASS_LIST, too,
so we have to check for that. -> Use getTypeString() for identification.
2006-05-20 11:35:28 +00:00
mfranz
53572823bc
- unify several indentation and coding styles (and no, this is not my
...
preferred style, but the most sane of those used :-)
- remove trailing spaces
- cleanup
(all of this will make further work on the files easier)
2006-05-19 10:59:04 +00:00
mfranz
ee0d288e32
show attributes if /sim/gui/dialogs/property-browser/show-flags == true:
...
r ... read protected
w ... write protected (untested; does probably not work for obvious reasons ;-)
A ... archive
U ... userarchive
T ... tied
2006-05-18 14:46:42 +00:00
mfranz
865a1c037e
unselect entry after editing process has been finished
2006-05-18 13:09:34 +00:00
mfranz
7512553a9a
don't reset list to top after having changed a value
2006-05-18 12:51:32 +00:00