[Uml-devel] Todo for stable release

Sebastian Stein s5228 at informatik.htw-dresden.de
Tue Oct 22 12:21:07 UTC 2002


Jens Krüger <jkrueger1 at users.sourceforge.net> [021022 17:57]:
> So I work very hard this weekend to understand a little bit more the
> mechanism of the cut and paste in umbrello. I found a solution for the
> tree which will be presented in the attached patch. I ask you for testing
> this feature and report all bugs. It is not clear on what item what menu
> items are useful.  For the first it seems so, that the cut and copy menu
> item on a class makes no sense because in the current list you cannot add
> the class with the same name, but if you open a second application with an
> other open file for example it makes sense. Please have a look at this
> patch with respect of the text above.

Ok, I have tested it and it compiles fine.

Cut: It is not good to remove the cutted object after the cut command. It
should only be removed after the pasting. This is the normal behaviour like
in every file manager. If you cut a file in Konqueror it will be removed
after you paste the file somewhere else.

Paste: Is it possible to scroll the tree to the position of the pasted
element? Because I want to see that I really pasted it.

I really was impressed that copy, cut & paste worked between 2 different
Umbrello sessions!

Segfault: Copy maybe an operation from class A and paste it into B. Now do
paste again and the app will crash.

I think if nothing is in the clipboard, paste shouldn't be avaible. Maybe we
should also disable pasting if the element in the clipboard couldn't be
pasted at this position. (paste usecase diagram to class or something like
this)

A nice bt:

0x412be389 in wait4 () from /lib/libc.so.6
#0  0x412be389 in wait4 () from /lib/libc.so.6
#1  0x41336058 in __check_rhosts_file () from /lib/libc.so.6
#2  0x411ee263 in waitpid () from /lib/libpthread.so.0
#3  0x409c30df in KCrash::defaultCrashHandler ()
   from /opt/kde/lib/libkdecore.so.4
#4  0x411ebd94 in pthread_kill () from /lib/libpthread.so.0
#5  0x41247908 in sigaction () from /lib/libc.so.6
#6  0x8067250 in UMLListView::slotChildObjectCreated (this=0x8206a30, 
    o=0x8259380) at umllistview.cpp:317
#7  0x80d142d in UMLListView::qt_invoke (this=0x8206a30, _id=93,
_o=0xbfffe514)
    at umllistview.moc.cpp:192
#8  0x40cd8ff6 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#9  0x80d02ca in UMLDoc::sigChildObjectCreated (this=0x81f1b18,
t0=0x8259380)
    at umldoc.moc.cpp:223
#10 0x808e183 in UMLDoc::signalChildUMLObjectCreated (this=0x81f1b18, 
    o=0x8259380) at umldoc.cpp:771
#11 0x8120997 in UMLClipboard::pasteClip5 (this=0xbfffe698, Doc=0x81f1b18, 
    Data=0x82f1038) at umlclipboard.cpp:692
#12 0x811edbb in UMLClipboard::paste (this=0xbfffe698, Doc=0x81f1b18, 
    Data=0x82f1038) at umlclipboard.cpp:224
#13 0x8097f57 in UMLApp::slotEditPaste (this=0x81d93e8) at uml.cpp:626
#14 0x809222c in UMLDoc::EditPaste (this=0x81f1b18) at umldoc.cpp:1425
#15 0x8066fb8 in UMLListView::popupMenuSel (this=0x8206a30, sel=1949)
    at umllistview.cpp:266
#16 0x80d1493 in UMLListView::qt_invoke (this=0x8206a30, _id=99,
_o=0xbfffe8f4)
    at umllistview.moc.cpp:198
#17 0x40cd8ff6 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#18 0x40cd9104 in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#19 0x40fac84f in QPopupMenu::activated () from /usr/lib/libqt-mt.so.3
#20 0x40dc129d in QPopupMenu::actSig () from /usr/lib/libqt-mt.so.3
#21 0x40dc42a8 in QPopupMenu::mouseReleaseEvent () from
/usr/lib/libqt-mt.so.3
#22 0x40d05991 in QWidget::event () from /usr/lib/libqt-mt.so.3
#23 0x40c7c466 in QApplication::internalNotify () from
/usr/lib/libqt-mt.so.3
#24 0x40c7bdb3 in QApplication::notify () from /usr/lib/libqt-mt.so.3
#25 0x409103f4 in KApplication::notify () from /opt/kde/lib/libkdecore.so.4
#26 0x40c2b999 in QETWidget::translateMouseEvent () from
/usr/lib/libqt-mt.so.3
#27 0x40c2934f in QApplication::x11ProcessEvent () from
/usr/lib/libqt-mt.so.3
#28 0x40c2806e in QApplication::processNextEvent () from
/usr/lib/libqt-mt.so.3
#29 0x40c7d87f in QApplication::enter_loop () from /usr/lib/libqt-mt.so.3
#30 0x40c27fdb in QApplication::exec () from /usr/lib/libqt-mt.so.3
#31 0x80a8a34 in main (argc=1, argv=0xbffff1c4) at main.cpp:83
#32 0x4123774f in __libc_start_main () from /lib/libc.so.6

Steinchen
-- 
http://www.hpfsc.de/ - die Seite rund um:
Assembler, Bundeswehr, TFT LCDs, Halle/Saale, Fahrradtouren,
Wanderstaat Mauma, Raumschiff USS Nathan, Enemy Room, MLCAD Tutorial




More information about the umbrello-devel mailing list