From 9f4de9e74d7bd3db6e6c98ecdb025cdecbb83b54 Mon Sep 17 00:00:00 2001
From: shubhambatra3019 <31996668+shubhambatra3019@users.noreply.github.com>
Date: Sat, 30 Jun 2018 16:47:27 -0400
Subject: [PATCH] Added info labels for both functinalities.
---
mac Organizer/Base.lproj/Main.storyboard | 47 ++++++++++++-------
.../DeleteDuplicatesViewController.swift | 9 +++-
mac Organizer/OrganizeViewController.swift | 9 +++-
3 files changed, 47 insertions(+), 18 deletions(-)
diff --git a/mac Organizer/Base.lproj/Main.storyboard b/mac Organizer/Base.lproj/Main.storyboard
index e30ae97..6fbd973 100644
--- a/mac Organizer/Base.lproj/Main.storyboard
+++ b/mac Organizer/Base.lproj/Main.storyboard
@@ -734,7 +734,7 @@
-
+
@@ -764,11 +764,10 @@
-
-
-
-
-
+
+
+
+
@@ -776,15 +775,19 @@
-
+
+
+
+
-
-
+
+
+
@@ -801,7 +804,7 @@
-
+
-
+
+
+
+
+
+
+
+
+
-
+
+
-
-
+
+
+
+
+
diff --git a/mac Organizer/DeleteDuplicatesViewController.swift b/mac Organizer/DeleteDuplicatesViewController.swift
index dd5b5a5..cd517cd 100644
--- a/mac Organizer/DeleteDuplicatesViewController.swift
+++ b/mac Organizer/DeleteDuplicatesViewController.swift
@@ -16,12 +16,19 @@ class DeleteDuplicatesViewController: NSViewController {
@IBOutlet weak var folderPickedLabel: NSTextField!
+ @IBOutlet weak var infoLabel: NSTextField!
+
var folderPicked = ""
+ let info = "Func: Deletes duplicate files and archives from the chosen folder. Moves them to trash where they can be reviewed by you before being deleted permanently."
+
override func viewDidLoad() {
super.viewDidLoad()
+ infoLabel.stringValue = info
+ infoLabel.usesSingleLineMode = false
+ infoLabel.cell?.wraps = true
NSLayoutConstraint.activate([
- self.view.widthAnchor.constraint(equalToConstant: 450),
+ self.view.widthAnchor.constraint(equalToConstant: 500),
self.view.heightAnchor.constraint(equalToConstant: 300)
])
}
diff --git a/mac Organizer/OrganizeViewController.swift b/mac Organizer/OrganizeViewController.swift
index 96092ae..831115b 100644
--- a/mac Organizer/OrganizeViewController.swift
+++ b/mac Organizer/OrganizeViewController.swift
@@ -18,12 +18,19 @@ class OrganizeViewController: NSViewController, FileManagerDelegate {
@IBOutlet var folderPickedLabel: NSTextField!
+ @IBOutlet weak var InfoLabel: NSTextField!
+
var folderPicked = ""
+ let info = "Func: Organizes files in the chosen folder according to the file type. Creates a new folder 'organized' and move unorganized files there in respective filetype folders."
+
override func viewDidLoad() {
super.viewDidLoad()
+ InfoLabel.stringValue = info
+ InfoLabel.usesSingleLineMode = false
+ InfoLabel.cell?.wraps = true
NSLayoutConstraint.activate([
- self.view.widthAnchor.constraint(equalToConstant: 450),
+ self.view.widthAnchor.constraint(equalToConstant: 500),
self.view.heightAnchor.constraint(equalToConstant: 300)
])
}