You copied the Doc URL to your clipboard.

The MxPluginDialog class

The MxPluginDialog class enables creating basic custom dialogs in the GUI-mode plugins (for example, main menu and context menu plugin entries).

The class definition is listed in the following example.

MxPluginDialog data structure
class MxPluginDialog {
    MxPluginDialog(const char *title);
    const char *getTitle();

    //Add parameters to the dialog 
    bool addStringParameter(const char *name, const char *text, 
        const char *initValue, bool editable = true);
    bool addIntegerParameter(const char *name, const char *text, 
        int initValue, bool editable = true);
    bool addFloatParameter(const char *name, const char *text, 
        float initValue, bool editable = true);
    bool addBooleanParameter(const char *name, const char *text, 
        bool initValue, bool editable = true);

    //Execute the dialog. Returns true when the OK button was pressed
    //false otherwise 
    bool executeDialog(void);

    //Get the number of parameters for the dialog 
    int getNoParam();

    //Get the parameter information 
    MxPluginDialogParameter *getParam(int index);
    MxPluginDialogParameter *getParam(const char *name);
    const char *getStringParameterValue(const char *name);
    bool getIntegerParameterValue(const char *name, int *value);
    bool getFloatParameterValue(const char *name, double *value);
    bool getBooleanParameterValue(const char *name, bool *value);

    string title;
    vector <MxPluginDialogParameter *>parameters;
Was this page helpful? Yes No