Want to connect two morphs with a line.
Hi All, I want to connect two morphs with a line for a UML editor application I'm working on. I want to show the line being created as the user moves the mouse from the source morph to the target morph. Once the mouse is over the target morph and the mouse released, the line should be created. Can someone explain how I would go about doing this. Which events would I need to capture, etc. Thanks.
Hi, Carla did the SmallUML GSoc in 2010. She also provided a MinimalConnector library to do this IIRC. http://www.squeaksource.com/smallUML Maybe it is what you are looking for. Luc #Luc 2013/4/25 Zeeshan Ansari <zeeshan.k.ansari@gmail.com>
Hi All, I want to connect two morphs with a line for a UML editor application I'm working on. I want to show the line being created as the user moves the mouse from the source morph to the target morph. Once the mouse is over the target morph and the mouse released, the line should be created.
Can someone explain how I would go about doing this. Which events would I need to capture, etc.
Thanks.
I have looked into that but I'm trying to do something a lot more simpler. This is basically for a school project and I'm trying to learn the Morphic framework. On Thu, Apr 25, 2013 at 8:51 AM, Luc Fabresse <luc.fabresse@gmail.com>wrote:
Hi,
Carla did the SmallUML GSoc in 2010. She also provided a MinimalConnector library to do this IIRC.
http://www.squeaksource.com/smallUML
Maybe it is what you are looking for.
Luc
#Luc
2013/4/25 Zeeshan Ansari <zeeshan.k.ansari@gmail.com>
Hi All, I want to connect two morphs with a line for a UML editor application I'm working on. I want to show the line being created as the user moves the mouse from the source morph to the target morph. Once the mouse is over the target morph and the mouse released, the line should be created.
Can someone explain how I would go about doing this. Which events would I need to capture, etc.
Thanks.
Load Slice 10407, because without it, no easy way to define your own TransferMorph You can have a look at the code attached, it defined a simple Spec UI (you can easily find the Morphic part in it), and a subclass of TransferMorph creating a from the draggedItem to the mouse. This Morph is usable in a fully Morphic UI, so it may interest you :) (it's a pro to, so the code is not documented, sorry) Ben On Apr 25, 2013, at 5:14 PM, Zeeshan Ansari <zeeshan.k.ansari@gmail.com> wrote:
I have looked into that but I'm trying to do something a lot more simpler. This is basically for a school project and I'm trying to learn the Morphic framework.
On Thu, Apr 25, 2013 at 8:51 AM, Luc Fabresse <luc.fabresse@gmail.com> wrote: Hi,
Carla did the SmallUML GSoc in 2010. She also provided a MinimalConnector library to do this IIRC.
http://www.squeaksource.com/smallUML
Maybe it is what you are looking for.
Luc
#Luc
2013/4/25 Zeeshan Ansari <zeeshan.k.ansari@gmail.com> Hi All, I want to connect two morphs with a line for a UML editor application I'm working on. I want to show the line being created as the user moves the mouse from the source morph to the target morph. Once the mouse is over the target morph and the mouse released, the line should be created.
Can someone explain how I would go about doing this. Which events would I need to capture, etc.
Thanks.
Hello, I'm having trouble loading a slice. What exactly is that and how do I load it into my Image. Does this need to be run on Pharo 2.0 or can I use it on 1.4? Once I file in the changes, how do I run the example. Thanks. On Thu, Apr 25, 2013 at 12:33 PM, Benjamin < benjamin.vanryseghem.pharo@gmail.com> wrote:
Load Slice 10407, because without it, no easy way to define your own TransferMorph
You can have a look at the code attached, it defined a simple Spec UI (you can easily find the Morphic part in it), and a subclass of TransferMorph creating a from the draggedItem to the mouse.
This Morph is usable in a fully Morphic UI, so it may interest you :) (it's a pro to, so the code is not documented, sorry)
Ben
On Apr 25, 2013, at 5:14 PM, Zeeshan Ansari <zeeshan.k.ansari@gmail.com> wrote:
I have looked into that but I'm trying to do something a lot more simpler. This is basically for a school project and I'm trying to learn the Morphic framework.
On Thu, Apr 25, 2013 at 8:51 AM, Luc Fabresse <luc.fabresse@gmail.com>wrote:
Hi,
Carla did the SmallUML GSoc in 2010. She also provided a MinimalConnector library to do this IIRC.
http://www.squeaksource.com/smallUML
Maybe it is what you are looking for.
Luc
#Luc
2013/4/25 Zeeshan Ansari <zeeshan.k.ansari@gmail.com>
Hi All, I want to connect two morphs with a line for a UML editor application I'm working on. I want to show the line being created as the user moves the mouse from the source morph to the target morph. Once the mouse is over the target morph and the mouse released, the line should be created.
Can someone explain how I would go about doing this. Which events would I need to capture, etc.
Thanks.
a slice is simply a package with dependencies. Normally loading a slice loads its dependent packages. So this is handy to get all the changes touching several packages in one click. Stef On Apr 27, 2013, at 8:50 PM, Zeeshan Ansari <zeeshan.k.ansari@gmail.com> wrote:
Hello,
I'm having trouble loading a slice. What exactly is that and how do I load it into my Image. Does this need to be run on Pharo 2.0 or can I use it on 1.4? Once I file in the changes, how do I run the example.
Thanks.
On Thu, Apr 25, 2013 at 12:33 PM, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote: Load Slice 10407, because without it, no easy way to define your own TransferMorph
You can have a look at the code attached, it defined a simple Spec UI (you can easily find the Morphic part in it), and a subclass of TransferMorph creating a from the draggedItem to the mouse.
This Morph is usable in a fully Morphic UI, so it may interest you :) (it's a pro to, so the code is not documented, sorry)
Ben
On Apr 25, 2013, at 5:14 PM, Zeeshan Ansari <zeeshan.k.ansari@gmail.com> wrote:
I have looked into that but I'm trying to do something a lot more simpler. This is basically for a school project and I'm trying to learn the Morphic framework.
On Thu, Apr 25, 2013 at 8:51 AM, Luc Fabresse <luc.fabresse@gmail.com> wrote: Hi,
Carla did the SmallUML GSoc in 2010. She also provided a MinimalConnector library to do this IIRC.
http://www.squeaksource.com/smallUML
Maybe it is what you are looking for.
Luc
#Luc
2013/4/25 Zeeshan Ansari <zeeshan.k.ansari@gmail.com> Hi All, I want to connect two morphs with a line for a UML editor application I'm working on. I want to show the line being created as the user moves the mouse from the source morph to the target morph. Once the mouse is over the target morph and the mouse released, the line should be created.
Can someone explain how I would go about doing this. Which events would I need to capture, etc.
Thanks.
You have to subclass TransferMorph I may have an example somewhere (Actually I have the example running in an old image, I update the code and send it to you :) ) Ben On Apr 25, 2013, at 3:08 PM, Zeeshan Ansari <zeeshan.k.ansari@gmail.com> wrote:
Hi All, I want to connect two morphs with a line for a UML editor application I'm working on. I want to show the line being created as the user moves the mouse from the source morph to the target morph. Once the mouse is over the target morph and the mouse released, the line should be created.
Can someone explain how I would go about doing this. Which events would I need to capture, etc.
Thanks.
Zeeshan Ansari wrote:
Hi All, I want to connect two morphs with a line for a UML editor application I'm working on. I want to show the line being created as the user moves the mouse from the source morph to the target morph. Once the mouse is over the target morph and the mouse released, the line should be created.
Can someone explain how I would go about doing this. Which events would I need to capture, etc.
Thanks.
Its not exactly what you asked, but just to round out your options, you might check out the Roassal "Rubber Band" example in Moose 4.7. cheers -ben
participants (5)
-
Ben Coman -
Benjamin -
Luc Fabresse -
stephane ducasse -
Zeeshan Ansari