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"
42class LibraryBaseElement;
48class ExclusiveActionGroup;
49class IF_GraphicsLayerProvider;
52class UndoStackActionGroup;
128 QWidget* parent =
nullptr);
142 QToolBar& commandToolBar,
150 virtual
bool save() noexcept;
152 virtual bool cut() noexcept {
return false; }
153 virtual bool copy() noexcept {
return false; }
154 virtual bool paste() noexcept {
return false; }
155 virtual bool move(Qt::ArrowType direction)
noexcept {
163 virtual bool mirror(Qt::Orientation orientation)
noexcept {
164 Q_UNUSED(orientation);
167 virtual bool flip(Qt::Orientation orientation)
noexcept {
168 Q_UNUSED(orientation);
173 virtual bool remove() noexcept {
return false; }
175 virtual bool zoomIn() noexcept {
return false; }
176 virtual bool zoomOut() noexcept {
return false; }
177 virtual bool zoomAll() noexcept {
return false; }
185 virtual
bool print() noexcept;
196 const QVariant& mode) noexcept {
203 std::shared_ptr<const RuleCheckMessage> msg,
204 bool approve)
noexcept;
206 const QString& settingsKey)
noexcept {
208 Q_UNUSED(settingsKey);
274 std::
size_t seed = 0) noexcept {
275 return ::qHash(
static_cast<int>(feature), seed);
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
This class represents absolute, well-formatted paths to files or directories.
Definition filepath.h:127
The LibraryBaseElement class.
Definition librarybaseelement.h:48
The Library class represents a library directory.
Definition library.h:46
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 IF_GraphicsLayerProvider class defines an interface for classes which provide layers.
Definition graphicslayer.h:111
Definition rulechecklistwidget.h:44
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
std::size_t qHash(const EditorWidgetBase::Feature &feature, std::size_t seed=0) noexcept
Definition editorwidgetbase.h:273
Definition occmodel.cpp:76
QVector< std::shared_ptr< const RuleCheckMessage > > RuleCheckMessageList
Definition rulecheckmessage.h:104
Definition editorwidgetbase.h:67
bool readOnly
Definition editorwidgetbase.h:71
bool elementIsNewlyCreated
Definition editorwidgetbase.h:70
const IF_GraphicsLayerProvider & layerProvider
Definition editorwidgetbase.h:69
const Library * library
Definition editorwidgetbase.h:72
Workspace & workspace
Definition editorwidgetbase.h:68