umbrello API Documentation

usecasewidget.h

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) 2002-2006                                               *
00009  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00010  ***************************************************************************/
00011 
00012 #ifndef USECASEWIDGET_H
00013 #define USECASEWIDGET_H
00014 #include "umlwidget.h"
00015 
00016 #define UC_MARGIN 5
00017 #define UC_WIDTH 60
00018 #define UC_HEIGHT 30
00019 
00020 
00021 class UMLUseCase;
00022 
00038 class UseCaseWidget : public UMLWidget {
00039 public:
00040 
00047     UseCaseWidget(UMLView * view, UMLUseCase *o);
00048 
00049 
00053     virtual ~UseCaseWidget();
00054 
00058     void draw(QPainter & p, int offsetX, int offsetY);
00059 
00063     void saveToXMI( QDomDocument & qDoc, QDomElement & qElement );
00064 
00065     // For loading we can use the loadFromXMI() inherited from UMLWidget.
00066 
00067 protected:
00071     QSize calculateSize();
00072 };
00073 
00074 #endif
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:08:03 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003