BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Propagates title settings from TextItem to QCPAxis. More...
Classes | |
struct | AxisTitleControllerImpl |
Public Member Functions | |
AxisTitleController (QCPAxis *axis) | |
~AxisTitleController () override | |
TextItem * | 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... | |
Public Attributes | |
std::unique_ptr< AxisTitleControllerImpl > | p_impl |
Protected Member Functions | |
SessionItem * | item () const |
For necessary manipulations on unsubscription. More... | |
void | subscribe () override |
virtual void | unsubscribe () |
For necessary manipulations on new item. More... | |
Private Member Functions | |
void | unsubscribe_from_current () |
Private Attributes | |
SessionItem * | m_item {nullptr} |
Propagates title settings from TextItem to QCPAxis.
Definition at line 30 of file axistitlecontroller.h.
|
explicit |
Definition at line 43 of file axistitlecontroller.cpp.
|
overridedefault |
|
inlineinherited |
Definition at line 28 of file itemlistener.h.
|
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 subscribe(), ModelView::ColorMapPlotController::subscribe(), ModelView::ColorScalePlotController::subscribe(), ModelView::Data1DPlotController::subscribe(), ModelView::GraphPlotController::subscribe(), ModelView::PenController::subscribe(), and ModelView::ViewportAxisPlotController::subscribe().
|
overrideprotectedvirtual |
Reimplemented from ModelView::ItemListenerBase.
Definition at line 51 of file axistitlecontroller.cpp.
References ModelView::ItemListener< TextItem >::currentItem(), p_impl, and ModelView::ItemListenerBase::setOnPropertyChange().
|
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.
std::unique_ptr<AxisTitleControllerImpl> ModelView::AxisTitleController::p_impl |
Definition at line 40 of file axistitlecontroller.h.
Referenced by subscribe().