KDevelop API Documentation

classgeneratorconfig.h

Go to the documentation of this file.
00001 /***************************************************************************
00002 *   Copyright (C) 2003 by Alexander Dymo                                  *
00003 *   cloudtemple@mksat.net                                                 *
00004 *                                                                         *
00005 *   This program is free software; you can redistribute it and/or modify  *
00006 *   it under the terms of the GNU General Public License as published by  *
00007 *   the Free Software Foundation; either version 2 of the License, or     *
00008 *   (at your option) any later version.                                   *
00009 *                                                                         *
00010 ***************************************************************************/
00011 
00012 #ifndef CLASSGENERATORCONFIG_H
00013 #define CLASSGENERATORCONFIG_H
00014 
00015 #include "classgeneratorconfigbase.h"
00016 
00017 class ClassGeneratorConfig : public ClassGeneratorConfigBase
00018 {
00019   Q_OBJECT
00020 
00021 public:
00022     enum NameCase { LowerCase, UpperCase, SameAsClassCase, SameAsFileCase };
00023     
00024     ClassGeneratorConfig(QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00025     
00026     ClassGeneratorConfig(QString v_cppHeaderText, QString v_cppSourceText, 
00027         QString v_objcHeaderText, QString v_objcSourceText,
00028         QString v_gtkHeaderText, QString v_gtkSourceText,
00029         NameCase v_fileCase, NameCase v_defCase, NameCase v_superCase,
00030         bool v_showAuthor, bool v_genDoc, bool v_reformat,
00031         QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
00032 
00033     ~ClassGeneratorConfig();
00034     /*$PUBLIC_FUNCTIONS$*/
00035 
00036     void readConfig();
00037     
00038     QString cppHeader();
00039     QString cppSource();
00040     QString objcHeader();
00041     QString objcSource();
00042     QString gtkHeader();
00043     QString gtkSource();
00044 
00045     NameCase fileCase();
00046     NameCase defCase();
00047     NameCase superCase();
00048 
00049     bool showAuthor();
00050     bool genDoc();
00051 
00052 public slots:
00053   /*$PUBLIC_SLOTS$*/
00054     void storeConfig();
00055 
00056 protected:
00057   /*$PROTECTED_FUNCTIONS$*/
00058 
00059 protected slots:
00060   /*$PROTECTED_SLOTS$*/
00061     virtual void templateTypeChanged(int type);
00062     
00063 private:
00064     QString *identifyTemplate(int value);
00065     QString templateText(QString path);
00066     void saveTemplateText(QString path, QString content);
00067 
00068     QString cppHeaderText;
00069     QString cppSourceText;
00070     QString objcHeaderText;
00071     QString objcSourceText;
00072     QString gtkHeaderText;
00073     QString gtkSourceText;
00074     
00075     QString *currTemplate;
00076 };
00077 
00078 #endif
00079 
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:22:28 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003