You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
119 lines
3.4 KiB
119 lines
3.4 KiB
/***************************************************************************
|
|
rubycodegenerationpolicy.cpp
|
|
Derived from the Java code generator by thomas
|
|
|
|
begin : Thur Jul 21 2005
|
|
author : Richard Dale
|
|
***************************************************************************/
|
|
|
|
/***************************************************************************
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
* copyright (C) 2005-2006 *
|
|
* Umbrello UML Modeller Authors <uml-devel@uml.sf.net> *
|
|
***************************************************************************/
|
|
|
|
#ifndef RUBYCODEGENERATIONPOLICY_H
|
|
#define RUBYCODEGENERATIONPOLICY_H
|
|
|
|
#include <tqstring.h>
|
|
#include "codegenpolicyext.h"
|
|
#include "../codegenerationpolicy.h"
|
|
|
|
class TDEConfig;
|
|
class CodeGenerationPolicyPage;
|
|
|
|
class RubyCodeGenerationPolicy : public CodeGenPolicyExt
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
static const bool DEFAULT_AUTO_GEN_ATTRIB_ACCESSORS;
|
|
static const bool DEFAULT_AUTO_GEN_ASSOC_ACCESSORS;
|
|
|
|
// Constructors/Destructors
|
|
//
|
|
|
|
/**
|
|
* Constructors
|
|
*/
|
|
RubyCodeGenerationPolicy (TDEConfig * config = 0);
|
|
|
|
/**
|
|
* Empty Destructor
|
|
*/
|
|
virtual ~RubyCodeGenerationPolicy ( );
|
|
|
|
// Public attributes
|
|
//
|
|
|
|
|
|
// Public attribute accessor methods
|
|
//
|
|
|
|
/**
|
|
* Set the value of m_autoGenerateAttribAccessors
|
|
* @param var the new value
|
|
*/
|
|
void setAutoGenerateAttribAccessors ( bool var );
|
|
|
|
/**
|
|
* Get the value of m_autoGenerateAttribAccessors
|
|
* @return value the boolean value of m_autoGenerateAttribAccessors
|
|
*/
|
|
bool getAutoGenerateAttribAccessors( );
|
|
|
|
/**
|
|
* Set the value of m_autoGenerateAssocAccessors
|
|
* @param var the new value
|
|
*/
|
|
void setAutoGenerateAssocAccessors ( bool var );
|
|
|
|
/**
|
|
* Get the value of m_autoGenerateAssocAccessors
|
|
* @return value the boolean value of m_autoGenerateAssocAccessors
|
|
*/
|
|
bool getAutoGenerateAssocAccessors( );
|
|
|
|
/**
|
|
* set the defaults for this code generator from the passed generator.
|
|
*/
|
|
virtual void setDefaults (CodeGenPolicyExt * defaults, bool emitUpdateSignal = true);
|
|
|
|
/**
|
|
* set the defaults from a config file for this code generator from the passed TDEConfig pointer.
|
|
*/
|
|
virtual void setDefaults(TDEConfig * config, bool emitUpdateSignal = true);
|
|
|
|
/**
|
|
* write Default params to passed TDEConfig pointer.
|
|
*/
|
|
virtual void writeConfig (TDEConfig * config);
|
|
|
|
/**
|
|
* Create a new dialog interface for this object.
|
|
* @return dialog object
|
|
*/
|
|
CodeGenerationPolicyPage * createPage ( TQWidget *parent = 0, const char * name = 0);
|
|
|
|
protected:
|
|
|
|
/**
|
|
*/
|
|
void init ( );
|
|
|
|
private:
|
|
|
|
CodeGenerationPolicy *m_commonPolicy;
|
|
bool m_autoGenerateAttribAccessors;
|
|
bool m_autoGenerateAssocAccessors;
|
|
|
|
};
|
|
|
|
#endif // RUBYCODEGENERATIONPOLICY_H
|