KDevelop API Documentation

ClassGeneratorConfig Class Reference

#include <classgeneratorconfig.h>

Inheritance diagram for ClassGeneratorConfig:

Inheritance graph
[legend]
Collaboration diagram for ClassGeneratorConfig:

Collaboration graph
[legend]
List of all members.

Public Types

enum  NameCase { LowerCase, UpperCase, SameAsClassCase, SameAsFileCase }

Public Slots

void storeConfig ()

Public Member Functions

 ClassGeneratorConfig (QWidget *parent=0, const char *name=0, WFlags fl=0)
 ClassGeneratorConfig (QString v_cppHeaderText, QString v_cppSourceText, QString v_objcHeaderText, QString v_objcSourceText, QString v_gtkHeaderText, QString v_gtkSourceText, NameCase v_fileCase, NameCase v_defCase, NameCase v_superCase, bool v_showAuthor, bool v_genDoc, bool v_reformat, QWidget *parent=0, const char *name=0, WFlags fl=0)
 ~ClassGeneratorConfig ()
void readConfig ()
QString cppHeader ()
QString cppSource ()
QString objcHeader ()
QString objcSource ()
QString gtkHeader ()
QString gtkSource ()
NameCase fileCase ()
NameCase defCase ()
NameCase superCase ()
bool showAuthor ()
bool genDoc ()

Protected Slots

virtual void templateTypeChanged (int type)

Private Member Functions

QStringidentifyTemplate (int value)
QString templateText (QString path)
void saveTemplateText (QString path, QString content)

Private Attributes

QString cppHeaderText
QString cppSourceText
QString objcHeaderText
QString objcSourceText
QString gtkHeaderText
QString gtkSourceText
QStringcurrTemplate

Member Enumeration Documentation

enum ClassGeneratorConfig::NameCase
 

Enumeration values:
LowerCase 
UpperCase 
SameAsClassCase 
SameAsFileCase 

Definition at line 22 of file classgeneratorconfig.h.

Referenced by defCase(), fileCase(), and superCase().


Constructor & Destructor Documentation

ClassGeneratorConfig::ClassGeneratorConfig QWidget parent = 0,
const char *  name = 0,
WFlags  fl = 0
 

Definition at line 24 of file classgeneratorconfig.cpp.

References currTemplate, and readConfig().

ClassGeneratorConfig::ClassGeneratorConfig QString  v_cppHeaderText,
QString  v_cppSourceText,
QString  v_objcHeaderText,
QString  v_objcSourceText,
QString  v_gtkHeaderText,
QString  v_gtkSourceText,
NameCase  v_fileCase,
NameCase  v_defCase,
NameCase  v_superCase,
bool  v_showAuthor,
bool  v_genDoc,
bool  v_reformat,
QWidget parent = 0,
const char *  name = 0,
WFlags  fl = 0
 

Definition at line 32 of file classgeneratorconfig.cpp.

References currTemplate.

ClassGeneratorConfig::~ClassGeneratorConfig  ) 
 

Definition at line 53 of file classgeneratorconfig.cpp.


Member Function Documentation

QString ClassGeneratorConfig::cppHeader  ) 
 

Definition at line 66 of file classgeneratorconfig.cpp.

References currTemplate.

Referenced by CppNewClassDialog::ClassGenerator::gen_interface(), and storeConfig().

QString ClassGeneratorConfig::cppSource  ) 
 

Definition at line 73 of file classgeneratorconfig.cpp.

References currTemplate.

Referenced by CppNewClassDialog::ClassGenerator::gen_implementation(), and storeConfig().

ClassGeneratorConfig::NameCase ClassGeneratorConfig::defCase  ) 
 

Definition at line 113 of file classgeneratorconfig.cpp.

References NameCase.

Referenced by CppNewClassDialog::ClassGenerator::gen_interface().

ClassGeneratorConfig::NameCase ClassGeneratorConfig::fileCase  ) 
 

Definition at line 108 of file classgeneratorconfig.cpp.

References NameCase.

Referenced by CppNewClassDialog::classNameChanged().

bool ClassGeneratorConfig::genDoc  ) 
 

Definition at line 128 of file classgeneratorconfig.cpp.

QString ClassGeneratorConfig::gtkHeader  ) 
 

Definition at line 94 of file classgeneratorconfig.cpp.

References currTemplate.

Referenced by CppNewClassDialog::ClassGenerator::gen_interface(), and storeConfig().

QString ClassGeneratorConfig::gtkSource  ) 
 

Definition at line 101 of file classgeneratorconfig.cpp.

References currTemplate.

Referenced by CppNewClassDialog::ClassGenerator::gen_implementation(), and storeConfig().

QString * ClassGeneratorConfig::identifyTemplate int  value  )  [private]
 

Definition at line 133 of file classgeneratorconfig.cpp.

Referenced by templateTypeChanged().

QString ClassGeneratorConfig::objcHeader  ) 
 

Definition at line 80 of file classgeneratorconfig.cpp.

References currTemplate.

Referenced by CppNewClassDialog::ClassGenerator::gen_interface(), and storeConfig().

QString ClassGeneratorConfig::objcSource  ) 
 

Definition at line 87 of file classgeneratorconfig.cpp.

References currTemplate.

Referenced by CppNewClassDialog::ClassGenerator::gen_implementation(), and storeConfig().

void ClassGeneratorConfig::readConfig  ) 
 

Definition at line 146 of file classgeneratorconfig.cpp.

References cppHeaderText, cppSourceText, KStandardDirs::findResource(), gtkHeaderText, gtkSourceText, objcHeaderText, objcSourceText, KConfigBase::readBoolEntry(), KConfigBase::readNumEntry(), KConfigBase::setGroup(), and templateText().

Referenced by ClassGeneratorConfig().

void ClassGeneratorConfig::saveTemplateText QString  path,
QString  content
[private]
 

Definition at line 219 of file classgeneratorconfig.cpp.

Referenced by storeConfig().

bool ClassGeneratorConfig::showAuthor  ) 
 

Definition at line 123 of file classgeneratorconfig.cpp.

void ClassGeneratorConfig::storeConfig  )  [slot]
 

Definition at line 192 of file classgeneratorconfig.cpp.

References cppHeader(), cppSource(), gtkHeader(), gtkSource(), objcHeader(), objcSource(), KStandardDirs::saveLocation(), saveTemplateText(), KConfigBase::setGroup(), and KConfigBase::writeEntry().

ClassGeneratorConfig::NameCase ClassGeneratorConfig::superCase  ) 
 

Definition at line 118 of file classgeneratorconfig.cpp.

References NameCase.

Referenced by CppNewClassDialog::baseclassname_changed().

QString ClassGeneratorConfig::templateText QString  path  )  [private]
 

Definition at line 174 of file classgeneratorconfig.cpp.

References file.

Referenced by readConfig().

void ClassGeneratorConfig::templateTypeChanged int  type  )  [protected, virtual, slot]
 

Reimplemented from ClassGeneratorConfigBase.

Definition at line 58 of file classgeneratorconfig.cpp.

References currTemplate, and identifyTemplate().


Member Data Documentation

QString ClassGeneratorConfig::cppHeaderText [private]
 

Definition at line 68 of file classgeneratorconfig.h.

Referenced by readConfig().

QString ClassGeneratorConfig::cppSourceText [private]
 

Definition at line 69 of file classgeneratorconfig.h.

Referenced by readConfig().

QString* ClassGeneratorConfig::currTemplate [private]
 

Definition at line 75 of file classgeneratorconfig.h.

Referenced by ClassGeneratorConfig(), cppHeader(), cppSource(), gtkHeader(), gtkSource(), objcHeader(), objcSource(), and templateTypeChanged().

QString ClassGeneratorConfig::gtkHeaderText [private]
 

Definition at line 72 of file classgeneratorconfig.h.

Referenced by readConfig().

QString ClassGeneratorConfig::gtkSourceText [private]
 

Definition at line 73 of file classgeneratorconfig.h.

Referenced by readConfig().

QString ClassGeneratorConfig::objcHeaderText [private]
 

Definition at line 70 of file classgeneratorconfig.h.

Referenced by readConfig().

QString ClassGeneratorConfig::objcSourceText [private]
 

Definition at line 71 of file classgeneratorconfig.h.

Referenced by readConfig().


The documentation for this class was generated from the following files:
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:37:52 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003