EditMethodDialog

class EditMethodDialog

Public Functions

EditMethodDialog(bool classFixed, QWidget *parent)

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)

Helper function to display the dialog.

Return
whether the dialog was accepted by the user
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

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

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

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

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