umbrello API Documentation

ClassOptionsPage Class Reference

A dialog page to display options for a UMLWidget and its children. A dialog page to display the options for a UMLWidget. More...

#include <classoptionspage.h>

List of all members.

Public Member Functions

 ClassOptionsPage (QWidget *pParent, ClassifierWidget *pWidget)
 Constructor - observe and modify a Widget.
 ClassOptionsPage (QWidget *pParent, Settings::OptionState *options)
 Constructor - observe and modify an OptionState structure.
virtual ~ClassOptionsPage ()
 destructor
void updateUMLWidget ()
 Updates the widget with the dialog page properties.
void setWidget (ClassifierWidget *pWidget)
 Sets the widget to be used.

Protected Member Functions

void init ()
 Initialize optional items.
void setupPage ()
 Creates the page with the correct options for the class/interface.
void setupClassPageOption ()
 Creates the page based on the OptionState.
void updateWidget ()
 Sets the ClassifierWidget's properties to those selected in this dialog page.
void updateOptionState ()
 Sets the OptionState to the values selected in this dialog page.

Protected Attributes

QGroupBox * m_pVisibilityGB
QCheckBox * m_pShowVisibilityCB
QCheckBox * m_pShowAttSigCB
QCheckBox * m_pShowOpSigCB
QCheckBox * m_pShowAttsCB
QCheckBox * m_pShowOpsCB
QCheckBox * m_pShowStereotypeCB
QCheckBox * m_pShowPackageCB
QCheckBox * m_pDrawAsCircleCB
ClassifierWidgetm_pWidget
 The classifier widget to represent in the dialog page.
Settings::OptionState * m_options
 The OptionState structure to represent in the dialog page.


Detailed Description

A dialog page to display options for a UMLWidget and its children. A dialog page to display the options for a UMLWidget.

This is not normally called by you. It is used by the ClassPropDlg.

Author:
Paul Hensgen <phensgen@techie.com>
See also:
ClassPropDlg Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org

Definition at line 34 of file classoptionspage.h.


Constructor & Destructor Documentation

ClassOptionsPage::ClassOptionsPage QWidget *  pParent,
ClassifierWidget pWidget
 

Constructor - observe and modify a Widget.

Definition at line 25 of file classoptionspage.cpp.

References init(), m_pWidget, and setupPage().

ClassOptionsPage::ClassOptionsPage QWidget *  pParent,
Settings::OptionState *  options
 

Constructor - observe and modify an OptionState structure.

Definition at line 33 of file classoptionspage.cpp.

References init(), m_options, and setupClassPageOption().

ClassOptionsPage::~ClassOptionsPage  )  [virtual]
 

destructor

Definition at line 49 of file classoptionspage.cpp.


Member Function Documentation

void ClassOptionsPage::updateUMLWidget  ) 
 

Updates the widget with the dialog page properties.

Definition at line 157 of file classoptionspage.cpp.

References m_options, m_pWidget, updateOptionState(), and updateWidget().

Referenced by UMLViewDialog::applyPage(), and ClassPropDlg::slotApply().

void ClassOptionsPage::setWidget ClassifierWidget pWidget  )  [inline]
 

Sets the widget to be used.

Only used by UMLView to set settings of a widget.

Definition at line 60 of file classoptionspage.h.

References m_pWidget.

void ClassOptionsPage::init  )  [protected]
 

Initialize optional items.

Definition at line 40 of file classoptionspage.cpp.

References m_options, and m_pWidget.

Referenced by ClassOptionsPage().

void ClassOptionsPage::setupPage  )  [protected]
 

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

Definition at line 51 of file classoptionspage.cpp.

References WidgetBase::getBaseType(), ClassifierWidget::getDrawAsCircle(), ClassifierWidget::getShowAtts(), ClassifierWidget::getShowAttSigs(), UMLWidget::getShowStereotype(), and m_pWidget.

Referenced by ClassOptionsPage().

void ClassOptionsPage::setupClassPageOption  )  [protected]
 

Creates the page based on the OptionState.

Definition at line 114 of file classoptionspage.cpp.

References m_options.

Referenced by ClassOptionsPage().

void ClassOptionsPage::updateWidget  )  [protected]
 

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

Definition at line 165 of file classoptionspage.cpp.

References WidgetBase::getBaseType(), m_pWidget, ClassifierWidget::setDrawAsCircle(), ClassifierWidget::setShowAtts(), ClassifierWidget::setShowAttSigs(), ClassifierWidget::setShowOps(), ClassifierWidget::setShowOpSigs(), ClassifierWidget::setShowPackage(), UMLWidget::setShowStereotype(), and ClassifierWidget::setShowVisibility().

Referenced by updateUMLWidget().

void ClassOptionsPage::updateOptionState  )  [protected]
 

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

Definition at line 181 of file classoptionspage.cpp.

References m_options.

Referenced by updateUMLWidget().


Member Data Documentation

ClassifierWidget* ClassOptionsPage::m_pWidget [protected]
 

The classifier widget to represent in the dialog page.

Definition at line 100 of file classoptionspage.h.

Referenced by ClassOptionsPage(), init(), setupPage(), setWidget(), updateUMLWidget(), and updateWidget().

Settings::OptionState* ClassOptionsPage::m_options [protected]
 

The OptionState structure to represent in the dialog page.

Definition at line 104 of file classoptionspage.h.

Referenced by ClassOptionsPage(), init(), setupClassPageOption(), updateOptionState(), and updateUMLWidget().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:04 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003