/*************************************************************************** * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * copyright (C) 2003-2014 * * Umbrello UML Modeller Authors * ***************************************************************************/ #ifndef ASSOCIATIONGENERALPAGE_H #define ASSOCIATIONGENERALPAGE_H #include "basictypes.h" #include "dialogpagebase.h" #include #include class AssociationWidget; class DocumentationWidget; class QCheckBox; class QGridLayout; class QLabel; class KComboBox; class KLineEdit; class ObjectWidget; class UMLDoc; class UMLObject; /** * Displays properties of a UMLObject in a dialog box. This is not usually directly * called. The class @ref AssociationPropertiesDialog will set this up for you. * * @short Display properties on a UMLObject. * @author Paul Hensgen * Bugs and comments to umbrello-devel@kde.org or http://bugs.kde.org */ class AssociationGeneralPage : public DialogPageBase { Q_OBJECT public: AssociationGeneralPage(QWidget *parent, AssociationWidget *a); ~AssociationGeneralPage(); void apply(); private: QGridLayout *m_pNameAndTypeLayout; QLabel *m_pAssocNameL; KLineEdit *m_pAssocNameLE; // is used if m_pStereoChkB is unchecked KComboBox *m_pAssocNameComB; // is used if m_pStereoChkB is checked QCheckBox *m_pStereoChkB; KComboBox *m_pTypeCB; /* Choices for the QComboBox, and we store ints and strings so we can translate both ways */ QList m_AssocTypes; QStringList m_AssocTypeStrings; DocumentationWidget *m_docWidget; AssociationWidget *m_pAssociationWidget; ObjectWidget *m_pWidget; void constructWidget(); public slots: void slotStereoCheckboxChanged(int state); }; #endif