aboutsummaryrefslogtreecommitdiff
path: root/src/util/SelectionManager.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-02-05 11:22:10 -0500
committerbob <bcz@cs.brown.edu>2019-02-05 11:22:10 -0500
commit58c7742c18f82fe854784b083dfa723a8f256b72 (patch)
tree7f5df647e16b225c81db90a18e67bdca5be067b1 /src/util/SelectionManager.ts
parent00a4534c535281aaecf4b47da64f1a0770e3bf68 (diff)
lots of reorganization
Diffstat (limited to 'src/util/SelectionManager.ts')
-rw-r--r--src/util/SelectionManager.ts12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/SelectionManager.ts b/src/util/SelectionManager.ts
index 2a63248c4..0759ae110 100644
--- a/src/util/SelectionManager.ts
+++ b/src/util/SelectionManager.ts
@@ -1,13 +1,13 @@
-import { DocumentView } from "../views/nodes/DocumentView";
+import { CollectionFreeFormDocumentView } from "../views/nodes/CollectionFreeFormDocumentView";
import { observable, action } from "mobx";
export namespace SelectionManager {
class Manager {
@observable
- SelectedDocuments: Array<DocumentView> = [];
+ SelectedDocuments: Array<CollectionFreeFormDocumentView> = [];
@action
- SelectDoc(doc: DocumentView, ctrlPressed: boolean): void {
+ SelectDoc(doc: CollectionFreeFormDocumentView, ctrlPressed: boolean): void {
// if doc is not in SelectedDocuments, add it
if (!ctrlPressed) {
manager.SelectedDocuments = [];
@@ -21,11 +21,11 @@ export namespace SelectionManager {
const manager = new Manager;
- export function SelectDoc(doc: DocumentView, ctrlPressed: boolean): void {
+ export function SelectDoc(doc: CollectionFreeFormDocumentView, ctrlPressed: boolean): void {
manager.SelectDoc(doc, ctrlPressed)
}
- export function IsSelected(doc: DocumentView): boolean {
+ export function IsSelected(doc: CollectionFreeFormDocumentView): boolean {
return manager.SelectedDocuments.indexOf(doc) !== -1;
}
@@ -33,7 +33,7 @@ export namespace SelectionManager {
manager.SelectedDocuments = []
}
- export function SelectedDocuments(): Array<DocumentView> {
+ export function SelectedDocuments(): Array<CollectionFreeFormDocumentView> {
return manager.SelectedDocuments;
}
} \ No newline at end of file