• 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
  • dialogs
umlentityattributedialog.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 UMLENTITYATTRIBUTEDIALOG_H
12 #define UMLENTITYATTRIBUTEDIALOG_H
13 
14 #include <kdialog.h>
15 
16 class QCheckBox;
17 class QGroupBox;
18 class QLabel;
19 class QRadioButton;
20 class UMLEntityAttribute;
21 class KComboBox;
22 class KLineEdit;
23 
28 class UMLEntityAttributeDialog : public KDialog
29 {
30  Q_OBJECT
31 public:
32  UMLEntityAttributeDialog(QWidget* pParent, UMLEntityAttribute* pEntityAttribute);
33  ~UMLEntityAttributeDialog();
34 
35 protected:
36 
37  void setupDialog();
38 
39  bool apply();
40 
41  void insertTypesSorted(const QString& type = "");
42 
43  void insertAttribute(const QString& type, int index = -1);
44 
48  UMLEntityAttribute * m_pEntityAttribute;
49 
50  //GUI Widgets
51  QGroupBox * m_pAttsGB, * m_pValuesGB;
52  QGroupBox * m_pScopeGB;
53  QRadioButton * m_pPublicRB, * m_pPrivateRB, * m_pProtectedRB, * m_pNoneRB;
54  QLabel * m_pTypeL, * m_pNameL, * m_pInitialL, * m_pStereoTypeL, * m_pValuesL, * m_pAttributesL ;
55  KComboBox * m_pTypeCB;
56  KComboBox * m_pAttributesCB;
57  KLineEdit * m_pNameLE, * m_pInitialLE, * m_pStereoTypeLE, * m_pValuesLE;
58  QCheckBox* m_pAutoIncrementCB;
59  QCheckBox* m_pNullCB;
60 
61 public slots:
62 
63  void slotAutoIncrementStateChanged(bool checked);
64 
65  void slotApply();
66 
67  void slotOk();
68  void slotNameChanged(const QString &);
69 };
70 
71 #endif
UMLEntityAttributeDialog::m_pTypeCB
KComboBox * m_pTypeCB
Definition: umlentityattributedialog.h:55
UMLEntityAttributeDialog
Definition: umlentityattributedialog.h:28
UMLEntityAttributeDialog::m_pNameL
QLabel * m_pNameL
Definition: umlentityattributedialog.h:54
UMLEntityAttributeDialog::m_pEntityAttribute
UMLEntityAttribute * m_pEntityAttribute
The EntityAttribute to represent.
Definition: umlentityattributedialog.h:48
UMLEntityAttributeDialog::~UMLEntityAttributeDialog
~UMLEntityAttributeDialog()
Definition: umlentityattributedialog.cpp:56
UMLEntityAttributeDialog::slotApply
void slotApply()
I don't think this is used, but if we had an apply button it would slot into here.
Definition: umlentityattributedialog.cpp:245
UMLEntityAttributeDialog::m_pValuesL
QLabel * m_pValuesL
Definition: umlentityattributedialog.h:54
UMLEntityAttributeDialog::m_pAttributesCB
KComboBox * m_pAttributesCB
Definition: umlentityattributedialog.h:56
UMLEntityAttributeDialog::m_pValuesGB
QGroupBox * m_pValuesGB
Definition: umlentityattributedialog.h:51
UMLEntityAttributeDialog::slotAutoIncrementStateChanged
void slotAutoIncrementStateChanged(bool checked)
Is activated when the auto increment state is changed.
Definition: umlentityattributedialog.cpp:308
QWidget
UMLEntityAttributeDialog::m_pInitialLE
KLineEdit * m_pInitialLE
Definition: umlentityattributedialog.h:57
UMLEntityAttributeDialog::m_pAttributesL
QLabel * m_pAttributesL
Definition: umlentityattributedialog.h:54
UMLEntityAttributeDialog::m_pNameLE
KLineEdit * m_pNameLE
Definition: umlentityattributedialog.h:57
KDialog
UMLEntityAttributeDialog::insertTypesSorted
void insertTypesSorted(const QString &type="")
Inserts type into the type-combobox as well as its completion object.
Definition: umlentityattributedialog.cpp:263
UMLEntityAttributeDialog::m_pProtectedRB
QRadioButton * m_pProtectedRB
Definition: umlentityattributedialog.h:53
UMLEntityAttributeDialog::slotNameChanged
void slotNameChanged(const QString &)
Definition: umlentityattributedialog.cpp:168
UMLEntityAttributeDialog::m_pInitialL
QLabel * m_pInitialL
Definition: umlentityattributedialog.h:54
UMLEntityAttributeDialog::insertAttribute
void insertAttribute(const QString &type, int index=-1)
Inserts type into the type-combobox as well as its completion object.
Definition: umlentityattributedialog.cpp:299
UMLEntityAttributeDialog::m_pAutoIncrementCB
QCheckBox * m_pAutoIncrementCB
Definition: umlentityattributedialog.h:58
UMLEntityAttributeDialog::m_pPrivateRB
QRadioButton * m_pPrivateRB
Definition: umlentityattributedialog.h:53
UMLEntityAttributeDialog::apply
bool apply()
Checks if changes are valid and applies them if they are, else returns false.
Definition: umlentityattributedialog.cpp:177
UMLEntityAttributeDialog::m_pPublicRB
QRadioButton * m_pPublicRB
Definition: umlentityattributedialog.h:53
UMLEntityAttributeDialog::setupDialog
void setupDialog()
Sets up the dialog.
Definition: umlentityattributedialog.cpp:63
UMLEntityAttributeDialog::m_pStereoTypeL
QLabel * m_pStereoTypeL
Definition: umlentityattributedialog.h:54
UMLEntityAttributeDialog::m_pAttsGB
QGroupBox * m_pAttsGB
Definition: umlentityattributedialog.h:51
UMLEntityAttributeDialog::m_pScopeGB
QGroupBox * m_pScopeGB
Definition: umlentityattributedialog.h:52
UMLEntityAttributeDialog::m_pTypeL
QLabel * m_pTypeL
Definition: umlentityattributedialog.h:54
UMLEntityAttribute
This class is used to set up information for an entityattribute.
Definition: entityattribute.h:25
UMLEntityAttributeDialog::m_pNullCB
QCheckBox * m_pNullCB
Definition: umlentityattributedialog.h:59
UMLEntityAttributeDialog::m_pStereoTypeLE
KLineEdit * m_pStereoTypeLE
Definition: umlentityattributedialog.h:57
UMLEntityAttributeDialog::UMLEntityAttributeDialog
UMLEntityAttributeDialog(QWidget *pParent, UMLEntityAttribute *pEntityAttribute)
Definition: umlentityattributedialog.cpp:42
UMLEntityAttributeDialog::m_pNoneRB
QRadioButton * m_pNoneRB
Definition: umlentityattributedialog.h:53
UMLEntityAttributeDialog::slotOk
void slotOk()
Used when the OK button is clicked.
Definition: umlentityattributedialog.cpp:253
UMLEntityAttributeDialog::m_pValuesLE
KLineEdit * m_pValuesLE
Definition: umlentityattributedialog.h:57
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