20#ifndef LIBREPCB_EDITOR_EDITORWIDGETBASE_H
21#define LIBREPCB_EDITOR_EDITORWIDGETBASE_H
26#include "../dialogs/graphicsexportdialog.h"
27#include "../undostack.h"
28#include "../widgets/rulechecklistwidget.h"
43class LibraryBaseElement;
49class ExclusiveActionGroup;
50class IF_GraphicsLayerProvider;
53class UndoStackActionGroup;
129 QWidget* parent =
nullptr);
143 QToolBar& commandToolBar,
151 virtual
bool save() noexcept;
153 virtual bool cut() noexcept {
return false; }
154 virtual bool copy() noexcept {
return false; }
155 virtual bool paste() noexcept {
return false; }
156 virtual bool move(Qt::ArrowType direction)
noexcept {
164 virtual bool mirror(Qt::Orientation orientation)
noexcept {
165 Q_UNUSED(orientation);
168 virtual bool flip(Qt::Orientation orientation)
noexcept {
169 Q_UNUSED(orientation);
174 virtual bool remove() noexcept {
return false; }
176 virtual bool zoomIn() noexcept {
return false; }
177 virtual bool zoomOut() noexcept {
return false; }
178 virtual bool zoomAll() noexcept {
return false; }
186 virtual
bool print() noexcept;
197 const QVariant& mode) noexcept {
204 std::shared_ptr<const RuleCheckMessage> msg,
205 bool approve)
noexcept;
207 const QString& settingsKey)
noexcept {
209 Q_UNUSED(settingsKey);
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:129
The LibraryBaseElement class.
Definition: librarybaseelement.h:48
The Library class represents a library directory.
Definition: library.h:46
Qt compatibility helper class.
Definition: qtcompat.h:43
The RuleCheckMessage class.
Definition: rulecheckmessage.h:45
The SExpression class.
Definition: sexpression.h:69
Transactional librepcb::FileSystem implementation.
Definition: transactionalfilesystem.h:71
The Workspace class represents a workspace with all its data (library, projects, settings,...
Definition: workspace.h:54
The ExclusiveActionGroup class groups multiple QAction's together.
Definition: exclusiveactiongroup.h:54
Output
Definition: graphicsexportdialog.h:83
The GraphicsView class.
Definition: graphicsview.h:51
The IF_GraphicsLayerProvider class defines an interface for classes which provide layers.
Definition: graphicslayer.h:111
Definition: rulechecklistwidget.h:44
OpenGL 3D viewer widget.
Definition: openglview.h:52
The StatusBar class extends QStatusBar for some commonly used fields.
Definition: statusbar.h:45
The UndoStackActionGroup class groups an undo-QAction and redo-QAction together and optionally connec...
Definition: undostackactiongroup.h:45
The UndoStack class holds UndoCommand objects and provides undo/redo commands.
Definition: undostack.h:106
QtCompat::Hash qHash(const EditorWidgetBase::Feature &feature, QtCompat::Hash seed=0) noexcept
Definition: editorwidgetbase.h:274
Definition: occmodel.cpp:77
QVector< std::shared_ptr< const RuleCheckMessage > > RuleCheckMessageList
Definition: rulecheckmessage.h:104
Definition: editorwidgetbase.h:68
bool readOnly
Definition: editorwidgetbase.h:72
bool elementIsNewlyCreated
Definition: editorwidgetbase.h:71
const IF_GraphicsLayerProvider & layerProvider
Definition: editorwidgetbase.h:70
const Library * library
Definition: editorwidgetbase.h:73
Workspace & workspace
Definition: editorwidgetbase.h:69