DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
SchemaNoteEditor.cpp
Go to the documentation of this file.
1
2
5#include "ui_SchemaNoteEditor.h"
6
7namespace dbse {
9 : QDialog(parent), m_note(note), m_ui(new Ui::SchemaNoteEditor) {
10
11 m_ui->setupUi(this);
12 m_ui->text->setPlainText(m_note->text());
13 m_ui->text->setFocus();
14 connect(m_ui->buttons, SIGNAL(accepted()), this, SLOT(update_text()));
15 connect(m_ui->buttons, SIGNAL(rejected()), this, SLOT(cancel_note()));
16 }
17
21
25
28 m_note->update_note(m_ui->text->toPlainText());
29 }
30} //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.