BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Interface to subscribe to various events happening with specific SessionItem. More...
Public Member Functions | |
virtual | ~ItemListenerInterface ()=default |
virtual void | setOnAboutToRemoveItem (Callbacks::item_tagrow_t f, Callbacks::slot_t owner)=0 |
Sets callback to be notified when row is about to be removed. More... | |
virtual void | setOnChildPropertyChange (Callbacks::item_str_t f, Callbacks::slot_t owner)=0 |
Sets callback to be notified on item's children property change. More... | |
virtual void | setOnDataChange (Callbacks::item_int_t f, Callbacks::slot_t owner)=0 |
Sets callback to be notified on item's data change. More... | |
virtual void | setOnItemDestroy (Callbacks::item_t f, Callbacks::slot_t owner)=0 |
virtual void | setOnItemInserted (Callbacks::item_tagrow_t f, Callbacks::slot_t owner)=0 |
Sets callback to be notified on child insertion. More... | |
virtual void | setOnItemRemoved (Callbacks::item_tagrow_t f, Callbacks::slot_t owner)=0 |
Sets callback to be notified on child removal. More... | |
virtual void | setOnPropertyChange (Callbacks::item_str_t f, Callbacks::slot_t owner)=0 |
Sets callback to be notified on item's property change. More... | |
virtual void | unsubscribe (Callbacks::slot_t client)=0 |
Removes given client from all subscriptions. More... | |
Interface to subscribe to various events happening with specific SessionItem.
Definition at line 24 of file itemlistenerinterface.h.
|
virtualdefault |
|
pure virtual |
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.
Implemented in ModelView::ItemMapper.
|
pure virtual |
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.
Implemented in ModelView::ItemMapper.
|
pure virtual |
Sets callback to be notified on item's data change.
Callback will be called with (SessionItem*, data_role).
Implemented in ModelView::ItemMapper.
|
pure virtual |
Implemented in ModelView::ItemMapper.
|
pure virtual |
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.
Implemented in ModelView::ItemMapper.
|
pure virtual |
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.
Implemented in ModelView::ItemMapper.
|
pure virtual |
Sets callback to be notified on item's property change.
Callback will be called with (compound_item, property_name).
Implemented in ModelView::ItemMapper.
|
pure virtual |
Removes given client from all subscriptions.
Implemented in ModelView::ItemMapper.