umbrello API Documentation

codegenerationoptionspage.h

00001 /***************************************************************************
00002                           codegenerationoptionspage.h  -  description
00003                              -------------------
00004     begin                : Thu Jul 25 2002
00005     copyright            : (C) 2002 by Luis De la Parra
00006     email                : luis@delaparra.org
00007   Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
00008  ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   (at your option) any later version.                                   *
00016  *                                                                         *
00017  *   copyright (C) 2003-2006                                               *
00018  *   Umbrello UML Modeller Authors <uml-devel@uml.sf.net>                  *
00019  ***************************************************************************/
00020 
00021 #ifndef CODEGENERATIONOPTIONSPAGE_H
00022 #define CODEGENERATIONOPTIONSPAGE_H
00023 
00024 #include <qwidget.h>
00025 #include "codegenerationoptionsbase.h"
00026 #include "../codegenerationpolicy.h"
00027 #include "../umlnamespace.h"
00028 
00034 class CodeGenerationPolicy;
00035 class CodeGenerationPolicyPage;
00036 
00037 // 2003-07-30 : Updated for new code generation system. No longer need Yucky codegenstate
00038 // structure.
00039 
00040 class CodeGenerationOptionsPage : public CodeGenerationOptionsBase  {
00041     Q_OBJECT
00042 public:
00043     CodeGenerationOptionsPage(QWidget *parent=0);
00044     ~CodeGenerationOptionsPage();
00045     void setDefaults();
00046     QString getCodeGenerationLanguage();
00047     void updateCodeGenerationPolicyTab();
00048     void apply();
00049 
00050 protected:
00051     CodeGenerationPolicy * m_parentPolicy;
00052 
00053 private:
00054 
00055     CodeGenerationPolicyPage * m_pCodePolicyPage;
00056     void init();
00057     int overwriteToInteger(CodeGenerationPolicy::OverwritePolicy value);
00058     int newLineToInteger(CodeGenerationPolicy::NewLineType value);
00059     int indentTypeToInteger(CodeGenerationPolicy::IndentationType value);
00060     void setupActiveLanguageBox();
00061 
00062 protected slots:
00063     void activeLanguageChanged(int id);
00064     void browseClicked();
00065 
00066 signals:
00067     void applyClicked();
00068     void languageChanged();
00069     void syncCodeDocumentsToParent();
00070 
00071 
00072 };
00073 
00074 #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:07:55 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003