LibrePCB Developers Documentation
standardeditorcommandhandler.h
Go to the documentation of this file.
1/*
2 * LibrePCB - Professional EDA for everyone!
3 * Copyright (C) 2013 LibrePCB Developers, see AUTHORS.md for contributors.
4 * https://librepcb.org/
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program 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 General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef LIBREPCB_EDITOR_STANDARDEDITORCOMMANDHANDLER_H
21#define LIBREPCB_EDITOR_STANDARDEDITORCOMMANDHANDLER_H
22
23/*******************************************************************************
24 * Includes
25 ******************************************************************************/
26#include <QtCore>
27#include <QtWidgets>
28
29/*******************************************************************************
30 * Namespace / Forward Declarations
31 ******************************************************************************/
32namespace librepcb {
33
34class FilePath;
35class WorkspaceSettings;
36
37namespace editor {
38
39/*******************************************************************************
40 * Class StandardEditorCommandHandler
41 ******************************************************************************/
42
48class StandardEditorCommandHandler final : public QObject {
49 Q_OBJECT
50
51public:
52 // Constructors / Destructor
55 delete;
57 QWidget* parent = nullptr) noexcept;
59
60 // Action Handlers
61 void aboutLibrePcb() const noexcept;
62 void onlineDocumentation() const noexcept;
63 void website() const noexcept;
64 void fileManager(const FilePath& fp) const noexcept;
65 void shortcutsReference() const noexcept;
66
67 // Operator Overloadings
69 const StandardEditorCommandHandler& rhs) = delete;
70
71private: // Data
73 QPointer<QWidget> mParent;
74};
75
76} // namespace editor
77} // namespace librepcb
78
79/*******************************************************************************
80 * End of File
81 ******************************************************************************/
82
83#endif
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:129
Container for all workspace related settings.
Definition: workspacesettings.h:60
Helper to handle some of the librepcb::editor::EditorCommand actions.
Definition: standardeditorcommandhandler.h:48
StandardEditorCommandHandler(const StandardEditorCommandHandler &other)=delete
void shortcutsReference() const noexcept
Definition: standardeditorcommandhandler.cpp:81
const WorkspaceSettings & mSettings
Definition: standardeditorcommandhandler.h:72
void onlineDocumentation() const noexcept
Definition: standardeditorcommandhandler.cpp:65
QPointer< QWidget > mParent
Definition: standardeditorcommandhandler.h:73
void aboutLibrePcb() const noexcept
Definition: standardeditorcommandhandler.cpp:60
void fileManager(const FilePath &fp) const noexcept
Definition: standardeditorcommandhandler.cpp:75
void website() const noexcept
Definition: standardeditorcommandhandler.cpp:70
Definition: occmodel.cpp:77