aboutsummaryrefslogtreecommitdiffstats
path: root/gui/designwidget.h
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-07-15 16:20:35 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-07-15 16:20:35 +0200
commit82c9fef3de1017d39a15b5c23be84a8f3c8bebc0 (patch)
tree04970933db0f91995190d0bb02573f40dda7359e /gui/designwidget.h
parent3eb34bf38b8e2da66b3852bf35927a0b540a3cff (diff)
downloadnextpnr-82c9fef3de1017d39a15b5c23be84a8f3c8bebc0.tar.gz
nextpnr-82c9fef3de1017d39a15b5c23be84a8f3c8bebc0.tar.bz2
nextpnr-82c9fef3de1017d39a15b5c23be84a8f3c8bebc0.zip
added browsing history
Diffstat (limited to 'gui/designwidget.h')
-rw-r--r--gui/designwidget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/designwidget.h b/gui/designwidget.h
index 8f2fa375..2733e6cf 100644
--- a/gui/designwidget.h
+++ b/gui/designwidget.h
@@ -57,6 +57,8 @@ class DesignWidget : public QWidget
QString getElementTypeName(ElementType type);
ElementType getElementTypeByName(QString type);
int getElementIndex(ElementType type);
+ void updateButtons();
+ void addToHistory(QTreeWidgetItem *item);
Q_SIGNALS:
void info(std::string text);
void selected(std::vector<DecalXY> decal);
@@ -86,6 +88,9 @@ class DesignWidget : public QWidget
QMap<QString, QtProperty *> idToProperty;
QMap<QString, QTreeWidgetItem *> nameToItem[6];
+ std::vector<QTreeWidgetItem *> history;
+ int history_index;
+ bool history_ignore;
QTreeWidgetItem *nets_root;
QTreeWidgetItem *cells_root;