Prusa MINI Firmware overview
screen_print_preview.h
Go to the documentation of this file.
1 #pragma once
2 #include "gui.h"
3 
4 #ifdef __cplusplus
5 extern "C" {
6 #endif //__cplusplus
7 
8 typedef enum {
12 
14 
15 extern screen_t *const pscreen_print_preview;
16 
18 
19 // FIXME: the screen_print_preview currently does not copy fpath and fname
20 // therefore, their lifetime must be at least as long as the screen's lifetime
21 void screen_print_preview_set_gcode_filepath(const char *fpath);
23 void screen_print_preview_set_gcode_filename(const char *fname);
24 
25 #ifdef __cplusplus
26 }
27 #endif //__cplusplus
screen_messages
screen_t screen_messages
Definition: screen_messages.c:111
window_set_alignment
void window_set_alignment(int16_t id, uint8_t alignment)
Definition: window.c:561
MI_MESSAGES
Definition: screen_menu_tune.cpp:28
MI_SPI_PRESC
Definition: screen_menu_service.c:27
MI_FLOWFACT
Definition: screen_menu_tune.cpp:21
f_gcode_thumb_close
int f_gcode_thumb_close(FILE *fp)
Definition: gcode_file.cpp:52
PADDING
#define PADDING
Definition: screen_print_preview.c:41
gcode_file_name
static const char * gcode_file_name
Definition: screen_print_preview.c:52
window_get_item_index
int window_get_item_index(int16_t id)
Definition: window.c:623
fs_enable
void fs_enable()
Definition: filament_sensor.c:90
printfan_range
const int32_t printfan_range[3]
Definition: menu_vars.cpp:33
PRINT_PREVIEW_ACTION_PRINT
Definition: screen_print_preview.h:10
screen_menu_fw_update.h
_window_text_t
Definition: window_text.h:15
FIL
Definition: ff.h:155
_screen_messages_data_t::header
window_header_t header
Definition: screen_messages.c:18
MI_t
MI_t
Definition: screen_menu_settings.c:24
PRINT_BUTTON_ID
#define PRINT_BUTTON_ID
Definition: screen_print_preview.c:50
SCREEN_WIDTH
#define SCREEN_WIDTH
Definition: screen_print_preview.c:42
marlin_server.h
filament_sensor.h
initialize_description_line
static void initialize_description_line(screen_t *screen, int idx, int y_pos, const char *title, const char *value_fmt,...)
Definition: screen_print_preview.c:98
pscreen_messages
const screen_t * pscreen_messages
Definition: screen_messages.c:122
screen_menu_temperature
screen_t screen_menu_temperature
Definition: screen_menu_temperature.c:65
MI_LAN_SETTINGS
Definition: screen_menu_settings.c:37
menu_icons
const uint16_t menu_icons[2]
Definition: screen_print_preview.c:72
_menu_item_t
Definition: screen_menu.h:19
marlin_set_target_nozzle
float marlin_set_target_nozzle(float val)
Definition: marlin_client.c:401
opt_sscg_depth
const int32_t opt_sscg_depth[]
Definition: screen_menu_service.c:43
_rect_ui16_t::y
uint16_t y
Definition: guitypes.h:71
manual_feedrate
const int32_t manual_feedrate[4]
Definition: menu_vars.cpp:41
FILAMENTS_END
Definition: filament.h:31
_rect_ui16_t::w
uint16_t w
Definition: guitypes.h:72
screen_menu_draw
void screen_menu_draw(screen_t *screen)
Definition: screen_menu.c:90
THUMBNAIL_HEIGHT
#define THUMBNAIL_HEIGHT
Definition: screen_print_preview.c:44
screen_print_preview_data_t::frame
window_frame_t frame
Definition: screen_print_preview.c:23
window_set_padding
void window_set_padding(int16_t id, padding_ui8_t padding)
Definition: window.c:549
msg_stack
Definition: marlin_server.h:26
MI_BABYSTEP
Definition: screen_menu_tune.cpp:22
screen_menu_temperature_event
int screen_menu_temperature_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_menu_temperature.c:38
marlin_client.h
_screen_messages_data_t::list
window_list_t list
Definition: screen_messages.c:19
TITLE_HEIGHT
#define TITLE_HEIGHT
Definition: screen_print_preview.c:45
_window_frame_t
Definition: window_frame.h:18
f_stat
FRESULT f_stat(const TCHAR *path, FILINFO *fno)
Definition: ff.c:4412
sys_spi_set_prescaler
void sys_spi_set_prescaler(int prescaler_num)
Definition: sys.cpp:230
MI_RETURN
Definition: screen_menu_settings.c:25
COLOR_WHITE
#define COLOR_WHITE
Definition: guitypes.h:41
osThreadId
TaskHandle_t osThreadId
Definition: cmsis_os.h:283
sys_reset
void sys_reset(void)
Definition: sys.cpp:20
window_get_value
float window_get_value(int16_t id)
Definition: window.c:390
MI_FW_UPDATE
Definition: screen_menu_settings.c:34
spi_prescaler
int16_t spi_prescaler
Definition: screen_menu_service.c:39
IDR_PNG_menu_icon_stop
#define IDR_PNG_menu_icon_stop
Definition: resource.h:36
window_set_color_back
void window_set_color_back(int16_t id, color_t clr)
Definition: window.c:431
set_filament
void set_filament(FILAMENT_t filament)
Definition: filament.cpp:32
FILAMENT_NONE
Definition: filament.h:26
screen_menu_settings
screen_t screen_menu_settings
Definition: screen_menu_settings.c:122
marlin_set_target_bed
float marlin_set_target_bed(float val)
Definition: marlin_client.c:405
SCREEN_HEIGHT
#define SCREEN_HEIGHT
Definition: screen_print_preview.c:43
marlin_event
int marlin_event(uint8_t evt_id)
Definition: marlin_client.c:232
_window_spin_t
Definition: window_spin.h:12
MARLIN_VAR_FLOWFACT
#define MARLIN_VAR_FLOWFACT
Definition: marlin_vars.h:26
FS_DISABLED
Definition: filament_sensor.h:22
eeprom.h
name_equals
#define name_equals(str)
LINE_HEIGHT
#define LINE_HEIGHT
Definition: screen_print_preview.c:46
pscreen_mesh_bed_lv
screen_t * pscreen_mesh_bed_lv
Definition: screen_mesh_bed_lv.cpp:228
screen_print_preview_data_t::print_label
window_text_t print_label
Definition: screen_print_preview.c:27
screen_menu_event
int screen_menu_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_menu.c:92
_marlin_vars_t::z_offset
float z_offset
Definition: marlin_vars.h:87
MSGBOX_RES_CUSTOM1
#define MSGBOX_RES_CUSTOM1
Definition: window_msgbox.h:50
settings_opt_enable_disable
const char * settings_opt_enable_disable[]
Definition: screen_menu_settings.c:22
pd
#define pd
Definition: screen_filebrowser.cpp:39
window_set_format
void window_set_format(int16_t id, const char *format)
Definition: window.c:403
f_open
FRESULT f_open(FIL *fp, const TCHAR *path, BYTE mode)
Definition: ff.c:3296
ALIGN_CENTER
#define ALIGN_CENTER
Definition: guitypes.h:19
print_preview_action_handler_t
void(* print_preview_action_handler_t)(print_preview_action_t action)
Definition: screen_print_preview.h:13
rect_ui16
static rect_ui16_t rect_ui16(uint16_t x, uint16_t y, uint16_t w, uint16_t h)
Definition: guitypes.h:159
MARLIN_VAR_FANSPEED
#define MARLIN_VAR_FANSPEED
Definition: marlin_vars.h:24
bsod.h
gui_malloc
void * gui_malloc(unsigned int size)
Definition: gui.c:35
screen_menu_done
void screen_menu_done(screen_t *screen)
Definition: screen_menu.c:78
screen_print_preview_get_gcode_filepath
const char * screen_print_preview_get_gcode_filepath()
Definition: screen_print_preview.c:85
move_z
const int32_t move_z[3]
Definition: menu_vars.cpp:39
window_destroy
void window_destroy(int16_t id)
Definition: window.c:132
_menu_info_items
const menu_item_t _menu_info_items[]
Definition: screen_menu_info.c:22
marlin_gcode_push_front
void marlin_gcode_push_front(const char *gcode)
Definition: marlin_client.c:222
screen_print_preview_data_t
Definition: screen_print_preview.c:22
padding_ui8
static padding_ui8_t padding_ui8(uint8_t l, uint8_t t, uint8_t r, uint8_t b)
Definition: guitypes.h:164
IDR_FNT_NORMAL
#define IDR_FNT_NORMAL
Definition: resource.h:10
i
uint8_t i
Definition: screen_test_graph.c:72
DBG
#define DBG
Definition: screen_print_preview.c:14
f_gcode_get_next_comment_assignment
bool f_gcode_get_next_comment_assignment(FIL *fp, char *name_buffer, int name_buffer_len, char *value_buffer, int value_buffer_len)
Definition: gcode_file.cpp:94
MI_NOZZLE
Definition: screen_menu_tune.cpp:18
_gui_defaults_t::msg_box_sz
rect_ui16_t msg_box_sz
Definition: guitypes.h:114
MARLIN_VAR_TTEM_BED
#define MARLIN_VAR_TTEM_BED
Definition: marlin_vars.h:22
move_x
const int32_t move_x[3]
Definition: menu_vars.cpp:37
MSGBOX_ICO_QUESTION
#define MSGBOX_ICO_QUESTION
Definition: window_msgbox.h:34
unscalePID_d
#define unscalePID_d(d)
Definition: temperature.h:152
MSGBOX_ICO_WARNING
#define MSGBOX_ICO_WARNING
Definition: window_msgbox.h:35
MI_RETURN
Definition: screen_menu_temperature.c:10
window_set_icon_id
void window_set_icon_id(int16_t id, uint16_t id_res)
Definition: window.c:659
MI_NOZZLE
Definition: screen_menu_temperature.c:11
SCREEN_MENU_NO_SCREEN
#define SCREEN_MENU_NO_SCREEN
Definition: screen_menu.h:39
screen_menu_info_event
int screen_menu_info_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_menu_info.c:51
MI_RETURN
Definition: screen_menu_info.c:10
marlin_do_babysteps_Z
void marlin_do_babysteps_Z(float offs)
Definition: marlin_client.c:433
description_line_t
Definition: screen_print_preview.c:16
sscg_depth
int16_t sscg_depth
Definition: screen_menu_service.c:38
msg_stack::count
uint8_t count
Definition: marlin_server.h:29
_menu_settings_items
const menu_item_t _menu_settings_items[]
Definition: screen_menu_settings.c:40
FSIZE_t
DWORD FSIZE_t
Definition: ff.h:78
TAG_QUIT
Definition: screen_sysinf.c:51
screen_print_preview_set_gcode_filename
void screen_print_preview_set_gcode_filename(const char *fname)
Definition: screen_print_preview.c:89
_menu_temperature_items
const menu_item_t _menu_temperature_items[]
Definition: screen_menu_temperature.c:17
eeprom_clear
void eeprom_clear(void)
Definition: eeprom.c:201
MI_CLR_EEPROM
Definition: screen_menu_service.c:21
pscreen_menu_settings
const screen_t * pscreen_menu_settings
Definition: screen_menu_settings.c:133
_window_icon_t
Definition: window_icon.h:11
WI_SPIN
Definition: window_menu.h:15
_display_t::draw_text
display_draw_text_t * draw_text
Definition: display.h:35
window_dlg_load.h
screen_menu_preheat
screen_t screen_menu_preheat
Definition: screen_menu_preheat.cpp:82
screen_open
void screen_open(int16_t screen_id)
Definition: screen.c:62
dbg.h
MSGBOX_DEF_BUTTON1
#define MSGBOX_DEF_BUTTON1
Definition: window_msgbox.h:55
MI_SYS_RESET
Definition: screen_menu_service.c:20
WINDOW_EVENT_CHANGE
#define WINDOW_EVENT_CHANGE
Definition: window.h:47
gcode_file.h
filaments
const filament_t filaments[FILAMENTS_END]
Definition: filament.cpp:20
screen_print_preview_draw
static void screen_print_preview_draw(screen_t *screen)
Definition: screen_print_preview.c:292
sys_pll_is_enabled
int sys_pll_is_enabled(void)
Definition: sys.cpp:48
screen_menu_temperature_init
void screen_menu_temperature_init(screen_t *screen)
Definition: screen_menu_temperature.c:24
NULL
#define NULL
Definition: usbd_def.h:53
scalePID_d
#define scalePID_d(d)
Definition: temperature.h:151
ALIGN_LEFT_BOTTOM
#define ALIGN_LEFT_BOTTOM
Definition: guitypes.h:22
window_id
int16_t window_id(window_t *ptr)
Definition: window.c:86
F
#define F(str)
Definition: UHS_macros.h:164
MSGBOX_ICO_INFO
#define MSGBOX_ICO_INFO
Definition: window_msgbox.h:36
pscreen_menu_service
const screen_t * pscreen_menu_service
Definition: screen_menu_service.c:147
MI_t
MI_t
Definition: screen_menu_move.c:9
screen_print_preview_done
static void screen_print_preview_done(screen_t *screen)
Definition: screen_print_preview.c:283
MI_PLL
Definition: screen_menu_service.c:23
screen_menu_info
screen_t screen_menu_info
Definition: screen_menu_info.c:55
MI_COUNT
Definition: screen_menu_service.c:34
MI_PRINTFAN
Definition: screen_menu_temperature.c:13
screen_menu_tune_chanege_filament
void screen_menu_tune_chanege_filament(screen_t *screen)
math.h
screen_menu.h
MSGBOX_BTN_OK
#define MSGBOX_BTN_OK
Definition: window_msgbox.h:20
menu_item_t
struct _menu_item_t menu_item_t
_display_t::fill_rect
display_fill_rect_t * fill_rect
Definition: display.h:33
screen_close
void screen_close(void)
Definition: screen.c:80
MI_COOLDOWN
Definition: screen_menu_temperature.c:14
screen_print_preview_data_t::gcode_file_opened
bool gcode_file_opened
Definition: screen_print_preview.c:31
PRINT_PREVIEW_ACTION_BACK
Definition: screen_print_preview.h:9
COLOR_GRAY
#define COLOR_GRAY
Definition: guitypes.h:50
filament_t::name
const char * name
Definition: filament.h:17
msg_stack::msg_data
char msg_data[MSG_STACK_SIZE][MSG_MAX_LENGTH]
Definition: marlin_server.h:28
flowfact_range
const int32_t flowfact_range[3]
Definition: menu_vars.cpp:34
_msg_stack_del
void _msg_stack_del(uint8_t del_index)
Definition: screen_messages.c:47
screen_print_preview_data_t::gcode_file
FIL gcode_file
Definition: screen_print_preview.c:30
WINDOW_CLS_LIST
#define WINDOW_CLS_LIST
Definition: window.h:13
ALIGN_RIGHT_BOTTOM
#define ALIGN_RIGHT_BOTTOM
Definition: guitypes.h:25
_marlin_vars_t::temp_nozzle
float temp_nozzle
Definition: marlin_vars.h:83
sys_sscg_enable
void sys_sscg_enable(void)
Definition: sys.cpp:140
MARLIN_CMD_G29
#define MARLIN_CMD_G29
Definition: marlin_events.h:54
screen_menu_preheat_event
int screen_menu_preheat_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_menu_preheat.cpp:50
screen_sysinfo
screen_t screen_sysinfo
Definition: screen_sysinf.c:112
window_disable
void window_disable(int16_t id)
Definition: window.c:523
screen_lan_settings
screen_t screen_lan_settings
Definition: screen_lan_settings.c:283
sys_pll_enable
void sys_pll_enable(void)
Definition: sys.cpp:78
window_set_text
void window_set_text(int16_t id, const char *text)
Definition: window.c:340
MI_t
MI_t
Definition: screen_menu_service.c:18
description_line_t::title
window_text_t title
Definition: screen_print_preview.c:17
pscreen_menu_preheat
const screen_t * pscreen_menu_preheat
Definition: screen_menu_preheat.cpp:93
pd
#define pd
Definition: screen_print_preview.c:79
screen_menu_init
void screen_menu_init(screen_t *screen, const char *label, int count, uint8_t footer, uint8_t help)
Definition: screen_menu.c:25
WINDOW_CLS_SPIN
#define WINDOW_CLS_SPIN
Definition: window.h:15
marlin_set_flow_factor
uint16_t marlin_set_flow_factor(uint16_t val)
Definition: marlin_client.c:421
MI_WDG_TEST
Definition: screen_menu_service.c:22
COLOR_ORANGE
#define COLOR_ORANGE
Definition: guitypes.h:57
MARLIN_EVT_StoreSettings
#define MARLIN_EVT_StoreSettings
Definition: marlin_events.h:23
MSGBOX_RES_CUSTOM2
#define MSGBOX_RES_CUSTOM2
Definition: window_msgbox.h:51
screen_menu_service
screen_t screen_menu_service
Definition: screen_menu_service.c:136
screen_menu_service_event
int screen_menu_service_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_menu_service.c:71
suppress_draw
static int suppress_draw
Definition: screen_print_preview.c:302
WI_DISABLED
Definition: window_menu.h:20
MARLIN_VAR_TEMP_NOZ
#define MARLIN_VAR_TEMP_NOZ
Definition: marlin_vars.h:19
MI_t
MI_t
Definition: screen_menu_temperature.c:9
FA_READ
#define FA_READ
Definition: ff.h:326
action_handler
static print_preview_action_handler_t action_handler
Definition: screen_print_preview.c:54
screen_menu_service_init
void screen_menu_service_init(screen_t *screen)
Definition: screen_menu_service.c:46
_window_t
Definition: window.h:76
_menu_move_items
const menu_item_t _menu_move_items[]
Definition: screen_menu_move.c:17
MI_MOVE_AXIS
Definition: screen_menu_settings.c:27
marlin_vars
marlin_vars_t * marlin_vars(void)
Definition: marlin_client.c:361
pscreen_menu_tune
const screen_t * pscreen_menu_tune
Definition: screen_menu_tune.cpp:203
MI_SSCG
Definition: screen_menu_service.c:24
f_gcode_thumb_open
int f_gcode_thumb_open(FILE *fp, FIL *gcode_fp)
Definition: gcode_file.cpp:29
_window_header_t
Definition: window_header.h:36
unscalePID_i
#define unscalePID_i(i)
Definition: temperature.h:150
menu_preheat_type
uint8_t menu_preheat_type
Definition: screen_menu_preheat.cpp:14
resource.h
screen_messages_done
void screen_messages_done(screen_t *screen)
Definition: screen_messages.c:106
sscg_freq_kHz
int16_t sscg_freq_kHz
Definition: screen_menu_service.c:37
opt_sscg_freq
const int32_t opt_sscg_freq[]
Definition: screen_menu_service.c:42
MSGBOX_RES_YES
#define MSGBOX_RES_YES
Definition: window_msgbox.h:44
screen_menu_preheat_init
void screen_menu_preheat_init(screen_t *screen)
Definition: screen_menu_preheat.cpp:16
pscreen_menu_move
const screen_t * pscreen_menu_move
Definition: screen_menu_move.c:85
menu_vars.h
WINDOW_FLG_NUMB_FLOAT2INT
#define WINDOW_FLG_NUMB_FLOAT2INT
Definition: window_numb.h:8
MI_HEATBED
Definition: screen_menu_temperature.c:12
WINDOW_CLS_FRAME
#define WINDOW_CLS_FRAME
Definition: window.h:9
MI_SSCG_FREQ
Definition: screen_menu_service.c:25
f_size
#define f_size(fp)
Definition: ff.h:280
pscreen_print_preview
screen_t *const pscreen_print_preview
Definition: screen_print_preview.c:77
void
void
Definition: png.h:1083
MARLIN_VAR_MSK_TEMP_TARG
#define MARLIN_VAR_MSK_TEMP_TARG
Definition: marlin_vars.h:46
WI_SWITCH
Definition: window_menu.h:16
marlin_all_axes_known
int marlin_all_axes_known(void)
Definition: marlin_server.cpp:377
BACK_BUTTON_ID
#define BACK_BUTTON_ID
Definition: screen_print_preview.c:49
screen_print_preview_set_gcode_filepath
void screen_print_preview_set_gcode_filepath(const char *fpath)
Definition: screen_print_preview.c:81
window_set_value
void window_set_value(int16_t id, float value)
Definition: window.c:363
screen_print_preview_data_t::gcode_filament_used_g
unsigned gcode_filament_used_g
Definition: screen_print_preview.c:35
reset_print_state
void reset_print_state(void)
Definition: screen_printing.cpp:131
get_filament
FILAMENT_t get_filament()
Definition: filament.cpp:41
screen_menu_info_init
void screen_menu_info_init(screen_t *screen)
Definition: screen_menu_info.c:44
MI_MESH
Definition: screen_menu_service.c:31
_marlin_vars_t::target_nozzle
float target_nozzle
Definition: marlin_vars.h:85
screen_menu_info
screen_t screen_menu_info
Definition: screen_menu_info.c:55
msg_stack
msg_stack_t msg_stack
Definition: marlin_server.cpp:99
initialize_gcode_file
static void initialize_gcode_file(screen_t *screen)
Definition: screen_print_preview.c:171
screen_menu_tune_timer
void screen_menu_tune_timer(screen_t *screen, uint32_t mseconds)
Definition: screen_menu_tune.cpp:160
MI_FACTORY_DEFAULTS
Definition: screen_menu_settings.c:29
filament_t::nozzle
uint16_t nozzle
Definition: filament.h:19
_font_t::w
uint8_t w
Definition: guitypes.h:77
pscreen_menu_temperature
const screen_t * pscreen_menu_temperature
Definition: screen_menu_temperature.c:76
pscreen_test_disp_mem
screen_t * pscreen_test_disp_mem
Definition: screen_test_disp_mem.c:629
MARLIN_CMD_M190
#define MARLIN_CMD_M190
Definition: marlin_events.h:56
screen_menu_tune
screen_t screen_menu_tune
Definition: screen_menu_tune.cpp:192
MI_FILAMENT
Definition: screen_menu_tune.cpp:23
fs_get_state
fsensor_t fs_get_state()
Definition: filament_sensor.c:67
_screen_messages_data_t::root
window_frame_t root
Definition: screen_messages.c:17
window_set_capture
void window_set_capture(int16_t id)
Definition: window.c:500
eeprom_defaults
void eeprom_defaults(void)
Definition: eeprom.c:69
_display_t::draw_png
display_draw_png_t * draw_png
Definition: display.h:37
screen_messages_data_t
struct _screen_messages_data_t screen_messages_data_t
psmd
#define psmd
Definition: screen_menu.h:40
MI_MOVE_Y
Definition: screen_menu_move.c:12
screen_messages_init
void screen_messages_init(screen_t *screen)
Definition: screen_messages.c:55
screen_print_preview_set_gcode_filepath
void screen_print_preview_set_gcode_filepath(const char *fpath)
Definition: screen_print_preview.c:81
MSGBOX_RES_CUSTOM0
#define MSGBOX_RES_CUSTOM0
Definition: window_msgbox.h:49
screen_test
screen_t screen_test
Definition: screen_test.c:146
gcode_file_exists
static bool gcode_file_exists(screen_t *screen)
Definition: screen_print_preview.c:295
ff.h
window_set_tag
void window_set_tag(int16_t id, uint8_t tag)
Definition: window.c:329
f_lseek
FRESULT f_lseek(FIL *fp, FSIZE_t ofs)
Definition: ff.c:4060
WI_SPIN_FL
Definition: window_menu.h:18
scalePID_i
#define scalePID_i(i)
Definition: temperature.h:149
marlin_gcode
void marlin_gcode(const char *gcode)
Definition: marlin_client.c:195
WINDOW_EVENT_CHANGING
#define WINDOW_EVENT_CHANGING
Definition: window.h:48
gui_dlg_load_forced
dlg_result_t gui_dlg_load_forced(void)
Definition: window_dlg_load.c:124
_screen_messages_data_t::pfooter
status_footer_t * pfooter
Definition: screen_messages.c:21
marlin_update_vars
marlin_vars_t * marlin_update_vars(uint64_t msk)
Definition: marlin_client.c:368
MI_SSCG_DEPTH
Definition: screen_menu_service.c:26
screen_menu_settings_init
void screen_menu_settings_init(screen_t *screen)
Definition: screen_menu_settings.c:55
_rect_ui16_t
Definition: guitypes.h:69
_menu_tune_items
const menu_item_t _menu_tune_items[]
Definition: screen_menu_tune.cpp:33
WI_LABEL
Definition: window_menu.h:14
sys_sscg_set_config
void sys_sscg_set_config(int freq, int depth)
Definition: sys.cpp:159
screen_menu_move
screen_t screen_menu_move
Definition: screen_menu_move.c:74
filament.h
uint8_t
const uint8_t[]
Definition: 404_html.c:3
print_preview_action_t
print_preview_action_t
Definition: screen_print_preview.h:8
IDR_FNT_BIG
#define IDR_FNT_BIG
Definition: resource.h:11
screen_menu_fw_update
screen_t screen_menu_fw_update
Definition: screen_menu_fw_update.c:64
MARLIN_VAR_MSK
#define MARLIN_VAR_MSK(v_id)
Definition: marlin_vars.h:35
sys_sscg_disable
void sys_sscg_disable(void)
Definition: sys.cpp:125
display
display_t * display
Definition: display.c:6
_screen_t
Definition: screen.h:18
move_e
const int32_t move_e[3]
Definition: menu_vars.cpp:40
screen_print_preview_set_on_action
void screen_print_preview_set_on_action(print_preview_action_handler_t handler)
Definition: screen_print_preview.c:93
WINDOW_CLS_ICON
#define WINDOW_CLS_ICON
Definition: window.h:12
menu_item_return
const menu_item_t menu_item_return
Definition: screen_menu.c:14
extrude_min_temp
const int32_t extrude_min_temp
Definition: menu_vars.cpp:43
marlin_all_axes_homed
int marlin_all_axes_homed(void)
Definition: marlin_server.cpp:373
screen_print_preview_data_t::back_button
window_icon_t back_button
Definition: screen_print_preview.c:28
screen_menu_move_init
void screen_menu_move_init(screen_t *screen)
Definition: screen_menu_move.c:24
screen_menu_move
screen_t screen_menu_move
Definition: screen_menu_move.c:74
MARLIN_VAR_PRNSPEED
#define MARLIN_VAR_PRNSPEED
Definition: marlin_vars.h:25
screen_menu_tune_init
void screen_menu_tune_init(screen_t *screen)
Definition: screen_menu_tune.cpp:51
initialize_description_lines
static void initialize_description_lines(screen_t *screen, int y)
Definition: screen_print_preview.c:128
screen_menu_move_event
int screen_menu_move_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_menu_move.c:40
screen_print_preview_init
static void screen_print_preview_init(screen_t *screen)
Definition: screen_print_preview.c:222
MI_HEATBED
Definition: screen_menu_tune.cpp:19
MSGBOX_BTN_CUSTOM3
#define MSGBOX_BTN_CUSTOM3
Definition: window_msgbox.h:28
WINDOW_CLS_TEXT
#define WINDOW_CLS_TEXT
Definition: window.h:10
MSG_MAX_LENGTH
#define MSG_MAX_LENGTH
Definition: marlin_server.h:19
sys_pll_disable
void sys_pll_disable(void)
Definition: sys.cpp:57
MARLIN_EVT_FactoryReset
#define MARLIN_EVT_FactoryReset
Definition: marlin_events.h:21
screen_print_preview_set_gcode_filename
void screen_print_preview_set_gcode_filename(const char *fname)
Definition: screen_print_preview.c:89
marlin_command
uint32_t marlin_command(void)
Definition: marlin_client.c:159
_marlin_vars_t::print_speed
uint16_t print_speed
Definition: marlin_vars.h:89
resource_font
font_t * resource_font(uint16_t id)
Definition: guitypes.c:186
WINDOW_EVENT_CLICK
#define WINDOW_EVENT_CLICK
Definition: window.h:46
feedrate_range
const int32_t feedrate_range[3]
Definition: menu_vars.cpp:35
gui_timer_create_periodical
int8_t gui_timer_create_periodical(uint32_t ms, int16_t win_id)
Definition: gui_timer.c:70
pscreen_menu_info
const screen_t * pscreen_menu_info
Definition: screen_menu_info.c:66
gui_get_menu_timeout_id
int8_t gui_get_menu_timeout_id(void)
Definition: gui_timer.c:147
screen_print_preview.h
MSGBOX_BTN_YESNO
#define MSGBOX_BTN_YESNO
Definition: window_msgbox.h:24
FR_OK
Definition: ff.h:215
MI_TIMEOUT
Definition: screen_menu_settings.c:36
stm32f4xx_hal.h
This file contains all the functions prototypes for the HAL module driver.
window_create_ptr
int16_t window_create_ptr(int16_t cls_id, int16_t id_parent, rect_ui16_t rect, void *ptr)
Definition: window.c:102
MI_DISABLE_STEP
Definition: screen_menu_settings.c:28
zoffset_fl_format
const char * zoffset_fl_format
Definition: menu_vars.cpp:30
screen_printing.h
window_enable
void window_enable(int16_t id)
Definition: window.c:517
MI_FILAMENT_SENSOR
Definition: screen_menu_settings.c:35
zoffset_fl_range
const float zoffset_fl_range[3]
Definition: menu_vars.cpp:29
screen_menu_data_t
Definition: screen_menu.h:24
MARLIN_CMD_M109
#define MARLIN_CMD_M109
Definition: marlin_events.h:55
MARLIN_VAR_MSK_POS_XYZE
#define MARLIN_VAR_MSK_POS_XYZE
Definition: marlin_vars.h:40
IDR_FNT_SMALL
#define IDR_FNT_SMALL
Definition: resource.h:9
COLOR_BLACK
#define COLOR_BLACK
Definition: guitypes.h:40
_marlin_vars_t::flow_factor
uint16_t flow_factor
Definition: marlin_vars.h:90
_window_spin_t::window
window_numb_t window
Definition: window_spin.h:13
screen_menu_tune_event
int screen_menu_tune_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_menu_tune.cpp:81
screen_menu_preheat_done
void screen_menu_preheat_done(screen_t *screen)
Definition: screen_menu_preheat.cpp:46
app.h
screen_menu_temperature
screen_t screen_menu_temperature
Definition: screen_menu_temperature.c:65
FS_NOT_CONNECTED
Definition: filament_sensor.h:21
MI_RETURN
Definition: screen_menu_tune.cpp:16
screen_messages_event
int screen_messages_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_messages.c:81
MI_RETURN
Definition: screen_menu_service.c:19
MARLIN_EVT_Ready
#define MARLIN_EVT_Ready
Definition: marlin_events.h:31
bsod
#define bsod(fmt,...)
Definition: bsod.h:20
WI_SELECT
Definition: window_menu.h:17
MI_INFO
Definition: screen_menu_tune.cpp:24
filament_t::heatbed
uint16_t heatbed
Definition: filament.h:20
_marlin_vars_t
Definition: marlin_vars.h:77
window_set_min_max_step
void window_set_min_max_step(int16_t id, float min, float max, float step)
Definition: window.c:767
_display_t::w
uint16_t w
Definition: display.h:25
MI_SYS_INFO
Definition: screen_menu_info.c:14
FILAMENT_t
FILAMENT_t
Definition: filament.h:25
pmsg
#define pmsg
Definition: screen_messages.c:29
filament_t
Definition: filament.h:16
WINDOW_EVENT_LOOP
#define WINDOW_EVENT_LOOP
Definition: window.h:49
screen_print_preview_data_t::gcode_filament_used_mm
unsigned gcode_filament_used_mm
Definition: screen_print_preview.c:36
marlin_set_z_offset
float marlin_set_z_offset(float val)
Definition: marlin_client.c:409
MI_RETURN
Definition: screen_menu_move.c:10
IDR_PNG_menu_icon_print
#define IDR_PNG_menu_icon_print
Definition: resource.h:28
marlin_settings_save
void marlin_settings_save(void)
Definition: marlin_client.c:443
fs_wait_inicialized
fsensor_t fs_wait_inicialized()
Definition: filament_sensor.c:104
marlin_set_fan_speed
uint8_t marlin_set_fan_speed(uint8_t val)
Definition: marlin_client.c:413
config.h
window_draw
void window_draw(int16_t id)
Definition: window.c:277
screen_print_preview_data_t::gcode_has_thumbnail
bool gcode_has_thumbnail
Definition: screen_print_preview.c:32
_window_text_t::font
font_t * font
Definition: window_text.h:19
WINDOW_CLS_HEADER
int16_t WINDOW_CLS_HEADER
Definition: window_header.c:24
screen_print_preview_event
static int screen_print_preview_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_print_preview.c:304
screen_messages_draw
void screen_messages_draw(screen_t *screen)
Definition: screen_messages.c:78
fsensor_t
fsensor_t
Definition: filament_sensor.h:17
MI_MOVE_E
Definition: screen_menu_move.c:14
_marlin_vars_t::pos
float pos[4]
Definition: marlin_vars.h:82
screen_print_preview_get_gcode_filepath
const char * screen_print_preview_get_gcode_filepath()
Definition: screen_print_preview.c:85
gui.h
opt_spi
const char * opt_spi[]
Definition: screen_menu_service.c:44
gui_defaults
gui_defaults_t gui_defaults
Definition: gui.c:20
MARLIN_VAR_TTEM_NOZ
#define MARLIN_VAR_TTEM_NOZ
Definition: marlin_vars.h:21
WINDOW_EVENT_BTN_DN
#define WINDOW_EVENT_BTN_DN
Definition: window.h:38
description_line_t::value_buffer
char value_buffer[32]
Definition: screen_print_preview.c:19
MI_PRINTFAN
Definition: screen_menu_tune.cpp:20
window_set_item_count
void window_set_item_count(int16_t id, int count)
Definition: window.c:573
screen_print_preview_data_t::print_button
window_icon_t print_button
Definition: screen_print_preview.c:26
nozzle_range
const int32_t nozzle_range[3]
Definition: menu_vars.cpp:31
WINDOW_EVENT_TIMER
#define WINDOW_EVENT_TIMER
Definition: window.h:50
createSpeedLookupTable.args
args
Definition: createSpeedLookupTable.py:17
PID_PARAM
#define PID_PARAM(F, H)
Definition: temperature.h:87
MI_BSOD
Definition: screen_menu_service.c:32
fs_disable
void fs_disable()
Definition: filament_sensor.c:97
MI_TEMPERATURE
Definition: screen_menu_settings.c:26
screen_print_preview
static screen_t screen_print_preview
Definition: screen_print_preview.c:61
_window_list_t
Definition: window_list.h:15
webServerTaskHandle
osThreadId webServerTaskHandle
Definition: main.c:100
gcode_file_path
static const char * gcode_file_path
Definition: screen_print_preview.c:53
description_line_t::value
window_text_t value
Definition: screen_print_preview.c:18
screen_version_info
screen_t screen_version_info
Definition: screen_version_info.cpp:98
opt_enable_disable
const char * opt_enable_disable[]
Definition: screen_menu_service.c:41
screen_menu_settings_event
int screen_menu_settings_event(screen_t *screen, window_t *window, uint8_t event, void *param)
Definition: screen_menu_settings.c:70
screen_print_preview_set_on_action
void screen_print_preview_set_on_action(print_preview_action_handler_t handler)
Definition: screen_print_preview.c:93
IDR_PNG_menu_icon_back
#define IDR_PNG_menu_icon_back
Definition: resource.h:74
move_y
const int32_t move_y[3]
Definition: menu_vars.cpp:38
marlin_set_print_speed
uint16_t marlin_set_print_speed(uint16_t val)
Definition: marlin_client.c:417
_screen_messages_data_t
Definition: screen_messages.c:16
_window_t::flg
uint32_t flg
Definition: window.h:81
window_set_item_callback
void window_set_item_callback(int16_t id, window_list_item_t *fnc)
Definition: window.c:787
MI_BSOD_HARD_FAULT
Definition: screen_menu_service.c:33
screen_print_preview_data_t::back_label
window_text_t back_label
Definition: screen_print_preview.c:29
MI_VERSIONS
Definition: screen_menu_info.c:19
fs_did_filament_runout
int fs_did_filament_runout()
Definition: filament_sensor.c:72
sys_sscg_is_enabled
int sys_sscg_is_enabled(void)
Definition: sys.cpp:121
MARLIN_CMD_G28
#define MARLIN_CMD_G28
Definition: marlin_events.h:53
_window_list_add_message_item
void _window_list_add_message_item(window_list_t *pwindow_list, uint16_t index, const char **pptext, uint16_t *msg_icon)
Definition: screen_messages.c:31
window_set_item_index
void window_set_item_index(int16_t id, int index)
Definition: window.c:598
cmsis_os.h
Header of cmsis_os.c A new set of APIs are added in addition to existing ones, these APIs are specifi...
_window_numb_t::win
window_t win
Definition: window_numb.h:18
_marlin_vars_t::target_bed
float target_bed
Definition: marlin_vars.h:86
menu_timeout_enabled
int8_t menu_timeout_enabled
Definition: guimain.c:103
pscreen_print_preview
screen_t *const pscreen_print_preview
Definition: screen_print_preview.c:77
marlin_gcode_printf
int marlin_gcode_printf(const char *format,...)
Definition: marlin_client.c:206
LINE_SPACING
#define LINE_SPACING
Definition: screen_print_preview.c:47
FILINFO
Definition: ff.h:197
screen_lan_settings.h
screen_messages
screen_t screen_messages
Definition: screen_messages.c:111
MI_MOVE_Z
Definition: screen_menu_move.c:13
row2draw
static int16_t row2draw
Definition: screen_test_disp_mem.c:84
thermalManager
Temperature thermalManager
Definition: temperature.cpp:89
WINDOW_FLG_INVALID
#define WINDOW_FLG_INVALID
Definition: window.h:26
window_set_color_text
void window_set_color_text(int16_t id, color_t clr)
Definition: window.c:457
_window_invalidate
static void _window_invalidate(window_t *window)
Definition: window.h:257
gui_timer_delete
void gui_timer_delete(int8_t id)
Definition: gui_timer.c:79
f_close
FRESULT f_close(FIL *fp)
Definition: ff.c:3801
MI_t
MI_t
Definition: screen_menu_info.c:9
MI_MOVE_X
Definition: screen_menu_move.c:11
screen_print_preview_data_t::title_text
window_text_t title_text
Definition: screen_print_preview.c:24
p_window_header_set_text
void p_window_header_set_text(window_header_t *window, const char *text)
Definition: window_header.c:152
MARLIN_VAR_Z_OFFSET
#define MARLIN_VAR_Z_OFFSET
Definition: marlin_vars.h:23
MI_SPEED
Definition: screen_menu_tune.cpp:17
heatbed_range
const int32_t heatbed_range[3]
Definition: menu_vars.cpp:32
_marlin_vars_t::fan_speed
uint8_t fan_speed
Definition: marlin_vars.h:88
marlin_event_clr
int marlin_event_clr(uint8_t evt_id)
Definition: marlin_client.c:252
point_ui16
static point_ui16_t point_ui16(uint16_t x, uint16_t y)
Definition: guitypes.h:154
screen_print_preview_data_t::redraw_thumbnail
bool redraw_thumbnail
Definition: screen_print_preview.c:37