-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathCCreateStandardReferencesDialog.h
61 lines (43 loc) · 1.82 KB
/
CCreateStandardReferencesDialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#pragma once
// CCreateStandardReferencesDialog dialog
#include <string>
namespace novac
{
class StandardCrossSectionSetup;
}
class CCreateStandardReferencesDialog : public CDialog
{
DECLARE_DYNAMIC(CCreateStandardReferencesDialog)
public:
CCreateStandardReferencesDialog(CWnd* pParent = nullptr); // standard constructor
virtual ~CCreateStandardReferencesDialog();
// Dialog Data
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_CALIBRATE_STANDARD_REFERENCES };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
DECLARE_MESSAGE_MAP()
public:
// Input from the calling dialog: the set of standard references to save.
novac::StandardCrossSectionSetup* m_standardCrossSections = nullptr;
// Input from the calling dialog: infix used to show a filtering has taken place. Default is empty string
std::string m_fileNameFilteringInfix = "";
/** This returns true if all the required input fields in this dialog have been setup. */
bool IsSetupCorrectly() const;
// Output from calling this dialog. The full path and filename of each reference
std::string ReferenceName(size_t referenceIdx, bool includFilteringInfix, bool includeDirectory = true) const;
std::string FraunhoferReferenceName(bool includeDirectory = true) const;
// ---- Message handlers ----
afx_msg void OnClickedButtonBrowseOutputDirectory();
afx_msg void OnChangeInstrumentName();
afx_msg void OnChangeFileSuffix();
private:
CString m_outputdirectory;
CString m_instrumentName;
CString m_fileNameSuffix;
CButton m_okButton;
CString m_outputFileNamesExplanation;
void UpdateOutputFileNamesExplanation();
std::string ReferenceFileName(const std::string& nameOfReference, bool includFilteringInfix, bool includeDirectory = true) const;
};