DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SchemaNoteEditor.cpp
Go to the documentation of this file.
1#include <QDialog>
2#include <QWidget>
3
6#include "ui_SchemaNoteEditor.h"
7
8namespace dbse {
10 : QDialog(parent)
11 , m_note(note)
13{
14
15 m_ui->setupUi(this);
16 m_ui->text->setPlainText(m_note->text());
17 m_ui->text->setFocus();
18 connect(m_ui->buttons, SIGNAL(accepted()), this, SLOT(update_text()));
19 connect(m_ui->buttons, SIGNAL(rejected()), this, SLOT(cancel_note()));
20}
21
26
27void
32
33void
35{
37 m_note->update_note(m_ui->text->toPlainText());
38}
39} // namespace dbse
void update_note(QString text)
Ui::SchemaNoteEditor * m_ui
void note_accepted(SchemaGraphicNote *note)
void cancelled(SchemaGraphicNote *note)
SchemaNoteEditor(SchemaGraphicNote *note, QWidget *parent=0)
SchemaGraphicNote * m_note
Including QT Headers.