/*************************************************************************** * * * 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-2006 * * Umbrello UML Modeller Authors * ***************************************************************************/ #ifndef ASSOCGENPAGE_H #define ASSOCGENPAGE_H //quicktime class includes #include #include #include #include #include #include #include #include #include //my class includes #include "../umlobject.h" #include "../objectwidget.h" #include "../umldoc.h" #include "../associationwidget.h" class KComboBox; /** * Displays properties of a UMLObject in a dialog box. This is not usually directly * called. The class @ref AssocPropDlg will set this up for you. * * @short Display properties on a UMLObject. * @author Paul Hensgen * Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org */ class AssocGenPage : public TQWidget { Q_OBJECT public: /** * Sets up the AssocGenPage. * * @param d The UMLDoc which controls controls object creation. * @param parent The parent to the AssocGenPage. * @param a The AssociationWidget to display the properties of. */ AssocGenPage(UMLDoc *d, TQWidget *parent, AssociationWidget *a); /** * Standard deconstructor. */ ~AssocGenPage(); /** * Will move information from the dialog into the object. * Call when the ok or apply button is pressed. */ void updateObject(); private: TQLineEdit * m_pAssocNameLE; KComboBox *m_pTypeCB; /* Choices for the TQComboBox, and we store ints and strings so we can translate both ways */ TQValueList m_AssocTypes; TQStringList m_AssocTypeStrings; TQMultiLineEdit * m_pDoc; AssociationWidget *m_pAssociationWidget; UMLDoc * m_pUmldoc; ObjectWidget * m_pWidget; void constructWidget(); public slots: /** * When the draw as actor check box is toggled, the draw * as multi instance need to be enabled/disabled. They * both can't be available at the same time. */ // void slotActorToggled( bool state ); }; #endif