#include <codegenoptionspage.h>
This class is used in the code generation wizard and also in SettingsDialog.
- Author
- Luis De la Parra 
- 
Brian Thomas 
- 
Andi Fischer 
◆ CodeGenOptionsPage()
  
  | 
        
          | CodeGenOptionsPage::CodeGenOptionsPage | ( | QWidget * | parent = nullptr | ) |  |  | explicit | 
 
Constructor. 
- Parameters
- 
  
    | parent | the parent (wizard) of this wizard page |  
 
 
 
◆ ~CodeGenOptionsPage()
      
        
          | CodeGenOptionsPage::~CodeGenOptionsPage | ( |  | ) |  | 
      
 
 
◆ activeLanguageChanged
  
  | 
        
          | void CodeGenOptionsPage::activeLanguageChanged | ( | int | id | ) |  |  | protectedslot | 
 
Transform signal. 
- Parameters
- 
  
  
 
 
◆ apply()
      
        
          | void CodeGenOptionsPage::apply | ( |  | ) |  | 
      
 
Reads the set values from their corresponding widgets, writes them back to the data structure, and notifies clients. 
 
 
◆ 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. 
 
 
◆ getLanguage()
      
        
          | QString CodeGenOptionsPage::getLanguage | ( |  | ) |  | 
      
 
Returns the user selected language used for code generation. 
- Returns
- the programming language name 
 
 
◆ indentTypeToInteger()
Static utility function to convert the indentation type to integer. 
- Parameters
- 
  
    | value | the indentation type |  
 
- Returns
- the corresponding integer value 
 
 
◆ languageChanged
  
  | 
        
          | void CodeGenOptionsPage::languageChanged | ( |  | ) |  |  | signal | 
 
 
◆ newLineToInteger()
Static utility function to convert the new line type to integer. 
- Parameters
- 
  
  
- Returns
- the corresponding integer value 
 
 
◆ overwriteToWidget()
Converts the overwrite policy value to the corresponding widget object. 
- Parameters
- 
  
    | value | the 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 
 
 
◆ setupActiveLanguageBox()
  
  | 
        
          | void CodeGenOptionsPage::setupActiveLanguageBox | ( |  | ) |  |  | private | 
 
Fills the language combo box with items and sets the currently selected value. 
 
 
◆ syncCodeDocumentsToParent
  
  | 
        
          | void CodeGenOptionsPage::syncCodeDocumentsToParent | ( |  | ) |  |  | signal | 
 
 
◆ updateCodeGenerationPolicyTab
  
  | 
        
          | void CodeGenOptionsPage::updateCodeGenerationPolicyTab | ( |  | ) |  |  | protectedslot | 
 
Updates the code generation policy tab. 
 
 
◆ validatePage()
      
        
          | bool CodeGenOptionsPage::validatePage | ( |  | ) |  | 
      
 
Reimplemented QWizardPage method to validate page when user clicks next button. 
- Returns
- the validation state 
 
 
◆ widgetToOverwrite()
Converts the corresponding widget checked value to the overwrite policy. 
- Returns
- the overwrite policy 
 
 
◆ m_parentPolicy
◆ m_pCodePolicyPage
The documentation for this class was generated from the following files: