Dan,
Agree with you. XML seems very suitable for the task..
Are you implementing that now? I can prob. have a look into it if you want.
Just going to commit a fixed version of the tree:
-- fixed the bugs pointed out
-- popup when moving is unecessasy so took it out. All drag-n-drop actions
represent a move ( no copies , although I though it could be useful to have
many copies of the same country in different folders.)
-- Can only rename Regions (I guess we shouldn't allow renaming countries
either, right?)
-- Cannot delete the entire world ;p
Just added the TreeExpansionListener which is notified after any node is
expanded or collapsed. I am considering having it calling a method in GUI
to deal with it ( should have a static getInstance() method in the GUI to
return a GUI object?), what do you think? How we are updating the graph?
Would a GraphManager or similar class be useful?
Let me know about any faults in the tree.
--pedro
On Tuesday 16 September 2003 5:01 pm, Daniel White wrote:
> We need scenarios to load into the tree, would the easiest way to do this
> be saving as XML? We could still save with the .cc suffix i assume? XML
> makes it easy to save the tree structure and means we can edit the files by
> hand to create new scenarios....
>
> Dan.
>
>
>
>
|