My Marlin configs for Fabrikator Mini and CTC i3 Pro B
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

spinner_dialog_box.h 2.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /************************
  2. * spinner_dialog_box.h *
  3. ************************/
  4. /****************************************************************************
  5. * Written By Mark Pelletier 2017 - Aleph Objects, Inc. *
  6. * Written By Marcio Teixeira 2018 - Aleph Objects, Inc. *
  7. * *
  8. * This program is free software: you can redistribute it and/or modify *
  9. * it under the terms of the GNU General Public License as published by *
  10. * the Free Software Foundation, either version 3 of the License, or *
  11. * (at your option) any later version. *
  12. * *
  13. * This program is distributed in the hope that it will be useful, *
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  16. * GNU General Public License for more details. *
  17. * *
  18. * To view a copy of the GNU General Public License, go to the following *
  19. * location: <https://www.gnu.org/licenses/>. *
  20. ****************************************************************************/
  21. #pragma once
  22. #define FTDI_SPINNER_DIALOG_BOX
  23. #define FTDI_SPINNER_DIALOG_BOX_CLASS SpinnerDialogBox
  24. struct SpinnerDialogBoxData {
  25. bool auto_hide;
  26. };
  27. class SpinnerDialogBox : public UIScreen {
  28. public:
  29. static void onEntry();
  30. static void onExit();
  31. static void onRedraw(draw_mode_t);
  32. static void onRefresh();
  33. static void onIdle();
  34. static void show(FSTR_P);
  35. static void hide();
  36. template<typename T>
  37. static void enqueueAndWait(T commands) {enqueueAndWait(GET_TEXT_F(MSG_PLEASE_WAIT), commands);}
  38. static void enqueueAndWait(FSTR_P message, char *commands);
  39. static void enqueueAndWait(FSTR_P message, FSTR_P commands);
  40. };