From b490a2d600cc5a6db7ea15de720b8fbed715e0a7 Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Mon, 21 Feb 2022 15:59:09 -0600 Subject: [PATCH] Starting on documentation for UI flow --- flow/new_file.txt | 73 +++++++++++++++++++++++++++++++++++++++++++ flow/open_file.txt | 0 flow/save_as_file.txt | 0 flow/save_file.txt | 0 4 files changed, 73 insertions(+) create mode 100644 flow/new_file.txt create mode 100644 flow/open_file.txt create mode 100644 flow/save_as_file.txt create mode 100644 flow/save_file.txt diff --git a/flow/new_file.txt b/flow/new_file.txt new file mode 100644 index 0000000..e20c28d --- /dev/null +++ b/flow/new_file.txt @@ -0,0 +1,73 @@ +(Ctrl+N caught in main) + | + v ++-------------------------------------------------+ +| main::preloadRendererSendContentForCheckThenNew | ++-------------------------------------------------+ + | + v ++---------------------------------------------+ +| preload::rendererSendContentForCheckThenNew | ++---------------------------------------------+ + | + v ++-----------------------------------------+ +| renderer::preloadContentForCheckThenNew | ++-----------------------------------------+ + | | + | (if content has not changed) | (if content has changed) + | | + | v + | +-------------------------------------------+ + | | preload::mainPromptSaveDiscardableThenNew | <--------------------------------------------------------------------------+ + | +-------------------------------------------+ | + | | | + | v | + | +--------------------------------------------------------------------------------+ | + | | main::promptSaveDiscardableThenNew | | + | +--------------------------------------------------------------------------------+ | + | | | | | + | | (if select discard or cancel prompt) | (if select save as) | (if select save) | + | | | | | + | v v v | + | +---------------------------------------+ +----------------------------------+ +-------------------------------------+ | + | | main::announceFileDiscardedForNewFile | | main::preloadSaveFileThenNewFile | | main::preloadTrySaveFileThenNewFile |---+ (if no file name cached) + | +---------------------------------------+ +----------------------------------+ +-------------------------------------+ + | | | | + | | | | (if have a file name cached) + | | | | + | | v v + | | +--------------------------------------------+ + | | | preload::rendererSendContentForSaveThenNew | + | | +--------------------------------------------+ + | | | + | | v + | | +---------------------------+ + | | | preload::writeFileThenNew | + | | +---------------------------+ + | | | | + | | | (if successful write) | (if failed write) + | | | | + | | | v + | | | +---------------------------------------------+ + | | | | preload::mainRePromptSaveDiscardableThenNew |<-----------------+ + | | | +---------------------------------------------+ | + | | | | | + | | | v | + | | | +--------------------------------------+ | + | | | | main::rePromptSaveDiscardableThenNew | | + | | | +--------------------------------------+ | + | | | | | | + | | | | (if select discard) | (if select save as) | + | | | | | | + | | | | v | + | | | | +------------------------------------+ | + | | | | | main::preloadReSaveFileThenNewFile |---+ (if failed write) + | | | | +------------------------------------+ + | | | | | + | | | | | (if successful write) + | | | | | + v v v v v ++------------------------------------------------------------------------------------------------------------------------------+ +| preload::newNote | ++------------------------------------------------------------------------------------------------------------------------------+ diff --git a/flow/open_file.txt b/flow/open_file.txt new file mode 100644 index 0000000..e69de29 diff --git a/flow/save_as_file.txt b/flow/save_as_file.txt new file mode 100644 index 0000000..e69de29 diff --git a/flow/save_file.txt b/flow/save_file.txt new file mode 100644 index 0000000..e69de29 -- 2.45.2