wiRedPanda
Logic Circuit Simulator
Loading...
Searching...
No Matches
InlineLabelEditor.h
Go to the documentation of this file.
1// Copyright 2015 - 2026, GIBIS-UNIFESP and the wiRedPanda contributors
2// SPDX-License-Identifier: GPL-3.0-or-later
3
7
8#pragma once
9
10class GraphicElement;
11class QGraphicsProxyWidget;
12class Scene;
13
24{
25public:
26 explicit InlineLabelEditor(Scene *scene);
28
30 void start(GraphicElement *element);
31
34 void commit();
35
37 void cancel();
38
39private:
40 void close();
41
42 Scene *m_scene;
43 GraphicElement *m_target = nullptr;
44 QGraphicsProxyWidget *m_proxy = nullptr;
45};
Abstract base class for all graphical circuit elements in wiRedPanda.
void start(GraphicElement *element)
Starts inline-editing element's label, committing any already-in-progress edit first.
void cancel()
Discards the current edit (if any) and closes the editor without changing anything.
InlineLabelEditor(Scene *scene)
Main circuit editing scene.
Definition Scene.h:56