Source: ./dialogs/assocpage.h


Annotated List
Files
Globals
Hierarchy
Index
/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/


#ifndef ASSOCPAGE_H
#define ASSOCPAGE_H

#include 
#include 
#include 
#include 

#include "../umlobject.h"
#include "../umlview.h"
#include "../associationwidgetdatalist.h"
#include "../associationwidget.h"
#include "../listpopupmenu.h"


/**
 *	Displays a page on the tabbed dialog window of @ref ClassPropDlg.
 *	The page shows all the Associations that belong to a @ref ConceptWidget.
 *
 *
 * @see ClassPropDlg

 * @see ConceptWidget
 *
 * @short	The page shows all the Associations that belong to a @ref ConceptWidget.
 * @author Paul Hensgen	
 * @version 1.0
 */
class AssocPage : public QWidget {
	Q_OBJECT
public:
	/**
	 *	Constructs an instance of AssocPage.
	 *
	 *	@param	parent	The parent of the page
	 *	@param	v	The view the UMLObject being represented.
	 *	@param	o	The UMLObject being represented
	 */
	AssocPage(QWidget *parent, UMLView * v, UMLObject * o);

	/**
	 *	Standard deconstructor.
	 */
	~AssocPage();
private:
	UMLObject * m_pObject;
	UMLView * m_pView;
	QListBox * m_pAssocLB;
	QGroupBox * m_pAssocGB;
	AssociationWidgetList m_List;
	ListPopupMenu * m_pMenu;

	/**
	 *	Fills the list box with the objects associations.
	 */
	void fillListBox();
public slots:
	void slotDoubleClick(QListBoxItem * i);
	void slotRightButtonClicked(QListBoxItem */* item*/, const QPoint &/* p*/);
	void slotRightButtonPressed(QListBoxItem * item, const QPoint & p);
	void slotPopupMenuSel(int id);
};

#endif

Generated by: jr on radge on Wed Sep 25 00:11:47 2002, using kdoc 2.0a54.