umbrello/umbrello
activitydialog.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef ACTIVITYDIALOG_H
00012 #define ACTIVITYDIALOG_H
00013
00014
00015 #include "umlwidgetcolorpage.h"
00016
00017
00018 #include <klineedit.h>
00019 #include <kpagedialog.h>
00020 #include <kfontdialog.h>
00021 #include <ktextedit.h>
00022
00023
00024 class UMLView;
00025 class ActivityWidget;
00026 class QLabel;
00027 class QGroupBox;
00028 class QRadioButton;
00029
00036 class ActivityDialog : public KPageDialog
00037 {
00038 Q_OBJECT
00039
00040 public:
00044 ActivityDialog( UMLView * pView, ActivityWidget * pWidget );
00045
00049 bool getChangesMade() {
00050 return m_bChangesMade;
00051 }
00052
00053 protected slots:
00054
00058 void slotOk();
00059
00063 void slotApply();
00064
00065 void slotShowActivityParameter();
00066 void slotHideActivityParameter();
00067
00068 protected:
00069
00073 void setupPages();
00074
00078 void setupGeneralPage();
00079
00083 void setupColorPage();
00084
00088 void setupFontPage();
00089
00093 void showParameterActivity();
00094
00098 void applyPage( KPageWidgetItem * );
00099
00103 KFontChooser * m_pChooser;
00104
00108 UMLWidgetColorPage * m_pColorPage;
00109
00113 ActivityWidget * m_pActivityWidget;
00114
00118 UMLView * m_pView;
00119
00123 bool m_bChangesMade;
00124
00125 struct GeneralPageWidgets {
00126 QLabel * nameL, * typeL , * preL , * postL;
00127 KLineEdit * nameLE, * typeLE , * preLE , * postLE;
00128 KTextEdit * docTE;
00129 QRadioButton * NormalRB, * ParamRB, * InvokRB;
00130 QGroupBox * docGB, * generalGB;
00131 }
00132 m_GenPageWidgets;
00133 KPageWidgetItem *pageItemGeneral,*pageItemFont,*pageItemColor;
00134 };
00135
00136 #endif