16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

recording

This commit is contained in:
milek7
2019-03-25 01:12:19 +01:00
parent 99c0888965
commit aa8d66e5da
6 changed files with 148 additions and 3 deletions

30
widgets/trainingcard.h Normal file
View File

@@ -0,0 +1,30 @@
#include "uilayer.h"
class trainingcard_panel : public ui_panel
{
std::string place;
std::string trainee_name;
std::string instructor_name;
std::string remarks;
std::optional<std::time_t> start_time_wall;
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 ) {
std::this_thread::sleep_for(std::chrono::duration<float>(5.0f));
return 1;
}
public:
trainingcard_panel();
void render_contents() override;
};