Debian Codegraph @

src/Gui/PreferencePages/DlgSettings3DViewImp.h

raw
1 /***************************************************************************
2 * Copyright (c) 2002 Jürgen Riegel <[email protected]> *
3 * *
4 * This file is part of the FreeCAD CAx development system. *
5 * *
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. *
10 * *
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. *
15 * *
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 *
20 * *
21 ***************************************************************************/
22
23
24 #ifndef GUI_DIALOG_DLGSETTINGS3DVIEWIMP_H
25 #define GUI_DIALOG_DLGSETTINGS3DVIEWIMP_H
26
27 #include <Gui/PropertyPage.h>
28 #include <memory>
29
30 class QDoubleSpinBox;
31
32 namespace Gui
33 {
34 namespace Dialog
35 {
36 class Ui_DlgSettings3DView;
37
38 /**
39 * The DlgSettings3DViewImp class implements a preference page to change settings
40 * for the Inventor viewer.
41 * \author Jürgen Riegel
42 */
43 class DlgSettings3DViewImp: public PreferencePage
44 {
45 Q_OBJECT
46
47 public:
48 explicit DlgSettings3DViewImp(QWidget* parent = nullptr);
49 ~DlgSettings3DViewImp() override;
50
51 void saveSettings() override;
52 void loadSettings() override;
53 void resetSettingsToDefaults() override;
54
55 private Q_SLOTS:
56 void onAliasingChanged(int);
57
58 protected:
59 void changeEvent(QEvent* e) override;
60
61 private:
62 void addAntiAliasing();
63 void saveAntiAliasing();
64 void loadAntiAliasing();
65 void saveRenderCache();
66 void loadRenderCache();
67 void saveMarkerSize();
68 void loadMarkerSize();
69
70 private:
71 std::unique_ptr<Ui_DlgSettings3DView> ui;
72
73 Q_DISABLE_COPY_MOVE(DlgSettings3DViewImp)
74 };
75
76 } // namespace Dialog
77 } // namespace Gui
78
79 #endif // GUI_DIALOG_DLGSETTINGS3DVIEWIMP_H