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
8
class
ContextMenu
:
public
QMenu
9
{
10
Q_OBJECT
11
public
:
12
explicit
ContextMenu
(QWidget *parent =
nullptr
,
13
Node
*node =
nullptr
,
14
const
QPoint spawn_position = QPoint(0, 0));
15
16
private
slots:
17
void
onProperties();
18
void
onRename();
19
void
onDelete();
20
21
private
:
22
void
loadNodesToMenu(QMenu *menu);
23
24
const
QPoint m_spawn_position;
25
Node
*m_node =
nullptr
;
26
};
ContextMenu::ContextMenu
ContextMenu(QWidget *parent=nullptr, Node *node=nullptr, const QPoint spawn_position=QPoint(0, 0))
Definition
context_menu.cpp:5
Node
Definition
node.hpp:11
node.hpp
propertywindow.hpp
src
app
context_menu.hpp
Generated by
1.13.2