Creates and controls the quality measure dialog box. More...
#include <qmDlg.h>
Public Slots | |
void | addEditQM () |
void | deleteQM () |
void | gravityBox_clicked () |
void | selectQM (int which) |
void | selectQMType (const QString &typeStr) |
void | updateSettingsBox () |
Public Member Functions | |
QMDlg (QWidget *parent) | |
Private Member Functions | |
void | init () |
Private Attributes | |
qmDlgDataT | qmDlgData |
Creates and controls the quality measure dialog box.
The dialog box contains a list of the currently defined quality measures for this grasp as well as a "New Quality Measure" item. It also has text entry box for changing the name of a QM, a combo box for choosing the QM type, and a settings area for the settings of the individual types of QM's. If the user selects a currently defined measure from the list, the QM type and settings area are updated using the current values from the chosen QM. The user can change these values and click the "add/edit" button to make the changes, or click the "delete" button to remove the quality measure. If the user selects "New Quality Measure", then chooses a name and a type for the QM and chooses settings for that QM, it can then be added to the list by clicking "add/edit".
Definition at line 49 of file qmDlg.h.
void QMDlg::addEditQM | ( | ) | [slot] |
Creates a new quality measure of the selected type with the given name from the name text area. If "New Quality Measure" is selected in the list, it adds this QM to the grasp and to the quality measure list. Otherwise it replaces the currently selected QM with the new one.
void QMDlg::deleteQM | ( | ) | [slot] |
void QMDlg::init | ( | ) | [private] |
This populates the quality measure list with the currently defined quality measures for this grasp. Then it populates the QM comboBox with the all the possible quality measure types. Next, it creates an empty settings area widget to hold the settings for the individual types of quality measures, and adds it to the layout.
void QMDlg::selectQM | ( | int | which | ) | [slot] |
If "New Quality Measure" is selected, the first item is the QM type box is selected, and the delete button is disabled. Otherwise, it updates the name in the text area, and sets the QM type in the comboBox to the type of thecurrently selected QM, and finally calls the updateSettingsBox to update the settings area.
void QMDlg::selectQMType | ( | const QString & | typeStr | ) | [slot] |
void QMDlg::updateSettingsBox | ( | ) | [slot] |
qmDlgDataT QMDlg::qmDlgData [private] |