umbrello API Documentation

activitypage.h

00001 /***************************************************************************
00002  *                                                                         *
00003  *   This program is free software; you can redistribute it and/or modify  *
00004  *   it under the terms of the GNU General Public License as published by  *
00005  *   the Free Software Foundation; either version 2 of the License, or     *
00006  *   (at your option) any later version.                                   *
00007  *                                                                         *
00008  *   copyright (C) 2002-2006                                               *
00009  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00010  ***************************************************************************/
00011 
00012 #ifndef ACTIVITYPAGE_H
00013 #define ACTIVITYPAGE_H
00014 //qt includes
00015 #include <qwidget.h>
00016 #include <qgroupbox.h>
00017 #include <qlistbox.h>
00018 //kde includes
00019 #include <karrowbutton.h>
00020 //app includes
00021 
00022 class StateWidget;
00023 class ListPopupMenu;
00024 
00029 class ActivityPage : public QWidget {
00030     Q_OBJECT
00031 public:
00035     ActivityPage( QWidget * pParent, StateWidget * pWidget );
00036 
00040     ~ActivityPage();
00041 
00045     void setupPage();
00046 
00050     void updateActivities();
00051 
00052 protected:
00058     void enableWidgets(bool state);
00059 
00063     StateWidget * m_pStateWidget;
00064 
00068     ListPopupMenu * m_pMenu;
00069     //GUI widgets
00070     QListBox * m_pActivityLB;
00071     QGroupBox * m_pActivityGB;
00072     KArrowButton * m_pUpArrowB, * m_pDownArrowB, * m_pTopArrowB, *m_pBottomArrowB;
00073     QPushButton* m_pDeleteActivityButton;
00074     QPushButton* m_pRenameButton;
00075 
00076 public slots:
00080     void slotMenuSelection( int sel );
00081     void slotClicked( QListBoxItem* item );
00082     void slotDoubleClicked( QListBoxItem* item );
00083     void slotRightButtonClicked(QListBoxItem* item, const QPoint& p);
00084     void slotRightButtonPressed(QListBoxItem* item, const QPoint& p);
00085     void slotTopClicked();
00086     void slotUpClicked();
00087     void slotDownClicked();
00088     void slotBottomClicked();
00089     void slotNewActivity();
00090     void slotDelete();
00091     void slotRename();
00092 };
00093 
00094 #endif
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:07:53 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003