umbrello API Documentation

umlviewdialog.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 UMLVIEWDIALOG_H
00013 #define UMLVIEWDIALOG_H
00014 //kde includes
00015 #include <kdialogbase.h>
00016 //app includes
00017 #include "classoptionspage.h"
00018 #include "umlwidgetcolorpage.h"
00019 #include "../optionstate.h"
00020 
00025 class UMLView;
00026 class ClassWidget;
00027 
00028 class QCheckBox;
00029 class QLabel;
00030 class QLineEdit;
00031 class QGroupBox;
00032 class QTextEdit;
00033 class QSpinBox;
00034 class KFontChooser;
00035 class DiagramPropertiesPage;
00036 
00037 
00038 class UMLViewDialog : public KDialogBase {
00039     Q_OBJECT
00040 public:
00044     UMLViewDialog( QWidget * pParent, UMLView * pView );
00045 
00049     ~UMLViewDialog();
00050 protected:
00051     enum Page
00052     {
00053         General = 0,
00054         Color,
00055         Font,
00056         Class
00057     };
00058 
00062     void setupPages();
00063 
00067     void setupDiagramPropertiesPage();
00068 
00072     void setupClassPage();
00073 
00077     void setupColorPage();
00078 
00082     void setupFontPage();
00083 
00087     void applyPage( Page page );
00088 
00092     void checkName();
00093 
00097     UMLView * m_pView;
00098 
00099     Settings::OptionState m_options;
00100 
00101     KFontChooser * m_pChooser;
00102     DiagramPropertiesPage *m_diagramProperties;
00103     ClassOptionsPage * m_pOptionsPage;
00104     UMLWidgetColorPage * m_pColorPage;
00105 
00106     //GUI widgets
00107     QLabel * m_pNameL, * m_pSpinXL, * m_pSpinYL;
00108     QLineEdit * m_pNameLE;
00109     QGroupBox * m_pDocGB, * m_pValuesGB;
00110     QCheckBox * m_pSnapToGridCB, * m_pShowSnapCB;
00111     QTextEdit * m_pDocTE;
00112     QSpinBox * m_pSnapXSB, * m_pSnapYSB;
00113     QSpinBox * m_pLineWidthSB;
00114 public slots:
00115     void slotOk();
00116     void slotApply();
00117 };
00118 
00119 #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:02 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003