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), 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
22
26
29 m_note->update_note(m_ui->text->toPlainText());
30 }
31} //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.