EditMethodDialog

class EditMethodDialog : public QDialog

Public Functions

explicit 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 AnalysisMethodDescription &desc)
QString getClass() const
AnalysisMethodDescription getMethod() const

Public Static Functions

static bool showDialog(const QString &title, bool classFixed, QString *className, AnalysisMethodDescription *desc, QWidget *parent = nullptr)

Helper function to display the dialog.

Parameters
  • title – title of the dialog

  • classFixed – whether the user should be able to change the class

  • className – initial class name, will be overwritten if the user changed the class

  • desc – initial data for the method information

Returns

whether the dialog was accepted by the user

static void newMethod(QString className = nullptr, const QString &meth = QString(), QWidget *parent = nullptr)

Show the dialog to add a new method a given class.

static void editMethod(const QString &className, const QString &meth, QWidget *parent = nullptr)

Show the dialog to edit a given method of a given class.