BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ModelView::StatusStringReporter Class Reference

Reports back status string composed for current mouse position in QCustomPlot. More...

Classes

struct  StatusStringReporterImpl
 

Public Types

using callback_t = std::function< void(const std::string &)>
 

Public Member Functions

 StatusStringReporter (QCustomPlot *custom_plot, callback_t callback, std::unique_ptr< StatusStringFormatterInterface > formatter)
 
 ~StatusStringReporter ()
 

Private Attributes

std::unique_ptr< StatusStringReporterImplp_impl
 

Detailed Description

Reports back status string composed for current mouse position in QCustomPlot.

Doesn't report if cursor is outside of the axes range.

Definition at line 32 of file statusstringreporter.h.

Member Typedef Documentation

◆ callback_t

using ModelView::StatusStringReporter::callback_t = std::function<void(const std::string&)>

Definition at line 34 of file statusstringreporter.h.

Constructor & Destructor Documentation

◆ StatusStringReporter()

StatusStringReporter::StatusStringReporter ( QCustomPlot *  custom_plot,
callback_t  callback,
std::unique_ptr< StatusStringFormatterInterface formatter 
)

Definition at line 80 of file statusstringreporter.cpp.

83  : p_impl(std::make_unique<StatusStringReporterImpl>(this, custom_plot, callback,
84  std::move(formatter)))
85 {
86 }
std::unique_ptr< StatusStringReporterImpl > p_impl

◆ ~StatusStringReporter()

StatusStringReporter::~StatusStringReporter ( )
default

Member Data Documentation

◆ p_impl

std::unique_ptr<StatusStringReporterImpl> ModelView::StatusStringReporter::p_impl
private

Definition at line 41 of file statusstringreporter.h.


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