DUNE-DAQ
DUNE Trigger and Data Acquisition software
Loading...
Searching...
No Matches
dbse::SchemaNoteEditor Class Reference

#include <SchemaNoteEditor.hpp>

Inheritance diagram for dbse::SchemaNoteEditor:
[legend]
Collaboration diagram for dbse::SchemaNoteEditor:
[legend]

Signals

void note_accepted (SchemaGraphicNote *note)
 
void cancelled (SchemaGraphicNote *note)
 

Public Member Functions

 SchemaNoteEditor (SchemaGraphicNote *note, QWidget *parent=0)
 
 ~SchemaNoteEditor ()
 

Private Slots

void update_text ()
 
void cancel_note ()
 

Private Attributes

SchemaGraphicNotem_note
 
Ui::SchemaNoteEditor * m_ui
 

Detailed Description

Definition at line 12 of file SchemaNoteEditor.hpp.

Constructor & Destructor Documentation

◆ SchemaNoteEditor()

dbse::SchemaNoteEditor::SchemaNoteEditor ( SchemaGraphicNote * note,
QWidget * parent = 0 )

Definition at line 9 of file SchemaNoteEditor.cpp.

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 }
Ui::SchemaNoteEditor * m_ui
SchemaGraphicNote * m_note

◆ ~SchemaNoteEditor()

dbse::SchemaNoteEditor::~SchemaNoteEditor ( )

Definition at line 19 of file SchemaNoteEditor.cpp.

19 {
20 delete m_ui;
21 }

Member Function Documentation

◆ cancel_note

void dbse::SchemaNoteEditor::cancel_note ( )
privateslot

Definition at line 23 of file SchemaNoteEditor.cpp.

23 {
24 emit cancelled(m_note);
25 }
void cancelled(SchemaGraphicNote *note)

◆ cancelled

void dbse::SchemaNoteEditor::cancelled ( SchemaGraphicNote * note)
signal

◆ note_accepted

void dbse::SchemaNoteEditor::note_accepted ( SchemaGraphicNote * note)
signal

◆ update_text

void dbse::SchemaNoteEditor::update_text ( )
privateslot

Definition at line 27 of file SchemaNoteEditor.cpp.

27 {
29 m_note->update_note(m_ui->text->toPlainText());
30 }
void update_note(QString text)
void note_accepted(SchemaGraphicNote *note)

Member Data Documentation

◆ m_note

SchemaGraphicNote* dbse::SchemaNoteEditor::m_note
private

Definition at line 21 of file SchemaNoteEditor.hpp.

◆ m_ui

Ui::SchemaNoteEditor* dbse::SchemaNoteEditor::m_ui
private

Definition at line 22 of file SchemaNoteEditor.hpp.


The documentation for this class was generated from the following files: