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

A dialog page to display the class related options. More...

#include <classoptionspage.h>

Inheritance diagram for ClassOptionsPage:
Collaboration diagram for ClassOptionsPage:

Public Member Functions

 ClassOptionsPage (QWidget *pParent, ClassifierWidget *pWidget)
 
 ClassOptionsPage (QWidget *pParent, UMLScene *scene)
 
 ClassOptionsPage (QWidget *pParent, Settings::OptionState *options, bool isDiagram=true)
 
 ClassOptionsPage (QWidget *pParent, EntityWidget *widget)
 
virtual ~ClassOptionsPage ()
 
void setDefaults ()
 
void apply ()
 
void setWidget (ClassifierWidget *pWidget)
 

Protected Member Functions

void init ()
 
void setupPage ()
 
void setupPageFromScene ()
 
void setupClassPageOption ()
 
void setupPageFromEntityWidget ()
 
void applyWidget ()
 
void applyOptionState ()
 
void applyScene ()
 
void applyEntityWidget ()
 
KComboBox * createShowStereotypeCB (QGroupBox *grpBox)
 
void insertAttribScope (const QString &type, int index=-1)
 
void insertOperationScope (const QString &type, int index=-1)
 

Protected Attributes

QGroupBox * m_visibilityGB
 
QCheckBox * m_showVisibilityCB
 
QCheckBox * m_showAttSigCB
 
QCheckBox * m_showOpSigCB
 
QCheckBox * m_showAttsCB
 
QCheckBox * m_showOpsCB
 
KComboBox * m_showStereotypeCB
 
QCheckBox * m_showPackageCB
 
QCheckBox * m_showPublicOnlyCB
 
QCheckBox * m_showAttribAssocsCB
 
QCheckBox * m_showDocumentationCB
 
QCheckBox * m_drawAsCircleCB
 
QGroupBox * m_scopeGB
 
QLabel * m_attributeLabel
 
QLabel * m_operationLabel
 
KComboBox * m_attribScopeCB
 
KComboBox * m_operationScopeCB
 
ClassifierWidgetm_pWidget
 The classifier widget to represent in the dialog page. More...
 
EntityWidgetm_entityWidget
 The entity widget to represent in the dialog page. More...
 
UMLScenem_scene
 The scene to represent in the dialog page. More...
 
Settings::OptionStatem_options
 The OptionState structure to represent in the dialog page. More...
 
bool m_isDiagram
 Flag indicating that page is for diagram property dialog. More...
 

Detailed Description

A dialog page to display the class related options.

A dialog page to display options for class related options. This dialog is either embedded into SettingsDialog, UMLViewDialog and ClassPropertiesDialog

Author
Paul Hensgen phens.nosp@m.gen@.nosp@m.techi.nosp@m.e.co.nosp@m.m
See also
ClassPropertiesDialog
SettingsDialog
UMLViewDialog Bugs and comments to umbre.nosp@m.llo-.nosp@m.devel.nosp@m.@kde.nosp@m..org or https://bugs.kde.org

Constructor & Destructor Documentation

ClassOptionsPage::ClassOptionsPage ( QWidget *  pParent,
ClassifierWidget pWidget 
)

Constructor - observe and modify a Widget

Here is the call graph for this function:

ClassOptionsPage::ClassOptionsPage ( QWidget *  pParent,
UMLScene scene 
)

Here is the call graph for this function:

ClassOptionsPage::ClassOptionsPage ( QWidget *  pParent,
Settings::OptionState options,
bool  isDiagram = true 
)

Constructor - observe and modify an OptionState structure

Parameters
pParentParent widget
optionsSettings to read from/save into
isDiagramFlag if object is for display diagram class options

Here is the call graph for this function:

ClassOptionsPage::ClassOptionsPage ( QWidget *  pParent,
EntityWidget widget 
)

Here is the call graph for this function:

ClassOptionsPage::~ClassOptionsPage ( )
virtual

Destructor

Member Function Documentation

void ClassOptionsPage::apply ( )

apply changes

Here is the call graph for this function:

void ClassOptionsPage::applyEntityWidget ( )
protected

Here is the call graph for this function:

void ClassOptionsPage::applyOptionState ( )
protected

Sets the OptionState to the values selected in this dialog page.

Here is the call graph for this function:

void ClassOptionsPage::applyScene ( )
protected

Sets the UMLScene's properties to those selected in this dialog page.

Here is the call graph for this function:

void ClassOptionsPage::applyWidget ( )
protected

Sets the ClassifierWidget's properties to those selected in this dialog page.

Here is the call graph for this function:

KComboBox * ClassOptionsPage::createShowStereotypeCB ( QGroupBox *  grpBox)
protected

This need not be a member method, it can be made "static" or be moved to Dialog_Utils

void ClassOptionsPage::init ( )
protected

Initialize optional items

void ClassOptionsPage::insertAttribScope ( const QString &  type,
int  index = -1 
)
protected

Inserts type into the type-combobox as well as its completion object.

void ClassOptionsPage::insertOperationScope ( const QString &  type,
int  index = -1 
)
protected

Inserts type into the type-combobox as well as its completion object.

void ClassOptionsPage::setDefaults ( )
void ClassOptionsPage::setupClassPageOption ( )
protected

Creates the page based on the OptionState

Here is the call graph for this function:

void ClassOptionsPage::setupPage ( )
protected

Creates the page with the correct options for the class/interface

Here is the call graph for this function:

void ClassOptionsPage::setupPageFromEntityWidget ( )
protected

Here is the call graph for this function:

void ClassOptionsPage::setupPageFromScene ( )
protected

Here is the call graph for this function:

void ClassOptionsPage::setWidget ( ClassifierWidget pWidget)

Set related uml widget

Member Data Documentation

KComboBox* ClassOptionsPage::m_attribScopeCB
protected
QLabel* ClassOptionsPage::m_attributeLabel
protected
QCheckBox* ClassOptionsPage::m_drawAsCircleCB
protected
EntityWidget* ClassOptionsPage::m_entityWidget
protected

The entity widget to represent in the dialog page.

bool ClassOptionsPage::m_isDiagram
protected

Flag indicating that page is for diagram property dialog.

QLabel* ClassOptionsPage::m_operationLabel
protected
KComboBox* ClassOptionsPage::m_operationScopeCB
protected
Settings::OptionState* ClassOptionsPage::m_options
protected

The OptionState structure to represent in the dialog page.

ClassifierWidget* ClassOptionsPage::m_pWidget
protected

The classifier widget to represent in the dialog page.

UMLScene* ClassOptionsPage::m_scene
protected

The scene to represent in the dialog page.

QGroupBox* ClassOptionsPage::m_scopeGB
protected
QCheckBox* ClassOptionsPage::m_showAttribAssocsCB
protected
QCheckBox * ClassOptionsPage::m_showAttsCB
protected
QCheckBox * ClassOptionsPage::m_showAttSigCB
protected
QCheckBox* ClassOptionsPage::m_showDocumentationCB
protected
QCheckBox * ClassOptionsPage::m_showOpsCB
protected
QCheckBox* ClassOptionsPage::m_showOpSigCB
protected
QCheckBox* ClassOptionsPage::m_showPackageCB
protected
QCheckBox * ClassOptionsPage::m_showPublicOnlyCB
protected
KComboBox* ClassOptionsPage::m_showStereotypeCB
protected
QCheckBox* ClassOptionsPage::m_showVisibilityCB
protected
QGroupBox* ClassOptionsPage::m_visibilityGB
protected

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