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

Defines the context to interact with the user regarding save/save-as/create-new project scenarious. More...

Public Types

using answer_callback_t = std::function< SaveChangesAnswer()>
 
using create_dir_callback_t = std::function< std::string()>
 To ask the user what to do with modified project. More...
 
using select_dir_callback_t = std::function< std::string()>
 To ask the user to create a new directory, returns full path to the directory. More...
 

Public Attributes

answer_callback_t m_answer_callback
 
create_dir_callback_t m_create_dir_callback
 
select_dir_callback_t m_select_dir_callback
 

Detailed Description

Defines the context to interact with the user regarding save/save-as/create-new project scenarious.

Definition at line 48 of file project_types.h.

Member Typedef Documentation

◆ answer_callback_t

Definition at line 56 of file project_types.h.

◆ create_dir_callback_t

using ModelView::UserInteractionContext::create_dir_callback_t = std::function<std::string()>

To ask the user what to do with modified project.

Definition at line 53 of file project_types.h.

◆ select_dir_callback_t

using ModelView::UserInteractionContext::select_dir_callback_t = std::function<std::string()>

To ask the user to create a new directory, returns full path to the directory.

Definition at line 50 of file project_types.h.

Member Data Documentation

◆ m_answer_callback

answer_callback_t ModelView::UserInteractionContext::m_answer_callback

◆ m_create_dir_callback

create_dir_callback_t ModelView::UserInteractionContext::m_create_dir_callback

◆ m_select_dir_callback

select_dir_callback_t ModelView::UserInteractionContext::m_select_dir_callback

The documentation for this struct was generated from the following file: