Bug 120830

Summary: Wish: Support for qt signals/slots
Product: [Applications] umbrello Reporter: Bill Anderson <bill-kde>
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: CONFIRMED ---    
Severity: wishlist CC: ralf.habacker
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:

Description Bill Anderson 2006-01-26 20:41:39 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Gentoo Packages

I know this sounds inappropriate but hear me out.

I want to be able to, for example, in the collaboration diagram to be able to say an object/class "emits" a signal and link it to a class/object that is listening for it. Just as you would for calling a method of the other class/object.

Even better would be for Umbrello to see my connect statements and automatically link them. :)

I'd alse like to be able to specify signals and slots in the class editor and diagrams.

Naturally, I want code generation to include the signal/slot decllarations, though I dare not ask for connects ... but I have a conceptual idea how that *could* be done.

Primarily let me create/edit slots and signals in the class editor, and then I'd really like to see them in other diagrams such as collaboration. Naturally I want importing classes to recognize slots/signals as well. ;)
Comment 1 Alan Ezust 2006-01-29 05:39:53 UTC
I think this article should be relevant for this bug:

http://lists.trolltech.com/qt-interest/2001-05/msg00253.html

If there is actually a way to describe it in rational, we should try to emulate it in Umbrello.

Comment 2 Alan Ezust 2006-01-29 05:40:54 UTC
more specifically:
For signals and slots in the static model just add a new compartment
to the class.
See page 208 in the UML Language reference manual.

For the "dynamic model", you may use a stereotyped association.

However, I dont know wether RR supports additional compartments.
If it does not, then represent signals and slots
as stereotyped operations.

Torben

I do not have the "uml language reference manual" so I am not sure what this person is talking about.
Comment 3 Oliver Kellogg 2006-02-13 22:14:16 UTC
I quote David Johnson from the thread that Alan cites:

> Stereotypes are your friends when it comes to uncharted waters.  I am 
> thinking the best solution is to use sterotyped dependencies and interfaces. 
> Use the "lollipop" notation with the sterotype of <<slot>>, and dependencies 
> with a stereotype of <<signal>>.

Consensus? Any other ideas?
Comment 4 Ralf Habacker 2013-08-19 01:48:58 UTC
As no one gave better ideas nor a patch I guess it would be the best to add a related FAQ entry at http://userbase.kde.org/Umbrello/FAQ and close this bug.