mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 06:19:19 +02:00
AnimModel.cpp reaches cParser through the simulation core, not a direct import, so the previous pass missed it; the propagation now follows the whole import closure. Train.cpp, drivermode.cpp and Globals.cpp call Console:: inside _WIN32 guards without importing eu07.console - invisible on Linux, where those blocks are skipped.
61 lines
1.1 KiB
C++
61 lines
1.1 KiB
C++
module;
|
|
#include <array>
|
|
#include <chrono>
|
|
#include <cstddef>
|
|
#include <deque>
|
|
#include <limits>
|
|
#include <mutex>
|
|
#include <ostream>
|
|
#include <sstream>
|
|
#include <type_traits>
|
|
#include <unordered_map>
|
|
#include <utility>
|
|
#include <vector>
|
|
#include <string>
|
|
#include <atomic>
|
|
#include <optional>
|
|
#include <thread>
|
|
|
|
export module eu07.widgets.trainingcard;
|
|
import eu07.application.uilayer;
|
|
|
|
export {
|
|
|
|
class trainingcard_panel : public ui_panel
|
|
{
|
|
std::string place;
|
|
std::string trainee_name;
|
|
std::string trainee_birthdate;
|
|
std::string trainee_company;
|
|
std::string instructor_name;
|
|
std::string track_segment;
|
|
std::string remarks;
|
|
|
|
std::optional<std::time_t> start_time_wall;
|
|
float distance = 0.0f;
|
|
|
|
std::thread save_thread;
|
|
std::atomic<int> state;
|
|
|
|
void save_thread_func();
|
|
void clear();
|
|
|
|
virtual int StartRecording( void ) {
|
|
return 1;
|
|
}
|
|
virtual int EndRecording( std::string training_identifier ) {
|
|
return 1;
|
|
}
|
|
|
|
public:
|
|
trainingcard_panel();
|
|
~trainingcard_panel();
|
|
|
|
void render_contents() override;
|
|
const std::string *is_recording();
|
|
|
|
std::string recording_timestamp;
|
|
};
|
|
|
|
} // export
|