Debian Codegraph @

src/Gui/Dialogs/DlgCustomizeSpNavSettings.h

raw
1 /***************************************************************************
2 * Copyright (c) 2012 Petar Perisin <[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 DLGCUSTOMIZESPNAVSETTINGS_H
25 #define DLGCUSTOMIZESPNAVSETTINGS_H
26
27 #include "PropertyPage.h"
28 #include <Base/Parameter.h>
29 #include <memory>
30
31 class Ui_DlgCustomizeSpNavSettings;
32
33 namespace Gui
34 {
35 namespace Dialog
36 {
37 class DlgCustomizeSpNavSettings: public CustomizeActionPage
38 {
39 Q_OBJECT
40
41 public:
42 explicit DlgCustomizeSpNavSettings(QWidget* parent = nullptr);
43 ~DlgCustomizeSpNavSettings() override;
44
45 protected Q_SLOTS:
46 void onAddMacroAction(const QByteArray&) override;
47 void onRemoveMacroAction(const QByteArray&) override;
48 void onModifyMacroAction(const QByteArray&) override;
49
50 protected:
51 void setupConnections();
52 void on_CBDominant_clicked();
53 void on_CBFlipYZ_clicked();
54 void on_CBRotations_clicked();
55 void on_CBTranslations_clicked();
56 void on_SliderGlobal_sliderReleased();
57 void on_CBEnablePanLR_clicked();
58 void on_CBReversePanLR_clicked();
59 void on_SliderPanLR_sliderReleased();
60 void on_CBEnablePanUD_clicked();
61 void on_CBReversePanUD_clicked();
62 void on_SliderPanUD_sliderReleased();
63 void on_CBEnableZoom_clicked();
64 void on_CBReverseZoom_clicked();
65 void on_SliderZoom_sliderReleased();
66 void on_CBEnableTilt_clicked();
67 void on_CBReverseTilt_clicked();
68 void on_SliderTilt_sliderReleased();
69 void on_CBEnableRoll_clicked();
70 void on_CBReverseRoll_clicked();
71 void on_SliderRoll_sliderReleased();
72 void on_CBEnableSpin_clicked();
73 void on_CBReverseSpin_clicked();
74 void on_SliderSpin_sliderReleased();
75 void on_ButtonDefaultSpNavMotions_clicked();
76 void on_ButtonCalibrate_clicked();
77
78 protected:
79 void changeEvent(QEvent* e) override;
80
81 private:
82 ParameterGrp::handle spaceballMotionGroup() const;
83 void setMessage(const QString& message);
84 void initialize();
85
86 private:
87 std::unique_ptr<Ui_DlgCustomizeSpNavSettings> ui;
88 bool init;
89 };
90 } // namespace Dialog
91 } // namespace Gui
92
93 #endif // DLGCUSTOMIZESPNAVSETTINGS_H