umbrello API Documentation

actorwidget.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 ACTORWIDGET_H
00013 #define ACTORWIDGET_H
00014 
00015 #include "umlwidget.h"
00016 
00017 #define A_WIDTH 20
00018 #define A_HEIGHT 40
00019 #define A_MARGIN 5
00020 
00021 class UMLActor;
00022 
00043 class ActorWidget : public UMLWidget {
00044 public:
00045 
00052     ActorWidget(UMLView * view, UMLActor *o);
00053 
00054 
00058     virtual ~ActorWidget();
00059 
00063     void draw(QPainter & p, int offsetX, int offsetY);
00064 
00069     void saveToXMI( QDomDocument & qDoc, QDomElement & qElement );
00070 
00071 protected:
00075     QSize calculateSize();
00076 };
00077 
00078 #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:07:53 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003