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

#include <codegenselectpage.h>

Inheritance diagram for CodeGenSelectPage:
Collaboration diagram for CodeGenSelectPage:

Public Member Functions

 CodeGenSelectPage (QWidget *parent=0)
 
 ~CodeGenSelectPage ()
 
void setClassifierList (UMLClassifierList *classList)
 
bool isComplete () const
 
QListWidget * getSelectionListWidget ()
 

Protected Slots

void selectClass ()
 
void deselectClass ()
 

Static Private Member Functions

static void moveSelectedItems (QListWidget *fromList, QListWidget *toList)
 

Additional Inherited Members

- Private Member Functions inherited from Ui_CodeGenSelectPage
void setupUi (QWidget *CodeGenSelectPage)
 
void retranslateUi (QWidget *CodeGenSelectPage)
 
- Private Attributes inherited from Ui_CodeGenSelectPage
QHBoxLayout * horizontalLayout
 
QHBoxLayout * hboxLayout
 
QVBoxLayout * vboxLayout
 
QLabel * ui_labelListAvailable
 
QListWidget * ui_listAvailable
 
QVBoxLayout * vboxLayout1
 
QSpacerItem * spacerItem
 
QPushButton * ui_addButton
 
QSpacerItem * spacerItem1
 
QPushButton * ui_removeButton
 
QSpacerItem * spacerItem2
 
QVBoxLayout * vboxLayout2
 
QLabel * ui_labelListSelected
 
QListWidget * ui_listSelected
 

Detailed Description

Author
Luis De la Parra
Brian Thomas
Andi Fischer

Constructor & Destructor Documentation

◆ CodeGenSelectPage()

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

Constructor.

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

◆ ~CodeGenSelectPage()

CodeGenSelectPage::~CodeGenSelectPage ( )

Destructor.

Member Function Documentation

◆ deselectClass

void CodeGenSelectPage::deselectClass ( )
protectedslot

Removes the classes selected in the selected classes list from the list of classes used to generate the code.

Here is the call graph for this function:

◆ getSelectionListWidget()

QListWidget * CodeGenSelectPage::getSelectionListWidget ( )

Returns the list widget, which holds the classes for generation.

Returns
the list widget of the selected classes

◆ isComplete()

bool CodeGenSelectPage::isComplete ( ) const

Reimplemented QWizardPage method the enable / disable the next button.

Returns
complete state

◆ moveSelectedItems()

void CodeGenSelectPage::moveSelectedItems ( QListWidget *  fromList,
QListWidget *  toList 
)
staticprivate

Moves the selected items from first list to second list. The selected items are removed from the first list and added to the second. An item is added to the second list only if it isn't already there (no duplicated items are created).

Parameters
fromListthe list widget of selected items
toListthe target list widget

◆ selectClass

void CodeGenSelectPage::selectClass ( )
protectedslot

Adds the classes selected in the available classes list to the list of classes used to generate the code.

Here is the call graph for this function:

◆ setClassifierList()

void CodeGenSelectPage::setClassifierList ( UMLClassifierList classList)

Loads the available classes for selection / deselection into the list widget.

Parameters
classListthe available classes for generation
Here is the call graph for this function:

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