languages/cpp/classgeneratorconfig.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
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
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
00054
void storeConfig();
00055
00056
protected:
00057
00058
00059
protected slots:
00060
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
This file is part of the documentation for KDevelop Version 3.0.4.