a message pop ups informing the user of the result of the data upload
data will also be written to a .json file to be able to observe the uploaded data (optional)
modified saves_popup.hpp to saves_popup.cpp
extended the language maps (inside newly created header languages.hpp) to support the generateTrainingData popup completely
modified sendData.hpp to upload data
used an enum class for the key of the languages std::maps since string literal comparisons might not always be correct.
and more ...
PS: Didn't touch the part for which suggested a method for refactoring
PS2: Only the changes in saves_popup.cpp (earlier saves_popup.hpp) are not shown correctly, probably due to renaming, not sure though. captureData was used there instead of sampler. The rest is almost alike.
generateTrainingData.cpp
:Send
button is clicked.json
file to be able to observe the uploaded data (optional)saves_popup.hpp
tosaves_popup.cpp
languages.hpp
) to support the generateTrainingData popup completelysendData.hpp
to upload dataenum class
for the key of the languagesstd::map
s since string literal comparisons might not always be correct.PS: Didn't touch the part for which suggested a method for refactoring PS2: Only the changes in
saves_popup.cpp
(earliersaves_popup.hpp
) are not shown correctly, probably due to renaming, not sure though.captureData
was used there instead ofsampler
. The rest is almost alike.