You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdesdk/umbrello/umbrello/dialogs/pkgcontentspage.h

64 lines
2.0 KiB

/***************************************************************************
* *
* 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 <tqwidget.h>
#include <tqgroupbox.h>
#include <tqlistbox.h>
#include <tqptrlist.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.trinitydesktop.org
*/
class PkgContentsPage : public TQWidget {
TQ_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