DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dunedaq
sourcecode
dbe
apps
SchemaEditor
SchemaNoteEditor.cpp
Go to the documentation of this file.
1
#include <QDialog>
2
#include <QWidget>
3
4
#include "
dbe/SchemaNoteEditor.hpp
"
5
#include "
dbe/SchemaGraphicNote.hpp
"
6
#include "ui_SchemaNoteEditor.h"
7
8
namespace
dbse
{
9
SchemaNoteEditor::SchemaNoteEditor
(
SchemaGraphicNote
* note, QWidget* parent)
10
: QDialog(parent), m_note(note), m_ui(new
Ui
::
SchemaNoteEditor
) {
11
12
m_ui
->setupUi(
this
);
13
m_ui
->text->setPlainText(
m_note
->
text
());
14
m_ui
->text->setFocus();
15
connect(
m_ui
->buttons, SIGNAL(accepted()),
this
, SLOT(
update_text
()));
16
connect(
m_ui
->buttons, SIGNAL(rejected()),
this
, SLOT(
cancel_note
()));
17
}
18
19
SchemaNoteEditor::~SchemaNoteEditor
() {
20
delete
m_ui
;
21
}
22
23
void
SchemaNoteEditor::cancel_note
() {
24
emit
cancelled
(
m_note
);
25
}
26
27
void
SchemaNoteEditor::update_text
() {
28
emit
note_accepted
(
m_note
);
29
m_note
->
update_note
(
m_ui
->text->toPlainText());
30
}
31
}
//namespace dbse
SchemaGraphicNote.hpp
SchemaNoteEditor.hpp
dbse::SchemaGraphicNote
Definition
SchemaGraphicNote.hpp:15
dbse::SchemaGraphicNote::text
QString text()
Definition
SchemaGraphicNote.hpp:29
dbse::SchemaGraphicNote::update_note
void update_note(QString text)
Definition
SchemaGraphicNote.cpp:64
dbse::SchemaNoteEditor
Definition
SchemaNoteEditor.hpp:12
dbse::SchemaNoteEditor::m_ui
Ui::SchemaNoteEditor * m_ui
Definition
SchemaNoteEditor.hpp:22
dbse::SchemaNoteEditor::note_accepted
void note_accepted(SchemaGraphicNote *note)
dbse::SchemaNoteEditor::cancelled
void cancelled(SchemaGraphicNote *note)
dbse::SchemaNoteEditor::~SchemaNoteEditor
~SchemaNoteEditor()
Definition
SchemaNoteEditor.cpp:19
dbse::SchemaNoteEditor::SchemaNoteEditor
SchemaNoteEditor(SchemaGraphicNote *note, QWidget *parent=0)
Definition
SchemaNoteEditor.cpp:9
dbse::SchemaNoteEditor::update_text
void update_text()
Definition
SchemaNoteEditor.cpp:27
dbse::SchemaNoteEditor::m_note
SchemaGraphicNote * m_note
Definition
SchemaNoteEditor.hpp:21
dbse::SchemaNoteEditor::cancel_note
void cancel_note()
Definition
SchemaNoteEditor.cpp:23
Ui
Definition
SchemaSettings.hpp:10
dbse
Including QT Headers.
Definition
SchemaAttributeEditor.hpp:9
Generated on Thu Dec 25 2025 for DUNE-DAQ by
1.12.0