The DlgParameterImp class implements a dialog showing all parameters in a list view. More...
#include <DlgParameterImp.h>
Public Member Functions | |
void | accept () |
DlgParameterImp (QWidget *parent=0, Qt::WFlags fl=0) | |
Constructs a DlgParameterImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'. | |
void | reject () |
~DlgParameterImp () | |
Destroys the object and frees any allocated resources. | |
Protected Slots | |
void | on_buttonSaveToDisk_clicked () |
void | on_closeButton_clicked () |
void | onChangeParameterSet (int) |
Switches the type of parameters either to user or system parameters. | |
void | onGroupSelected (QTreeWidgetItem *) |
Protected Member Functions | |
void | changeEvent (QEvent *e) |
Sets the strings of the subwidgets using the current language. | |
void | closeEvent (QCloseEvent *) |
void | showEvent (QShowEvent *) |
Protected Attributes | |
QTreeWidget * | paramGroup |
QTreeWidget * | paramValue |
The DlgParameterImp class implements a dialog showing all parameters in a list view.
Definition at line 40 of file DlgParameterImp.h.
DlgParameterImp::DlgParameterImp | ( | QWidget * | parent = 0 , |
|
Qt::WFlags | fl = 0 | |||
) |
Constructs a DlgParameterImp which is a child of 'parent', with the name 'name' and widget flags set to 'f'.
The dialog will by default be modeless, unless you set 'modal' to TRUE to construct a modal dialog.
Definition at line 59 of file DlgParameterImp.cpp.
References draftlibs::fcgeo::connect(), App::GetApplication(), App::Application::GetParameterSetList(), onChangeParameterSet(), onGroupSelected(), Gui::Dialog::Ui_DlgParameter::parameterSet, paramGroup, paramValue, Gui::Dialog::Ui_DlgParameter::setupUi(), and Gui::Dialog::Ui_DlgParameter::splitter3.
DlgParameterImp::~DlgParameterImp | ( | ) |
Destroys the object and frees any allocated resources.
Definition at line 105 of file DlgParameterImp.cpp.
void DlgParameterImp::accept | ( | ) |
Definition at line 132 of file DlgParameterImp.cpp.
void DlgParameterImp::changeEvent | ( | QEvent * | e | ) | [protected] |
Sets the strings of the subwidgets using the current language.
Definition at line 114 of file DlgParameterImp.cpp.
References paramGroup, paramValue, and Gui::Dialog::Ui_DlgParameter::retranslateUi().
void DlgParameterImp::closeEvent | ( | QCloseEvent * | ) | [protected] |
Definition at line 162 of file DlgParameterImp.cpp.
References App::GetApplication(), ParameterGrp::GetGroup(), App::Application::GetUserParameter(), and paramGroup.
void DlgParameterImp::on_buttonSaveToDisk_clicked | ( | ) | [protected, slot] |
Definition at line 287 of file DlgParameterImp.cpp.
References App::Application::Config(), App::GetApplication(), App::Application::GetParameterSet(), and ParameterManager::SaveDocument().
void DlgParameterImp::on_closeButton_clicked | ( | ) | [protected, slot] |
Definition at line 127 of file DlgParameterImp.cpp.
void DlgParameterImp::onChangeParameterSet | ( | int | index | ) | [protected, slot] |
Switches the type of parameters either to user or system parameters.
Definition at line 235 of file DlgParameterImp.cpp.
References App::GetApplication(), ParameterGrp::GetGroup(), ParameterGrp::GetGroups(), App::Application::GetParameterSet(), App::Application::GetUserParameter(), Gui::Dialog::Ui_DlgParameter::parameterSet, paramGroup, and paramValue.
Referenced by DlgParameterImp().
void DlgParameterImp::onGroupSelected | ( | QTreeWidgetItem * | item | ) | [protected, slot] |
Definition at line 188 of file DlgParameterImp.cpp.
References paramValue.
Referenced by DlgParameterImp().
void DlgParameterImp::reject | ( | ) |
Definition at line 137 of file DlgParameterImp.cpp.
void DlgParameterImp::showEvent | ( | QShowEvent * | ) | [protected] |
Definition at line 142 of file DlgParameterImp.cpp.
References App::GetApplication(), ParameterGrp::GetGroup(), and App::Application::GetUserParameter().
QTreeWidget* Gui::Dialog::DlgParameterImp::paramGroup [protected] |
Definition at line 64 of file DlgParameterImp.h.
Referenced by changeEvent(), closeEvent(), DlgParameterImp(), and onChangeParameterSet().
QTreeWidget* Gui::Dialog::DlgParameterImp::paramValue [protected] |
Definition at line 65 of file DlgParameterImp.h.
Referenced by changeEvent(), DlgParameterImp(), onChangeParameterSet(), and onGroupSelected().