nodeview: added rudimentary toolbar

Only button there is a toggle for the mini-map.
This commit is contained in:
itsmattkc
2021-07-09 21:57:53 -07:00
parent 94e6fa843c
commit 652a53c18e
6 changed files with 113 additions and 1 deletions
+38
View File
@@ -0,0 +1,38 @@
#ifndef NODEVIEWTOOLBAR_H
#define NODEVIEWTOOLBAR_H
#include <QPushButton>
#include <QWidget>
namespace olive {
class NodeViewToolBar : public QWidget
{
Q_OBJECT
public:
NodeViewToolBar(QWidget *parent = nullptr);
public slots:
void SetMiniMapEnabled(bool e)
{
minimap_btn_->setChecked(e);
}
signals:
void MiniMapEnabledToggled(bool e);
protected:
virtual void changeEvent(QEvent *e) override;
private:
void Retranslate();
void UpdateIcons();
QPushButton *minimap_btn_;
};
}
#endif // NODEVIEWTOOLBAR_H