Raspberry Pi Weighting Control System
This project serves as a simple weighting control system, that was realized as a Bachelor Thesis
|
#include "screen_definitions.h"
#include <spdlog/spdlog.h>
#include "gui_button.h"
#include "gui_combobox.h"
#include "gui_direct.h"
#include "gui_input.h"
#include "gui_label.h"
#include "gui_observer.h"
#include "gui_selectable.h"
#include "localisation.h"
#include "app_workspace.h"
#include "config_loader.h"
Go to the source code of this file.
Macros | |
#define | EMPTY_LINE elems.push_back(std::unique_ptr<gui_element>(new gui_direct(empty_line))); |
#define | SAME_LINE elems.push_back(std::unique_ptr<gui_element>(new gui_direct(same_line))); |
#define | INDENT elems.push_back(std::unique_ptr<gui_element>(new gui_direct(indent))); |
#define | UNINDENT elems.push_back(std::unique_ptr<gui_element>(new gui_direct(unindent))); |
#define | INSERT_ELEMENT(ELEMENT) elems.push_back(std::unique_ptr<gui_element>(ELEMENT)); |
Functions | |
gui_element * | last_element (std::vector< std::unique_ptr< gui_element >> &elems) |
void | empty_line () |
void | same_line () |
void | begin_scrollabe_region () |
void | end_scrollabe_region () |
void | indent () |
void | unindent () |
void | login_action () |
void | login_subuser () |
void | logout_action () |
void | logout_subuser () |
void | start_hx_measuring () |
void | start_hx_continuous () |
void | open_measuring_detail () |
void | apply_meas_list_filter () |
void | unit_select_action () |
void | move_to_hx_calibration () |
void | move_to_user_addition () |
void | move_to_hx_test_samp () |
void | move_to_hx_test_time () |
void | move_to_kb_delay_test () |
void | start_tare () |
void | start_calibration () |
void | apply_calibration () |
void | register_user () |
void | cb () |
void | draw_rect () |
void | render_line () |
void | render_vert () |
void | empty_cb () |
void | callback_debug () |
void | int_test_label () |
void | float_test_label () |
void | text_test_label () |
void | text_wrap_debug () |
void | invoke_sql_debug () |
void | test_user_login_sql () |
void | test_user_creds_sql () |
void | test_user_meas_header_sql () |
void | test_user_inc_measur_cnt () |
void | test_user_is_uname_avail () |
void | test_user_is_rfid_avail () |
void | test_user_insert () |
void | test_measurement_insert () |
void | test_measurement_query () |
void | update_rfids_debug () |
void | hx_samples_debug () |
void | hx_timeout_debug () |
void | test_errscr_1 () |
void | test_errscr_2 () |
void | define_screen_0 (std::vector< std::unique_ptr< gui_element >> &elems) |
Definitions of gui elemnts of debug screen 0. More... | |
void | define_screen_1 (std::vector< std::unique_ptr< gui_element >> &elems) |
Definitions of gui elemnts of debug screen 1. More... | |
void | define_screen_2 (std::vector< std::unique_ptr< gui_element >> &elems) |
Definitions of gui elemnts of debug screen 2. More... | |
void | define_screen_3 (std::vector< std::unique_ptr< gui_element >> &elems) |
Definitions of gui elemnts of debug screen 3. More... | |
void | define_screen_4 (std::vector< std::unique_ptr< gui_element >> &elems) |
Definitions of gui elemnts of debug screen 4. More... | |
void | define_screen_5 (std::vector< std::unique_ptr< gui_element >> &elems) |
Definitions of gui elemnts of debug screen 5. More... | |
void | define_screen_6 (std::vector< std::unique_ptr< gui_element >> &elems) |
Definitions of gui elemnts of debug screen 6. More... | |
void | define_screen_1_debug (std::vector< std::unique_ptr< gui_element >> &elems) |
Definitions of gui elemnts of debug screen 1. More... | |
void | define_screen_2_debug (std::vector< std::unique_ptr< gui_element >> &elems) |
Definitions of gui elemnts of debug screen 2. More... | |
void | define_screen_3_debug (std::vector< std::unique_ptr< gui_element >> &elems) |
Definitions of gui elemnts of debug screen 3. More... | |
void | define_screen_4_debug (std::vector< std::unique_ptr< gui_element >> &elems) |
Definitions of gui elemnts of debug screen 4. More... | |
void | define_screen_5_debug (std::vector< std::unique_ptr< gui_element >> &elems) |
Definitions of gui elemnts of debug screen 5. More... | |
Variables | |
gui_label * | err_title = new gui_label("Changable error title") |
gui_label * | err_desc = new gui_label("Changable error description") |
#define EMPTY_LINE elems.push_back(std::unique_ptr<gui_element>(new gui_direct(empty_line))); |
Definition at line 18 of file screen_definitions.cpp.
#define INDENT elems.push_back(std::unique_ptr<gui_element>(new gui_direct(indent))); |
Definition at line 20 of file screen_definitions.cpp.
#define INSERT_ELEMENT | ( | ELEMENT | ) | elems.push_back(std::unique_ptr<gui_element>(ELEMENT)); |
Definition at line 22 of file screen_definitions.cpp.
#define SAME_LINE elems.push_back(std::unique_ptr<gui_element>(new gui_direct(same_line))); |
Definition at line 19 of file screen_definitions.cpp.
#define UNINDENT elems.push_back(std::unique_ptr<gui_element>(new gui_direct(unindent))); |
Definition at line 21 of file screen_definitions.cpp.
void apply_calibration | ( | ) |
Definition at line 1433 of file screen_definitions.cpp.
void apply_meas_list_filter | ( | ) |
Definition at line 1335 of file screen_definitions.cpp.
void begin_scrollabe_region | ( | ) |
Definition at line 906 of file screen_definitions.cpp.
void callback_debug | ( | ) |
Definition at line 984 of file screen_definitions.cpp.
void cb | ( | ) |
debug
Definition at line 938 of file screen_definitions.cpp.
void define_screen_0 | ( | std::vector< std::unique_ptr< gui_element >> & | elems | ) |
Definitions of gui elemnts of debug screen 0.
Definition at line 125 of file screen_definitions.cpp.
void define_screen_1 | ( | std::vector< std::unique_ptr< gui_element >> & | elems | ) |
Definitions of gui elemnts of debug screen 1.
Definition at line 139 of file screen_definitions.cpp.
void define_screen_1_debug | ( | std::vector< std::unique_ptr< gui_element >> & | elems | ) |
Definitions of gui elemnts of debug screen 1.
Definition at line 714 of file screen_definitions.cpp.
void define_screen_2 | ( | std::vector< std::unique_ptr< gui_element >> & | elems | ) |
Definitions of gui elemnts of debug screen 2.
Definition at line 190 of file screen_definitions.cpp.
void define_screen_2_debug | ( | std::vector< std::unique_ptr< gui_element >> & | elems | ) |
Definitions of gui elemnts of debug screen 2.
Definition at line 765 of file screen_definitions.cpp.
void define_screen_3 | ( | std::vector< std::unique_ptr< gui_element >> & | elems | ) |
Definitions of gui elemnts of debug screen 3.
Definition at line 335 of file screen_definitions.cpp.
void define_screen_3_debug | ( | std::vector< std::unique_ptr< gui_element >> & | elems | ) |
Definitions of gui elemnts of debug screen 3.
Definition at line 798 of file screen_definitions.cpp.
void define_screen_4 | ( | std::vector< std::unique_ptr< gui_element >> & | elems | ) |
Definitions of gui elemnts of debug screen 4.
Definition at line 399 of file screen_definitions.cpp.
void define_screen_4_debug | ( | std::vector< std::unique_ptr< gui_element >> & | elems | ) |
Definitions of gui elemnts of debug screen 4.
Definition at line 829 of file screen_definitions.cpp.
void define_screen_5 | ( | std::vector< std::unique_ptr< gui_element >> & | elems | ) |
Definitions of gui elemnts of debug screen 5.
Definition at line 496 of file screen_definitions.cpp.
void define_screen_5_debug | ( | std::vector< std::unique_ptr< gui_element >> & | elems | ) |
Definitions of gui elemnts of debug screen 5.
Definition at line 865 of file screen_definitions.cpp.
void define_screen_6 | ( | std::vector< std::unique_ptr< gui_element >> & | elems | ) |
Definitions of gui elemnts of debug screen 6.
Definition at line 537 of file screen_definitions.cpp.
void draw_rect | ( | ) |
Definition at line 946 of file screen_definitions.cpp.
void empty_cb | ( | ) |
Definition at line 980 of file screen_definitions.cpp.
void empty_line | ( | ) |
Definition at line 898 of file screen_definitions.cpp.
void end_scrollabe_region | ( | ) |
Creates region without nav
Definition at line 914 of file screen_definitions.cpp.
void float_test_label | ( | ) |
Definition at line 960 of file screen_definitions.cpp.
void hx_samples_debug | ( | ) |
Definition at line 1220 of file screen_definitions.cpp.
void hx_timeout_debug | ( | ) |
Definition at line 1224 of file screen_definitions.cpp.
void indent | ( | ) |
Indents all elements after this by custom_indent value. To cancel indentation "unindent" must be called For simpler use call macros: INDENT/ UNINDENT
Definition at line 1238 of file screen_definitions.cpp.
void int_test_label | ( | ) |
Definition at line 956 of file screen_definitions.cpp.
void invoke_sql_debug | ( | ) |
Definition at line 990 of file screen_definitions.cpp.
gui_element * last_element | ( | std::vector< std::unique_ptr< gui_element >> & | elems | ) |
Definition at line 934 of file screen_definitions.cpp.
void login_action | ( | ) |
Definition at line 918 of file screen_definitions.cpp.
void login_subuser | ( | ) |
Definition at line 922 of file screen_definitions.cpp.
void logout_action | ( | ) |
Definition at line 926 of file screen_definitions.cpp.
void logout_subuser | ( | ) |
Definition at line 930 of file screen_definitions.cpp.
void move_to_hx_calibration | ( | ) |
Definition at line 1348 of file screen_definitions.cpp.
void move_to_hx_test_samp | ( | ) |
Definition at line 1364 of file screen_definitions.cpp.
void move_to_hx_test_time | ( | ) |
Definition at line 1373 of file screen_definitions.cpp.
void move_to_kb_delay_test | ( | ) |
Definition at line 1382 of file screen_definitions.cpp.
void move_to_user_addition | ( | ) |
Definition at line 1356 of file screen_definitions.cpp.
void open_measuring_detail | ( | ) |
Definition at line 1273 of file screen_definitions.cpp.
void register_user | ( | ) |
Definition at line 1457 of file screen_definitions.cpp.
void render_line | ( | ) |
Definition at line 968 of file screen_definitions.cpp.
void render_vert | ( | ) |
Definition at line 974 of file screen_definitions.cpp.
void same_line | ( | ) |
Definition at line 902 of file screen_definitions.cpp.
void start_calibration | ( | ) |
Definition at line 1412 of file screen_definitions.cpp.
void start_hx_continuous | ( | ) |
Definition at line 1265 of file screen_definitions.cpp.
void start_hx_measuring | ( | ) |
Definition at line 1258 of file screen_definitions.cpp.
void start_tare | ( | ) |
Definition at line 1391 of file screen_definitions.cpp.
void test_errscr_1 | ( | ) |
Definition at line 1246 of file screen_definitions.cpp.
void test_errscr_2 | ( | ) |
Definition at line 1253 of file screen_definitions.cpp.
void test_measurement_insert | ( | ) |
Definition at line 1157 of file screen_definitions.cpp.
void test_measurement_query | ( | ) |
Definition at line 1187 of file screen_definitions.cpp.
void test_user_creds_sql | ( | ) |
Definition at line 1016 of file screen_definitions.cpp.
void test_user_inc_measur_cnt | ( | ) |
Definition at line 1076 of file screen_definitions.cpp.
void test_user_insert | ( | ) |
Definition at line 1130 of file screen_definitions.cpp.
void test_user_is_rfid_avail | ( | ) |
Definition at line 1109 of file screen_definitions.cpp.
void test_user_is_uname_avail | ( | ) |
Definition at line 1090 of file screen_definitions.cpp.
void test_user_login_sql | ( | ) |
Definition at line 1005 of file screen_definitions.cpp.
void test_user_meas_header_sql | ( | ) |
Definition at line 1048 of file screen_definitions.cpp.
void text_test_label | ( | ) |
Definition at line 964 of file screen_definitions.cpp.
void text_wrap_debug | ( | ) |
Definition at line 1228 of file screen_definitions.cpp.
void unindent | ( | ) |
Definition at line 1242 of file screen_definitions.cpp.
void unit_select_action | ( | ) |
Definition at line 1339 of file screen_definitions.cpp.
void update_rfids_debug | ( | ) |
Definition at line 1199 of file screen_definitions.cpp.
Definition at line 123 of file screen_definitions.cpp.
Definition at line 122 of file screen_definitions.cpp.