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" 43 class LibraryBaseElement;
49 class ExclusiveActionGroup;
50 class IF_GraphicsLayerProvider;
53 class UndoStackActionGroup;
125 QWidget* parent =
nullptr);
138 QToolBar& commandToolBar,
146 virtual bool save() noexcept;
148 virtual bool cut() noexcept {
return false; }
149 virtual bool copy() noexcept {
return false; }
150 virtual bool paste() noexcept {
return false; }
151 virtual bool move(Qt::ArrowType direction) noexcept {
159 virtual bool mirror(Qt::Orientation orientation) noexcept {
160 Q_UNUSED(orientation);
163 virtual bool flip(Qt::Orientation orientation) noexcept {
164 Q_UNUSED(orientation);
168 virtual bool remove() noexcept {
return false; }
170 virtual bool zoomIn() noexcept {
return false; }
171 virtual bool zoomOut() noexcept {
return false; }
172 virtual bool zoomAll() noexcept {
return false; }
180 virtual bool print() noexcept;
190 const QVariant& mode) noexcept {
197 std::shared_ptr<const RuleCheckMessage> msg,
198 bool approve) noexcept;
200 const QString& settingsKey) noexcept {
202 Q_UNUSED(settingsKey);
229 std::shared_ptr<const RuleCheckMessage> msg,
bool applyFix) = 0;
231 std::shared_ptr<const RuleCheckMessage> msg) noexcept
override;
233 std::shared_ptr<const RuleCheckMessage> msg) noexcept
override;
235 std::shared_ptr<const RuleCheckMessage> msg) noexcept
override;
237 std::shared_ptr<const RuleCheckMessage> msg) noexcept
override;
239 std::shared_ptr<const RuleCheckMessage> msg) noexcept
override;
247 const QSet<librepcb::editor::EditorWidgetBase::Feature>& features);
The LibraryBaseElement class.
Definition: librarybaseelement.h:48
QtCompat::Hash qHash(const EditorWidgetBase::Feature &feature, QtCompat::Hash seed=0) noexcept
Definition: editorwidgetbase.h:267
The GraphicsView class.
Definition: graphicsview.h:51
Definition: occmodel.cpp:77
const IF_GraphicsLayerProvider & layerProvider
Definition: editorwidgetbase.h:70
The UndoStackActionGroup class groups an undo-QAction and redo-QAction together and optionally connec...
Definition: undostackactiongroup.h:45
QVector< std::shared_ptr< const RuleCheckMessage > > RuleCheckMessageList
Definition: rulecheckmessage.h:104
The ExclusiveActionGroup class groups multiple QAction's together.
Definition: exclusiveactiongroup.h:54
bool readOnly
Definition: editorwidgetbase.h:72
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
Definition: rulechecklistwidget.h:44
The StatusBar class extends QStatusBar for some commonly used fields.
Definition: statusbar.h:45
Workspace & workspace
Definition: editorwidgetbase.h:69
bool elementIsNewlyCreated
Definition: editorwidgetbase.h:71
The IF_GraphicsLayerProvider class defines an interface for classes which provide layers...
Definition: graphicslayer.h:111
This class represents absolute, well-formatted paths to files or directories.
Definition: filepath.h:129
uint Hash
Return type of Qt's qHash() function.
Definition: qtcompat.h:58
The Library class represents a library directory.
Definition: library.h:46
Output
Definition: graphicsexportdialog.h:83
OpenGL 3D viewer widget.
Definition: openglview.h:52
const Library * library
Definition: editorwidgetbase.h:73
Definition: editorwidgetbase.h:68
The Workspace class represents a workspace with all its data (library, projects, settings, ...)
Definition: workspace.h:54