From 5b57a7200bcb2f0298ea284234f2465d9749c2f3 Mon Sep 17 00:00:00 2001
From: Nicolai Kozel <kozeln@mcmaster.ca>
Date: Mon, 21 Nov 2016 12:46:21 -0500
Subject: [PATCH] adding additional help menu dialogs

---
 .../View_Models/HelpContext.Designer.cs       | 32 +++++++++++++++++--
 .../Gifitti/View_Models/HelpContext.cs        | 10 ++++++
 2 files changed, 40 insertions(+), 2 deletions(-)

diff --git a/src/Gifitti/Gifitti/View_Models/HelpContext.Designer.cs b/src/Gifitti/Gifitti/View_Models/HelpContext.Designer.cs
index fc6062e..ec7abe0 100644
--- a/src/Gifitti/Gifitti/View_Models/HelpContext.Designer.cs
+++ b/src/Gifitti/Gifitti/View_Models/HelpContext.Designer.cs
@@ -35,11 +35,15 @@
             this.openingGIF = new System.Windows.Forms.LinkLabel();
             this.label1 = new System.Windows.Forms.Label();
             this.richTextBox1 = new System.Windows.Forms.RichTextBox();
+            this.playbackSpeed = new System.Windows.Forms.LinkLabel();
+            this.resize = new System.Windows.Forms.LinkLabel();
             this.groupBox1.SuspendLayout();
             this.SuspendLayout();
             // 
             // groupBox1
             // 
+            this.groupBox1.Controls.Add(this.resize);
+            this.groupBox1.Controls.Add(this.playbackSpeed);
             this.groupBox1.Controls.Add(this.pickFrames);
             this.groupBox1.Controls.Add(this.savingGIF);
             this.groupBox1.Controls.Add(this.savingImage);
@@ -114,7 +118,29 @@
             this.richTextBox1.TabIndex = 2;
             this.richTextBox1.Text = "";
             // 
-            // Form2
+            // playbackSpeed
+            // 
+            this.playbackSpeed.AutoSize = true;
+            this.playbackSpeed.Location = new System.Drawing.Point(6, 194);
+            this.playbackSpeed.Name = "playbackSpeed";
+            this.playbackSpeed.Size = new System.Drawing.Size(110, 17);
+            this.playbackSpeed.TabIndex = 5;
+            this.playbackSpeed.TabStop = true;
+            this.playbackSpeed.Text = "Playback Speed";
+            this.playbackSpeed.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.playbackSpeed_LinkClicked);
+            // 
+            // resize
+            // 
+            this.resize.AutoSize = true;
+            this.resize.Location = new System.Drawing.Point(6, 237);
+            this.resize.Name = "resize";
+            this.resize.Size = new System.Drawing.Size(62, 17);
+            this.resize.TabIndex = 6;
+            this.resize.TabStop = true;
+            this.resize.Text = "Resizing";
+            this.resize.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.resize_LinkClicked);
+            // 
+            // HelpContext
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
@@ -122,7 +148,7 @@
             this.Controls.Add(this.richTextBox1);
             this.Controls.Add(this.label1);
             this.Controls.Add(this.groupBox1);
-            this.Name = "Form2";
+            this.Name = "HelpContext";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
             this.Text = "Help";
             this.groupBox1.ResumeLayout(false);
@@ -141,5 +167,7 @@
         private System.Windows.Forms.LinkLabel pickFrames;
         private System.Windows.Forms.Label label1;
         private System.Windows.Forms.RichTextBox richTextBox1;
+        private System.Windows.Forms.LinkLabel resize;
+        private System.Windows.Forms.LinkLabel playbackSpeed;
     }
 }
\ No newline at end of file
diff --git a/src/Gifitti/Gifitti/View_Models/HelpContext.cs b/src/Gifitti/Gifitti/View_Models/HelpContext.cs
index 38dd755..900c492 100644
--- a/src/Gifitti/Gifitti/View_Models/HelpContext.cs
+++ b/src/Gifitti/Gifitti/View_Models/HelpContext.cs
@@ -62,5 +62,15 @@ namespace Gifitti.View_Models
         {
             richTextBox1.Text = "To select the range of frames, simply use the boxes in the bottom center of the window to adjust which frames are displayed and saved. If the range is out of bounds, the GIF may appear choppy or simply stop.";
         }
+
+        private void playbackSpeed_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
+        {
+            richTextBox1.Text = "To change the playback speed, simply slide the playback speed track bar left or right. Left slows down the GIF, and right speeds up the GIF.";
+        }
+
+        private void resize_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
+        {
+            richTextBox1.Text = "To resize and export the GIF, click File->Resize. A dialog window will appear prompting you for a new width and height. Enter the desired sizes and click save to save the GIF as normal.";
+        }
     }
 }
-- 
GitLab