BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Base class to subscribe to signals generated by SessionItem of certin type. More...
Public Member Functions | |
T * | currentItem () const |
void | setItem (SessionItem *item) |
void | setOnAboutToRemoveItem (Callbacks::item_tagrow_t f) |
void | setOnChildPropertyChange (Callbacks::item_str_t f) |
Sets callback to be notified on item's children property change. More... | |
void | setOnDataChange (Callbacks::item_int_t f) |
Sets callback to be notified on item's data change. More... | |
void | setOnItemDestroy (Callbacks::item_t f) |
void | setOnItemInserted (Callbacks::item_tagrow_t f) |
Sets callback to be notified on child insertion. More... | |
void | setOnItemRemoved (Callbacks::item_tagrow_t f) |
Sets callback to be notified on child removal. More... | |
void | setOnPropertyChange (Callbacks::item_str_t f) |
Sets callback to be notified on item's property change. More... | |
Protected Member Functions | |
SessionItem * | item () const |
For necessary manipulations on unsubscription. More... | |
virtual void | subscribe () |
virtual void | unsubscribe () |
For necessary manipulations on new item. More... | |
Private Member Functions | |
void | unsubscribe_from_current () |
Private Attributes | |
SessionItem * | m_item {nullptr} |
Base class to subscribe to signals generated by SessionItem of certin type.
Definition at line 26 of file itemlistener.h.
|
inline |
Definition at line 28 of file itemlistener.h.
References ModelView::ItemListenerBase::item().
Referenced by ModelView::ColorMapPlotController::ColorMapPlotControllerImpl::colormap_item(), ModelView::Data2DPlotController::Data2DPlotControllerImpl::dataItem(), ModelView::GraphPlotController::GraphItemControllerImpl::graph_item(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::init_axis(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setAxisLogScaleFromItem(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setAxisRangeFromItem(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setConnected(), ModelView::ColorScalePlotController::ColorScalePlotControllerImpl::setup_components(), TEST_F(), ModelView::ColorScalePlotController::ColorScalePlotControllerImpl::update_log_scale(), ModelView::GraphViewportPlotController::GraphViewportPlotControllerImpl::viewport_item(), and ModelView::ColorMapViewportPlotController::ColorMapViewportPlotControllerImpl::viewportItem().
|
protectedinherited |
For necessary manipulations on unsubscription.
Sets callback to be notified when row is about to be removed.
Callback will be called with (compound_item, tagrow). For MultiLayer containing the T_LAYERS tag, the signal will be triggered on layer deletion with (multilayer*, {T_LAYER, row}) as callback parameters.
Definition at line 112 of file itemlistenerbase.cpp.
Referenced by ModelView::ItemListenerBase::ItemListenerBase(), ModelView::ItemListener< T >::currentItem(), ModelView::Data1DPlotController::Data1DPlotControllerImpl::initGraphFromItem(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::setConnected(), ModelView::PenController::PenControllerImpl::update_graph_from_item(), ModelView::AxisTitleController::AxisTitleControllerImpl::updateAxisFromItem(), ModelView::Data1DPlotController::Data1DPlotControllerImpl::updateErrorBarsFromItem(), ModelView::Data1DPlotController::Data1DPlotControllerImpl::updateGraphPointsFromItem(), ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::updateLowerRange(), and ModelView::ViewportAxisPlotController::AxesPlotControllerImpl::updateUpperRange().
|
inherited |
Definition at line 30 of file itemlistenerbase.cpp.
Referenced by ModelView::ItemListenerBase::ItemListenerBase(), and TEST_F().
|
inherited |
Definition at line 102 of file itemlistenerbase.cpp.
Referenced by ModelView::GraphViewportPlotController::subscribe().
|
inherited |
Sets callback to be notified on item's children property change.
Callback will be called with (compound_item, property_name). For MultiLayer containing the layer with "thickness" property, the signal will be triggered on thickness change using (layeritem*, "thickness") as callback parameters.
Definition at line 77 of file itemlistenerbase.cpp.
|
inherited |
Sets callback to be notified on item's data change.
Callback will be called with (SessionItem*, data_role).
Definition at line 59 of file itemlistenerbase.cpp.
Referenced by ModelView::Data2DPlotController::subscribe().
|
inherited |
Definition at line 51 of file itemlistenerbase.cpp.
|
inherited |
Sets callback to be notified on child insertion.
Callback will be called with (compound_item, tag, row). For MultiLayer containing the T_LAYERS tag, the signal will be triggered on layer insertion with (multilayer*, {T_LAYER, row}) as callback parameters.
Definition at line 87 of file itemlistenerbase.cpp.
Referenced by ModelView::ColorMapViewportPlotController::subscribe(), and ModelView::GraphViewportPlotController::subscribe().
|
inherited |
Sets callback to be notified on child removal.
Callback will be called with (compound_item, tag, row). For MultiLayer containing the T_LAYERS tag, the signal will be triggered on layer removal with (multilayer*, {T_LAYER, oldrow}) as callback parameters.
Definition at line 97 of file itemlistenerbase.cpp.
|
inherited |
Sets callback to be notified on item's property change.
Callback will be called with (compound_item, property_name).
Definition at line 67 of file itemlistenerbase.cpp.
Referenced by ModelView::AxisTitleController::subscribe(), ModelView::ColorMapPlotController::subscribe(), ModelView::ColorScalePlotController::subscribe(), ModelView::Data1DPlotController::subscribe(), ModelView::GraphPlotController::subscribe(), ModelView::PenController::subscribe(), and ModelView::ViewportAxisPlotController::subscribe().
|
inlineprotectedvirtualinherited |
Reimplemented in ModelView::ViewportAxisPlotController, ModelView::PenController, ModelView::GraphViewportPlotController, ModelView::GraphPlotController, ModelView::Data2DPlotController, ModelView::Data1DPlotController, ModelView::ColorScalePlotController, ModelView::ColorMapViewportPlotController, ModelView::ColorMapPlotController, ModelView::AxisTitleController, and ItemListenerTest::TestController.
Definition at line 50 of file itemlistenerbase.h.
|
inlineprotectedvirtualinherited |
For necessary manipulations on new item.
Reimplemented in ModelView::ViewportAxisPlotController, ModelView::GraphPlotController, ModelView::Data2DPlotController, ModelView::Data1DPlotController, ModelView::ColorMapViewportPlotController, ModelView::ColorMapPlotController, and ItemListenerTest::TestController.
Definition at line 51 of file itemlistenerbase.h.
|
privateinherited |
Definition at line 117 of file itemlistenerbase.cpp.
|
privateinherited |
Definition at line 56 of file itemlistenerbase.h.