[Uml-devel] [Bug 112333] unchecking show operation signature create new functions in sequence diagrams
Oliver Kellogg
okellogg at users.sourceforge.net
Sun Sep 11 13:46:04 UTC 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=112333
okellogg users sourceforge net changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From okellogg users sourceforge net 2005-09-11 22:45 -------
SVN commit 459784 by okellogg:
SelectOpDlg constructor: Include signatures in the ops filled into m_pOpCB.
MessageWidget::getSeqNumAndOp(): Include signature in the op returned from the
UMLOperation.
FloatingText::setText(): Filter out signature from the op returned from
MessageWidget::getSeqNumAndOp() when UMLView::getShowOpSig() is false.
BUG:112333
M +1 -1 ChangeLog
M +1 -6 umbrello/dialogs/selectopdlg.cpp
M +4 -2 umbrello/floatingtext.cpp
M +1 -6 umbrello/messagewidget.cpp
--- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #459783:459784
@ -11,7 +11,7 @
* Bugs fixed / wishes implemented (see http://bugs.kde.org)
57588 57672 58809 66461 67120 67719 72016 79433 87252 88117
97162 105564 108223 109591 109636 110073 110216 110231 110379 111088
-111470 111502 111759 111768 112017 112293
+111470 111502 111759 111768 112017 112293 112333
Version 1.4.2 (maintenance release)
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/dialogs/selectopdlg.cpp #459783:459784
@ -64,14 +64,9 @
m_pOpBG -> setExclusive(true);
m_pOpBG -> setButton(OP);
- Uml::Signature_Type sigType;
- if (m_pView->getShowOpSig())
- sigType = Uml::st_SigNoScope;
- else
- sigType = Uml::st_NoSigNoScope;
UMLOperationList list = c -> getOpList(true);
for (UMLOperation *obj = list.first(); obj; obj=list.next()) {
- m_pOpCB->insertItem( obj->toString(sigType) );
+ m_pOpCB->insertItem( obj->toString(Uml::st_SigNoScope) );
}
//disableResize();
connect(m_pOpBG, SIGNAL(clicked(int)), this, SLOT(slotSelected(int)));
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/floatingtext.cpp #459783:459784
@ -193,9 +193,11 @
if (m_Role == Uml::tr_Seq_Message || m_Role == Uml::tr_Seq_Message_Self) {
QString seqNum, op;
m_pLink->getSeqNumAndOp(seqNum, op);
- if (seqNum.length() > 0 || op.length() > 0)
+ if (seqNum.length() > 0 || op.length() > 0) {
+ if (! m_pView->getShowOpSig())
+ op.replace( QRegExp("\\(.*\\)"), "()" );
m_Text = seqNum.append(": ").append( op );
- else
+ } else
m_Text = t;
} else
m_Text = t;
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/messagewidget.cpp #459783:459784
@ -506,12 +506,7 @
seqNum = m_SequenceNumber;
UMLOperation *pOperation = getOperation();
if (pOperation != NULL) {
- Uml::Signature_Type sigType;
- if (m_pView->getShowOpSig())
- sigType = Uml::st_SigNoScope;
- else
- sigType = Uml::st_NoSigNoScope;
- op = pOperation->toString(sigType);
+ op = pOperation->toString(Uml::st_SigNoScope);
} else {
op = m_CustomOp;
}
More information about the umbrello-devel
mailing list