aboutsummaryrefslogtreecommitdiff
path: root/Marlin/src/lcd/extui/lib/mks_ui/draw_dialog.h
blob: 69b84916e9bab183063b9aa26516a6bb86e83ee2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/**
 * Marlin 3D Printer Firmware
 * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
 *
 * Based on Sprinter and grbl.
 * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 */
#pragma once

#ifdef __cplusplus
  extern "C" { /* C-declarations for C++ */
#endif

enum {
  DIALOG_TYPE_STOP = 0,
  DIALOG_TYPE_PRINT_FILE,
  DIALOG_TYPE_REPRINT_NO_FILE,

  DIALOG_TYPE_M80_FAIL,
  DIALOG_TYPE_MESSAGE_ERR1,

  DIALOG_TYPE_UPDATE_ESP_FIRMARE,
  DIALOG_TYPE_UPDATE_ESP_DATA,
  DIALOG_TYPE_UPLOAD_FILE,
  DIALOG_TYPE_UNBIND,

  DIALOG_TYPE_FILAMENT_LOAD_HEAT,
  DIALOG_TYPE_FILAMENT_HEAT_LOAD_COMPLETED,
  DIALOG_TYPE_FILAMENT_LOADING,
  DIALOG_TYPE_FILAMENT_LOAD_COMPLETED,
  DIALOG_TYPE_FILAMENT_UNLOAD_HEAT,
  DIALOG_TYPE_FILAMENT_HEAT_UNLOAD_COMPLETED,
  DIALOG_TYPE_FILAMENT_UNLOADING,
  DIALOG_TYPE_FILAMENT_UNLOAD_COMPLETED,

  DIALOG_TYPE_FILE_LOADING,

  DIALOG_TYPE_FILAMENT_NO_PRESS,
  DIALOG_TYPE_FINISH_PRINT,

  DIALOG_WIFI_ENABLE_TIPS,

  DIALOG_PAUSE_MESSAGE_PAUSING,
  DIALOG_PAUSE_MESSAGE_CHANGING,
  DIALOG_PAUSE_MESSAGE_UNLOAD,
  DIALOG_PAUSE_MESSAGE_WAITING,
  DIALOG_PAUSE_MESSAGE_INSERT,
  DIALOG_PAUSE_MESSAGE_LOAD,
  DIALOG_PAUSE_MESSAGE_PURGE,
  DIALOG_PAUSE_MESSAGE_RESUME,
  DIALOG_PAUSE_MESSAGE_HEAT,
  DIALOG_PAUSE_MESSAGE_HEATING,
  DIALOG_PAUSE_MESSAGE_OPTION,

  DIALOG_STORE_EEPROM_TIPS,
  DIALOG_READ_EEPROM_TIPS,
  DIALOG_REVERT_EEPROM_TIPS,

  DIALOG_WIFI_CONFIG_TIPS,
  DIALOG_TRANSFER_NO_DEVICE,
  DIALOG_TYPE_MACHINE_PAUSING_TIPS
};

#define BTN_OK_X      100
#define BTN_OK_Y      180
#define BTN_CANCEL_X  280
#define BTN_CANCEL_Y  180

extern void lv_draw_dialog(uint8_t type);
extern void lv_clear_dialog();
extern void filament_sprayer_temp();
extern void filament_dialog_handle();
extern void lv_filament_setbar();

#ifdef __cplusplus
  } /* C-declarations for C++ */
#endif