umbrello 2.39.0
Umbrello UML Modeller is a Unified Modelling Language (UML) diagram program based on KDE Technology
Public Member Functions | Protected Slots | Private Attributes | List of all members
CodeGenStatusPage Class Reference

#include <codegenstatuspage.h>

Inheritance diagram for CodeGenStatusPage:
Collaboration diagram for CodeGenStatusPage:

Public Member Functions

 CodeGenStatusPage (QWidget *parent=nullptr)
 
 ~CodeGenStatusPage ()
 
void initializePage ()
 
bool isComplete () const
 

Protected Slots

void generateCode ()
 
void classGenerated (UMLClassifier *classifier, bool generated)
 
void classGenerated (UMLClassifier *classifier, CodeGenerator::GenerationState state)
 
void populateStatusList ()
 
void showFileGenerated (const QString &filename)
 
void loggerClear ()
 
void loggerExport ()
 

Private Attributes

bool m_generationDone
 

Detailed Description

Author
Luis De la Parra
Brian Thomas
Andi Fischer

Constructor & Destructor Documentation

◆ CodeGenStatusPage()

CodeGenStatusPage::CodeGenStatusPage ( QWidget * parent = nullptr)
explicit

Constructor.

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

◆ ~CodeGenStatusPage()

CodeGenStatusPage::~CodeGenStatusPage ( )

Destructor.

Member Function Documentation

◆ classGenerated [1/2]

void CodeGenStatusPage::classGenerated ( UMLClassifier * classifier,
bool generated )
protectedslot

Updates the status of the code generation in the status table.

Parameters
classifierthe class for which the code was generated
generatedthe status of the generation
Here is the call graph for this function:

◆ classGenerated [2/2]

void CodeGenStatusPage::classGenerated ( UMLClassifier * classifier,
CodeGenerator::GenerationState state )
protectedslot

Updates the status of the code generation in the status table.

Parameters
classifierthe class for which the code was generated
statethe state of the generation
Here is the call graph for this function:

◆ generateCode

void CodeGenStatusPage::generateCode ( )
protectedslot

Slot for the generate button. Starts the code generation.

Here is the call graph for this function:

◆ initializePage()

void CodeGenStatusPage::initializePage ( )

Reimplemented QWizardPage method to initialize page after clicking next button.

Here is the call graph for this function:

◆ isComplete()

bool CodeGenStatusPage::isComplete ( ) const

Reimplemented QWizardPage method the enable / disable the next button.

Returns
complete state

◆ loggerClear

void CodeGenStatusPage::loggerClear ( )
protectedslot

Slot for clicked events generated by the clear button of the logger. Clears the logger widget.

◆ loggerExport

void CodeGenStatusPage::loggerExport ( )
protectedslot

Slot for clicked events generated by the export button of the logger. Writes the content of the logger widget to a file.

◆ populateStatusList

void CodeGenStatusPage::populateStatusList ( )
protectedslot

Fills the status list with the selected classes for generation.

Here is the call graph for this function:

◆ showFileGenerated

void CodeGenStatusPage::showFileGenerated ( const QString & filename)
protectedslot

Writes the content of the just generated file to the logger text widget.

Member Data Documentation

◆ m_generationDone

bool CodeGenStatusPage::m_generationDone
private

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