umbrello/umbrello
codegenoptionspage.cpp
Go to the documentation of this file.
57 ui_SelectEndLineCharsBox->setCurrentIndex(newLineToInteger(m_parentPolicy->getLineEndingType()));
58 ui_SelectIndentationTypeBox->setCurrentIndex(indentTypeToInteger(m_parentPolicy->getIndentationType()));
89 QString language = Uml::ProgrammingLanguage::toString(Uml::ProgrammingLanguage::fromInt(indexCounter));
140 QRadioButton* CodeGenOptionsPage::overwriteToWidget(CodeGenerationPolicy::OverwritePolicy value)
186 Uml::ProgrammingLanguage::Enum pl = Uml::ProgrammingLanguage::fromInt(ui_SelectLanguageBox->currentIndex());
223 m_parentPolicy->setLineEndingType((CodeGenerationPolicy::NewLineType) ui_SelectEndLineCharsBox->currentIndex());
224 m_parentPolicy->setIndentationType((CodeGenerationPolicy::IndentationType) ui_SelectIndentationTypeBox->currentIndex());
257 KMessageBox::sorry(this, i18n("The output folder exists, but it is not writable.\nPlease set the appropriate permissions or choose another folder."),
263 KMessageBox::sorry(this, i18n("%1 does not seem to be a folder. Please choose a valid folder.", info.filePath()),
271 i18n("Output Folder Does Not Exist"), KGuiItem(i18n("Create Folder")), KGuiItem(i18n("Do Not Create"))) == KMessageBox::Yes)
275 KMessageBox::sorry(this, i18n("The folder could not be created.\nPlease make sure you have write access to its parent folder or select another, valid, folder."),
void setIncludeHeadings(bool new_var)
Set the value of m_includeHeadings.
Definition: codegenerationpolicy.cpp:176
void setLineEndingType(NewLineType type)
Set the value of m_lineEndingType What line ending characters to use.
Definition: codegenerationpolicy.cpp:216
Enum fromString(const QString &item)
Return ProgrammingLanguage corresponding to the given string.
Definition: basictypes.cpp:853
void updateCodeGenerationPolicyTab()
Updates the code generation policy tab.
Definition: codegenoptionspage.cpp:175
void setOutputDirectory(QDir new_var)
Set the value of m_outputDirectory location of where output files will go.
Definition: codegenerationpolicy.cpp:196
void syncCodeDocumentsToParent()
bool validatePage()
Reimplemented QWizardPage method to validate page when user clicks next button.
Definition: codegenoptionspage.cpp:205
CodeGenPolicyExt * newCodeGenPolicyExt(Uml::ProgrammingLanguage::Enum pl)
Definition: codegenfactory.cpp:435
class CodeGenerationPolicy This class describes the code generation policy for this project...
Definition: codegenerationpolicy.h:29
void setActiveLanguage(Uml::ProgrammingLanguage::Enum pl)
Set the language for which code will be generated.
Definition: uml.cpp:2344
void setCodeVerboseDocumentComments(bool new_var)
Set the value of m_codeVerboseDocumentComments Whether or not verbose code commenting for documentati...
Definition: codegenerationpolicy.cpp:134
QString getLanguage()
Returns the user selected language used for code generation.
Definition: codegenoptionspage.cpp:339
QDir getOutputDirectory()
Get the value of m_outputDirectory location of where output files will go.
Definition: codegenerationpolicy.cpp:206
bool getCodeVerboseDocumentComments() const
Get the value of m_codeVerboseDocumentComments Whether or not verbose code commenting for documentati...
Definition: codegenerationpolicy.cpp:147
IndentationType getIndentationType()
Get the value of m_indentationType.
Definition: codegenerationpolicy.cpp:268
QString toString(Enum item)
Return string corresponding to the given ProgrammingLanguage.
Definition: basictypes.cpp:801
void browseClicked()
Slot for clicked events of the browse buttons.
Definition: codegenoptionspage.cpp:320
void setCodeVerboseSectionComments(bool new_var)
Set the value of m_codeVerboseSectionComments Whether or not verbose code commenting for sections is ...
Definition: codegenerationpolicy.cpp:110
CodeGenerationPolicy * commonPolicy() const
Returns the default code generation policy.
Definition: uml.cpp:2132
void setIndentationAmount(int amount)
Set how many units to indent for each indentation level.
Definition: codegenerationpolicy.cpp:277
OverwritePolicy getOverwritePolicy() const
Get the value of m_overwritePolicy Policy of how to deal with overwriting existing files...
Definition: codegenerationpolicy.cpp:80
bool getCodeVerboseSectionComments() const
Get the value of m_codeVerboseSectionComments Whether or not verbose code commenting for sections is ...
Definition: codegenerationpolicy.cpp:122
void apply()
Reads the set values from their corresponding widgets, writes them back to the data structure...
Definition: codegenoptionspage.cpp:214
void languageChanged()
CodeGenerationPolicy * m_parentPolicy
Definition: codegenoptionspage.h:47
bool save()
This function is called when leaving this wizard page.
Definition: codegenoptionspage.cpp:241
NewLineType getLineEndingType()
Get the value of m_lineEndingType What line ending characters to use.
Definition: codegenerationpolicy.cpp:239
void setIndentationType(IndentationType type)
Set the value of m_indentationType The amount and type of whitespace to indent with.
Definition: codegenerationpolicy.cpp:258
This class collects together all of the code documents which form this project, and generates code fo...
Definition: codegenerator.h:68
void setHeadingFileDir(const QString &path)
Set the value of m_headingFileDir location of the header file template.
Definition: codegenerationpolicy.cpp:157
Base class for programming language specific code generation policy extensions.
Definition: codegenpolicyext.h:28
void applyClicked()
Enum fromInt(int item)
Convert a integer item into ProgrammingLanguage representation.
Definition: basictypes.cpp:903
QString getHeadingFileDir() const
Get the value of m_headingFileDir location of the header file template.
Definition: codegenerationpolicy.cpp:167
void setOverwritePolicy(OverwritePolicy new_var)
Set the value of m_overwritePolicy Policy of how to deal with overwriting existing files...
Definition: codegenerationpolicy.cpp:69
bool getIncludeHeadings() const
Get the value of m_includeHeadings.
Definition: codegenerationpolicy.cpp:186
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:05:59 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.