improve error handling for loading
authorDiane Trout <diane@caltech.edu>
Fri, 3 Mar 2006 09:14:06 +0000 (09:14 +0000)
committerDiane Trout <diane@caltech.edu>
Fri, 3 Mar 2006 09:14:06 +0000 (09:14 +0000)
commit76f26b4e90f2a66451bab22cb374455abedfd7fb
treebd23aff042a1fe44eac4b83e5e331cd05841ae8b
parente246be521bca85d7aef12f030018989ea06b9c3b
improve error handling for loading
I think all of the mussa file loading code throws a mussa_load_error
when something doesn't work. (instead of returning an error string).
All the GUIs catch this error and display the error in their message box

One annoying thing was that loading a different analysis after you'd already
loaded one in the Qt version caused it to try to merge the two versions
and then die when it ran its analysis. I got around that by deleting the
old mussa pointer and replacing it with the newly loaded version.
Though I discovered I need to do the pointer swap _after_ I'd successfully
loaded a the new analysis.

Also the Qt version doesn't try to load anything when the user presses
the cancel button in the load dialog boxes.
13 files changed:
alg/mussa_class.cxx
alg/mussa_class.hh
alg/nway_paths.cxx
alg/nway_paths.hh
alg/parse_options.cxx
alg/sequence.cxx
alg/sequence.hh
alg/test/test_sequence.cxx
gui/ConnWindow.cxx
mussa.cxx
mussa_exceptions.hh
qui/PathScene.cxx
qui/PathScene.h