umbrello/umbrello
umlentityattributedialog.cpp
Go to the documentation of this file.
42 UMLEntityAttributeDialog::UMLEntityAttributeDialog(QWidget * pParent, UMLEntityAttribute * pEntityAttribute)
164 connect(m_pAutoIncrementCB, SIGNAL(clicked(bool)), this, SLOT(slotAutoIncrementStateChanged(bool)));
189 KMessageBox::error(this, i18n("The entity attribute name you have chosen is already being used in this operation."),
Definition: entityattribute.h:34
void setNull(const bool null)
Sets the initial value of the UMLEntityAttribute's allow null value.
Definition: entityattribute.cpp:159
void addDefaultDatatypes()
Calls the active code generator to create its default datatypes.
Definition: umldoc.cpp:2920
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
UMLEntityAttribute * m_pEntityAttribute
The EntityAttribute to represent.
Definition: umlentityattributedialog.h:48
~UMLEntityAttributeDialog()
Definition: umlentityattributedialog.cpp:56
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
QString getAttributes() const
Returns the value of the UMLEntityAttribute's attributes property.
Definition: entityattribute.cpp:78
void setValues(const QString &values)
Sets the UMLEntityAttribute's length/values property.
Definition: entityattribute.cpp:105
QString getInitialValue() const
Returns The initial value of the UMLAttribute.
Definition: attribute.cpp:98
Definition: entityattribute.h:32
virtual void setType(UMLObject *type)
Sets the type of the UMLAttribute.
Definition: classifierlistitem.cpp:125
DBIndex_Type indexType() const
Returns the UMLEntityAttribute's index type property.
Definition: entityattribute.cpp:132
KComboBox * m_pAttributesCB
Definition: umlentityattributedialog.h:56
QGroupBox * m_pValuesGB
Definition: umlentityattributedialog.h:51
void slotAutoIncrementStateChanged(bool checked)
Is activated when the auto increment state is changed.
Definition: umlentityattributedialog.cpp:308
QString getValues() const
Returns the UMLEntityAttribute's length/values property.
Definition: entityattribute.cpp:96
KLineEdit * m_pInitialLE
Definition: umlentityattributedialog.h:57
QLabel * m_pAttributesL
Definition: umlentityattributedialog.h:54
void setName(const QString &name)
Reimplementation of method from UMLObject is required as an extra signal, attributeChanged(), is emitted.
Definition: attribute.cpp:75
void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl)
Set the language for which code will be generated.
Definition: uml.cpp:2344
void insertTypesSorted(const QString &type="")
Inserts type into the type-combobox as well as its completion object.
Definition: umlentityattributedialog.cpp:263
void slotNameChanged(const QString &)
Definition: umlentityattributedialog.cpp:168
UMLDoc * document() const
Returns a pointer to the current document connected to the KMainWindow instance.
Definition: uml.cpp:872
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Creates a UMLObject of the given type.
Definition: object_factory.cpp:162
void insertAttribute(const QString &type, int index=-1)
Inserts type into the type-combobox as well as its completion object.
Definition: umlentityattributedialog.cpp:299
QCheckBox * m_pAutoIncrementCB
Definition: umlentityattributedialog.h:58
void setInitialValue(const QString &iv)
Sets the initial value of the UMLAttribute.
Definition: attribute.cpp:108
QRadioButton * m_pPrivateRB
Definition: umlentityattributedialog.h:53
void setAutoIncrement(const bool autoIncrement)
Sets the UMLEntityAttribute's auto_increment boolean.
Definition: entityattribute.cpp:123
Definition: basictypes.h:258
bool apply()
Checks if changes are valid and applies them if they are, else returns false.
Definition: umlentityattributedialog.cpp:177
virtual UMLObject * findChildObject(const QString &n, UMLObject::ObjectType t=UMLObject::ot_UMLObject)
Find a child object with the given name.
Definition: umlcanvasobject.cpp:240
QLabel * m_pStereoTypeL
Definition: umlentityattributedialog.h:54
KLineEdit * makeLabeledEditField(QGroupBox *containingBox, QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText)
Create a labeled text lineedit widget.
Definition: dialog_utils.cpp:43
QString stereotype(bool includeAdornments=false) const
Returns the stereotype.
Definition: umlobject.cpp:581
bool getNull() const
Returns the UMLEntityAttribute's allow null value.
Definition: entityattribute.cpp:150
UMLClassifierList datatypes()
Returns a list of the datatypes in this UMLDoc.
Definition: umldoc.cpp:2531
void setIndexType(const DBIndex_Type indexType)
Sets the initial value of the UMLEntityAttribute's index type property.
Definition: entityattribute.cpp:141
This class is used to set up information for an entityattribute.
Definition: entityattribute.h:25
Definition: umlobject.h:56
void setAttributes(const QString &attributes)
Sets the UMLEntityAttribute's attributes property.
Definition: entityattribute.cpp:87
KLineEdit * m_pStereoTypeLE
Definition: umlentityattributedialog.h:57
UMLEntityAttributeDialog(QWidget *pParent, UMLEntityAttribute *pEntityAttribute)
Definition: umlentityattributedialog.cpp:42
bool getAutoIncrement() const
Returns the UMLEntityAttribute's auto_increment boolean.
Definition: entityattribute.cpp:114
QRadioButton * m_pNoneRB
Definition: umlentityattributedialog.h:53
virtual QString getTypeName() const
Returns the type name of the UMLClassifierListItem.
Definition: classifierlistitem.cpp:110
UMLObject * findUMLObject(const QString &name, UMLObject::ObjectType type=UMLObject::ot_UMLObject, UMLObject *currentObj=0)
Used to find a UMLObject by its type and name.
Definition: umldoc.cpp:809
void setStereotype(const QString &_name)
Sets the classes stereotype name.
Definition: umlobject.cpp:494
Definition: umlobject.h:54
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
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.