On Sun, 13 Jun 1999, [EMAIL PROTECTED] wrote:
> On Fri, 11 Jun 1999, Ben Hochstedler wrote:
>
>> I just noticed today that I can't connect objects in different layers.
>> You can't even change an object's layer. You have to cut it and paste
>> it. Is this correct?
> That you can't connect between layers is not an accident. That was a
> design decision we(I) took when implementing layers. The internal
> complexity and efficiency is much better when the layers are
> separated. It also is less confusing for the user, and i feel that not
> much power is removed from the user.
>
>> I'd really like to see the ability to at least connect objects in
>> different layers. How easy would this source code change be Alex?
> It will mean changes to all layer code.
>
>> Other basic layer-specific features I'd like to see are:
>> * the ability to hide entires layers for display and for EPS export
> Possible.
Except that the bounding box isn't correctly calculated for EPS... I
thought this patch would help, but it doesn't seem so. What did I miss?
Index: lib/diagramdata.c
===================================================================
RCS file: /cvs/gnome/dia/lib/diagramdata.c,v
retrieving revision 1.6
diff -c -b -B -r1.6 diagramdata.c
*** lib/diagramdata.c 1999/05/18 20:03:35 1.6
--- lib/diagramdata.c 1999/06/13 18:12:25
***************
*** 225,231 ****
--- 225,233 ----
new_extents = layer->extents;
for (i=1;i<data->layers->len;i++) {
layer = (Layer *) g_ptr_array_index(data->layers, i);
+ if (layer->visible) {
rectangle_union(&new_extents, &layer->extents);
+ }
}
changed = ( (new_extents.left != extents->left) ||
>> * the ability to change an object's layer without having to cut & paste
> I can dig that. It's easy to implement to.
Is it? What happens to connections that object might have? Brutally cut?
Unless both objects are transferred at the same time, I suppose.
-Lars
--
Lars R. Clausen (http://shasta.cs.uiuc.edu/~lrclause) Hårdgrim of Westfield
"I do not agree with a word that you say, but I will defend to the death your
right to say it." -- Voltaire (?)