1
/***************************************************************************
2
* Copyright (c) 2002 J�rgen Riegel <juergen.riegel@web.de> *
4
* This file is part of the FreeCAD CAx development system. *
6
* This library is free software; you can redistribute it and/or *
7
* modify it under the terms of the GNU Library General Public *
8
* License as published by the Free Software Foundation; either *
9
* version 2 of the License, or (at your option) any later version. *
11
* This library is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU Library General Public License for more details. *
16
* You should have received a copy of the GNU Library General Public *
17
* License along with this library; see the file COPYING.LIB. If not, *
18
* write to the Free Software Foundation, Inc., 59 Temple Place, *
19
* Suite 330, Boston, MA 02111-1307, USA *
21
***************************************************************************/
24
#include "PreCompiled.h"
26
#include "DlgSettingsRayImp.h"
27
#include <Gui/PrefWidgets.h>
28
#include <Base/Console.h>
30
using namespace RaytracingGui;
33
* Constructs a DlgSettings3DViewImp which is a child of 'parent', with the
34
* name 'name' and widget flags set to 'f'
36
DlgSettingsRayImp::DlgSettingsRayImp( QWidget* parent )
37
: PreferencePage( parent )
43
* Destroys the object and frees any allocated resources
45
DlgSettingsRayImp::~DlgSettingsRayImp()
47
// no need to delete child widgets, Qt does it all for us
50
void DlgSettingsRayImp::saveSettings()
52
prefFileChooser1->onSave();
53
prefLineEdit2->onSave();
54
prefLineEdit3->onSave();
55
prefFloatSpinBox1->onSave();
56
prefCheckBox8->onSave();
57
prefCheckBox9->onSave();
60
void DlgSettingsRayImp::loadSettings()
62
prefFileChooser1->onRestore();
63
prefLineEdit2->onRestore();
64
prefLineEdit3->onRestore();
65
prefFloatSpinBox1->onRestore();
66
prefCheckBox8->onRestore();
67
prefCheckBox9->onRestore();
71
* Sets the strings of the subwidgets using the current language.
73
void DlgSettingsRayImp::changeEvent(QEvent *e)
75
if (e->type() == QEvent::LanguageChange) {
79
QWidget::changeEvent(e);
83
#include "moc_DlgSettingsRayImp.cpp"