umbrello 2.34.70-5524f40e1
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
|
#include <codegenoptionspage.h>
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 | |
CodeGenerationPolicy * | m_parentPolicy |
Private Slots | |
void | changeLanguage () |
Private Member Functions | |
QRadioButton * | overwriteToWidget (CodeGenerationPolicy::OverwritePolicy value) |
CodeGenerationPolicy::OverwritePolicy | widgetToOverwrite () |
void | setupActiveLanguageBox () |
![]() | |
void | setupUi (QWidget *CodeGenOptionsPage) |
void | retranslateUi (QWidget *CodeGenOptionsPage) |
Static Private Member Functions | |
static int | newLineToInteger (CodeGenerationPolicy::NewLineType value) |
static int | indentTypeToInteger (CodeGenerationPolicy::IndentationType value) |
This class is used in the code generation wizard and also in SettingsDialog.
|
explicit |
Constructor.
parent | the parent (wizard) of this wizard page |
CodeGenOptionsPage::~CodeGenOptionsPage | ( | ) |
Destructor.
|
protectedslot |
Transform signal.
id | position in combo box |
void CodeGenOptionsPage::apply | ( | ) |
Reads the set values from their corresponding widgets, writes them back to the data structure, and notifies clients.
|
signal |
|
protectedslot |
Slot for clicked events of the browse buttons. The selected directory is written to its corresponding text field.
|
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.
QString CodeGenOptionsPage::getLanguage | ( | ) |
Returns the user selected language used for code generation.
|
staticprivate |
Static utility function to convert the indentation type to integer.
value | the indentation type |
|
signal |
|
staticprivate |
Static utility function to convert the new line type to integer.
value | the new line type |
|
private |
Converts the overwrite policy value to the corresponding widget object.
value | the overwrite policy |
bool CodeGenOptionsPage::save | ( | ) |
This function is called when leaving this wizard page. Saves the made settings and checks some values.
|
private |
Fills the language combo box with items and sets the currently selected value.
|
signal |
|
protectedslot |
Updates the code generation policy tab.
bool CodeGenOptionsPage::validatePage | ( | ) |
Reimplemented QWizardPage method to validate page when user clicks next button.
|
private |
Converts the corresponding widget checked value to the overwrite policy.
|
protected |
|
private |