Bug 75456 - unable to move classes from no package into package
Summary: unable to move classes from no package into package
Status: RESOLVED DUPLICATE of bug 57667
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-17 21:13 UTC by cmg
Modified: 2005-02-14 23:04 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cmg 2004-02-17 21:13:35 UTC
Version:            (using KDE KDE 3.2.0)
OS:          Linux

Tree Pane starts out with:

  A 
  B
  C
  Package1
  Package2

After dragging and dropping A into Package1, it's impossible to drop package B into package1.  Additionally, it's impossible once it's in a subpackage, to drag it back out to the main part.

If I use cut & paste to attempt this, I get a segmentation fault

Mandrake Version:

0x413a2656 in ?? ()
#0  0x413a2656 in ?? ()
#1  0x4082eceb in ?? ()
#2  <signal handler called>
#3  0x4090e70d in ?? ()
#4  0x0815fd48 in UMLListView::loadChildrenFromXMI(UMLListViewItem*, QDomElement&) ()
#5  0x081ef8af in ClassWizard::setupPages() ()
#6  0x081eeee7 in ClassPropDlg::setupFontPage() ()
#7  0x0814b127 in UMLDoc::saveDocument(KURL const&, char const*) ()
#8  0x0815e1bb in UMLListView::loadFromXMI(QDomElement&) ()
#9  0x08165b8e in UMLObject::loadFromXMI(QDomElement&) ()
#10 0x40c12f11 in ?? ()

Current CVS:
0x413a6656 in waitpid () from /lib/i686/libpthread.so.0
#0  0x413a6656 in waitpid () from /lib/i686/libpthread.so.0
#1  0x40818ceb in KCrash::defaultCrashHandler(int) ()
   from /usr/lib/libkdecore.so.4
#2  0x4151aca8 in __libc_sigaction () from /lib/i686/libc.so.6
#3  0x08159ce9 in UMLListView::findItem(int) ()
#4  0x081e5b26 in UMLClipboard::pasteClip1(UMLDoc*, QMimeSource*) ()
#5  0x081e50ee in UMLClipboard::paste(UMLDoc*, QMimeSource*) ()
#6  0x08144be9 in UMLApp::slotEditPaste() ()
#7  0x0815832c in UMLListView::popupMenuSel(int) ()
#8  0x081602e3 in UMLListView::qt_invoke(int, QUObject*) ()
#9  0x40c12f11 in QObject::activate_signal(QConnectionList*, QUObject*) ()
   from /usr/lib/qt3/lib/libqt-mt.so.3
Comment 1 Oliver Kellogg 2004-02-19 07:48:14 UTC
In the list view, packages and folders acting as the target
of moves have a quirk. The move only works when the left mouse
button is released near the bottom pixels of the package
symbol.
In magnification:

       ____
/-----|    |
|          |    <=== release mouse here, move does not work
|          |
\----------/

       ____
/-----|    |
|          |
|          |
\----------/    <=== release mouse here, move does work


I don't know how to fix this. Qt experts?
Comment 2 cmg 2004-02-19 15:20:31 UTC
OK, After playing boundary games, that works for the first folder class you move in

 A
  - test 
 B

In order to move another one under A, you need to move it to the top portion of B.   

Is there a work around where I could just have a package list box and assign it on the class instance instead of using the tree widget?  Dragging and Dropping is good for 3 classes but I have about 60 to move.
Comment 3 Jonathan Riddell 2004-02-20 14:26:30 UTC

*** This bug has been marked as a duplicate of 57667 ***
Comment 4 Juan José Iglesias González 2005-02-07 13:40:42 UTC
I cannot move one class on a new package, I read comments and it's very dificult in my system. Sometimes umbrello is frozen when I drop a class into a package, I get a cursor with a + symbol and next umbrello frozen.

I get the message "umbrello: WARNING: no listitems in XMI clip".
Comment 5 Oliver Kellogg 2005-02-07 16:28:04 UTC
Please _always_ indicate which version of Umbrello you are using.
Please use an umbrello-1.4 beta or cvs head when reporting problems.
Comment 6 Juan José Iglesias González 2005-02-09 03:15:14 UTC
I'm sorry this is my first bug report. Yesterday I have compiled and install umbrello-1.4 beta (on debian sid).

I create three packages and a class (into one package). When I drag the class and drop over the package icon, umbrello runs well, but when I drop the class over the name of package, umbrello is frozen, the cursor looks with a + symbol in a square.

I get the next messages on konsole:

umbrello: slotDropped: newParent->getText() is nuevo_paquete_2
umbrello: UMLListView::moveObject: newParentType is 818
umbrello: slotDropped: newParent->getText() is nuevo_paquete_1
umbrello: UMLListView::moveObject: newParentType is 818
umbrello: slotDropped: newParent->getText() is nuevo_paquete
umbrello: UMLListView::moveObject: newParentType is 818
umbrello: slotDropped: newParent->getText() is nueva_clase
umbrello: UMLListView::moveObject: newParentType is 813

Sorry for my English and a lot of thank's to developers of umbrello, I love it!
Comment 7 Jonathan Riddell 2005-02-14 23:04:18 UTC
Juan: which beta version are you using? There were some fixes in this between beta 1 and beta 2.