Gui::Dialog::ParameterGroup Class Reference

The ParameterGroup class represents the tree structure of the parameters. More...

#include <DlgParameterImp.h>

Public Member Functions

 ParameterGroup (QWidget *parent=nullptr)
 
virtual ~ParameterGroup ()
 

Protected Slots

void onCreateSubgroup ()
 Creates a sub-group to the current selected parameter group. More...
 
void onDeleteSelectedItem ()
 Removes the underlying parameter group and its sub-groups from the parameter tree structure. More...
 
void onExportToFile ()
 Exports the current selected parameter with all sub-groups to a file. More...
 
void onImportFromFile ()
 Imports a file and inserts the parameter to the current selected parameter node. More...
 
void onRenameSelectedItem ()
 Changes the name of the leaf of the selected item. More...
 
void onToggleSelectedItem ()
 Expands or closes the selected item. More...
 

Protected Member Functions

void changeEvent (QEvent *e)
 
void contextMenuEvent (QContextMenuEvent *event)
 Shows the context menu. More...
 
void keyPressEvent (QKeyEvent *event)
 Triggers the "Del" key. More...
 

Detailed Description

The ParameterGroup class represents the tree structure of the parameters.

The leaves represented by ParameterValueItem are displayed in ParameterValue.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ ParameterGroup()

ParameterGroup::ParameterGroup ( QWidget parent = nullptr)

◆ ~ParameterGroup()

ParameterGroup::~ParameterGroup ( )
virtual

Member Function Documentation

◆ changeEvent()

void ParameterGroup::changeEvent ( QEvent e)
protected

◆ contextMenuEvent()

void ParameterGroup::contextMenuEvent ( QContextMenuEvent *  event)
protected

Shows the context menu.

◆ keyPressEvent()

void ParameterGroup::keyPressEvent ( QKeyEvent *  event)
protected

Triggers the "Del" key.

References onDeleteSelectedItem().

◆ onCreateSubgroup

void ParameterGroup::onCreateSubgroup ( )
protectedslot

Creates a sub-group to the current selected parameter group.

References ParameterGrp::GetGroup(), draftfunctions.svgtext::getText(), ParameterGrp::HasGroup(), and Gui::validateInput().

Referenced by ParameterGroup().

◆ onDeleteSelectedItem

void ParameterGroup::onDeleteSelectedItem ( )
protectedslot

Removes the underlying parameter group and its sub-groups from the parameter tree structure.

Referenced by keyPressEvent(), and ParameterGroup().

◆ onExportToFile

void ParameterGroup::onExportToFile ( )
protectedslot

Exports the current selected parameter with all sub-groups to a file.

References ParameterGrp::exportTo(), and Gui::FileDialog::getSaveFileName().

Referenced by ParameterGroup().

◆ onImportFromFile

void ParameterGroup::onImportFromFile ( )
protectedslot

Imports a file and inserts the parameter to the current selected parameter node.

References ParameterGrp::GetGroups(), Gui::FileDialog::getOpenFileName(), and ParameterGrp::importFrom().

Referenced by ParameterGroup().

◆ onRenameSelectedItem

void ParameterGroup::onRenameSelectedItem ( )
protectedslot

Changes the name of the leaf of the selected item.

Referenced by ParameterGroup().

◆ onToggleSelectedItem

void ParameterGroup::onToggleSelectedItem ( )
protectedslot

Expands or closes the selected item.

If it is open it will be closed and the other way round.

Referenced by ParameterGroup().


The documentation for this class was generated from the following files: