mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 12:09:19 +02:00
Every module unit now includes the standard headers it uses. Declarations reaching a unit only through an imported module's global module fragment are reachable but not visible, so ADL misses the free operators older libstdc++ declares beside a type - reproduced on ubuntu 24.04 (libstdc++ 13), where gl/vao.cpp could not compare vector iterators. Also drops a stale editor/editorSettings.hpp from the MSVC source list, which broke the Windows configure step, silences the deliberate include-in-purview warning in the glm wrapper, and removes GCC support: clang or MSVC only.
49 lines
879 B
C++
49 lines
879 B
C++
module;
|
|
#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
|