Re: Restricting possible connections



On Thu, Oct 24, 2002 at 12:21:22PM -0500, Lars Clausen wrote:
On Thu, 24 Oct 2002, ml knorke in-berlin de wrote:
2. Of course, this must be an option to the user.  Maybe a
   diagram specific or a global option?

Hmmm... good question.  Global options are easier to make and do away
with.  I really don't know which is better.

Let's go for a global option first, and make it more
advanced if the need is there.  Other idea: Allow user
the connection always if a modifier key is used (Escape/
Meta/Alt/Control/Shift).

3. The method to check has to be a new object function.
   Something like:

   typedef gboolean (*AllowConnectFunc) (Object* obj_me,
                                         Object* obj_other,
                                         ... /* ? */ );

You may want to give the handle and connection point to the function.
Could be some objects will allow objects to connect in certain ways and not
in others.

Absolutely true.

typedef gboolean (*AllowConnectFunc) (Object* obj_me,
                                      Object* obj_other,
                                      Handle* handle,
                                      ConnectionPoint* conpoint);

Cheers!



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