BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Main widget of InstrumentView. More...
Public Slots | |
void | onChangedEditor (const QString &) |
Signals | |
void | extendedDetectorEditorRequest (DetectorItem *) |
Public Member Functions | |
InstrumentEditorWidget (QWidget *parent=nullptr) | |
void | setItem (SessionItem *instrument) |
QSize | sizeHint () const |
Private Member Functions | |
QLayout * | createTopLayout () |
top block with instrument name More... | |
void | updateWidgets () |
Private Attributes | |
bool | m_block_signals |
SessionItem * | m_currentItem |
InstrumentPresenter * | m_instrumentPresenter |
QLineEdit * | m_nameLineEdit |
Main widget of InstrumentView.
Contains InstrumentPresenter showing proper insturment editor for given instrument type.
Definition at line 28 of file InstrumentEditorWidget.h.
InstrumentEditorWidget::InstrumentEditorWidget | ( | QWidget * | parent = nullptr | ) |
Definition at line 25 of file InstrumentEditorWidget.cpp.
References createTopLayout(), m_instrumentPresenter, m_nameLineEdit, onChangedEditor(), and AdjustingScrollArea::setWidget().
|
private |
top block with instrument name
Definition at line 74 of file InstrumentEditorWidget.cpp.
References m_nameLineEdit.
Referenced by InstrumentEditorWidget().
|
signal |
|
slot |
Definition at line 63 of file InstrumentEditorWidget.cpp.
References m_block_signals, m_currentItem, m_nameLineEdit, and SessionItem::setItemName().
Referenced by InstrumentEditorWidget().
void InstrumentEditorWidget::setItem | ( | SessionItem * | instrument | ) |
Definition at line 55 of file InstrumentEditorWidget.cpp.
References m_currentItem, m_instrumentPresenter, SessionItemWidget::setItem(), and updateWidgets().
QSize InstrumentEditorWidget::sizeHint | ( | ) | const |
Definition at line 50 of file InstrumentEditorWidget.cpp.
|
private |
Definition at line 88 of file InstrumentEditorWidget.cpp.
References SessionItem::itemName(), m_block_signals, m_currentItem, and m_nameLineEdit.
Referenced by setItem().
|
private |
Definition at line 51 of file InstrumentEditorWidget.h.
Referenced by onChangedEditor(), and updateWidgets().
|
private |
Definition at line 50 of file InstrumentEditorWidget.h.
Referenced by onChangedEditor(), setItem(), and updateWidgets().
|
private |
Definition at line 49 of file InstrumentEditorWidget.h.
Referenced by InstrumentEditorWidget(), and setItem().
|
private |
Definition at line 48 of file InstrumentEditorWidget.h.
Referenced by InstrumentEditorWidget(), createTopLayout(), onChangedEditor(), and updateWidgets().