umbrello API Documentation

linkwidget.cpp

00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  *   copyright (C) 2004-2006                                               *
00009  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00010  ***************************************************************************/
00011 
00012 // own header
00013 #include "linkwidget.h"
00014 // qt/kde includes
00015 #include <kdebug.h>
00016 // app includes
00017 #include "umlview.h"
00018 #include "umlobject.h"
00019 #include "classifier.h"
00020 #include "operation.h"
00021 #include "uml.h"
00022 
00023 LinkWidget::LinkWidget() {
00024 }
00025 
00026 LinkWidget::~LinkWidget() {
00027 }
00028 
00029 UMLClassifier *LinkWidget::getOperationOwner() {
00030     UMLOperation *op = getOperation();
00031     if (op == NULL)
00032         return NULL;
00033     return static_cast<UMLClassifier*>(op->parent());
00034 }
00035 
00036 QString LinkWidget::getOperationText(UMLView *view /* = NULL */) {
00037     UMLOperation *op = getOperation();
00038     if (op == NULL)
00039         return getCustomOpText();
00040     if (view == NULL)
00041         view = UMLApp::app()->getCurrentView();
00042     Uml::Signature_Type sigType;
00043     if (view && view->getShowOpSig())
00044         sigType = Uml::st_SigNoVis;
00045     else
00046         sigType = Uml::st_NoSigNoVis;
00047     QString opText = op->toString(sigType);
00048     return opText;
00049 }
00050 
00051 void LinkWidget::resetTextPositions() {
00052 }
00053 
00054 bool LinkWidget::showDialog() {
00055     return true;
00056 }
00057 
00058 void LinkWidget::calculateNameTextSegment() {
00059 }
00060 
00061 
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:58 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003