|
HAL
v4.5.0-133-g64838ea8d
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
|
Shows the modules of the netlist hierarchical in a tree view. More...
#include </home/runner/work/hal/hal/plugins/gui/include/gui/module_widget/module_widget.h>


Public Slots | |
| void | toggleSearchbar () |
| void | filter (const QString &text) |
| void | updateSearchIcon () |
| void | handleTreeViewContextMenuRequested (const QPoint &point) |
| void | handleTreeSelectionChanged (const QItemSelection &selected, const QItemSelection &deselected) |
| void | handleCurrentChanged (const QModelIndex ¤t, const QModelIndex &previous=QModelIndex()) |
| void | handleItemDoubleClicked (const QModelIndex &index) |
| void | handleSelectionChanged (void *sender) |
| void | handleModuleRemoved (Module *module, u32 module_id) |
Public Slots inherited from hal::ContentWidget | |
| void | remove () |
| void | detach () |
| void | reattach () |
| void | open () |
| void | close () |
| void | handleSearchKeysequenceChanged (QKeySequence seq) |
| virtual void | restoreFromProject () |
| ContentFrame * | detachedFrame () const |
| void | setDetachedFrame (ContentFrame *df) |
Public Slots inherited from hal::Widget | |
| void | hide () |
| void | show () |
Public Member Functions | |
| ModuleWidget (QWidget *parent=nullptr) | |
| virtual void | setupToolbar (Toolbar *toolbar) override |
| virtual QList< QShortcut * > | createShortcuts () override |
| ModuleModel * | getModuleModel () const |
| ModuleProxyModel * | proxyModel () |
Q_PROPERTY READ Functions | |
| QString | disabledIconStyle () const |
| QString | activeIconStyle () const |
| QString | showNetsIconPath () const |
| QString | hideNetsIconPath () const |
| QString | showGatesIconPath () const |
| QString | hideGatesIconPath () const |
| QString | searchIconPath () const |
| QString | searchIconStyle () const |
| QString | searchActiveIconStyle () const |
| QString | deleteIconPath () const |
| QString | renameIconPath () const |
| QString | expandedIconPath () const |
| QString | collapsedIconPath () const |
Q_PROPERTY WRITE Functions | |
| void | setDisabledIconStyle (const QString &style) |
| void | setActiveIconStyle (const QString &style) |
| void | setShowNetsIconPath (const QString &path) |
| void | setHideNetsIconPath (const QString &path) |
| void | setShowGatesIconPath (const QString &path) |
| void | setHideGatesIconPath (const QString &path) |
| void | setSearchIconPath (const QString &path) |
| void | setSearchIconStyle (const QString &style) |
| void | setSearchActiveIconStyle (const QString &style) |
| void | setDeleteIconPath (const QString &path) |
| void | setRenameIconPath (const QString &path) |
| void | setExpandedIconPath (const QString &path) |
| void | setCollapsedIconPath (const QString &path) |
Public Member Functions inherited from hal::ContentWidget | |
| ContentWidget (QString name, QWidget *parent=nullptr) | |
| void | repolish () |
| QString | name () const |
| QIcon | icon () const |
| 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 |
Shows the modules of the netlist hierarchical in a tree view.
By right-clicking a module in the widget the user can do various actions with the module like changing the name and type, move, append or delete the module.
Definition at line 58 of file module_widget.h.
| hal::ModuleWidget::ModuleWidget | ( | QWidget * | parent = nullptr | ) |
Constructor.
| parent | - The parent widget |
Definition at line 31 of file module_widget.cpp.
References QShortcut::activated(), QBoxLayout::addWidget(), Qt::AscendingOrder, QObject::connect(), QItemSelectionModel::currentChanged(), Qt::CustomContextMenu, QWidget::customContextMenuRequested(), QAbstractItemView::doubleClicked(), QWidget::ensurePolished(), hal::ModuleTreeView::expandAllModules(), QApplication::focusChanged(), hal::Netlist::get_top_module(), hal::gui_utility::getStyledSvgIcon(), hal::gNetlist, hal::gNetlistRelay, hal::gSelectionRelay, handleCurrentChanged(), handleItemDoubleClicked(), handleModuleRemoved(), handleSelectionChanged(), handleTreeSelectionChanged(), handleTreeViewContextMenuRequested(), hal::BaseTreeModel::headerLabels(), QWidget::hide(), hal::SettingsItemKeybind::keySequenceChanged(), hal::ContentWidget::mContentLayout, hal::NetlistRelay::moduleSubmoduleRemoved(), hal::ContentWidget::mSearchAction, hal::ContentWidget::name(), QAbstractItemView::NoEditTriggers, QFrame::NoFrame, hal::ModuleModel::populateTree(), Qt::QueuedConnection, hal::SelectionRelay::registerSender(), QItemSelectionModel::selectionChanged(), hal::SelectionRelay::selectionChanged(), QAbstractItemView::selectionModel(), QAbstractItemView::SelectRows, hal::Searchbar::setColumnNames(), QWidget::setContextMenuPolicy(), hal::ModuleTreeView::setDefaultColumnWidth(), QAbstractItemView::setEditTriggers(), QShortcut::setEnabled(), QTreeView::setExpandsOnDoubleClick(), QFrame::setFrameStyle(), QAction::setIcon(), QShortcut::setKey(), QTreeView::setModel(), QAbstractItemView::setSelectionBehavior(), QAbstractItemView::setSelectionMode(), QTreeView::setSortingEnabled(), QSortFilterProxyModel::setSourceModel(), QAction::setToolTip(), QTreeView::setUniformRowHeights(), QAbstractItemView::SingleSelection, QTreeView::sortByColumn(), hal::ContentManager::sSettingDeleteItem, hal::ModuleProxyModel::startSearch(), toggleSearchbar(), QAction::triggered(), hal::Searchbar::triggerNewSearch(), and updateSearchIcon().
| QString hal::ModuleWidget::activeIconStyle | ( | ) | const |
Definition at line 375 of file module_widget.cpp.
| QString hal::ModuleWidget::collapsedIconPath | ( | ) | const |
Definition at line 435 of file module_widget.cpp.
Creates and registers the shortcuts associated with the ModuleWidget.
Reimplemented from hal::ContentWidget.
Definition at line 178 of file module_widget.cpp.
References QShortcut::activated(), QList::append(), QObject::connect(), hal::ContentWidget::mSearchAction, hal::ContentWidget::mSearchKeysequence, hal::ContentWidget::mSearchShortcut, and QAction::trigger().
| QString hal::ModuleWidget::deleteIconPath | ( | ) | const |
Definition at line 420 of file module_widget.cpp.
| QString hal::ModuleWidget::disabledIconStyle | ( | ) | const |
Definition at line 370 of file module_widget.cpp.
| QString hal::ModuleWidget::expandedIconPath | ( | ) | const |
Definition at line 430 of file module_widget.cpp.
|
slot |
Q_SLOT to overwrite the filter with the regular expression given in text.
| text | - Contains the regular expression filter as a string |
Definition at line 206 of file module_widget.cpp.
References hal::ModuleTreeView::expandAllModules(), QRegularExpression::isValid(), log_info, hal::output, and QSortFilterProxyModel::setFilterRegularExpression().
| ModuleModel * hal::ModuleWidget::getModuleModel | ( | ) | const |
Accesses the module model.
Definition at line 365 of file module_widget.cpp.
Referenced by hal::ModuleDialog::ModuleDialog().
|
slot |
Q_SLOT to handle tree view navigation
| current | - The current index |
| previous | - The previous index (unused) |
Definition at line 256 of file module_widget.cpp.
References hal::ModuleItem::getType(), and hal::ModuleItem::Module.
Referenced by ModuleWidget().
|
slot |
Q_SLOT to handle a double-click on a module of the ModuleWidget.
| index | - The module index of the item that has been double clicked. |
Definition at line 316 of file module_widget.cpp.
References hal::ModuleItem::Gate, hal::ModuleItem::getType(), hal::gGraphContextManager, hal::ModuleItem::id(), index, hal::ModuleItem::Module, hal::ModuleItem::Net, hal::GraphContextManager::openGateInView(), hal::GraphContextManager::openModuleInView(), and hal::GraphContextManager::openNetEndpointsInView().
Referenced by ModuleWidget().
Q_SLOT to handle that a module has been removed from the netlist.
| module | - The module that has been removed |
| module_id | - The id of the module that has been removed |
Definition at line 245 of file module_widget.cpp.
References hal::ShortestPath::module(), and UNUSED.
Referenced by ModuleWidget().
|
slot |
Q_SLOT to handle that the item selection has been changed by another widget.
| sender | - The responsible class for the selection change |
Definition at line 326 of file module_widget.cpp.
References hal::BaseTreeModel::getIndexFromItem(), hal::ModuleModel::getItems(), hal::gSelectionRelay, index, QSortFilterProxyModel::mapFromSource(), QItemSelectionModel::select(), QItemSelection::select(), hal::SelectionRelay::selectedModulesList(), QAbstractItemView::selectionModel(), and QObject::sender().
Referenced by ModuleWidget().
|
slot |
Q_SLOT to handle that the selection within the tree view has been changed. Updates the selection in other widgets using the selection relay.
| selected | - The newly selected items |
| deselected | - The newly deselected items |
Definition at line 266 of file module_widget.cpp.
References hal::SelectionRelay::addGate(), hal::SelectionRelay::addModule(), hal::SelectionRelay::addNet(), QSet::begin(), hal::SelectionRelay::clear(), hal::ModuleItem::Gate, hal::SelectionRelay::Gate, hal::ModuleItem::getType(), hal::gSelectionRelay, hal::ModuleItem::id(), index, QSet::insert(), hal::ModuleModel::isModifying(), hal::ModuleItem::Module, hal::SelectionRelay::Module, hal::ModuleItem::Net, hal::SelectionRelay::relaySelectionChanged(), QItemSelectionModel::selectedIndexes, QAbstractItemView::selectionModel(), hal::SelectionRelay::setFocus(), and QSet::size().
Referenced by ModuleWidget().
|
slot |
Q_SLOT to open and handle the context menu of a module in the ModuleWidget.
| point | - The contents coordinates of the click |
Definition at line 218 of file module_widget.cpp.
References hal::ModuleContextMenu::addGateSubmenu(), hal::ModuleContextMenu::addModuleSubmenu(), hal::ModuleContextMenu::addNetSubmenu(), hal::GuiPluginManager::addPluginSubmenus(), QMenu::exec(), hal::ModuleItem::Gate, hal::ModuleItem::getType(), hal::gNetlist, hal::ModuleItem::id(), index, QTreeView::indexAt(), QWidget::mapToGlobal(), hal::ModuleItem::Module, hal::ModuleItem::Net, type, and QAbstractScrollArea::viewport().
Referenced by ModuleWidget().
| QString hal::ModuleWidget::hideGatesIconPath | ( | ) | const |
Definition at line 400 of file module_widget.cpp.
| QString hal::ModuleWidget::hideNetsIconPath | ( | ) | const |
Definition at line 390 of file module_widget.cpp.
| ModuleProxyModel * hal::ModuleWidget::proxyModel | ( | ) |
Get the widget's proxy model that represents the ModuleModel.
Definition at line 380 of file module_widget.cpp.
Referenced by hal::ContentManager::handleOpenDocument().
| QString hal::ModuleWidget::renameIconPath | ( | ) | const |
Definition at line 425 of file module_widget.cpp.
| QString hal::ModuleWidget::searchActiveIconStyle | ( | ) | const |
Definition at line 415 of file module_widget.cpp.
| QString hal::ModuleWidget::searchIconPath | ( | ) | const |
Definition at line 405 of file module_widget.cpp.
| QString hal::ModuleWidget::searchIconStyle | ( | ) | const |
Definition at line 410 of file module_widget.cpp.
| void hal::ModuleWidget::setActiveIconStyle | ( | const QString & | style | ) |
Definition at line 445 of file module_widget.cpp.
References QWidget::style().
| void hal::ModuleWidget::setCollapsedIconPath | ( | const QString & | path | ) |
Definition at line 500 of file module_widget.cpp.
| void hal::ModuleWidget::setDeleteIconPath | ( | const QString & | path | ) |
Definition at line 485 of file module_widget.cpp.
| void hal::ModuleWidget::setDisabledIconStyle | ( | const QString & | style | ) |
Definition at line 440 of file module_widget.cpp.
References QWidget::style().
| void hal::ModuleWidget::setExpandedIconPath | ( | const QString & | path | ) |
Definition at line 495 of file module_widget.cpp.
| void hal::ModuleWidget::setHideGatesIconPath | ( | const QString & | path | ) |
Definition at line 465 of file module_widget.cpp.
| void hal::ModuleWidget::setHideNetsIconPath | ( | const QString & | path | ) |
Definition at line 455 of file module_widget.cpp.
| void hal::ModuleWidget::setRenameIconPath | ( | const QString & | path | ) |
Definition at line 490 of file module_widget.cpp.
| void hal::ModuleWidget::setSearchActiveIconStyle | ( | const QString & | style | ) |
Definition at line 480 of file module_widget.cpp.
References QWidget::style().
| void hal::ModuleWidget::setSearchIconPath | ( | const QString & | path | ) |
Definition at line 470 of file module_widget.cpp.
| void hal::ModuleWidget::setSearchIconStyle | ( | const QString & | style | ) |
Definition at line 475 of file module_widget.cpp.
References QWidget::style().
| void hal::ModuleWidget::setShowGatesIconPath | ( | const QString & | path | ) |
Definition at line 460 of file module_widget.cpp.
| void hal::ModuleWidget::setShowNetsIconPath | ( | const QString & | path | ) |
Definition at line 450 of file module_widget.cpp.
|
overridevirtual |
Configures the ModuleWidget's toolbar. Since the ModuleWidget has no toolbar actions, nothing is done here.
| toolbar | - The toolbar to configure |
Reimplemented from hal::ContentWidget.
Definition at line 168 of file module_widget.cpp.
References QToolBar::addAction(), and hal::ContentWidget::mSearchAction.
| QString hal::ModuleWidget::showGatesIconPath | ( | ) | const |
Definition at line 395 of file module_widget.cpp.
| QString hal::ModuleWidget::showNetsIconPath | ( | ) | const |
Definition at line 385 of file module_widget.cpp.
|
slot |
Q_SLOT to open/close the searchbar of the ModuleWidget depending on whether it is already open or not.
Definition at line 189 of file module_widget.cpp.
References QWidget::hide(), QAction::isEnabled(), QWidget::isHidden(), hal::ContentWidget::mSearchAction, QWidget::setFocus(), and QWidget::show().
Referenced by ModuleWidget().
|
slot |
Q_SLOT to update the search icon style. The search icon style indicates wether a filter is applied or not.
Definition at line 357 of file module_widget.cpp.
References hal::Searchbar::filterApplied(), hal::gui_utility::getStyledSvgIcon(), QWidget::isVisible(), hal::ContentWidget::mSearchAction, and QAction::setIcon().
Referenced by ModuleWidget().