umbrello API Documentation

rubycodegenerationpolicy.h

00001 /***************************************************************************
00002                           rubycodegenerationpolicy.cpp
00003                           Derived from the Java code generator by thomas
00004 
00005     begin                : Thur Jul 21 2005
00006     author               : Richard Dale
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  *   copyright (C) 2005-2006                                               *
00017  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00018  ***************************************************************************/
00019 
00020 #ifndef RUBYCODEGENERATIONPOLICY_H
00021 #define RUBYCODEGENERATIONPOLICY_H
00022 
00023 #include <qstring.h>
00024 #include "codegenpolicyext.h"
00025 #include "../codegenerationpolicy.h"
00026 
00027 class KConfig;
00028 class CodeGenerationPolicyPage;
00029 
00030 class RubyCodeGenerationPolicy : public CodeGenPolicyExt
00031 {
00032     Q_OBJECT
00033 public:
00034 
00035     static const bool DEFAULT_AUTO_GEN_ATTRIB_ACCESSORS;
00036     static const bool DEFAULT_AUTO_GEN_ASSOC_ACCESSORS;
00037 
00038     // Constructors/Destructors
00039     //
00040 
00044     RubyCodeGenerationPolicy (KConfig * config = 0);
00045 
00049     virtual ~RubyCodeGenerationPolicy ( );
00050 
00051     // Public attributes
00052     //
00053 
00054 
00055     // Public attribute accessor methods
00056     //
00057 
00062     void setAutoGenerateAttribAccessors ( bool var );
00063 
00068     bool getAutoGenerateAttribAccessors( );
00069 
00074     void setAutoGenerateAssocAccessors ( bool var );
00075 
00080     bool getAutoGenerateAssocAccessors( );
00081 
00085     virtual void setDefaults (CodeGenPolicyExt * defaults, bool emitUpdateSignal = true);
00086 
00090     virtual void setDefaults(KConfig * config, bool emitUpdateSignal = true);
00091 
00095     virtual void writeConfig (KConfig * config);
00096 
00101     CodeGenerationPolicyPage * createPage ( QWidget *parent = 0, const char * name = 0);
00102 
00103 protected:
00104 
00107     void init ( );
00108 
00109 private:
00110 
00111     CodeGenerationPolicy *m_commonPolicy;
00112     bool m_autoGenerateAttribAccessors;
00113     bool m_autoGenerateAssocAccessors;
00114 
00115 };
00116 
00117 #endif // RUBYCODEGENERATIONPOLICY_H
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