Gui::Dialog::ParameterGroup Class Reference

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

#include <DlgParameterImp.h>

List of all members.

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.

Detailed Description

The ParameterGroup class represents the tree structure of the parameters.

The leaves represented by ParameterValueItem are displayed in ParameterValue.

Author:
Werner Mayer

Definition at line 75 of file DlgParameterImp.h.


Constructor & Destructor Documentation

ParameterGroup::ParameterGroup ( QWidget *  parent = 0  ) 
ParameterGroup::~ParameterGroup (  )  [virtual]

Definition at line 338 of file DlgParameterImp.cpp.


Member Function Documentation

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().


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

Generated on Wed Nov 23 19:02:07 2011 for FreeCAD by  doxygen 1.6.1