EditMethodDialog¶
-
class
EditMethodDialog
: public QDialog¶ Public Functions
-
EditMethodDialog
(bool classFixed, QWidget *parent = nullptr)¶ - Parameters
classFixed
: whether the user should be able to change the class. If false, a QComboBox will be shown, otherwise a plain QLabel.
-
~EditMethodDialog
()¶
-
void
setClass
(const QString &className)¶
-
void
setMethod
(const AnalMethodDescription &desc)¶
-
QString
getClass
() const¶
-
AnalMethodDescription
getMethod
() const¶
Public Static Functions
-
bool
showDialog
(const QString &title, bool classFixed, QString *className, AnalMethodDescription *desc, QWidget *parent = nullptr)¶ Helper function to display the dialog.
- Return
whether the dialog was accepted by the user
- Parameters
title
: title of the dialogclassFixed
: whether the user should be able to change the classclassName
: initial class name, will be overwritten if the user changed the classdesc
: initial data for the method information
-
void
newMethod
(QString className = nullptr, const QString &meth = QString(), QWidget *parent = nullptr)¶ Show the dialog to add a new method a given class.
-
void
editMethod
(const QString &className, const QString &meth, QWidget *parent = nullptr)¶ Show the dialog to edit a given method of a given class.
-