diff options
Diffstat (limited to 'umbrello/umbrello/dialogs/pkgcontentspage.h')
-rw-r--r-- | umbrello/umbrello/dialogs/pkgcontentspage.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/umbrello/umbrello/dialogs/pkgcontentspage.h b/umbrello/umbrello/dialogs/pkgcontentspage.h new file mode 100644 index 00000000..8659e672 --- /dev/null +++ b/umbrello/umbrello/dialogs/pkgcontentspage.h @@ -0,0 +1,62 @@ +/*************************************************************************** + * * + * 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 <uml-devel@uml.sf.net> * + ***************************************************************************/ + +#ifndef PKGCONTENTSPAGE_H +#define PKGCONTENTSPAGE_H + +#include <qwidget.h> +#include <qgroupbox.h> +#include <qlistbox.h> +#include <qptrlist.h> + +#include "../package.h" +#include "../listpopupmenu.h" + +/** + * @short The page shows all the objects that belong to a @ref UMLPackage. + * @author Oliver Kellogg <okellogg@users.sourceforge.net> + * Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org + */ +class PkgContentsPage : public QWidget { + Q_OBJECT +public: + /** + * Constructs an instance of PkgContentsPage. + * + * @param parent The parent of the page. + * @param pkg The UMLPackage being represented. + */ + PkgContentsPage(QWidget *parent, UMLPackage *pkg); + + /** + * Standard destructor. + */ + ~PkgContentsPage(); + +private: + UMLPackage * m_pPackage; + QListBox * m_pContentLB; + QGroupBox * m_pContentGB; + ListPopupMenu * m_pMenu; + + /** + * Fills the list box with the package's contents. + */ + 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 |