mfc_editor_app_i.h 950 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #pragma once
  2. #include <furi.h>
  3. #include <dialogs/dialogs.h>
  4. #include <gui/gui.h>
  5. #include <gui/scene_manager.h>
  6. #include <gui/view_dispatcher.h>
  7. #include <gui/modules/submenu.h>
  8. #include <nfc/nfc.h>
  9. #include <nfc/nfc_device.h>
  10. #include <storage/storage.h>
  11. #include "mfc_editor_app.h"
  12. #include "mfc_editor_icons.h"
  13. #include "scenes/mfc_editor_scene.h"
  14. #define TAG "MFCEditor"
  15. #define NFC_APP_FOLDER ANY_PATH("nfc")
  16. #define NFC_APP_EXTENSION ".nfc"
  17. #define NFC_APP_SHADOW_EXTENSION ".shd"
  18. struct MfcEditorApp {
  19. ViewDispatcher* view_dispatcher;
  20. SceneManager* scene_manager;
  21. Gui* gui;
  22. Storage* storage;
  23. DialogsApp* dialogs;
  24. Submenu* submenu;
  25. NfcDevice* nfc_device;
  26. FuriString* file_path;
  27. };
  28. typedef enum {
  29. MfcEditorAppViewSubmenu,
  30. } MfcEditorAppView;
  31. bool mfc_editor_prompt_load_file(MfcEditorApp* instance);
  32. bool mfc_editor_load_file(MfcEditorApp* instance, FuriString* file_path, bool show_dialog);