• 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
preconditionwidget.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 PRECONDITIONWIDGET_H
12 #define PRECONDITIONWIDGET_H
13 
14 #include "umlwidget.h"
15 
16 class ObjectWidget;
17 
32 class PreconditionWidget : public UMLWidget
33 {
34  Q_OBJECT
35 public:
36  PreconditionWidget(UMLScene* scene, ObjectWidget* a, Uml::ID::Type id = Uml::ID::None);
37  virtual ~PreconditionWidget();
38 
39  void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
40 
41  int minY() const;
42  int maxY() const;
43 
44  bool activate(IDChangeLog* Log = 0);
45 
46  virtual void saveToXMI(QDomDocument& qDoc, QDomElement& qElement);
47  virtual bool loadFromXMI(QDomElement& qElement);
48 
49 public slots:
50  void slotMenuSelection(QAction* action);
51  void slotWidgetMoved(Uml::ID::Type id);
52 
53 protected:
54  QSizeF minimumSize();
55 
56 private:
57  void calculateWidget();
58  void calculateDimensions();
59 
60  ObjectWidget* m_objectWidget;
61  int m_nY;
62 };
63 
64 #endif
ObjectWidget
Displays an instance UMLObject of a concept.
Definition: objectwidget.h:32
PreconditionWidget::PreconditionWidget
PreconditionWidget(UMLScene *scene, ObjectWidget *a, Uml::ID::Type id=Uml::ID::None)
Creates a Precondition widget.
Definition: preconditionwidget.cpp:42
PreconditionWidget::minimumSize
QSizeF minimumSize()
Overrides method from UMLWidget.
Definition: preconditionwidget.cpp:116
PreconditionWidget
A graphical version of a UML Precondition (new in UML 2.0).
Definition: preconditionwidget.h:32
PreconditionWidget::saveToXMI
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Saves the widget to the "preconditionwidget" XMI element.
Definition: preconditionwidget.cpp:264
IDChangeLog
This class contains all the ID translations done for each UMLObject pasted.
Definition: idchangelog.h:26
QWidget
PreconditionWidget::slotMenuSelection
void slotMenuSelection(QAction *action)
Captures any popup menu signals for menus it created.
Definition: preconditionwidget.cpp:238
PreconditionWidget::maxY
int maxY() const
Returns the maximum height this widget should be set at on a sequence diagrams.
Definition: preconditionwidget.cpp:227
PreconditionWidget::slotWidgetMoved
void slotWidgetMoved(Uml::ID::Type id)
Slot when widget is moved.
Definition: preconditionwidget.cpp:191
umlwidget.h
PreconditionWidget::activate
bool activate(IDChangeLog *Log=0)
Activates a PreconditionWidget.
Definition: preconditionwidget.cpp:149
Uml::ID::Type
std::string Type
Definition: basictypes.h:317
PreconditionWidget::loadFromXMI
virtual bool loadFromXMI(QDomElement &qElement)
Loads the widget from the "preconditionwidget" XMI element.
Definition: preconditionwidget.cpp:278
PreconditionWidget::minY
int minY() const
Returns the minimum height this widget should be set at on a sequence diagrams.
Definition: preconditionwidget.cpp:214
PreconditionWidget::~PreconditionWidget
virtual ~PreconditionWidget()
Destructor.
Definition: preconditionwidget.cpp:65
Uml::ID::None
const Type None
special value for uninitialized ID
Definition: basictypes.h:319
UMLScene
UMLScene instances represent diagrams.
Definition: umlscene.h:70
PreconditionWidget::paint
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Overrides the standard paint event.
Definition: preconditionwidget.cpp:72
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:06:00 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