-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDialogBlocks_5Win.h
More file actions
126 lines (94 loc) · 2.69 KB
/
DialogBlocks_5Win.h
File metadata and controls
126 lines (94 loc) · 2.69 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
/////////////////////////////////////////////////////////////////////////////
// Name: DialogBlocks_5Win.h
// Purpose:
// Author: Thackev D.V., Talipov S.N.
// Modified by:
// Created: Wed Apr 16 16:38:01 2025
// RCS-ID:
// Copyright: Thackev D.V., Talipov S.N.
// Licence:
/////////////////////////////////////////////////////////////////////////////
#ifndef _MWSAPP_H_
#define _MWSAPP_H_
/*!
* Includes
*/
////@begin includes
#include "wx/image.h"
#include "greeting.h"
////@end includes
/*!
* Forward declarations
*/
////@begin forward declarations
////@end forward declarations
/*!
* Control identifiers
*/
////@begin control identifiers
////@end control identifiers
/*!
* MWSApp class declaration
*/
class MWSApp: public wxApp
{
DECLARE_CLASS( MWSApp )
DECLARE_EVENT_TABLE()
public:
/// Constructor
MWSApp();
void Init();
/// Initialises the application
virtual bool OnInit();
/// Called on exit
virtual int OnExit();
////@begin MWSApp event handler declarations
////@end MWSApp event handler declarations
////@begin MWSApp member function declarations
wxString GetAnswers() const { return answers ; }
void SetAnswers(wxString value) { answers = value ; }
int GetChildhoodIndex() const { return childhoodIndex ; }
void SetChildhoodIndex(int value) { childhoodIndex = value ; }
wxString GetDelimiter() const { return delimiter ; }
void SetDelimiter(wxString value) { delimiter = value ; }
wxString GetQuestions() const { return questions ; }
void SetQuestions(wxString value) { questions = value ; }
int GetSchoolIndex() const { return schoolIndex ; }
void SetSchoolIndex(int value) { schoolIndex = value ; }
int GetYouthIndex() const { return youthIndex ; }
void SetYouthIndex(int value) { youthIndex = value ; }
////@end MWSApp member function declarations
// begin custom
wxString AppendWithDelimiter(
const wxString &base,
const wxString &addition = wxEmptyString,
const wxString &delim = wxEmptyString
) const;
std::vector<wxString> SplitString(
const wxString& str,
const wxString& delim=wxEmptyString
);
wxString JoinString(
const std::vector<wxString>& strings,
const wxString&
delim=wxEmptyString
);
// end custom
////@begin MWSApp member variables
private:
wxString answers;
int childhoodIndex; // question index
wxString delimiter; // strings separator
wxString questions;
int schoolIndex; // question index
int youthIndex; // question index
////@end MWSApp member variables
};
/*!
* Application instance declaration
*/
////@begin declare app
DECLARE_APP(MWSApp)
////@end declare app
#endif
// _MWSAPP_H_