Skui 0.0.1
Build fast and easy to use control software with Skui.
 
Loading...
Searching...
No Matches
context_menu.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <QMenu>
4
5#include "../node/node.hpp"
6#include "propertywindow.hpp"
7
8class ContextMenu : public QMenu
9{
10 Q_OBJECT
11public:
12 explicit ContextMenu(QWidget *parent = nullptr,
13 Node *node = nullptr,
14 const QPoint spawn_position = QPoint(0, 0));
15
16private slots:
17 void onProperties();
18 void onRename();
19 void onDelete();
20
21private:
22 void loadNodesToMenu(QMenu *menu);
23
24 const QPoint m_spawn_position;
25 Node *m_node = nullptr;
26};
ContextMenu(QWidget *parent=nullptr, Node *node=nullptr, const QPoint spawn_position=QPoint(0, 0))
Definition context_menu.cpp:5
Definition node.hpp:11