#include "GraphicsViewView.h"
Public Member Functions | |
| GraphicsViewView () | |
| virtual | ~GraphicsViewView () |
| virtual QWidget * | getViewWidget (void) override |
| Returns the widget that is set to this widget view. | |
Public Member Functions inherited from ot::GraphicsView | |
| GraphicsView (GraphicsScene *_scene=(GraphicsScene *) nullptr) | |
| virtual | ~GraphicsView () |
| virtual QWidget * | getQWidget (void) override |
| Returns a pointer to the root widget of this object. | |
| void | resetView (void) |
| void | ensureViewInBounds (void) |
| void | setMouseWheelEnabled (bool _enabled) |
| bool | getMouseWheelEnabled (void) const |
| void | setOwner (const BasicServiceInformation &_owner) |
| const BasicServiceInformation & | getOwner (void) const |
| void | setGraphicsViewFlag (GraphicsViewFlag _flag, bool _active=true) |
| void | setGraphicsViewFlags (const GraphicsViewFlags &_flags) |
| const GraphicsViewFlags & | getGraphicsViewFlags (void) const |
| void | setGraphicsScene (GraphicsScene *_scene) |
| GraphicsScene * | getGraphicsScene (void) |
| GraphicsItem * | getItem (const ot::UID &_itemUid) |
| GraphicsConnectionItem * | getConnection (const ot::UID &_connectionUid) |
| bool | connectionAlreadyExists (const ot::GraphicsConnectionCfg &connection) |
| void | setDropsEnabled (bool _enabled) |
| void | setGraphicsViewName (const std::string &_name) |
| const std::string & | getGraphicsViewName (void) const |
| void | addItem (ot::GraphicsItem *_item) |
| void | removeItem (const ot::UID &_itemUid, bool bufferConnections=false) |
| std::list< ot::UID > | getSelectedItemUIDs (void) const |
| std::list< GraphicsItem * > | getSelectedGraphicsItems (void) const |
| void | setSceneMargins (const QMarginsF &_margins) |
| const QMarginsF & | getSceneMargins (void) const |
| bool | addConnectionIfConnectedItemsExist (const GraphicsConnectionCfg &_config) |
| void | removeConnection (const GraphicsConnectionCfg &_connectionInformation) |
| void | removeConnection (const ot::UID &_connectionInformation) |
| ot::UIDList | getSelectedConnectionUIDs (void) const |
| std::list< GraphicsConnectionItem * > | getSelectedConnectionItems (void) const |
| void | requestConnection (const ot::UID &_fromUid, const std::string &_fromConnector, const ot::UID &_toUid, const std::string &_toConnector) |
| void | requestConnectionToConnection (const ot::UID &_fromItemUid, const std::string &_fromItemConnector, const ot::UID &_toConnectionUid, const ot::Point2DD &_newControlPoint) |
| void | notifyItemMoved (const ot::GraphicsItem *_item) |
| void | notifyItemConfigurationChanged (const ot::GraphicsItem *_item) |
| QRectF | getVisibleSceneRect (void) const |
| void | setReadOnly (bool _isReadOnly) |
| bool | isReadOnly (void) const |
Public Member Functions inherited from ot::QWidgetInterface | |
| QWidgetInterface () | |
| virtual | ~QWidgetInterface () |
| void | setOTWidgetFlags (const WidgetFlags &_flags) |
| const WidgetFlags & | otWidgetFlags (void) const |
| virtual void | otWidgetFlagsChanged (const WidgetFlags &_flags) |
| void | centerOnParent (const QWidget *const _parentWidget) |
| Centers this widget on the parent. If no parent is provided the widget will center on the screen. | |
| QPoint | calculateCenterOnParentPos (const QWidget *const _parentWidget) |
| Calculates the top left corner of this widget centered on the parent widget. If no parent is provided the widget will center on the screen. | |
Public Member Functions inherited from ot::WidgetView | |
| WidgetView (WidgetViewBase::ViewType _viewType) | |
| virtual | ~WidgetView () |
| virtual void | setViewWidgetFocus (void) |
| Sets the input focus to the view widget. Custom widget views with nested widgets can override this method to set the focus to the correct widget. By default the root widget (widget returned by WidgetView::getViewWidget()) will get the focus set. | |
| void | setViewData (const WidgetViewBase &_data) |
| WidgetViewBase & | getViewData (void) |
| const WidgetViewBase & | getViewData (void) const |
| ads::CDockWidget * | getViewDockWidget (void) const |
| Returns the dock widget that belongs to this widget view. | |
| QAction * | getViewToggleAction (void) const |
| Returns the dock widget toggle visibility action. Returns 0 if no widget view is set. | |
| void | setViewIsPermanent (bool _permanent=true) |
| Permanent views wont be removed from the widget view manager when calling remove view. | |
| bool | getViewIsPermanent (void) const |
| Permanent views wont be removed from the widget view manager when calling remove view. | |
| void | setViewContentModified (bool _isModified) |
| Set the view modified state. Modified views will change the title to display an unsaved change. | |
| bool | getViewContentModified (void) const |
| QString | getCurrentViewTitle (void) const |
| Returns the widget view title that is currently displayed. | |
| void | setAsCurrentViewTab (void) |
| bool | isCurrentViewTab (void) const |
Additional Inherited Members | |
Public Types inherited from ot::GraphicsView | |
| enum | GraphicsViewFlag { NoViewFlags = 0x00 , ViewManagesSceneRect = 0x01 , IgnoreConnectionByUser = 0x02 } |
| enum | ViewStateFlag { DefaultState = 0 << 0 , ItemMoveInProgress = 1 << 0 , MiddleMousePressedState = 1 << 1 , ReadOnlyState = 1 << 2 } |
| typedef Flags< GraphicsViewFlag > | GraphicsViewFlags |
| typedef ot::Flags< ViewStateFlag > | ViewStateFlags |
Public Types inherited from ot::WidgetView | |
| enum | InsertFlag { NoInsertFlags = 0 << 0 , KeepCurrentFocus = 1 << 0 } |
| typedef ot::Flags< InsertFlag > | InsertFlags |
Signals inherited from ot::GraphicsView | |
| void | itemRequested (const QString &_name, const QPointF &_pos) |
| Will be emitted when an item was dropped into the scene by the user. | |
| void | connectionRequested (const ot::UID &_fromUid, const std::string &_fromConnector, const ot::UID &_toUid, const std::string &_toConnector) |
| Will be emitted when a connection was "dropped" by the user. | |
| void | connectionToConnectionRequested (const ot::UID &_fromItemUid, const std::string &_fromItemConnector, const ot::UID &_toConnectionUid, const ot::Point2DD &_newControlPoint) |
| void | itemMoved (const ot::UID &_uid, const QPointF &_newPos) |
| void | itemConfigurationChanged (const ot::GraphicsItemCfg *_newConfig) |
| void | removeItemsRequested (const ot::UIDList &_items, const ot::UIDList &_connections) |
Static Public Member Functions inherited from ot::WidgetView | |
| static std::string | createStoredViewName (const WidgetViewBase &_view) |
| static std::string | createStoredViewName (const std::string &_entityName, WidgetViewBase::ViewType _viewType) |
| Creates the name that should be used in the view management logic. The resulted name has the following syntax: <entityName>$<viewTypeString> | |
Protected Member Functions inherited from ot::GraphicsView | |
| virtual void | wheelEvent (QWheelEvent *_event) override |
| virtual void | mousePressEvent (QMouseEvent *_event) override |
| virtual void | mouseReleaseEvent (QMouseEvent *_event) override |
| virtual void | mouseMoveEvent (QMouseEvent *_event) override |
| virtual void | keyPressEvent (QKeyEvent *_event) override |
| virtual void | keyReleaseEvent (QKeyEvent *_event) override |
| virtual void | resizeEvent (QResizeEvent *_event) override |
| virtual void | dragEnterEvent (QDragEnterEvent *_event) override |
| virtual void | dropEvent (QDropEvent *_event) override |
| virtual void | dragMoveEvent (QDragMoveEvent *_event) override |
Protected Member Functions inherited from ot::WidgetView | |
| void | addWidgetToDock (QWidget *_widget) |
| Call this function as soon as the widget for this view is created to add it to the dock. | |
Protected Attributes inherited from ot::QWidgetInterface | |
| WidgetFlags | m_widgetFlags |
| ot::GraphicsViewView::GraphicsViewView | ( | ) |
|
virtual |
|
overridevirtual |
Returns the widget that is set to this widget view.
Implements ot::WidgetView.