diff options
-rw-r--r-- | gui/base.qrc | 5 | ||||
-rw-r--r-- | gui/designwidget.cc | 32 | ||||
-rw-r--r-- | gui/resources/resultset_first.png | bin | 0 -> 522 bytes | |||
-rw-r--r-- | gui/resources/resultset_last.png | bin | 0 -> 524 bytes | |||
-rw-r--r-- | gui/resources/resultset_next.png | bin | 0 -> 395 bytes | |||
-rw-r--r-- | gui/resources/resultset_previous.png | bin | 0 -> 389 bytes | |||
-rw-r--r-- | gui/resources/zoom.png | bin | 0 -> 692 bytes |
7 files changed, 37 insertions, 0 deletions
diff --git a/gui/base.qrc b/gui/base.qrc index b9e2f237..8f07aabe 100644 --- a/gui/base.qrc +++ b/gui/base.qrc @@ -4,5 +4,10 @@ <file>resources/open.png</file> <file>resources/save.png</file> <file>resources/exit.png</file> + <file>resources/zoom.png</file> + <file>resources/resultset_first.png</file> + <file>resources/resultset_previous.png</file> + <file>resources/resultset_next.png</file> + <file>resources/resultset_last.png</file> </qresource> </RCC> diff --git a/gui/designwidget.cc b/gui/designwidget.cc index 4922074b..b38d5a4c 100644 --- a/gui/designwidget.cc +++ b/gui/designwidget.cc @@ -20,8 +20,10 @@ #include "designwidget.h"
#include <QAction>
#include <QGridLayout>
+#include <QLineEdit>
#include <QMenu>
#include <QSplitter>
+#include <QToolBar>
#include <QTreeWidgetItem>
#include "fpgaviewwidget.h"
@@ -88,8 +90,38 @@ DesignWidget::DesignWidget(QWidget *parent) : QWidget(parent), ctx(nullptr), net propertyEditor->show();
+ const QIcon searchIcon(":/icons/resources/zoom.png");
+ QLineEdit* lineEdit = new QLineEdit();
+ lineEdit->setClearButtonEnabled(true);
+ lineEdit->addAction(searchIcon, QLineEdit::LeadingPosition);
+ lineEdit->setPlaceholderText("Search...");
+
+ QAction *actionFirst = new QAction("", this);
+ QIcon iconFirst(QStringLiteral(":/icons/resources/resultset_first.png"));
+ actionFirst->setIcon(iconFirst);
+
+ QAction *actionPrev = new QAction("", this);
+ QIcon iconPrev(QStringLiteral(":/icons/resources/resultset_previous.png"));
+ actionPrev->setIcon(iconPrev);
+
+ QAction *actionNext = new QAction("", this);
+ QIcon iconNext(QStringLiteral(":/icons/resources/resultset_next.png"));
+ actionNext->setIcon(iconNext);
+
+ QAction *actionLast = new QAction("", this);
+ QIcon iconLast(QStringLiteral(":/icons/resources/resultset_last.png"));
+ actionLast->setIcon(iconLast);
+
+ QToolBar *toolbar = new QToolBar();
+ toolbar->addAction(actionFirst);
+ toolbar->addAction(actionPrev);
+ toolbar->addAction(actionNext);
+ toolbar->addAction(actionLast);
+
QSplitter *splitter = new QSplitter(Qt::Vertical);
+ splitter->addWidget(lineEdit);
splitter->addWidget(treeWidget);
+ splitter->addWidget(toolbar);
splitter->addWidget(propertyEditor);
QGridLayout *mainLayout = new QGridLayout();
diff --git a/gui/resources/resultset_first.png b/gui/resources/resultset_first.png Binary files differnew file mode 100644 index 00000000..b03eaf8b --- /dev/null +++ b/gui/resources/resultset_first.png diff --git a/gui/resources/resultset_last.png b/gui/resources/resultset_last.png Binary files differnew file mode 100644 index 00000000..8ec89478 --- /dev/null +++ b/gui/resources/resultset_last.png diff --git a/gui/resources/resultset_next.png b/gui/resources/resultset_next.png Binary files differnew file mode 100644 index 00000000..e252606d --- /dev/null +++ b/gui/resources/resultset_next.png diff --git a/gui/resources/resultset_previous.png b/gui/resources/resultset_previous.png Binary files differnew file mode 100644 index 00000000..18f9cc10 --- /dev/null +++ b/gui/resources/resultset_previous.png diff --git a/gui/resources/zoom.png b/gui/resources/zoom.png Binary files differnew file mode 100644 index 00000000..908612e3 --- /dev/null +++ b/gui/resources/zoom.png |