|
HAL
|
A ContentWidget that holds all GraphWidget objects (GraphView) as tabs of a QTabWidget. More...
#include <graph_tab_widget.h>


Public Types | |
| enum | GraphCursor { Select , PickModule , PickGate } |
| enum | KeyboardModifier { Alt , Ctrl , Shift } |
Public Types inherited from QWidget | |
| enum | RenderFlag |
Public Types inherited from QPaintDevice | |
| enum | PaintDeviceMetric |
Public Slots | |
| void | handleContextCreated (GraphContext *context) |
| void | handleContextRenamed (GraphContext *context) |
| void | handleContextRemoved (GraphContext *context) |
| void | handleTabChanged (int index) |
| void | handleGateFocus (u32 gateId) |
| void | handleNetFocus (u32 netId) |
| void | handleModuleFocus (u32 moduleId) |
| void | handleCustomContextMenuRequested (const QPoint &pos) |
| void | setSelectCursor (int icurs) |
| void | handleTabCloseRequested (int index) |
| void | handleCloseTabsToRight (int index) |
| void | handleCloseTabsToLeft (int index) |
| void | handleCloseAllTabs () |
Public Slots inherited from hal::ContentWidget | |
| void | remove () |
| void | detach () |
| void | reattach () |
| void | open () |
| void | close () |
| void | handleSearchKeysequenceChanged (QKeySequence seq) |
| virtual void | restoreFromProject () |
Public Slots inherited from hal::Widget | |
| void | hide () |
| void | show () |
Signals | |
| void | triggerTerminatePicker () const |
Signals inherited from hal::ContentWidget | |
| void | removed () |
| void | detached () |
| void | reattached () |
| void | opened () |
| void | closed () |
| void | name_changed (const QString &name) |
Signals inherited from hal::Widget | |
| void | parentSetTo (QWidget *parent) |
| void | hidden () |
| void | shown () |
Public Member Functions | |
| GraphTabWidget (QWidget *parent=nullptr) | |
| virtual QList< QShortcut * > | createShortcuts () override |
| int | addTab (QWidget *tab, QString tab_name="default") |
| void | showContext (GraphContext *context) |
| void | ensureSelectionVisible () |
| bool | isSelectMode () const |
| int | visibleStatus (const GraphContext *ctx) const |
| Q_ENUM (KeyboardModifier) void emitTerminatePicker() const | |
Public Member Functions inherited from hal::ContentWidget | |
| ContentWidget (QString name, QWidget *parent=nullptr) | |
| virtual void | setupToolbar (Toolbar *Toolbar) |
| void | repolish () |
| QString | name () |
| QIcon | icon () |
| void | setAnchor (ContentAnchor *anchor) |
| void | setIcon (QIcon icon) |
| void | set_name (const QString &name) |
| QString | iconStyle () |
| QString | iconPath () |
| void | setIconStyle (const QString &style) |
| void | setIconPath (const QString &path) |
Public Member Functions inherited from hal::Widget | |
| Widget (QWidget *parent=nullptr) | |
| void | setParent (QWidget *parent) |
Public Member Functions inherited from QWidget | |
| QWidget (QWidget *parent, Qt::WindowFlags f) | |
| virtual | ~QWidget () |
| WId | winId () const const |
| WId | effectiveWinId () const const |
| QStyle * | style () const const |
| void | setStyle (QStyle *style) |
| bool | isTopLevel () const const |
| bool | isWindow () const const |
| bool | isModal () const const |
| Qt::WindowModality | windowModality () const const |
| void | setWindowModality (Qt::WindowModality windowModality) |
| bool | isEnabled () const const |
| bool | isEnabledTo (const QWidget *ancestor) const const |
| bool | isEnabledToTLW () const const |
| void | setEnabled (bool) |
| void | setDisabled (bool disable) |
| void | setWindowModified (bool) |
| QRect | frameGeometry () const const |
| const QRect & | geometry () const const |
| QRect | normalGeometry () const const |
| int | x () const const |
| int | y () const const |
| QPoint | pos () const const |
| QSize | frameSize () const const |
| QSize | size () const const |
| int | width () const const |
| int | height () const const |
| QRect | rect () const const |
| QRect | childrenRect () const const |
| QRegion | childrenRegion () const const |
| QSize | minimumSize () const const |
| QSize | maximumSize () const const |
| int | minimumWidth () const const |
| int | minimumHeight () const const |
| int | maximumWidth () const const |
| int | maximumHeight () const const |
| void | setMinimumSize (const QSize &) |
| void | setMinimumSize (int minw, int minh) |
| void | setMaximumSize (const QSize &) |
| void | setMaximumSize (int maxw, int maxh) |
| void | setMinimumWidth (int minw) |
| void | setMinimumHeight (int minh) |
| void | setMaximumWidth (int maxw) |
| void | setMaximumHeight (int maxh) |
| void | setupUi (QWidget *widget) |
| QSize | sizeIncrement () const const |
| void | setSizeIncrement (const QSize &) |
| void | setSizeIncrement (int w, int h) |
| QSize | baseSize () const const |
| void | setBaseSize (const QSize &) |
| void | setBaseSize (int basew, int baseh) |
| void | setFixedSize (const QSize &s) |
| void | setFixedSize (int w, int h) |
| void | setFixedWidth (int w) |
| void | setFixedHeight (int h) |
| QPoint | mapToGlobal (const QPoint &pos) const const |
| QPoint | mapFromGlobal (const QPoint &pos) const const |
| QPoint | mapToParent (const QPoint &pos) const const |
| QPoint | mapFromParent (const QPoint &pos) const const |
| QPoint | mapTo (const QWidget *parent, const QPoint &pos) const const |
| QPoint | mapFrom (const QWidget *parent, const QPoint &pos) const const |
| QWidget * | window () const const |
| QWidget * | nativeParentWidget () const const |
| QWidget * | topLevelWidget () const const |
| const QPalette & | palette () const const |
| void | setPalette (const QPalette &) |
| void | setBackgroundRole (QPalette::ColorRole role) |
| QPalette::ColorRole | backgroundRole () const const |
| void | setForegroundRole (QPalette::ColorRole role) |
| QPalette::ColorRole | foregroundRole () const const |
| const QFont & | font () const const |
| void | setFont (const QFont &) |
| QFontMetrics | fontMetrics () const const |
| QFontInfo | fontInfo () const const |
| QCursor | cursor () const const |
| void | setCursor (const QCursor &) |
| void | unsetCursor () |
| void | setMouseTracking (bool enable) |
| bool | hasMouseTracking () const const |
| bool | underMouse () const const |
| void | setTabletTracking (bool enable) |
| bool | hasTabletTracking () const const |
| void | setMask (const QBitmap &bitmap) |
| void | setMask (const QRegion ®ion) |
| QRegion | mask () const const |
| void | clearMask () |
| void | render (QPaintDevice *target, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags) |
| void | render (QPainter *painter, const QPoint &targetOffset, const QRegion &sourceRegion, QWidget::RenderFlags renderFlags) |
| QPixmap | grab (const QRect &rectangle) |
| QGraphicsEffect * | graphicsEffect () const const |
| void | setGraphicsEffect (QGraphicsEffect *effect) |
| void | grabGesture (Qt::GestureType gesture, Qt::GestureFlags flags) |
| void | ungrabGesture (Qt::GestureType gesture) |
| void | setWindowTitle (const QString &) |
| void | setStyleSheet (const QString &styleSheet) |
| QString | styleSheet () const const |
| QString | windowTitle () const const |
| void | setWindowIcon (const QIcon &icon) |
| QIcon | windowIcon () const const |
| void | setWindowIconText (const QString &) |
| QString | windowIconText () const const |
| void | setWindowRole (const QString &role) |
| QString | windowRole () const const |
| void | setWindowFilePath (const QString &filePath) |
| QString | windowFilePath () const const |
| void | setWindowOpacity (qreal level) |
| qreal | windowOpacity () const const |
| bool | isWindowModified () const const |
| void | setToolTip (const QString &) |
| QString | toolTip () const const |
| void | setToolTipDuration (int msec) |
| int | toolTipDuration () const const |
| void | setStatusTip (const QString &) |
| QString | statusTip () const const |
| void | setWhatsThis (const QString &) |
| QString | whatsThis () const const |
| QString | accessibleName () const const |
| void | setAccessibleName (const QString &name) |
| QString | accessibleDescription () const const |
| void | setAccessibleDescription (const QString &description) |
| void | setLayoutDirection (Qt::LayoutDirection direction) |
| Qt::LayoutDirection | layoutDirection () const const |
| void | unsetLayoutDirection () |
| void | setLocale (const QLocale &locale) |
| QLocale | locale () const const |
| void | unsetLocale () |
| void | setFocus () |
| bool | isActiveWindow () const const |
| void | activateWindow () |
| void | clearFocus () |
| void | setFocus (Qt::FocusReason reason) |
| Qt::FocusPolicy | focusPolicy () const const |
| void | setFocusPolicy (Qt::FocusPolicy policy) |
| bool | hasFocus () const const |
| void | setFocusProxy (QWidget *w) |
| QWidget * | focusProxy () const const |
| Qt::ContextMenuPolicy | contextMenuPolicy () const const |
| void | setContextMenuPolicy (Qt::ContextMenuPolicy policy) |
| void | grabMouse () |
| void | grabMouse (const QCursor &cursor) |
| void | releaseMouse () |
| void | grabKeyboard () |
| void | releaseKeyboard () |
| int | grabShortcut (const QKeySequence &key, Qt::ShortcutContext context) |
| void | releaseShortcut (int id) |
| void | setShortcutEnabled (int id, bool enable) |
| void | setShortcutAutoRepeat (int id, bool enable) |
| bool | updatesEnabled () const const |
| void | setUpdatesEnabled (bool enable) |
| QGraphicsProxyWidget * | graphicsProxyWidget () const const |
| void | update () |
| void | repaint () |
| void | update (int x, int y, int w, int h) |
| void | update (const QRect &rect) |
| void | update (const QRegion &rgn) |
| void | repaint (int x, int y, int w, int h) |
| void | repaint (const QRect &rect) |
| void | repaint (const QRegion &rgn) |
| virtual void | setVisible (bool visible) |
| void | setHidden (bool hidden) |
| void | show () |
| void | hide () |
| void | showMinimized () |
| void | showMaximized () |
| void | showFullScreen () |
| void | showNormal () |
| bool | close () |
| void | raise () |
| void | lower () |
| void | stackUnder (QWidget *w) |
| void | move (int x, int y) |
| void | move (const QPoint &) |
| void | resize (int w, int h) |
| void | resize (const QSize &) |
| void | setGeometry (int x, int y, int w, int h) |
| void | setGeometry (const QRect &) |
| QByteArray | saveGeometry () const const |
| bool | restoreGeometry (const QByteArray &geometry) |
| void | adjustSize () |
| bool | isVisible () const const |
| bool | isVisibleTo (const QWidget *ancestor) const const |
| bool | isHidden () const const |
| bool | isMinimized () const const |
| bool | isMaximized () const const |
| bool | isFullScreen () const const |
| Qt::WindowStates | windowState () const const |
| void | setWindowState (Qt::WindowStates windowState) |
| virtual QSize | sizeHint () const const |
| virtual QSize | minimumSizeHint () const const |
| QSizePolicy | sizePolicy () const const |
| void | setSizePolicy (QSizePolicy) |
| void | setSizePolicy (QSizePolicy::Policy horizontal, QSizePolicy::Policy vertical) |
| virtual int | heightForWidth (int w) const const |
| virtual bool | hasHeightForWidth () const const |
| QRegion | visibleRegion () const const |
| void | setContentsMargins (int left, int top, int right, int bottom) |
| void | setContentsMargins (const QMargins &margins) |
| void | getContentsMargins (int *left, int *top, int *right, int *bottom) const const |
| QMargins | contentsMargins () const const |
| QRect | contentsRect () const const |
| QLayout * | layout () const const |
| void | setLayout (QLayout *layout) |
| void | updateGeometry () |
| void | setParent (QWidget *parent) |
| void | setParent (QWidget *parent, Qt::WindowFlags f) |
| void | scroll (int dx, int dy) |
| void | scroll (int dx, int dy, const QRect &r) |
| QWidget * | focusWidget () const const |
| QWidget * | nextInFocusChain () const const |
| QWidget * | previousInFocusChain () const const |
| bool | acceptDrops () const const |
| void | setAcceptDrops (bool on) |
| void | addAction (QAction *action) |
| void | addActions (QList< QAction * > actions) |
| void | insertActions (QAction *before, QList< QAction * > actions) |
| void | insertAction (QAction *before, QAction *action) |
| void | removeAction (QAction *action) |
| QList< QAction * > | actions () const const |
| QWidget * | parentWidget () const const |
| void | setWindowFlags (Qt::WindowFlags type) |
| Qt::WindowFlags | windowFlags () const const |
| void | setWindowFlag (Qt::WindowType flag, bool on) |
| void | overrideWindowFlags (Qt::WindowFlags flags) |
| Qt::WindowType | windowType () const const |
| QWidget * | childAt (int x, int y) const const |
| QWidget * | childAt (const QPoint &p) const const |
| void | setAttribute (Qt::WidgetAttribute attribute, bool on) |
| bool | testAttribute (Qt::WidgetAttribute attribute) const const |
| virtual QPaintEngine * | paintEngine () const const override |
| void | ensurePolished () const const |
| bool | isAncestorOf (const QWidget *child) const const |
| bool | hasEditFocus () const const |
| void | setEditFocus (bool enable) |
| bool | autoFillBackground () const const |
| void | setAutoFillBackground (bool enabled) |
| QBackingStore * | backingStore () const const |
| QWindow * | windowHandle () const const |
| QScreen * | screen () const const |
| void | windowTitleChanged (const QString &title) |
| void | windowIconChanged (const QIcon &icon) |
| void | windowIconTextChanged (const QString &iconText) |
| void | customContextMenuRequested (const QPoint &pos) |
| virtual QVariant | inputMethodQuery (Qt::InputMethodQuery query) const const |
| Qt::InputMethodHints | inputMethodHints () const const |
| void | setInputMethodHints (Qt::InputMethodHints hints) |
| QWIDGETSIZE_MAX QWIDGETSIZE_MAX | |
Public Member Functions inherited from QObject | |
| virtual const QMetaObject * | metaObject () const const |
| QObject (QObject *parent) | |
| virtual | ~QObject () |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| QString | objectName () const const |
| void | setObjectName (const QString &name) |
| bool | isWidgetType () const const |
| bool | isWindowType () const const |
| bool | signalsBlocked () const const |
| bool | blockSignals (bool block) |
| QThread * | thread () const const |
| void | moveToThread (QThread *targetThread) |
| int | startTimer (int interval, Qt::TimerType timerType) |
| int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType) |
| void | killTimer (int id) |
| T | findChild (const QString &name, Qt::FindChildOptions options) const const |
| QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
| QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const const |
| QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
| const QObjectList & | children () const const |
| void | setParent (QObject *parent) |
| void | installEventFilter (QObject *filterObj) |
| void | removeEventFilter (QObject *obj) |
| QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
| bool | disconnect (const QObject *receiver, const char *method) const const |
| void | dumpObjectTree () |
| void | dumpObjectInfo () |
| void | dumpObjectTree () const const |
| void | dumpObjectInfo () const const |
| bool | setProperty (const char *name, const QVariant &value) |
| QVariant | property (const char *name) const const |
| QList< QByteArray > | dynamicPropertyNames () const const |
| void | destroyed (QObject *obj) |
| void | objectNameChanged (const QString &objectName) |
| QObject * | parent () const const |
| bool | inherits (const char *className) const const |
| void | deleteLater () |
| Q_DISABLE_COPY (Class) | |
| Q_DISABLE_MOVE (Class) | |
| Q_DISABLE_COPY_MOVE (Class) | |
| T | qobject_cast (QObject *object) |
| T | qobject_cast (const QObject *object) |
| T | qFindChild (const QObject *obj, const QString &name) |
| QList< T > | qFindChildren (const QObject *obj, const QString &name) |
| QList< T > | qFindChildren (const QObject *obj, const QRegExp ®Exp) |
| Q_CLASSINFO (Name, Value) | |
| Q_INTERFACES (...) | |
| Q_PROPERTY (...) | |
| Q_ENUMS (...) | |
| Q_FLAGS (...) | |
| Q_ENUM (...) | |
| Q_FLAG (...) | |
| Q_ENUM_NS (...) | |
| Q_FLAG_NS (...) | |
| Q_OBJECT Q_OBJECT | |
| Q_GADGET Q_GADGET | |
| Q_NAMESPACE Q_NAMESPACE | |
| Q_NAMESPACE_EXPORT (EXPORT_MACRO) | |
| Q_SIGNALS Q_SIGNALS | |
| Q_SIGNAL Q_SIGNAL | |
| Q_SLOTS Q_SLOTS | |
| Q_SLOT Q_SLOT | |
| Q_EMIT Q_EMIT | |
| Q_INVOKABLE Q_INVOKABLE | |
| Q_REVISION Q_REVISION | |
| Q_SET_OBJECT_NAME (Object) | |
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Public Member Functions inherited from QPaintDevice | |
| virtual | ~QPaintDevice () |
| bool | paintingActive () const const |
| int | width () const const |
| int | height () const const |
| int | widthMM () const const |
| int | heightMM () const const |
| int | logicalDpiX () const const |
| int | logicalDpiY () const const |
| int | physicalDpiX () const const |
| int | physicalDpiY () const const |
| int | devicePixelRatio () const const |
| qreal | devicePixelRatioF () const const |
| int | colorCount () const const |
| int | depth () const const |
Static Public Attributes | |
| static SettingsItemKeybind * | sSettingZoomIn |
| static SettingsItemKeybind * | sSettingZoomOut |
A ContentWidget that holds all GraphWidget objects (GraphView) as tabs of a QTabWidget.
Definition at line 48 of file graph_tab_widget.h.
| Enumerator | |
|---|---|
| Select | |
| PickModule | |
| PickGate | |
Definition at line 53 of file graph_tab_widget.h.
| Enumerator | |
|---|---|
| Alt | |
| Ctrl | |
| Shift | |
Definition at line 105 of file graph_tab_widget.h.
| hal::GraphTabWidget::GraphTabWidget | ( | QWidget * | parent = nullptr | ) |
Constructor.
| parent | - The parent widget. |
Definition at line 107 of file graph_tab_widget.cpp.
References QBoxLayout::addWidget(), QObject::connect(), hal::GraphContextManager::contextCreated(), hal::GraphContextManager::contextRenamed(), QTabWidget::currentChanged(), Qt::CustomContextMenu, QWidget::customContextMenuRequested(), hal::GraphContextManager::deletingContext(), ensureSelectionVisible(), hal::gGraphContextManager, hal::gGuiApi, handleContextCreated(), handleContextRemoved(), handleContextRenamed(), handleCustomContextMenuRequested(), handleTabChanged(), handleTabCloseRequested(), QMap::insert(), hal::ContentWidget::mContentLayout, hal::GuiApi::navigationRequested(), QWidget::setContextMenuPolicy(), QTabWidget::setMovable(), QTabWidget::setTabsClosable(), and QTabWidget::tabCloseRequested().
Add a QWidget as a tab to the QTabWidget.
| tab | - The wiget to add |
| tab_name | - The title of the tab |
Definition at line 162 of file graph_tab_widget.cpp.
References QTabWidget::addTab(), and hal::ContentWidget::name().
Create and register all shortcuts associated with the graph tab widget.
Reimplemented from hal::ContentWidget.
Definition at line 132 of file graph_tab_widget.cpp.
References QShortcut::activated(), QList::append(), QObject::connect(), hal::SettingsItemKeybind::keySequenceChanged(), QShortcut::setKey(), sSettingZoomIn, sSettingZoomOut, QVariant::toString(), and hal::SettingsItemKeybind::value().
| void hal::GraphTabWidget::ensureSelectionVisible | ( | ) |
Moves (and scales) the camera in the current GraphWidget to the current selection so that every selected GraphicsItem can be seen.
Definition at line 178 of file graph_tab_widget.cpp.
References QTabWidget::currentWidget(), and hal::GraphWidget::ensureSelectionVisible().
Referenced by hal::NetlistRelay::addToModuleDialog(), GraphTabWidget(), and hal::AddToModuleReceiver::handleModulesPicked().
|
slot |
Q_SLOT to close all tabs.
Definition at line 393 of file graph_tab_widget.cpp.
References QTabWidget::count, and handleTabCloseRequested().
Referenced by handleCustomContextMenuRequested().
|
slot |
Q_SLOT to close all tabs which are left to the right-clicked.
| index | - The index of the right-clicked tab within the QTabWidget |
Definition at line 383 of file graph_tab_widget.cpp.
References handleTabCloseRequested().
Referenced by handleCustomContextMenuRequested().
|
slot |
Q_SLOT to close all tabs which are right to the right-clicked.
| index | - The index of the right-clicked tab within the QTabWidget |
Definition at line 376 of file graph_tab_widget.cpp.
References QTabWidget::count, and handleTabCloseRequested().
Referenced by handleCustomContextMenuRequested().
|
slot |
Q_SLOT that should be called whenever a new GraphContext was created. It is used to show the new context in a new tab.
| context | - The new context |
Definition at line 208 of file graph_tab_widget.cpp.
Referenced by GraphTabWidget().
|
slot |
Q_SLOT that should be called whenever a GraphContext is about to be removed. It is used to close the associated tab.
| context | - The context that will be removed. |
Definition at line 218 of file graph_tab_widget.cpp.
References handleTabCloseRequested().
Referenced by GraphTabWidget().
|
slot |
Q_SLOT that should be called whenever a GraphContext was renamed. It is used to rename the associated tab.
| context | - The renamed context |
Definition at line 213 of file graph_tab_widget.cpp.
References hal::GraphContext::name(), and QTabWidget::setTabText().
Referenced by GraphTabWidget().
|
slot |
Q_SLOT that should be called whenever a tab is rightclicked.
| pos | - Mouse position as QPoint. |
Definition at line 340 of file graph_tab_widget.cpp.
References QMenu::addAction(), QMenu::addSeparator(), QMenu::exec(), handleCloseAllTabs(), handleCloseTabsToLeft(), handleCloseTabsToRight(), handleTabCloseRequested(), QWidget::mapToGlobal(), QWidget::pos, QTabBar::tabAt(), and QTabWidget::tabBar().
Referenced by GraphTabWidget().
|
slot |
Q_SLOT that should be called whenever the focus is set to a gate. Used to show the focused gate in the GraphWidget.
| gateId | - The id of the gate in focus. |
Definition at line 223 of file graph_tab_widget.cpp.
References QTabWidget::currentWidget(), and hal::GraphWidget::focusGate().
Referenced by hal::ModuleContextMenu::addGateSubmenu().
|
slot |
Q_SLOT that should be called whenever the focus is set to a module. Used to show the focused module in the GraphWidget.
| moduleId | - The id of the module in focus. |
Definition at line 237 of file graph_tab_widget.cpp.
References QTabWidget::currentWidget(), and hal::GraphWidget::focusModule().
Referenced by hal::ModuleContextMenu::addModuleSubmenu().
|
slot |
Q_SLOT that should be called whenever the focus is set to a net. Used to show the focused net in the GraphWidget.
| netId | - The id of the net in focus. |
Definition at line 230 of file graph_tab_widget.cpp.
References QTabWidget::currentWidget(), and hal::GraphWidget::focusNet().
Referenced by hal::ModuleContextMenu::addNetSubmenu().
|
slot |
| index | - The index of the tab within the QTabWidget |
Definition at line 168 of file graph_tab_widget.cpp.
References hal::gContentManager, hal::GraphWidget::getContext(), hal::ContentManager::getContextManagerWidget(), hal::ContextManagerWidget::selectViewContext(), and QTabWidget::widget().
Referenced by GraphTabWidget().
|
slot |
Q_SLOT to close a single tab.
| index | - The index of the tab within the QTabWidget |
Definition at line 185 of file graph_tab_widget.cpp.
References QTabWidget::removeTab().
Referenced by GraphTabWidget(), handleCloseAllTabs(), handleCloseTabsToLeft(), handleCloseTabsToRight(), handleContextRemoved(), and handleCustomContextMenuRequested().
|
inline |
returns whether we are in normal select mode (select item curser) or whether we are in module/gate pick mode (G or M in cursor shape)
Definition at line 96 of file graph_tab_widget.h.
References Select.
Referenced by hal::SelectionDetailsWidget::handleSelectionUpdate().
| hal::GraphTabWidget::Q_ENUM | ( | KeyboardModifier | ) | const |
emit Q_SIGNAL to close all picker
|
slot |
Change shape of cursor to indicate that a module or gate should be picked by user. Possible values are provided by GraphCursor enumeration.
| icurs | - 0 = standard select, 1 = module pick, 2 = gate pick |
Definition at line 402 of file graph_tab_widget.cpp.
References QTabWidget::count, test::n, PickModule, Select, QWidget::setCursor(), QWidget::unsetCursor(), and QTabWidget::widget().
Referenced by hal::GateSelectPicker::GateSelectPicker(), and hal::ModuleSelectPicker::ModuleSelectPicker().
| void hal::GraphTabWidget::showContext | ( | GraphContext * | context | ) |
Shows a certain GraphContext. If there is already a tab showing the context it is selected. Otherwise, a new tab with a graph widget tab for this context is created and selected.
| context | - The GraphContext to show |
Definition at line 195 of file graph_tab_widget.cpp.
References QTabWidget::setCurrentIndex(), QWidget::setFocus(), and QTabWidget::widget().
Referenced by hal::ContextManagerWidget::handleItemDoubleClicked(), and hal::ContextManagerWidget::handleOpenContextClicked().
|
signal |
Q_SIGNAL that gets emitted to close all picker
Referenced by hal::GateSelectPicker::GateSelectPicker(), hal::ModuleSelectPicker::ModuleSelectPicker(), hal::GateSelectPicker::terminatePicker(), and hal::ModuleSelectPicker::terminatePicker().
| int hal::GraphTabWidget::visibleStatus | ( | const GraphContext * | ctx | ) | const |
returns visible status flag for context
| ctx | The context for which status flag gets requested |
Definition at line 308 of file graph_tab_widget.cpp.
References QTabWidget::count, QTabWidget::currentIndex, and QTabWidget::widget().
Referenced by hal::GraphContext::writeToFile().
|
static |
Definition at line 249 of file graph_tab_widget.h.
Referenced by createShortcuts().
|
static |
Definition at line 250 of file graph_tab_widget.h.
Referenced by createShortcuts().