WIP archive controllers

This commit is contained in:
2021-06-23 09:40:44 -06:00
parent 6348a6a6a6
commit 3f25b56d42
7 changed files with 101 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
package nat;
import nat.ArchiveController;
interface ArchiveUI {
/**
* Prompt the user to enter text
*/
function enterText(?minLength:Int, ?maxLength:Int):String;
/**
* Prompt the user to enter a number
*/
function enterNumber(?min:Float, ?max:Float, ?inStepsOf:Float):Float;
/**
* Prompt the user to choose a single Entry
*/
function chooseEntry(archive:Archive):Entry;
/**
* Prompt the user to choose multiple Entries
*/
function chooseEntries(archive:Archive, ?min:Int, ?max:Int):Array<Entry>;
/**
* Update the interface to reflect changes made to Entries through commands
*/
function handleChanges(changeSet:ChangeSet):Void;
}