umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Signals | Public Member Functions | Protected Slots | Protected Attributes | Private Slots | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
CodeGenOptionsPage Class Reference

#include <codegenoptionspage.h>

Inheritance diagram for CodeGenOptionsPage:
Collaboration diagram for CodeGenOptionsPage:

Signals

void applyClicked ()
 
void languageChanged ()
 
void syncCodeDocumentsToParent ()
 

Public Member Functions

 CodeGenOptionsPage (QWidget *parent=0)
 
 ~CodeGenOptionsPage ()
 
QString getLanguage ()
 
void apply ()
 
bool save ()
 
bool validatePage ()
 

Protected Slots

void activeLanguageChanged (int id)
 
void updateCodeGenerationPolicyTab ()
 
void browseClicked ()
 

Protected Attributes

CodeGenerationPolicym_parentPolicy
 

Private Slots

void changeLanguage ()
 

Private Member Functions

QRadioButton * overwriteToWidget (CodeGenerationPolicy::OverwritePolicy value)
 
CodeGenerationPolicy::OverwritePolicy widgetToOverwrite ()
 
void setupActiveLanguageBox ()
 
- Private Member Functions inherited from Ui_CodeGenOptionsPage
void setupUi (QWidget *CodeGenOptionsPage)
 
void retranslateUi (QWidget *CodeGenOptionsPage)
 

Static Private Member Functions

static int newLineToInteger (CodeGenerationPolicy::NewLineType value)
 
static int indentTypeToInteger (CodeGenerationPolicy::IndentationType value)
 

Private Attributes

CodeGenerationPolicyPagem_pCodePolicyPage
 
- Private Attributes inherited from Ui_CodeGenOptionsPage
QVBoxLayout * vboxLayout
 
QTabWidget * ui_tabWidgetMain
 
QWidget * ui_tabGeneral
 
QVBoxLayout * vboxLayout1
 
QVBoxLayout * vboxLayout2
 
QGroupBox * ui_groupBoxLanguage
 
QVBoxLayout * vboxLayout3
 
KComboBox * ui_SelectLanguageBox
 
QGroupBox * ui_groupBoxFolders
 
QVBoxLayout * vboxLayout4
 
QLabel * ui_textLabelFolder
 
QHBoxLayout * hboxLayout
 
KLineEdit * ui_outputDir
 
QPushButton * ui_browseOutput
 
QCheckBox * ui_includeHeadings
 
QHBoxLayout * hboxLayout1
 
KLineEdit * ui_headingsDir
 
QPushButton * ui_browseHeadings
 
QGroupBox * ui_groupBoxOverwritePolicy
 
QVBoxLayout * vboxLayout5
 
QLabel * ui_textLabelOverwritePolicy
 
QVBoxLayout * vboxLayout6
 
QRadioButton * ui_radioButtonOverwrite
 
QRadioButton * ui_radioButtonAsk
 
QRadioButton * ui_radioButtonChangeName
 
QWidget * ui_tabFormatting
 
QGridLayout * gridLayout
 
QGridLayout * gridLayout1
 
QGroupBox * ui_groupBoxComment
 
QVBoxLayout * vboxLayout7
 
QCheckBox * ui_forceDoc
 
QCheckBox * ui_forceSections
 
QGroupBox * ui_groupBoxLines
 
QVBoxLayout * vboxLayout8
 
QHBoxLayout * hboxLayout2
 
QLabel * ui_textLabelType
 
KComboBox * ui_SelectIndentationTypeBox
 
QHBoxLayout * hboxLayout3
 
QLabel * ui_textLabelAmount
 
QSpinBox * ui_SelectIndentationNumber
 
QHBoxLayout * hboxLayout4
 
QLabel * ui_textLabelStyle
 
KComboBox * ui_SelectEndLineCharsBox
 

Detailed Description

This class is used in the code generation wizard and also in SettingsDialog.

Author
Luis De la Parra
Brian Thomas
Andi Fischer

Constructor & Destructor Documentation

◆ CodeGenOptionsPage()

CodeGenOptionsPage::CodeGenOptionsPage ( QWidget *  parent = 0)
explicit

Constructor.

Parameters
parentthe parent (wizard) of this wizard page
Here is the call graph for this function:

◆ ~CodeGenOptionsPage()

CodeGenOptionsPage::~CodeGenOptionsPage ( )

Destructor.

Member Function Documentation

◆ activeLanguageChanged

void CodeGenOptionsPage::activeLanguageChanged ( int  id)
protectedslot

Transform signal.

Parameters
idposition in combo box

◆ apply()

void CodeGenOptionsPage::apply ( )

Reads the set values from their corresponding widgets, writes them back to the data structure, and notifies clients.

Here is the call graph for this function:

◆ applyClicked

void CodeGenOptionsPage::applyClicked ( )
signal

◆ browseClicked

void CodeGenOptionsPage::browseClicked ( )
protectedslot

Slot for clicked events of the browse buttons. The selected directory is written to its corresponding text field.

◆ changeLanguage

void CodeGenOptionsPage::changeLanguage ( )
privateslot

When the user changes the language, the codegenoptions page language-dependent stuff has to be updated. The way to do this is to call its "apply" method.

Here is the call graph for this function:

◆ getLanguage()

QString CodeGenOptionsPage::getLanguage ( )

Returns the user selected language used for code generation.

Returns
the programming language name

◆ indentTypeToInteger()

int CodeGenOptionsPage::indentTypeToInteger ( CodeGenerationPolicy::IndentationType  value)
staticprivate

Static utility function to convert the indentation type to integer.

Parameters
valuethe indentation type
Returns
the corresponding integer value

◆ languageChanged

void CodeGenOptionsPage::languageChanged ( )
signal

◆ newLineToInteger()

int CodeGenOptionsPage::newLineToInteger ( CodeGenerationPolicy::NewLineType  value)
staticprivate

Static utility function to convert the new line type to integer.

Parameters
valuethe new line type
Returns
the corresponding integer value

◆ overwriteToWidget()

QRadioButton * CodeGenOptionsPage::overwriteToWidget ( CodeGenerationPolicy::OverwritePolicy  value)
private

Converts the overwrite policy value to the corresponding widget object.

Parameters
valuethe overwrite policy
Returns
the corresponding widget obeject

◆ save()

bool CodeGenOptionsPage::save ( )

This function is called when leaving this wizard page. Saves the made settings and checks some values.

Returns
the success state
Here is the call graph for this function:

◆ setupActiveLanguageBox()

void CodeGenOptionsPage::setupActiveLanguageBox ( )
private

Fills the language combo box with items and sets the currently selected value.

Here is the call graph for this function:

◆ syncCodeDocumentsToParent

void CodeGenOptionsPage::syncCodeDocumentsToParent ( )
signal

◆ updateCodeGenerationPolicyTab

void CodeGenOptionsPage::updateCodeGenerationPolicyTab ( )
protectedslot

Updates the code generation policy tab.

Here is the call graph for this function:

◆ validatePage()

bool CodeGenOptionsPage::validatePage ( )

Reimplemented QWizardPage method to validate page when user clicks next button.

Returns
the validation state
Here is the call graph for this function:

◆ widgetToOverwrite()

CodeGenerationPolicy::OverwritePolicy CodeGenOptionsPage::widgetToOverwrite ( )
private

Converts the corresponding widget checked value to the overwrite policy.

Returns
the overwrite policy

Member Data Documentation

◆ m_parentPolicy

CodeGenerationPolicy* CodeGenOptionsPage::m_parentPolicy
protected

◆ m_pCodePolicyPage

CodeGenerationPolicyPage* CodeGenOptionsPage::m_pCodePolicyPage
private

The documentation for this class was generated from the following files: