aboutsummaryrefslogtreecommitdiffstats
path: root/gui/designwidget.h
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-07-15 17:50:58 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-07-15 17:50:58 +0200
commitecc4c3fa7bdf1726377cd5cf2199b3cabd233427 (patch)
treecd56720a5864f10d0492742b5f8ec813b402b430 /gui/designwidget.h
parent82c9fef3de1017d39a15b5c23be84a8f3c8bebc0 (diff)
downloadnextpnr-ecc4c3fa7bdf1726377cd5cf2199b3cabd233427.tar.gz
nextpnr-ecc4c3fa7bdf1726377cd5cf2199b3cabd233427.tar.bz2
nextpnr-ecc4c3fa7bdf1726377cd5cf2199b3cabd233427.zip
added highlight groups
Diffstat (limited to 'gui/designwidget.h')
-rw-r--r--gui/designwidget.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/gui/designwidget.h b/gui/designwidget.h
index 2733e6cf..269e32fa 100644
--- a/gui/designwidget.h
+++ b/gui/designwidget.h
@@ -59,15 +59,18 @@ class DesignWidget : public QWidget
int getElementIndex(ElementType type);
void updateButtons();
void addToHistory(QTreeWidgetItem *item);
+ std::vector<DecalXY> getDecals(ElementType type, IdString value);
+ void updateHighlightGroup(QTreeWidgetItem *item, int group);
Q_SIGNALS:
void info(std::string text);
void selected(std::vector<DecalXY> decal);
+ void highlight(std::vector<DecalXY> decal, int group);
private Q_SLOTS:
void prepareMenuProperty(const QPoint &pos);
+ void prepareMenuTree(const QPoint &pos);
void onItemSelectionChanged();
void onItemDoubleClicked(QTreeWidgetItem *item, int column);
- void onCurrentPropertySelected(QtBrowserItem *_item);
public Q_SLOTS:
void newContext(Context *ctx);
void updateTree();
@@ -99,6 +102,9 @@ class DesignWidget : public QWidget
QAction *actionPrev;
QAction *actionNext;
QAction *actionLast;
+
+ QColor highlightColors[8];
+ QMap<QTreeWidgetItem *, int> highlightSelected;
};
NEXTPNR_NAMESPACE_END