• 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
enumwidget.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) 2003-2013 *
8  * Umbrello UML Modeller Authors <umbrello-devel@kde.org> *
9  ***************************************************************************/
10 
11 #ifndef ENUMWIDGET_H
12 #define ENUMWIDGET_H
13 
14 #include "umlwidget.h"
15 
16 #define ENUM_MARGIN 5
17 
27 class EnumWidget : public UMLWidget
28 {
29  Q_OBJECT
30 public:
31  explicit EnumWidget(UMLScene *scene, UMLObject* o);
32  virtual ~EnumWidget();
33 
34  bool showPackage() const;
35  void setShowPackage(bool _status);
36  void toggleShowPackage();
37 
38  virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = 0);
39 
40  virtual bool loadFromXMI(QDomElement& qElement);
41  virtual void saveToXMI(QDomDocument& qDoc, QDomElement& qElement);
42 
43 public Q_SLOTS:
44  virtual void slotMenuSelection(QAction* action);
45 
46 protected:
47  QSizeF minimumSize();
48 
49  bool m_showPackage;
50 };
51 
52 #endif
EnumWidget::toggleShowPackage
void toggleShowPackage()
Toggles the status of whether to show package.
Definition: enumwidget.cpp:82
EnumWidget::minimumSize
QSizeF minimumSize()
Overrides method from UMLWidget.
Definition: enumwidget.cpp:208
EnumWidget::setShowPackage
void setShowPackage(bool _status)
Set the status of whether to show Package.
Definition: enumwidget.cpp:72
QWidget
EnumWidget::EnumWidget
EnumWidget(UMLScene *scene, UMLObject *o)
Constructs an instance of EnumWidget.
Definition: enumwidget.cpp:34
EnumWidget::~EnumWidget
virtual ~EnumWidget()
Destructor.
Definition: enumwidget.cpp:53
EnumWidget::slotMenuSelection
virtual void slotMenuSelection(QAction *action)
Will be called when a menu selection has been made from the popup menu.
Definition: enumwidget.cpp:188
UMLObject
This class is the non-graphical version of UMLWidget.
Definition: umlobject.h:41
EnumWidget::showPackage
bool showPackage() const
Returns the status of whether to show Package.
Definition: enumwidget.cpp:62
umlwidget.h
EnumWidget::saveToXMI
virtual void saveToXMI(QDomDocument &qDoc, QDomElement &qElement)
Saves to the "enumwidget" XMI element.
Definition: enumwidget.cpp:173
EnumWidget::loadFromXMI
virtual bool loadFromXMI(QDomElement &qElement)
Loads from an "enumwidget" XMI element.
Definition: enumwidget.cpp:158
EnumWidget::paint
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Draws the enum as a rectangle with a box underneith with a list of literals Reimplemented from UMLWid...
Definition: enumwidget.cpp:93
EnumWidget
Defines a graphical version of the enum.
Definition: enumwidget.h:27
EnumWidget::m_showPackage
bool m_showPackage
Definition: enumwidget.h:49
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:59 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