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:2971
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:246
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:99
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
void addWidget(QWidget *widget, int row, int column, QFlags< Qt::AlignmentFlag > alignment)
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:309
QString getValues() const
Returns the UMLEntityAttribute's length/values property.
Definition: entityattribute.cpp:96
KLineEdit * m_pInitialLE
Definition: umlentityattributedialog.h:57
bool contains(const QString &str, Qt::CaseSensitivity cs) const
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:76
void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl)
Set the language for which code will be generated.
Definition: uml.cpp:2430
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:910
void setSpacing(int spacing)
void setBuddy(QWidget *buddy)
UMLObject * createUMLObject(UMLObject::ObjectType type, const QString &n, UMLPackage *parentPkg, bool solicitNewName)
Creates a UMLObject of the given type.
Definition: object_factory.cpp:192
void insertAttribute(const QString &type, int index=-1)
Inserts type into the type-combobox as well as its completion object.
Definition: umlentityattributedialog.cpp:300
QCheckBox * m_pAutoIncrementCB
Definition: umlentityattributedialog.h:58
void setEnabled(bool)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
int count(const T &value) const
void setInitialValue(const QString &iv)
Sets the initial value of the UMLAttribute.
Definition: attribute.cpp:109
QRadioButton * m_pPrivateRB
Definition: umlentityattributedialog.h:53
QChar fromLatin1(char c)
void setAutoIncrement(const bool autoIncrement)
Sets the UMLEntityAttribute's auto_increment boolean.
Definition: entityattribute.cpp:123
Definition: basictypes.h:264
bool isEmpty() const
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
KLineEdit * makeLabeledEditField(QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText)
Create a labeled text lineedit widget.
Definition: dialog_utils.cpp:45
QLabel * m_pStereoTypeL
Definition: umlentityattributedialog.h:54
void setMargin(int margin)
bool contains(QChar ch, Qt::CaseSensitivity cs) const
QString stereotype(bool includeAdornments=false) const
Returns the stereotype.
Definition: umlobject.cpp:579
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:2575
void setChecked(bool)
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:57
void setAttributes(const QString &attributes)
Sets the UMLEntityAttribute's attributes property.
Definition: entityattribute.cpp:87
void insertTypesSorted(const QString &type=QString())
Inserts type into the type-combobox as well as its completion object.
Definition: umlentityattributedialog.cpp:264
KLineEdit * m_pStereoTypeLE
Definition: umlentityattributedialog.h:57
QString fromLatin1(const char *str, int size)
void sort()
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
QObject * parent() const
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:825
void setStereotype(const QString &_name)
Sets the classes stereotype name.
Definition: umlobject.cpp:492
Definition: umlobject.h:55
KLineEdit * m_pValuesLE
Definition: umlentityattributedialog.h:57
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.