• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdesdk API Reference
  • KDE Home
  • Contact Us
 

umbrello/umbrello

  • sources
  • kde-4.12
  • kdesdk
  • umbrello
  • umbrello
  • widgets
actorwidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  * This program is free software; you can redistribute it and/or modify *
3  * it under the terms of the GNU General Public License as published by *
4  * the Free Software Foundation; either version 2 of the License, or *
5  * (at your option) any later version. *
6  * *
7  * copyright (C) 2002-2013 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef ACTORWIDGET_H
12 #define ACTORWIDGET_H
13 
14 #include "umlwidget.h"
15 
16 #define A_WIDTH 20
17 #define A_HEIGHT 40
18 #define A_MARGIN 5
19 
20 class UMLActor;
21 
41 class ActorWidget : public UMLWidget
42 {
43 public:
44  ActorWidget(UMLScene * scene, UMLActor *o);
45  virtual ~ActorWidget();
46 
47  virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
48 
49  virtual void saveToXMI(QDomDocument & qDoc, QDomElement & qElement);
50 
51 protected:
52  QSizeF minimumSize();
53 };
54 
55 #endif
ActorWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Overrides the standard paint event.
Definition: actorwidget.cpp:39
QWidget
ActorWidget::~ActorWidget
virtual ~ActorWidget()
Destructor.
Definition: actorwidget.cpp:32
umlwidget.h
ActorWidget
This class is the graphical version of a UML Actor.
Definition: actorwidget.h:41
ActorWidget::ActorWidget
ActorWidget(UMLScene *scene, UMLActor *o)
Constructs an ActorWidget.
Definition: actorwidget.cpp:24
UMLActor
This class contains the non-graphical information required for a UML Actor.
Definition: actor.h:27
ActorWidget::minimumSize
QSizeF minimumSize()
Overrides method from UMLWidget.
Definition: actorwidget.cpp:90
ActorWidget::saveToXMI
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Saves the widget to the "actorwidget" XMI element.
Definition: actorwidget.cpp:80
UMLScene
UMLScene instances represent diagrams.
Definition: umlscene.h:70
UMLWidget
This is the base class for nearly all graphical widgets.
Definition: umlwidget.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdesdk API Reference

Skip menu "kdesdk API Reference"
  • kapptemplate
  • kcachegrind
  • kompare
  • lokalize
  • okteta
  • umbrello
  •   umbrello

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal