You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
732 B
31 lines
732 B
2 years ago
|
#include <eez/gui/gui.h>
|
||
|
|
||
|
#include <eez/core/util.h>
|
||
|
#include <eez/gui/widgets/input.h>
|
||
|
|
||
|
#include "../firmware.h"
|
||
|
#include "app_context.h"
|
||
|
#include "keypad.h"
|
||
|
|
||
|
namespace eez {
|
||
|
namespace gui {
|
||
|
|
||
|
void action_show_toast_message1() {
|
||
|
g_deviceAppContext.infoMessage("This is info message\nWith line 2!");
|
||
|
}
|
||
|
|
||
|
void action_show_toast_message2() {
|
||
|
g_deviceAppContext.errorMessage("This is error message\nWith line 2 ...\nand line 3!", true);
|
||
|
}
|
||
|
|
||
|
void doAction() {
|
||
|
g_deviceAppContext.infoMessage("It should be fixed now!");
|
||
|
}
|
||
|
|
||
|
void action_show_toast_message3() {
|
||
|
g_deviceAppContext.errorMessageWithAction("Some error occured!\nYou should fix it.", doAction, "Fix");
|
||
|
}
|
||
|
|
||
|
} // namespace gui
|
||
|
} // namespace eez
|