The DlgSettingsMeshView class implements a preference page to change settings for display of meshes. More...
#include <DlgSettingsMeshView.h>
Public Member Functions | |
DlgSettingsMeshView (QWidget *parent=0) | |
Constructs a DlgSettingsMeshView which is a child of 'parent'. | |
~DlgSettingsMeshView () | |
Destroys the object and frees any allocated resources. | |
Protected Member Functions | |
void | changeEvent (QEvent *e) |
Sets the strings of the subwidgets using the current language. | |
void | loadSettings () |
void | saveSettings () |
The DlgSettingsMeshView class implements a preference page to change settings for display of meshes.
Definition at line 37 of file DlgSettingsMeshView.h.
DlgSettingsMeshView::DlgSettingsMeshView | ( | QWidget * | parent = 0 |
) |
Constructs a DlgSettingsMeshView which is a child of 'parent'.
Definition at line 40 of file DlgSettingsMeshView.cpp.
References MeshGui::Ui_DlgSettingsMeshView::buttonBackfaceColor, MeshGui::Ui_DlgSettingsMeshView::labelBackfaceColor, and MeshGui::Ui_DlgSettingsMeshView::setupUi().
DlgSettingsMeshView::~DlgSettingsMeshView | ( | ) |
Destroys the object and frees any allocated resources.
Definition at line 51 of file DlgSettingsMeshView.cpp.
void DlgSettingsMeshView::changeEvent | ( | QEvent * | e | ) | [protected, virtual] |
Sets the strings of the subwidgets using the current language.
Implements Gui::Dialog::PreferencePage.
Definition at line 109 of file DlgSettingsMeshView.cpp.
References MeshGui::Ui_DlgSettingsMeshView::retranslateUi().
void DlgSettingsMeshView::loadSettings | ( | ) | [protected, virtual] |
Implements Gui::Dialog::PreferencePage.
Definition at line 88 of file DlgSettingsMeshView.cpp.
References MeshGui::Ui_DlgSettingsMeshView::buttonBackfaceColor, MeshGui::Ui_DlgSettingsMeshView::buttonLineColor, MeshGui::Ui_DlgSettingsMeshView::buttonMeshColor, MeshGui::Ui_DlgSettingsMeshView::checkboxBoundbox, MeshGui::Ui_DlgSettingsMeshView::checkboxNormal, MeshGui::Ui_DlgSettingsMeshView::checkboxRendering, Gui::WindowParameter::getDefaultParameter(), Gui::PrefWidget::onRestore(), MeshGui::Ui_DlgSettingsMeshView::spinboxAngle, MeshGui::Ui_DlgSettingsMeshView::spinLineTransparency, and MeshGui::Ui_DlgSettingsMeshView::spinMeshTransparency.
void DlgSettingsMeshView::saveSettings | ( | ) | [protected, virtual] |
Implements Gui::Dialog::PreferencePage.
Definition at line 56 of file DlgSettingsMeshView.cpp.
References draftlibs::fcvec::angle(), MeshGui::Ui_DlgSettingsMeshView::buttonBackfaceColor, MeshGui::Ui_DlgSettingsMeshView::buttonLineColor, MeshGui::Ui_DlgSettingsMeshView::buttonMeshColor, MeshGui::Ui_DlgSettingsMeshView::checkboxBoundbox, MeshGui::Ui_DlgSettingsMeshView::checkboxNormal, MeshGui::Ui_DlgSettingsMeshView::checkboxRendering, MeshGui::ViewProviderMesh::CreaseAngle, App::GetApplication(), MeshGui::ViewProviderMesh::getClassTypeId(), App::Application::getDocuments(), Gui::Document::getViewProvidersOfType(), Gui::Application::Instance, MeshGui::ViewProviderMesh::Lighting, Gui::PrefWidget::onSave(), App::PropertyFloat::setValue(), App::PropertyEnumeration::setValue(), MeshGui::Ui_DlgSettingsMeshView::spinboxAngle, MeshGui::Ui_DlgSettingsMeshView::spinLineTransparency, and MeshGui::Ui_DlgSettingsMeshView::spinMeshTransparency.