![]() |
HAL
|
Displays the current selection. More...
#include <selection_tree_view.h>
Public Slots | |
void | handleModuleColorChanged (u32 id) |
void handleFilterTextChanged(const QString& filter_text); More... | |
Signals | |
void | triggerSelection (const ModuleItem *sti) |
void | itemDoubleClicked (const ModuleItem *sti) |
Public Member Functions | |
SelectionTreeView (QWidget *parent=nullptr, bool isGrouping=false) | |
void | setDefaultColumnWidth () |
void | populate (bool mVisible, u32 groupingId=0) |
ModuleItem * | itemFromIndex (const QModelIndex &index=QModelIndex()) const |
SelectionTreeProxyModel * | proxyModel () |
![]() | |
QTreeView (QWidget *parent) | |
virtual | ~QTreeView () |
virtual void | setModel (QAbstractItemModel *model) override |
virtual void | setRootIndex (const QModelIndex &index) override |
virtual void | setSelectionModel (QItemSelectionModel *selectionModel) override |
QHeaderView * | header () const const |
void | setHeader (QHeaderView *header) |
int | autoExpandDelay () const const |
void | setAutoExpandDelay (int delay) |
int | indentation () const const |
void | setIndentation (int i) |
void | resetIndentation () |
bool | rootIsDecorated () const const |
void | setRootIsDecorated (bool show) |
bool | uniformRowHeights () const const |
void | setUniformRowHeights (bool uniform) |
bool | itemsExpandable () const const |
void | setItemsExpandable (bool enable) |
bool | expandsOnDoubleClick () const const |
void | setExpandsOnDoubleClick (bool enable) |
int | columnViewportPosition (int column) const const |
int | columnWidth (int column) const const |
void | setColumnWidth (int column, int width) |
int | columnAt (int x) const const |
bool | isColumnHidden (int column) const const |
void | setColumnHidden (int column, bool hide) |
bool | isHeaderHidden () const const |
void | setHeaderHidden (bool hide) |
bool | isRowHidden (int row, const QModelIndex &parent) const const |
void | setRowHidden (int row, const QModelIndex &parent, bool hide) |
bool | isFirstColumnSpanned (int row, const QModelIndex &parent) const const |
void | setFirstColumnSpanned (int row, const QModelIndex &parent, bool span) |
bool | isExpanded (const QModelIndex &index) const const |
void | setExpanded (const QModelIndex &index, bool expanded) |
void | setSortingEnabled (bool enable) |
bool | isSortingEnabled () const const |
void | setAnimated (bool enable) |
bool | isAnimated () const const |
void | setAllColumnsShowFocus (bool enable) |
bool | allColumnsShowFocus () const const |
void | setWordWrap (bool on) |
bool | wordWrap () const const |
void | setTreePosition (int index) |
int | treePosition () const const |
virtual void | keyboardSearch (const QString &search) override |
virtual QRect | visualRect (const QModelIndex &index) const const override |
virtual void | scrollTo (const QModelIndex &index, QAbstractItemView::ScrollHint hint) override |
virtual QModelIndex | indexAt (const QPoint &point) const const override |
QModelIndex | indexAbove (const QModelIndex &index) const const |
QModelIndex | indexBelow (const QModelIndex &index) const const |
virtual void | reset () override |
virtual void | dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles) override |
virtual void | selectAll () override |
void | expanded (const QModelIndex &index) |
void | collapsed (const QModelIndex &index) |
void | hideColumn (int column) |
void | showColumn (int column) |
void | expand (const QModelIndex &index) |
void | collapse (const QModelIndex &index) |
void | resizeColumnToContents (int column) |
void | sortByColumn (int column) |
void | sortByColumn (int column, Qt::SortOrder order) |
void | expandAll () |
void | expandRecursively (const QModelIndex &index, int depth) |
void | collapseAll () |
void | expandToDepth (int depth) |
![]() | |
QAbstractItemView (QWidget *parent) | |
virtual | ~QAbstractItemView () |
QAbstractItemModel * | model () const const |
QItemSelectionModel * | selectionModel () const const |
void | setItemDelegate (QAbstractItemDelegate *delegate) |
QAbstractItemDelegate * | itemDelegate () const const |
void | setSelectionMode (QAbstractItemView::SelectionMode mode) |
QAbstractItemView::SelectionMode | selectionMode () const const |
void | setSelectionBehavior (QAbstractItemView::SelectionBehavior behavior) |
QAbstractItemView::SelectionBehavior | selectionBehavior () const const |
QModelIndex | currentIndex () const const |
QModelIndex | rootIndex () const const |
void | setEditTriggers (QAbstractItemView::EditTriggers triggers) |
QAbstractItemView::EditTriggers | editTriggers () const const |
void | setVerticalScrollMode (QAbstractItemView::ScrollMode mode) |
QAbstractItemView::ScrollMode | verticalScrollMode () const const |
void | resetVerticalScrollMode () |
void | setHorizontalScrollMode (QAbstractItemView::ScrollMode mode) |
QAbstractItemView::ScrollMode | horizontalScrollMode () const const |
void | resetHorizontalScrollMode () |
void | setAutoScroll (bool enable) |
bool | hasAutoScroll () const const |
void | setAutoScrollMargin (int margin) |
int | autoScrollMargin () const const |
void | setTabKeyNavigation (bool enable) |
bool | tabKeyNavigation () const const |
void | setDropIndicatorShown (bool enable) |
bool | showDropIndicator () const const |
void | setDragEnabled (bool enable) |
bool | dragEnabled () const const |
void | setDragDropOverwriteMode (bool overwrite) |
bool | dragDropOverwriteMode () const const |
void | setDragDropMode (QAbstractItemView::DragDropMode behavior) |
QAbstractItemView::DragDropMode | dragDropMode () const const |
void | setDefaultDropAction (Qt::DropAction dropAction) |
Qt::DropAction | defaultDropAction () const const |
void | setAlternatingRowColors (bool enable) |
bool | alternatingRowColors () const const |
void | setIconSize (const QSize &size) |
QSize | iconSize () const const |
void | setTextElideMode (Qt::TextElideMode mode) |
Qt::TextElideMode | textElideMode () const const |
QSize | sizeHintForIndex (const QModelIndex &index) const const |
virtual int | sizeHintForRow (int row) const const |
void | openPersistentEditor (const QModelIndex &index) |
void | closePersistentEditor (const QModelIndex &index) |
bool | isPersistentEditorOpen (const QModelIndex &index) const const |
void | setIndexWidget (const QModelIndex &index, QWidget *widget) |
QWidget * | indexWidget (const QModelIndex &index) const const |
void | setItemDelegateForRow (int row, QAbstractItemDelegate *delegate) |
QAbstractItemDelegate * | itemDelegateForRow (int row) const const |
void | setItemDelegateForColumn (int column, QAbstractItemDelegate *delegate) |
QAbstractItemDelegate * | itemDelegateForColumn (int column) const const |
QAbstractItemDelegate * | itemDelegate (const QModelIndex &index) const const |
virtual QVariant | inputMethodQuery (Qt::InputMethodQuery query) const const override |
void | edit (const QModelIndex &index) |
void | clearSelection () |
void | setCurrentIndex (const QModelIndex &index) |
void | scrollToTop () |
void | scrollToBottom () |
void | update (const QModelIndex &index) |
void | pressed (const QModelIndex &index) |
void | clicked (const QModelIndex &index) |
void | doubleClicked (const QModelIndex &index) |
void | activated (const QModelIndex &index) |
void | entered (const QModelIndex &index) |
void | viewportEntered () |
void | iconSizeChanged (const QSize &size) |
![]() | |
QAbstractScrollArea (QWidget *parent) | |
virtual | ~QAbstractScrollArea () |
Qt::ScrollBarPolicy | verticalScrollBarPolicy () const const |
void | setVerticalScrollBarPolicy (Qt::ScrollBarPolicy) |
QScrollBar * | verticalScrollBar () const const |
void | setVerticalScrollBar (QScrollBar *scrollBar) |
Qt::ScrollBarPolicy | horizontalScrollBarPolicy () const const |
void | setHorizontalScrollBarPolicy (Qt::ScrollBarPolicy) |
QScrollBar * | horizontalScrollBar () const const |
void | setHorizontalScrollBar (QScrollBar *scrollBar) |
QWidget * | cornerWidget () const const |
void | setCornerWidget (QWidget *widget) |
void | addScrollBarWidget (QWidget *widget, Qt::Alignment alignment) |
QWidgetList | scrollBarWidgets (Qt::Alignment alignment) |
QWidget * | viewport () const const |
void | setViewport (QWidget *widget) |
QSize | maximumViewportSize () const const |
virtual QSize | minimumSizeHint () const const override |
virtual QSize | sizeHint () const const override |
virtual void | setupViewport (QWidget *viewport) |
QAbstractScrollArea::SizeAdjustPolicy | sizeAdjustPolicy () const const |
void | setSizeAdjustPolicy (QAbstractScrollArea::SizeAdjustPolicy policy) |
![]() | |
QFrame (QWidget *parent, Qt::WindowFlags f) | |
virtual | ~QFrame () |
int | frameStyle () const const |
void | setFrameStyle (int style) |
int | frameWidth () const const |
QFrame::Shape | frameShape () const const |
void | setFrameShape (QFrame::Shape) |
QFrame::Shadow | frameShadow () const const |
void | setFrameShadow (QFrame::Shadow) |
int | lineWidth () const const |
void | setLineWidth (int) |
int | midLineWidth () const const |
void | setMidLineWidth (int) |
QRect | frameRect () const const |
void | setFrameRect (const QRect &) |
![]() | |
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) |
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) |
Qt::InputMethodHints | inputMethodHints () const const |
void | setInputMethodHints (Qt::InputMethodHints hints) |
QWIDGETSIZE_MAX QWIDGETSIZE_MAX | |
![]() | |
virtual const QMetaObject * | metaObject () const const |
QObject (QObject *parent) | |
virtual | ~QObject () |
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 | |
![]() | |
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 |
Protected Member Functions | |
virtual void | currentChanged (const QModelIndex ¤t, const QModelIndex &previous) override |
virtual void | mouseDoubleClickEvent (QMouseEvent *event) override |
![]() | |
void | columnResized (int column, int oldSize, int newSize) |
void | columnCountChanged (int oldCount, int newCount) |
void | columnMoved () |
void | rowsRemoved (const QModelIndex &parent, int start, int end) |
virtual void | scrollContentsBy (int dx, int dy) override |
virtual void | rowsInserted (const QModelIndex &parent, int start, int end) override |
virtual void | rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) override |
virtual QModelIndex | moveCursor (QAbstractItemView::CursorAction cursorAction, Qt::KeyboardModifiers modifiers) override |
virtual int | horizontalOffset () const const override |
virtual int | verticalOffset () const const override |
virtual void | setSelection (const QRect &rect, QItemSelectionModel::SelectionFlags command) override |
virtual QRegion | visualRegionForSelection (const QItemSelection &selection) const const override |
virtual QModelIndexList | selectedIndexes () const const override |
virtual void | timerEvent (QTimerEvent *event) override |
virtual void | paintEvent (QPaintEvent *event) override |
void | drawTree (QPainter *painter, const QRegion ®ion) const const |
virtual void | drawRow (QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const const |
virtual void | drawBranches (QPainter *painter, const QRect &rect, const QModelIndex &index) const const |
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 | dragMoveEvent (QDragMoveEvent *event) override |
virtual bool | viewportEvent (QEvent *event) override |
virtual void | updateGeometries () override |
virtual QSize | viewportSizeHint () const const override |
virtual int | sizeHintForColumn (int column) const const override |
int | indexRowSizeHint (const QModelIndex &index) const const |
int | rowHeight (const QModelIndex &index) const const |
virtual bool | isIndexHidden (const QModelIndex &index) const const override |
virtual void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override |
![]() | |
virtual void | closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint) |
virtual void | commitData (QWidget *editor) |
virtual void | editorDestroyed (QObject *editor) |
void | setHorizontalStepsPerItem (int steps) |
int | horizontalStepsPerItem () const const |
void | setVerticalStepsPerItem (int steps) |
int | verticalStepsPerItem () const const |
virtual bool | edit (const QModelIndex &index, QAbstractItemView::EditTrigger trigger, QEvent *event) |
virtual QItemSelectionModel::SelectionFlags | selectionCommand (const QModelIndex &index, const QEvent *event) const const |
virtual void | startDrag (Qt::DropActions supportedActions) |
virtual QStyleOptionViewItem | viewOptions () const const |
QAbstractItemView::State | state () const const |
void | setState (QAbstractItemView::State state) |
void | scheduleDelayedItemsLayout () |
void | executeDelayedItemsLayout () |
void | setDirtyRegion (const QRegion ®ion) |
void | scrollDirtyRegion (int dx, int dy) |
QPoint | dirtyRegionOffset () const const |
virtual bool | focusNextPrevChild (bool next) override |
virtual bool | event (QEvent *event) override |
virtual void | dragEnterEvent (QDragEnterEvent *event) override |
virtual void | dragLeaveEvent (QDragLeaveEvent *event) override |
virtual void | dropEvent (QDropEvent *event) override |
virtual void | focusInEvent (QFocusEvent *event) override |
virtual void | focusOutEvent (QFocusEvent *event) override |
virtual void | resizeEvent (QResizeEvent *event) override |
virtual void | inputMethodEvent (QInputMethodEvent *event) override |
virtual bool | eventFilter (QObject *object, QEvent *event) override |
QAbstractItemView::DropIndicatorPosition | dropIndicatorPosition () const const |
![]() | |
void | setViewportMargins (int left, int top, int right, int bottom) |
void | setViewportMargins (const QMargins &margins) |
QMargins | viewportMargins () const const |
virtual void | wheelEvent (QWheelEvent *e) override |
virtual void | contextMenuEvent (QContextMenuEvent *e) override |
![]() | |
virtual void | changeEvent (QEvent *ev) override |
void | initStyleOption (QStyleOptionFrame *option) const const |
![]() | |
virtual void | keyReleaseEvent (QKeyEvent *event) |
virtual void | enterEvent (QEvent *event) |
virtual void | leaveEvent (QEvent *event) |
virtual void | moveEvent (QMoveEvent *event) |
virtual void | closeEvent (QCloseEvent *event) |
virtual void | tabletEvent (QTabletEvent *event) |
virtual void | actionEvent (QActionEvent *event) |
virtual void | showEvent (QShowEvent *event) |
virtual void | hideEvent (QHideEvent *event) |
virtual bool | nativeEvent (const QByteArray &eventType, void *message, long *result) |
virtual int | metric (QPaintDevice::PaintDeviceMetric m) const const override |
virtual void | initPainter (QPainter *painter) const const override |
void | updateMicroFocus () |
void | create (WId window, bool initializeWindow, bool destroyOldWindow) |
void | destroy (bool destroyWindow, bool destroySubWindows) |
bool | focusNextChild () |
bool | focusPreviousChild () |
![]() | |
QObject * | sender () const const |
int | senderSignalIndex () const const |
int | receivers (const char *signal) const const |
bool | isSignalConnected (const QMetaMethod &signal) const const |
virtual void | childEvent (QChildEvent *event) |
virtual void | customEvent (QEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
![]() | |
QPaintDevice () | |
Displays the current selection.
The SelectionTreeView class displays the entirety of the current selection in a tree-styled fashion (hence the name). It is embedded in the SelectionDetailsWidget.
Definition at line 44 of file selection_tree_view.h.
hal::SelectionTreeView::SelectionTreeView | ( | QWidget * | parent = nullptr , |
bool | isGrouping = false |
||
) |
The constructor.
parent | - The widget's parent. |
Definition at line 22 of file selection_tree_view.cpp.
References Qt::AlignCenter, Qt::AlignHCenter, QObject::connect(), Qt::CustomContextMenu, QWidget::customContextMenuRequested(), QAbstractItemView::DragOnly, QSizePolicy::Expanding, hal::NetlistRelay::getModuleColorManager(), hal::gNetlistRelay, handleModuleColorChanged(), QTreeView::header(), itemDoubleClicked(), hal::ModuleColorManager::moduleColorChanged(), QWidget::setContextMenuPolicy(), QHeaderView::setDefaultAlignment(), setDefaultColumnWidth(), QAbstractItemView::setDragDropMode(), QAbstractItemView::setDragEnabled(), and QWidget::setSizePolicy().
|
overrideprotectedvirtual |
Overwritten function to handle a selection change within the view itself. It emits the triggerSelection signal that contains the new item.
current | - The new item. |
previous | - The old item. |
Reimplemented from QTreeView.
Definition at line 47 of file selection_tree_view.cpp.
References QModelIndex::isValid(), itemFromIndex(), QObject::Q_EMIT(), and triggerSelection().
|
slot |
void handleFilterTextChanged(const QString& filter_text);
Tells its intern proxy model to filter its items based on the given string. The first index is automatically selected (if item(s) were found).
filter_text | -The text to filter the model. Might have to change icon color if module selected, thus updating view upon this event |
id | - unused |
Definition at line 85 of file selection_tree_view.cpp.
References QWidget::update().
Referenced by SelectionTreeView().
|
signal |
Q_SIGNAL that is emitted when an item is double clicked.
sti | - The double clicked item. |
Referenced by mouseDoubleClickEvent(), and SelectionTreeView().
ModuleItem * hal::SelectionTreeView::itemFromIndex | ( | const QModelIndex & | index = QModelIndex() | ) | const |
Converts a given modelIntex to the item it represents.
index | - The index to convert. |
Definition at line 70 of file selection_tree_view.cpp.
References QSortFilterProxyModel::index(), QModelIndex::internalPointer(), QModelIndex::isValid(), QSortFilterProxyModel::mapToSource(), QAbstractItemView::model(), and QAbstractItemView::rootIndex().
Referenced by currentChanged(), hal::SelectionDetailsWidget::handleSelectionUpdate(), and mouseDoubleClickEvent().
|
overrideprotectedvirtual |
Overwritten function that is called when a doubleclick occurs anywhere in the view. If a valid item is doubleclicked the itemDoubleClicked signal is emitted.
event | - The clickevent. |
Reimplemented from QTreeView.
Definition at line 56 of file selection_tree_view.cpp.
References QAbstractItemView::event(), QTreeView::indexAt(), QModelIndex::isValid(), itemDoubleClicked(), itemFromIndex(), QWidget::mapFromGlobal(), QObject::Q_EMIT(), and QAbstractScrollArea::viewport().
void hal::SelectionTreeView::populate | ( | bool | mVisible, |
u32 | groupingId = 0 |
||
) |
Triggers the underlying model to update its data to the new selection and therefore filling the view if mVisible is set to True. If mVisible is set to False, the view's selection model is cleared and the view itself hides.
mVisible | - The bool to determine the described behaviour. |
groupingId | - If non-zero tree gets populated from grouping rather than from selection |
Definition at line 119 of file selection_tree_view.cpp.
References QItemSelectionModel::clear(), hal::ModuleModel::clear(), QItemSelectionModel::ClearAndSelect, QVector::fromList(), QVector::fromStdVector(), hal::Grouping::get_gate_ids(), hal::Netlist::get_grouping_by_id(), hal::Grouping::get_module_ids(), hal::Grouping::get_net_ids(), hal::gNetlist, hal::gSelectionRelay, QWidget::hide(), QSortFilterProxyModel::index(), hal::SelectionTreeProxyModel::isGraphicsBusy(), QModelIndex::isValid(), QAbstractItemView::model(), QAbstractItemView::NoSelection, hal::ModuleModel::populateTree(), QAbstractItemView::rootIndex(), QItemSelectionModel::Rows, hal::SelectionRelay::selectedGatesList(), hal::SelectionRelay::selectedModulesList(), hal::SelectionRelay::selectedNetsList(), QAbstractItemView::selectionModel(), QItemSelectionModel::setCurrentIndex(), QAbstractItemView::setSelectionMode(), QWidget::show(), QAbstractItemView::SingleSelection, and QAbstractProxyModel::sourceModel.
Referenced by hal::SelectionDetailsWidget::handleSelectionUpdate().
SelectionTreeProxyModel * hal::SelectionTreeView::proxyModel | ( | ) |
Get the view's proxy model for the SelectionTreeModel.
Definition at line 174 of file selection_tree_view.cpp.
References QAbstractItemView::model().
void hal::SelectionTreeView::setDefaultColumnWidth | ( | ) |
Sets the default width of each column.
Definition at line 39 of file selection_tree_view.cpp.
References QTreeView::header(), QTreeView::setColumnWidth(), and QHeaderView::setStretchLastSection().
Referenced by SelectionTreeView().
|
signal |
Q_SIGNAL that is emitted when the current selection within the TreeView is changed (e.g. through a click, this is not used to trigger a "global selection change" but rather to more specific details of an item within the complete selection).
sti | - The new "selected" item, can be a nullptr if the index was not valid. |
Referenced by currentChanged(), and hal::SelectionDetailsWidget::SelectionDetailsWidget().