The ParameterGroup class represents the tree structure of the parameters. More...
#include <DlgParameterImp.h>
Public Member Functions | |
| ParameterGroup (QWidget *parent=0) | |
| virtual | ~ParameterGroup () |
Protected Slots | |
| void | onCreateSubgroup () |
| Creates a sub-group to the current selected parameter group. | |
| void | onDeleteSelectedItem () |
| Removes the underlying parameter group and its sub-groups from the parameter tree structure. | |
| void | onExportToFile () |
| Exports the current selected parameter with all sub-groups to a file. | |
| void | onImportFromFile () |
| Imports a file and inserts the parameter to the current selected parameter node. | |
| void | onRenameSelectedItem () |
| Changes the name of the leaf of the selected item. | |
| void | onToggleSelectedItem () |
| Expands or closes the selected item. | |
Protected Member Functions | |
| void | changeEvent (QEvent *e) |
| void | contextMenuEvent (QContextMenuEvent *event) |
| Shows the context menu. | |
| void | keyPressEvent (QKeyEvent *event) |
| Triggers the "Del" key. | |
The ParameterGroup class represents the tree structure of the parameters.
The leaves represented by ParameterValueItem are displayed in ParameterValue.
Definition at line 75 of file DlgParameterImp.h.
| ParameterGroup::ParameterGroup | ( | QWidget * | parent = 0 |
) |
Definition at line 323 of file DlgParameterImp.cpp.
References onCreateSubgroup(), onDeleteSelectedItem(), onExportToFile(), onImportFromFile(), onRenameSelectedItem(), and onToggleSelectedItem().
| ParameterGroup::~ParameterGroup | ( | ) | [virtual] |
Definition at line 338 of file DlgParameterImp.cpp.
| void ParameterGroup::changeEvent | ( | QEvent * | e | ) | [protected] |
Definition at line 495 of file DlgParameterImp.cpp.
| void ParameterGroup::contextMenuEvent | ( | QContextMenuEvent * | event | ) | [protected] |
Shows the context menu.
Definition at line 342 of file DlgParameterImp.cpp.
| void ParameterGroup::keyPressEvent | ( | QKeyEvent * | event | ) | [protected] |
Triggers the "Del" key.
Definition at line 359 of file DlgParameterImp.cpp.
References onDeleteSelectedItem().
| void ParameterGroup::onCreateSubgroup | ( | ) | [protected, slot] |
Creates a sub-group to the current selected parameter group.
Definition at line 403 of file DlgParameterImp.cpp.
References Gui::Dialog::ParameterGroupItem::_hcGrp, and Gui::validateInput().
Referenced by ParameterGroup().
| void ParameterGroup::onDeleteSelectedItem | ( | ) | [protected, slot] |
Removes the underlying parameter group and its sub-groups from the parameter tree structure.
Definition at line 372 of file DlgParameterImp.cpp.
References Gui::Dialog::ParameterGroupItem::_hcGrp.
Referenced by keyPressEvent(), and ParameterGroup().
| void ParameterGroup::onExportToFile | ( | ) | [protected, slot] |
Exports the current selected parameter with all sub-groups to a file.
Definition at line 431 of file DlgParameterImp.cpp.
References Gui::Dialog::ParameterGroupItem::_hcGrp, DrawingExample::file, and Gui::FileDialog::getSaveFileName().
Referenced by ParameterGroup().
| void ParameterGroup::onImportFromFile | ( | ) | [protected, slot] |
Imports a file and inserts the parameter to the current selected parameter node.
Definition at line 447 of file DlgParameterImp.cpp.
References Gui::Dialog::ParameterGroupItem::_hcGrp, DrawingExample::file, and Gui::FileDialog::getOpenFileName().
Referenced by ParameterGroup().
| void ParameterGroup::onRenameSelectedItem | ( | ) | [protected, slot] |
Changes the name of the leaf of the selected item.
Definition at line 486 of file DlgParameterImp.cpp.
Referenced by ParameterGroup().
| void ParameterGroup::onToggleSelectedItem | ( | ) | [protected, slot] |
Expands or closes the selected item.
If it is open it will be closed and the other way round.
Definition at line 391 of file DlgParameterImp.cpp.
Referenced by ParameterGroup().
1.6.1