MvcDiagram/models/attributes/diagramelementattributefactory.h

Go to the documentation of this file.
00001 /*  -*- c++ -*-  (for Emacs)
00002  *
00003  *  diagramelementattributefactory.h
00004  *  Digest
00005  * 
00006  *  Imported into Digest by Aidan Lane on Thu Jun 9 2005.
00007  *  Modifications Copyright (c) 2005 Optimisation and Constraint Solving Group,
00008  *  Monash University. All rights reserved.
00009  *
00010  *  Nodal file:
00011  *
00012  *    parcattributefactory.h
00013  *    Nodal
00014  *
00015  *    Created by Aidan Lane on Tue May 24 2005.
00016  *    Copyright (c) 2005 CEMA, Monash University. All rights reserved.
00017  *
00018  *  This program is free software; you can redistribute it and/or modify
00019  *  it under the terms of the GNU General Public License as published by
00020  *  the Free Software Foundation; either version 2 of the License, or
00021  *  (at your option) any later version.
00022  *
00023  *  This program is distributed in the hope that it will be useful,
00024  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00025  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00026  *  GNU General Public License for more details.
00027  *
00028  *  You should have received a copy of the GNU General Public License
00029  *  along with this program; if not, write to the Free Software
00030  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00031  */
00032 
00033 #ifndef DIAGRAMELEMENTATTRIBUTEFACTORY_H
00034 #define DIAGRAMELEMENTATTRIBUTEFACTORY_H
00035 
00036 
00037 #include <QList>
00038 
00039 #include "abstractdiagramelementattribute.h"
00040 
00041 class QByteArray;
00042 
00043 
00058 class DiagramElementAttributeFactory {
00059 
00060 public:
00061   static AbstractElementAttribute* create( MvcDiagram::ElementAttributeType type,
00062                                            AbstractElement* parent );
00063   static AbstractElementAttribute* create( const QByteArray& key,
00064                                            AbstractElement* parent );
00065   static const QList<QByteArray>& keys();
00066   static int type( const QByteArray& key );
00067   static const QString& title( const QByteArray& key );
00068 };
00069 
00070 
00071 #endif // ! DIAGRAMELEMENTATTRIBUTEFACTORY_H

Generated on Mon Jul 30 09:46:50 2007 for Digest by  doxygen 1.5.2