Debian Codegraph @

src/Gui/Navigation/SiemensNXNavigationStyle.h

raw
1 // SPDX-License-Identifier: LGPL-2.1-or-later
2
3 /***************************************************************************
4 * Copyright (c) 2025 Werner Mayer <wmayer[at]users.sourceforge.net> *
5 * *
6 * This file is part of FreeCAD. *
7 * *
8 * FreeCAD is free software: you can redistribute it and/or modify it *
9 * under the terms of the GNU Lesser General Public License as *
10 * published by the Free Software Foundation, either version 2.1 of the *
11 * License, or (at your option) any later version. *
12 * *
13 * FreeCAD is distributed in the hope that it will be useful, but *
14 * WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
16 * Lesser General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU Lesser General Public *
19 * License along with FreeCAD. If not, see *
20 * <https://www.gnu.org/licenses/>. *
21 * *
22 **************************************************************************/
23
24
25 #ifndef GUI_SIEMENSNXNAVIGATIONSTYLE_H
26 #define GUI_SIEMENSNXNAVIGATIONSTYLE_H
27
28 #include <Gui/Navigation/NavigationStateChart.h>
29
30 // NOLINTBEGIN(cppcoreguidelines-avoid*, readability-avoid-const-params-in-decls)
31 namespace Gui
32 {
33
34 class GuiExport SiemensNXNavigationStyle: public NavigationStateChart
35 {
36 using inherited = NavigationStateChart;
37
38 TYPESYSTEM_HEADER_WITH_OVERRIDE();
39
40 public:
41 SiemensNXNavigationStyle();
42 ~SiemensNXNavigationStyle() override;
43 const char* mouseButtons(ViewerMode mode) override;
44 std::string userFriendlyName() const override;
45
46 protected:
47 SbBool processKeyboardEvent(const SoKeyboardEvent* const event) override;
48
49 private:
50 struct NaviMachine;
51 struct IdleState;
52 struct AwaitingReleaseState;
53 struct AwaitingMoveState;
54 struct InteractState;
55 struct RotateState;
56 struct PanState;
57 struct ZoomState;
58 struct SelectionState;
59 };
60
61 } // namespace Gui
62 // NOLINTEND(cppcoreguidelines-avoid*, readability-avoid-const-params-in-decls)
63
64 #endif // GUI_SIEMENSNXNAVIGATIONSTYLE_H