blob: ab7aff20f689451cef79f37f7b5516d1e4873762 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
/***************************************************************************
* *
* 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) 2002-2006 *
* Umbrello UML Modeller Authors <uml-devel@uml.sf.net> *
***************************************************************************/
#ifndef ASSOCPAGE_H
#define ASSOCPAGE_H
#include <tqwidget.h>
#include <tqgroupbox.h>
#include <tqlistbox.h>
#include <tqptrlist.h>
#include "../umlobject.h"
#include "../umlview.h"
#include "../associationwidgetlist.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 UMLClassifier.
*
*
* @see ClassPropDlg
* @see UMLClassifier
*
* @short The page shows all the Associations that belong to a UMLClassifier.
* @author Paul Hensgen <phensgen@techie.com>
* Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
*/
class AssocPage : public TQWidget {
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(TQWidget *parent, UMLView * v, UMLObject * o);
/**
* Standard deconstructor.
*/
~AssocPage();
private:
UMLObject * m_pObject;
UMLView * m_pView;
TQListBox * m_pAssocLB;
TQGroupBox * m_pAssocGB;
AssociationWidgetList m_List;
ListPopupMenu * m_pMenu;
/**
* Fills the list box with the objects associations.
*/
void fillListBox();
public slots:
void slotDoubleClick(TQListBoxItem * i);
void slotRightButtonClicked(TQListBoxItem */* item*/, const TQPoint &/* p*/);
void slotRightButtonPressed(TQListBoxItem * item, const TQPoint & p);
void slotPopupMenuSel(int id);
};
#endif
|