umbrello API Documentation

Dialog_Utils Namespace Reference

Dialog utilities. More...


Functions

QLineEdit * makeLabeledEditField (QGroupBox *containingBox, QGridLayout *layout, int row, QLabel *&label, const QString &labelText, QLineEdit *&editField, const QString &editFieldText)
 Create a labeled text lineedit widget.
void askNameForWidget (UMLWidget *&targetWidget, const QString &dialogTitle, const QString &dialogPrompt, const QString &defaultName)
 Helper function for requesting a name for an UMLWidget using a dialog.


Detailed Description

Dialog utilities.

Author:
Oliver Kellogg Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org


Function Documentation

QLineEdit * Dialog_Utils::makeLabeledEditField QGroupBox *  containingBox,
QGridLayout *  layout,
int  row,
QLabel *&  label,
const QString &  labelText,
QLineEdit *&  editField,
const QString &  editFieldText = QString::null
 

Create a labeled text lineedit widget.

Parameters:
containingBox The containing QGroupBox.
layout The QGridLayout to use.
row The row number within the QGridLayout.
label The QLabel object allocated (return value)
labelText The label text.
editField The QLineEdit object allocated (return value)
editFieldText Initialization text in the editField (optional.)
Returns:
a pointer to the QLineEdit so you can setFocus() if necessary

Definition at line 28 of file dialog_utils.cpp.

Referenced by ParmPropDlg::ParmPropDlg(), SelectOpDlg::SelectOpDlg(), UMLTemplateDialog::setupDialog(), UMLOperationDialog::setupDialog(), UMLEntityAttributeDialog::setupDialog(), UMLAttributeDialog::setupDialog(), StateDialog::setupGeneralPage(), and ActivityDialog::setupGeneralPage().

void Dialog_Utils::askNameForWidget UMLWidget *&  targetWidget,
const QString &  dialogTitle,
const QString &  dialogPrompt,
const QString &  defaultName
 

Helper function for requesting a name for an UMLWidget using a dialog.

Parameters:
targetWidget By-reference pointer to the widget to request the name for. The widget may be deallocated, and the pointer returned set to NULL, if the user presses Cancel in the dialog.
dialogTitle Title of the dialog.
dialogPrompt Prompt of the dialog.
defaultName Default value of the name field.

Definition at line 42 of file dialog_utils.cpp.

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:08 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003