umbrello/umbrello
Dialog_Utils Namespace Reference
Functions | |
void | askNameForWidget (UMLWidget *&targetWidget, const QString &dialogTitle, const QString &dialogPrompt, const QString &defaultName) |
void | insertStereotypesSorted (KComboBox *kcb, const QString &type) |
KLineEdit * | makeLabeledEditField (QGridLayout *layout, int row, QLabel *&label, const QString &labelText, KLineEdit *&editField, const QString &editFieldText) |
Detailed Description
Dialog utilities.
Function Documentation
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 67 of file dialog_utils.cpp.
void Dialog_Utils::insertStereotypesSorted | ( | KComboBox * | kcb, |
const QString & | type | ||
) |
Helper function for inserting available stereotypes into a KComboBox.
- Parameters
-
kcb The KComboBox into which to insert the stereotypes type The stereotype to activate
Definition at line 89 of file dialog_utils.cpp.
KLineEdit * Dialog_Utils::makeLabeledEditField | ( | QGridLayout * | layout, |
int | row, | ||
QLabel *& | label, | ||
const QString & | labelText, | ||
KLineEdit *& | editField, | ||
const QString & | editFieldText | ||
) |
Create a labeled text lineedit widget.
- Parameters
-
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 KLineEdit object allocated (return value) editFieldText Initialization text in the editField (optional.)
- Returns
- a pointer to the KLineEdit so you can setFocus() if necessary
Definition at line 45 of file dialog_utils.cpp.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.