umbrello API Documentation

statedialog.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 STATEDIALOG_H
00013 #define STATEDIALOG_H
00014 
00015 //kde class includes
00016 #include <kdialogbase.h>
00017 
00018 //local class includes
00019 #include "umlwidgetcolorpage.h"
00020 #include "activitypage.h"
00021 
00022 //forward declarations
00023 class UMLView;
00024 class StateWidget;
00025 class QLabel;
00026 class QLineEdit;
00027 class QMultiLineEdit;
00028 class QGroupBox;
00029 class KFontChooser;
00030 
00038 class StateDialog : public KDialogBase {
00039     Q_OBJECT
00040 
00041 public:
00045     StateDialog( UMLView * pView, StateWidget * pWidget );
00046 
00050     bool getChangesMade() {
00051         return m_bChangesMade;
00052     }
00053 
00054 protected slots:
00055 
00056     enum Page
00057     {
00058         GeneralPage = 0,
00059         Activity_Page,
00060         ColorPage,
00061         FontPage
00062     };
00063 
00067     void slotOk();
00068 
00072     void slotApply();
00073 protected:
00077     void setupPages();
00078 
00082     void setupGeneralPage();
00083 
00087     void setupColorPage();
00088 
00092     void setupFontPage();
00093 
00097     void setupActivityPage();
00098 
00102     void applyPage( Page page );
00103 
00107     KFontChooser * m_pChooser;
00108 
00112     UMLWidgetColorPage * m_pColorPage;
00113 
00117     ActivityPage * m_pActivityPage;
00118 
00122     StateWidget * m_pStateWidget;
00123 
00127     UMLView * m_pView;
00128 
00132     bool m_bChangesMade;
00133 
00134     struct GeneralPageWidgets {
00135         QLabel * nameL, * typeL;
00136         QLineEdit * nameLE, * typeLE;
00137         QMultiLineEdit * docMLE;
00138 
00139         QGroupBox * docGB, * generalGB;
00140     }
00141     m_GenPageWidgets;
00142 };
00143 
00144 #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:08:00 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003