/*************************************************************************** * * * 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 PKGCONTENTSPAGE_H #define PKGCONTENTSPAGE_H #include #include #include #include #include "../package.h" #include "../listpopupmenu.h" /** * @short The page shows all the objects that belong to a @ref UMLPackage. * @author Oliver Kellogg * Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org */ class PkgContentsPage : public TQWidget { Q_OBJECT public: /** * Constructs an instance of PkgContentsPage. * * @param parent The parent of the page. * @param pkg The UMLPackage being represented. */ PkgContentsPage(TQWidget *parent, UMLPackage *pkg); /** * Standard destructor. */ ~PkgContentsPage(); private: UMLPackage * m_pPackage; TQListBox * m_pContentLB; TQGroupBox * m_pContentGB; ListPopupMenu * m_pMenu; /** * Fills the list box with the package's contents. */ 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