Re: new diagram tree patch

Hi Jose,
sorry for not answering earlier. I've applied your patch to
my local tree, but it was the missing ChangeLog entry, what
stopped me from commiting to cvs. 
Also there was some probably minor glitch with :

patching file `app/diagram_tree_menu_callbacks.c'
Hunk #2 FAILED at 74.
misordered hunks! output would be garbled
Hunk #3 FAILED at 24.
Hunk #4 FAILED at 55.
Hunk #5 FAILED at 69.
4 out of 5 hunks FAILED -- saving rejects to

I think I have corrected it by hand, but you should
look into it after it's commited.


At 00:08 11.12.01 +0100, Jose A. Ortega Ruiz wrote:


i'm attaching yet another patch adding new functionality to the
diagram tree thing, namely:

- single click on a object tree node now selects the object in the
 diagram. double click, in addition, raises its window.

- new preference ("Remember last size" in the preferences tab) to
 remember the last tree window size as the default
 (poor-man's-session-management :-).

- new popup menu commands:
       * Hide this type: makes invisible (in the tree) all objects of
         this type (useful to avoid clutter by uninteresting objects
         such as connectors, and the like).
       * Show object type. hidden types are listed in this
         submenu. click on any of the to bring it back.

- preferences toggle ("Remember hidden types") to save the list of
 hidden types as a preference.

that's it. i think the functionality of the tree window is now quite
complete, but for the absence of multiple object selection (i'll work
on it in the next days). nevertheless i'm open to any suggestion on
your side :-)

IMPLEMENTATION NOTE: i've tweaked preferences.c to make PREF_STRING
work. the functionality was almost there, and i've simply put the code
related to PREF_STRING out of the '#ifdef PREF_CHOICE' guard, changed
expressions of the form *(char *) to *(char **) (since a string
preference is stored as a char *), and make it save the string value
in the diarc file using double quotes, to make the parser happy. it
works for me (i use it to store the list of hidden types), but maybe
the preferences.c author would like to have a look at it?

-------- Hans "at" Breuer "dot" Org -----------
Tell me what you need, and I'll tell you how to 
get along without it.                -- Dilbert

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]