diff --git a/Crypto Notepad/App.config b/Crypto Notepad/App.config index 82a60d9..1ea0eec 100644 --- a/Crypto Notepad/App.config +++ b/Crypto Notepad/App.config @@ -198,6 +198,9 @@ False + + False + diff --git a/Crypto Notepad/Crypto Notepad.csproj b/Crypto Notepad/Crypto Notepad.csproj index fcc56d1..6f0aff7 100644 --- a/Crypto Notepad/Crypto Notepad.csproj +++ b/Crypto Notepad/Crypto Notepad.csproj @@ -199,6 +199,7 @@ + diff --git a/Crypto Notepad/Forms/MainForm.Designer.cs b/Crypto Notepad/Forms/MainForm.Designer.cs index 043accc..9970802 100644 --- a/Crypto Notepad/Forms/MainForm.Designer.cs +++ b/Crypto Notepad/Forms/MainForm.Designer.cs @@ -67,6 +67,7 @@ public void InitializeComponent() this.changePasswordMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.lockMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.settingsMainMenu = new System.Windows.Forms.ToolStripMenuItem(); + this.pasteBoardMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.helpMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.documentationMainMenu = new System.Windows.Forms.ToolStripMenuItem(); this.checkForUpdatesMainMenu = new System.Windows.Forms.ToolStripMenuItem(); @@ -118,6 +119,7 @@ public void InitializeComponent() this.statusPanelSizeLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.statusPanelReadonlyLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.statusPanelWordwrapLabel = new System.Windows.Forms.ToolStripStatusLabel(); + this.statusPanelPasteboardLabel = new System.Windows.Forms.ToolStripStatusLabel(); this.statusPanelClipboardProgressBar = new System.Windows.Forms.ToolStripProgressBar(); this.trayIcon = new System.Windows.Forms.NotifyIcon(this.components); this.trayMenu = new System.Windows.Forms.ContextMenuStrip(this.components); @@ -130,15 +132,16 @@ public void InitializeComponent() this.fileLockedPanel = new System.Windows.Forms.Panel(); this.fileLockedCloseButton = new System.Windows.Forms.Button(); this.fileLockedOkButton = new System.Windows.Forms.Button(); - this.fileLockedKeyTextBox = new System.Windows.Forms.PlaceholderTextBox(); this.fileLockedShowKey = new System.Windows.Forms.PictureBox(); this.fileLockedLabel = new System.Windows.Forms.Label(); this.toolTip = new System.Windows.Forms.ToolTip(this.components); this.richTextBoxPanel = new System.Windows.Forms.Panel(); - this.richTextBox = new Crypto_Notepad.ExRichTextBox(); this.statusPanelTimer = new System.Windows.Forms.Timer(this.components); this.lockTimer = new System.Windows.Forms.Timer(this.components); this.clipboardTimer = new System.Windows.Forms.Timer(this.components); + this.pasteBoardTimer = new System.Windows.Forms.Timer(this.components); + this.fileLockedKeyTextBox = new System.Windows.Forms.PlaceholderTextBox(); + this.richTextBox = new Crypto_Notepad.ExRichTextBox(); this.mainMenu.SuspendLayout(); this.contextMenu.SuspendLayout(); this.searchPanel.SuspendLayout(); @@ -176,7 +179,7 @@ public void InitializeComponent() this.mainMenu.Location = new System.Drawing.Point(0, 0); this.mainMenu.Name = "mainMenu"; this.mainMenu.Padding = new System.Windows.Forms.Padding(0); - this.mainMenu.Size = new System.Drawing.Size(544, 24); + this.mainMenu.Size = new System.Drawing.Size(593, 24); this.mainMenu.TabIndex = 0; this.mainMenu.Text = "menuStrip1"; // @@ -451,7 +454,8 @@ public void InitializeComponent() this.passwordGeneratorMainMenu, this.changePasswordMainMenu, this.lockMainMenu, - this.settingsMainMenu}); + this.settingsMainMenu, + this.pasteBoardMainMenu}); this.toolsMainMenu.ForeColor = System.Drawing.SystemColors.ControlText; this.toolsMainMenu.Name = "toolsMainMenu"; this.toolsMainMenu.Size = new System.Drawing.Size(46, 24); @@ -463,7 +467,7 @@ public void InitializeComponent() this.alwaysOnTopMainMenu.CheckOnClick = true; this.alwaysOnTopMainMenu.Name = "alwaysOnTopMainMenu"; this.alwaysOnTopMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.T))); - this.alwaysOnTopMainMenu.Size = new System.Drawing.Size(241, 22); + this.alwaysOnTopMainMenu.Size = new System.Drawing.Size(245, 22); this.alwaysOnTopMainMenu.Text = "Always on Top"; this.alwaysOnTopMainMenu.Click += new System.EventHandler(this.AlwaysOnTopMainMenu_Click); // @@ -471,7 +475,7 @@ public void InitializeComponent() // this.passwordGeneratorMainMenu.Name = "passwordGeneratorMainMenu"; this.passwordGeneratorMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.P))); - this.passwordGeneratorMainMenu.Size = new System.Drawing.Size(241, 22); + this.passwordGeneratorMainMenu.Size = new System.Drawing.Size(245, 22); this.passwordGeneratorMainMenu.Text = "Password Generator"; this.passwordGeneratorMainMenu.Click += new System.EventHandler(this.PasswordGeneratorMainMenu_Click); // @@ -480,7 +484,7 @@ public void InitializeComponent() this.changePasswordMainMenu.Name = "changePasswordMainMenu"; this.changePasswordMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.P))); - this.changePasswordMainMenu.Size = new System.Drawing.Size(241, 22); + this.changePasswordMainMenu.Size = new System.Drawing.Size(245, 22); this.changePasswordMainMenu.Text = "Change Password"; this.changePasswordMainMenu.Click += new System.EventHandler(this.ChangePasswordMainMenu_Click); // @@ -488,7 +492,7 @@ public void InitializeComponent() // this.lockMainMenu.Name = "lockMainMenu"; this.lockMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.L))); - this.lockMainMenu.Size = new System.Drawing.Size(241, 22); + this.lockMainMenu.Size = new System.Drawing.Size(245, 22); this.lockMainMenu.Text = "Lock"; this.lockMainMenu.Click += new System.EventHandler(this.LockMainMenu_Click); // @@ -498,10 +502,20 @@ public void InitializeComponent() this.settingsMainMenu.ShortcutKeyDisplayString = ""; this.settingsMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) | System.Windows.Forms.Keys.T))); - this.settingsMainMenu.Size = new System.Drawing.Size(241, 22); + this.settingsMainMenu.Size = new System.Drawing.Size(245, 22); this.settingsMainMenu.Text = "Settings"; this.settingsMainMenu.Click += new System.EventHandler(this.SettingsMainMenu_Click); // + // pasteBoardMainMenu + // + this.pasteBoardMainMenu.CheckOnClick = true; + this.pasteBoardMainMenu.Name = "pasteBoardMainMenu"; + this.pasteBoardMainMenu.ShortcutKeys = ((System.Windows.Forms.Keys)(((System.Windows.Forms.Keys.Control | System.Windows.Forms.Keys.Shift) + | System.Windows.Forms.Keys.P))); + this.pasteBoardMainMenu.Size = new System.Drawing.Size(245, 22); + this.pasteBoardMainMenu.Text = "Use as Paste Board"; + this.pasteBoardMainMenu.Click += new System.EventHandler(this.PasteBoardMainMenu_Click); + // // helpMainMenu // this.helpMainMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { @@ -706,7 +720,7 @@ public void InitializeComponent() this.searchPanel.Name = "searchPanel"; this.searchPanel.RowCount = 1; this.searchPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.searchPanel.Size = new System.Drawing.Size(544, 25); + this.searchPanel.Size = new System.Drawing.Size(593, 25); this.searchPanel.TabIndex = 17; this.searchPanel.Visible = false; // @@ -718,7 +732,7 @@ public void InitializeComponent() this.searchTextBox.ForeColor = System.Drawing.Color.Black; this.searchTextBox.Location = new System.Drawing.Point(3, 5); this.searchTextBox.Name = "searchTextBox"; - this.searchTextBox.Size = new System.Drawing.Size(240, 15); + this.searchTextBox.Size = new System.Drawing.Size(289, 15); this.searchTextBox.TabIndex = 9; this.searchTextBox.TabStop = false; this.searchTextBox.TextChanged += new System.EventHandler(this.SearchTextBox_TextChanged); @@ -731,7 +745,7 @@ public void InitializeComponent() this.searchWholeWordCheckBox.Dock = System.Windows.Forms.DockStyle.Fill; this.searchWholeWordCheckBox.ForeColor = System.Drawing.Color.Black; this.searchWholeWordCheckBox.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.searchWholeWordCheckBox.Location = new System.Drawing.Point(353, 3); + this.searchWholeWordCheckBox.Location = new System.Drawing.Point(402, 3); this.searchWholeWordCheckBox.Name = "searchWholeWordCheckBox"; this.searchWholeWordCheckBox.Size = new System.Drawing.Size(94, 19); this.searchWholeWordCheckBox.TabIndex = 12; @@ -748,7 +762,7 @@ public void InitializeComponent() this.searchCaseSensitiveCheckBox.Dock = System.Windows.Forms.DockStyle.Fill; this.searchCaseSensitiveCheckBox.ForeColor = System.Drawing.Color.Black; this.searchCaseSensitiveCheckBox.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.searchCaseSensitiveCheckBox.Location = new System.Drawing.Point(249, 3); + this.searchCaseSensitiveCheckBox.Location = new System.Drawing.Point(298, 3); this.searchCaseSensitiveCheckBox.Name = "searchCaseSensitiveCheckBox"; this.searchCaseSensitiveCheckBox.Size = new System.Drawing.Size(98, 19); this.searchCaseSensitiveCheckBox.TabIndex = 11; @@ -765,7 +779,7 @@ public void InitializeComponent() this.searchCloseButton.Dock = System.Windows.Forms.DockStyle.Fill; this.searchCloseButton.Font = new System.Drawing.Font("Segoe UI Black", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.searchCloseButton.ForeColor = System.Drawing.Color.DarkGray; - this.searchCloseButton.Location = new System.Drawing.Point(525, 0); + this.searchCloseButton.Location = new System.Drawing.Point(574, 0); this.searchCloseButton.Name = "searchCloseButton"; this.searchCloseButton.Size = new System.Drawing.Size(16, 25); this.searchCloseButton.TabIndex = 16; @@ -779,7 +793,7 @@ public void InitializeComponent() this.searchFindNextButton.Cursor = System.Windows.Forms.Cursors.Hand; this.searchFindNextButton.Dock = System.Windows.Forms.DockStyle.Fill; this.searchFindNextButton.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); - this.searchFindNextButton.Location = new System.Drawing.Point(453, 0); + this.searchFindNextButton.Location = new System.Drawing.Point(502, 0); this.searchFindNextButton.Name = "searchFindNextButton"; this.searchFindNextButton.Size = new System.Drawing.Size(66, 25); this.searchFindNextButton.TabIndex = 17; @@ -827,7 +841,7 @@ public void InitializeComponent() this.toolbarPanel.Name = "toolbarPanel"; this.toolbarPanel.RowCount = 1; this.toolbarPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.toolbarPanel.Size = new System.Drawing.Size(544, 24); + this.toolbarPanel.Size = new System.Drawing.Size(593, 24); this.toolbarPanel.TabIndex = 17; this.toolbarPanel.MouseEnter += new System.EventHandler(this.ToolbarPanel_MouseEnter); // @@ -838,7 +852,7 @@ public void InitializeComponent() this.closeToolbarButton.Dock = System.Windows.Forms.DockStyle.Fill; this.closeToolbarButton.Font = new System.Drawing.Font("Segoe UI Black", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.closeToolbarButton.ForeColor = System.Drawing.Color.DarkGray; - this.closeToolbarButton.Location = new System.Drawing.Point(529, 0); + this.closeToolbarButton.Location = new System.Drawing.Point(578, 0); this.closeToolbarButton.Name = "closeToolbarButton"; this.closeToolbarButton.Size = new System.Drawing.Size(12, 24); this.closeToolbarButton.TabIndex = 17; @@ -1042,12 +1056,13 @@ public void InitializeComponent() this.statusPanelSizeLabel, this.statusPanelReadonlyLabel, this.statusPanelWordwrapLabel, + this.statusPanelPasteboardLabel, this.statusPanelClipboardProgressBar}); this.statusPanel.LayoutStyle = System.Windows.Forms.ToolStripLayoutStyle.Flow; this.statusPanel.Location = new System.Drawing.Point(0, 299); this.statusPanel.Name = "statusPanel"; this.statusPanel.ShowItemToolTips = true; - this.statusPanel.Size = new System.Drawing.Size(544, 22); + this.statusPanel.Size = new System.Drawing.Size(593, 22); this.statusPanel.SizingGrip = false; this.statusPanel.TabIndex = 18; this.statusPanel.VisibleChanged += new System.EventHandler(this.StatusPanel_VisibleChanged); @@ -1133,6 +1148,17 @@ public void InitializeComponent() this.statusPanelWordwrapLabel.Size = new System.Drawing.Size(76, 17); this.statusPanelWordwrapLabel.Text = "Word Wrap"; // + // statusPanelPasteboardLabel + // + this.statusPanelPasteboardLabel.BorderSides = System.Windows.Forms.ToolStripStatusLabelBorderSides.Right; + this.statusPanelPasteboardLabel.BorderStyle = System.Windows.Forms.Border3DStyle.Etched; + this.statusPanelPasteboardLabel.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.statusPanelPasteboardLabel.Name = "statusPanelPasteboardLabel"; + this.statusPanelPasteboardLabel.Padding = new System.Windows.Forms.Padding(5, 0, 0, 0); + this.statusPanelPasteboardLabel.Size = new System.Drawing.Size(76, 17); + this.statusPanelPasteboardLabel.Text = "Paste Board"; + this.statusPanelPasteboardLabel.Visible = false; + // // statusPanelClipboardProgressBar // this.statusPanelClipboardProgressBar.Name = "statusPanelClipboardProgressBar"; @@ -1217,7 +1243,7 @@ public void InitializeComponent() this.fileLockedPanel.Controls.Add(this.fileLockedLabel); this.fileLockedPanel.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204))); this.fileLockedPanel.ForeColor = System.Drawing.Color.Azure; - this.fileLockedPanel.Location = new System.Drawing.Point(136, 49); + this.fileLockedPanel.Location = new System.Drawing.Point(160, 49); this.fileLockedPanel.Name = "fileLockedPanel"; this.fileLockedPanel.Size = new System.Drawing.Size(261, 91); this.fileLockedPanel.TabIndex = 20; @@ -1256,20 +1282,6 @@ public void InitializeComponent() this.fileLockedOkButton.UseVisualStyleBackColor = true; this.fileLockedOkButton.Click += new System.EventHandler(this.FileLockedOkButton_Click); // - // fileLockedKeyTextBox - // - this.fileLockedKeyTextBox.Location = new System.Drawing.Point(6, 34); - this.fileLockedKeyTextBox.Name = "fileLockedKeyTextBox"; - this.fileLockedKeyTextBox.Placeholder = "Password"; - this.fileLockedKeyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray; - this.fileLockedKeyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F); - this.fileLockedKeyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray; - this.fileLockedKeyTextBox.Size = new System.Drawing.Size(231, 22); - this.fileLockedKeyTextBox.TabIndex = 8; - this.fileLockedKeyTextBox.UseSystemPasswordChar = true; - this.fileLockedKeyTextBox.TextChanged += new System.EventHandler(this.FileLockedKeyTextBox_TextChanged); - this.fileLockedKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FileLockedKeyTextBox_KeyDown); - // // fileLockedShowKey // this.fileLockedShowKey.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; @@ -1310,29 +1322,9 @@ public void InitializeComponent() this.richTextBoxPanel.Dock = System.Windows.Forms.DockStyle.Fill; this.richTextBoxPanel.Location = new System.Drawing.Point(0, 48); this.richTextBoxPanel.Name = "richTextBoxPanel"; - this.richTextBoxPanel.Size = new System.Drawing.Size(544, 226); + this.richTextBoxPanel.Size = new System.Drawing.Size(593, 226); this.richTextBoxPanel.TabIndex = 21; // - // richTextBox - // - this.richTextBox.AcceptsTab = true; - this.richTextBox.BackColor = System.Drawing.Color.Gainsboro; - this.richTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.richTextBox.ContextMenuStrip = this.contextMenu; - this.richTextBox.Dock = System.Windows.Forms.DockStyle.Fill; - this.richTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F); - this.richTextBox.ForeColor = System.Drawing.Color.Black; - this.richTextBox.Location = new System.Drawing.Point(0, 0); - this.richTextBox.Name = "richTextBox"; - this.richTextBox.Size = new System.Drawing.Size(542, 224); - this.richTextBox.TabIndex = 16; - this.richTextBox.Text = ""; - this.richTextBox.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.RichTextBox_LinkClicked); - this.richTextBox.SelectionChanged += new System.EventHandler(this.RichTextBox_SelectionChanged); - this.richTextBox.ModifiedChanged += new System.EventHandler(this.RichTextBox_ModifiedChanged); - this.richTextBox.TextChanged += new System.EventHandler(this.RichTextBox_TextChanged); - this.richTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.RichTextBox_KeyDown); - // // statusPanelTimer // this.statusPanelTimer.Interval = 1; @@ -1347,12 +1339,50 @@ public void InitializeComponent() this.clipboardTimer.Interval = 50; this.clipboardTimer.Tick += new System.EventHandler(this.ClipboardTimer_Tick); // + // pasteBoardTimer + // + this.pasteBoardTimer.Tick += new System.EventHandler(this.PasteBoardTimer_Tick); + // + // fileLockedKeyTextBox + // + this.fileLockedKeyTextBox.Location = new System.Drawing.Point(6, 34); + this.fileLockedKeyTextBox.Name = "fileLockedKeyTextBox"; + this.fileLockedKeyTextBox.Placeholder = "Password"; + this.fileLockedKeyTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray; + this.fileLockedKeyTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F); + this.fileLockedKeyTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray; + this.fileLockedKeyTextBox.Size = new System.Drawing.Size(231, 22); + this.fileLockedKeyTextBox.TabIndex = 8; + this.fileLockedKeyTextBox.UseSystemPasswordChar = true; + this.fileLockedKeyTextBox.TextChanged += new System.EventHandler(this.FileLockedKeyTextBox_TextChanged); + this.fileLockedKeyTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FileLockedKeyTextBox_KeyDown); + // + // richTextBox + // + this.richTextBox.AcceptsTab = true; + this.richTextBox.BackColor = System.Drawing.Color.Gainsboro; + this.richTextBox.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.richTextBox.ContextMenuStrip = this.contextMenu; + this.richTextBox.Dock = System.Windows.Forms.DockStyle.Fill; + this.richTextBox.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F); + this.richTextBox.ForeColor = System.Drawing.Color.Black; + this.richTextBox.Location = new System.Drawing.Point(0, 0); + this.richTextBox.Name = "richTextBox"; + this.richTextBox.Size = new System.Drawing.Size(591, 224); + this.richTextBox.TabIndex = 16; + this.richTextBox.Text = ""; + this.richTextBox.LinkClicked += new System.Windows.Forms.LinkClickedEventHandler(this.RichTextBox_LinkClicked); + this.richTextBox.SelectionChanged += new System.EventHandler(this.RichTextBox_SelectionChanged); + this.richTextBox.ModifiedChanged += new System.EventHandler(this.RichTextBox_ModifiedChanged); + this.richTextBox.TextChanged += new System.EventHandler(this.RichTextBox_TextChanged); + this.richTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.RichTextBox_KeyDown); + // // MainForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(544, 321); + this.ClientSize = new System.Drawing.Size(593, 321); this.Controls.Add(this.richTextBoxPanel); this.Controls.Add(this.searchPanel); this.Controls.Add(this.toolbarPanel); @@ -1515,5 +1545,8 @@ public void InitializeComponent() private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; private System.Windows.Forms.ToolStripMenuItem resetWindowLocationTrayMenu; private System.Windows.Forms.ToolStripMenuItem hideWindowTrayMenu; + private System.Windows.Forms.ToolStripMenuItem pasteBoardMainMenu; + private System.Windows.Forms.Timer pasteBoardTimer; + protected internal System.Windows.Forms.ToolStripStatusLabel statusPanelPasteboardLabel; } } diff --git a/Crypto Notepad/Forms/MainForm.cs b/Crypto Notepad/Forms/MainForm.cs index 614a1a3..162a279 100644 --- a/Crypto Notepad/Forms/MainForm.cs +++ b/Crypto Notepad/Forms/MainForm.cs @@ -620,6 +620,7 @@ private void LoadSettings() statusPanelSizeLabel.Visible = settings.statusPanelSize; statusPanelReadonlyLabel.Visible = settings.statusPanelReadonly; statusPanelWordwrapLabel.Visible = settings.statusPanelWordWrap; + statusPanelPasteboardLabel.Visible = settings.statusPanelPasteboard; richTextBox.WordWrap = settings.editorWrap; richTextBox.ForeColor = settings.editorForeColor; richTextBox.BackColor = settings.editorBackColor; @@ -681,6 +682,7 @@ public void MenuIcons(bool menuIcons) changePasswordMainMenu.Image = Resources.key; lockMainMenu.Image = Resources.lock_warning; settingsMainMenu.Image = Resources.gear; + pasteBoardMainMenu.Image = Resources.clipboard_text; documentationMainMenu.Image = Resources.document_text; checkForUpdatesMainMenu.Image = Resources.upload_cloud; aboutMainMenu.Image = Resources.information; @@ -961,8 +963,11 @@ private void MainWindow_FormClosing(object sender, FormClosingEventArgs e) using (StreamWriter writer = new StreamWriter(filePath)) { string encryptedText = richTextBox.Text; - Task.Run(async () => { encryptedText = await AES.Encrypt(encryptedText, PublicVar.password.Get(), null, settings.HashAlgorithm, - Convert.ToInt32(settings.PasswordIterations), Convert.ToInt32(settings.KeySize)); }).Wait(); + Task.Run(async () => + { + encryptedText = await AES.Encrypt(encryptedText, PublicVar.password.Get(), null, settings.HashAlgorithm, + Convert.ToInt32(settings.PasswordIterations), Convert.ToInt32(settings.KeySize)); + }).Wait(); writer.Write(encryptedText); writer.Close(); } @@ -1022,6 +1027,7 @@ private async void MainWindow_Load(object sender, EventArgs e) ShortcutKeys(settings.shortcutKeys); statusPanelReadonlyLabel.Text = "Readonly: " + readOnlyMainMenu.Checked.ToString(); statusPanelWordwrapLabel.Text = "Word Wrap: " + wordWrapMainMenu.Checked.ToString(); + statusPanelPasteboardLabel.Text = "Paste Board: " + pasteBoardMainMenu.Checked.ToString(); if (args.Length == 2) /*drag & drop to executable*/ { OpenAsotiations(); @@ -1503,6 +1509,7 @@ private void ToolsMainMenu_DropDownOpening(object sender, EventArgs e) { changePasswordMainMenu.Enabled = true; lockMainMenu.Enabled = true; + } } @@ -1683,6 +1690,43 @@ private void SettingsMainMenu_Click(object sender, EventArgs e) } /*Tools*/ + /*Paste Board*/ + string clipboardLastText = ""; + private void PasteBoardTimer_Tick(object sender, EventArgs e) + { + string clipboardText = Clipboard.GetText(); + if (!string.IsNullOrEmpty(clipboardText) && clipboardLastText != clipboardText) + { + clipboardLastText = clipboardText; + if (richTextBox.Text.Length > 0) + { + richTextBox.AppendText("\n\n" + clipboardText); + richTextBox.SelectionStart = richTextBox.Text.Length; + richTextBox.ScrollToCaret(); + } + else + { + richTextBox.AppendText(clipboardText); + } + } + } + + private void PasteBoardMainMenu_Click(object sender, EventArgs e) + { + if (pasteBoardMainMenu.Checked) + { + Clipboard.Clear(); + pasteBoardTimer.Start(); + statusPanelPasteboardLabel.Text = "Paste Board: " + pasteBoardMainMenu.Checked.ToString(); + } + else + { + pasteBoardTimer.Stop(); + statusPanelPasteboardLabel.Text = "Paste Board: " + pasteBoardMainMenu.Checked.ToString(); + } + } + /*Paste Board*/ + /*Help*/ private void DocumentationMainMenu_Click(object sender, EventArgs e) { @@ -2228,7 +2272,7 @@ private void VariablesMainMenu_Click(object sender, EventArgs e) string formattedTime = DateTime.Now.ToString("yyyy.MM.dd hh:mm:ss"); Debug.WriteLine("\nTime: " + formattedTime); Debug.WriteLine("PublicVar.openFileName: " + PublicVar.openFileName); - Debug.WriteLine("openFileDialog.FileName " + openFileDialog.FileName); + Debug.WriteLine("openFileDialog.FileName " + openFileDialog.FileName); Debug.WriteLine("filePath: " + filePath); Debug.WriteLine("encryptionKey: " + PublicVar.password.Get()); Debug.WriteLine("TypedPassword: " + TypedPassword.Value); @@ -2241,9 +2285,12 @@ private void VariablesMainMenu_Click(object sender, EventArgs e) } + + #endregion + } } \ No newline at end of file diff --git a/Crypto Notepad/Forms/MainForm.resx b/Crypto Notepad/Forms/MainForm.resx index 7581fc8..d1d28d5 100644 --- a/Crypto Notepad/Forms/MainForm.resx +++ b/Crypto Notepad/Forms/MainForm.resx @@ -6479,6 +6479,9 @@ 17, 56 + + 151, 56 + 99 diff --git a/Crypto Notepad/Forms/SettingsForm.Designer.cs b/Crypto Notepad/Forms/SettingsForm.Designer.cs index a03184d..a0a8d29 100644 --- a/Crypto Notepad/Forms/SettingsForm.Designer.cs +++ b/Crypto Notepad/Forms/SettingsForm.Designer.cs @@ -37,6 +37,7 @@ private void InitializeComponent() this.autoLockGroupBox = new System.Windows.Forms.GroupBox(); this.autoLockMinutesLabel = new System.Windows.Forms.Label(); this.autoLockOnMinimizeCheckBox = new System.Windows.Forms.CheckBox(); + this.lockTimeoutTextBox = new System.Windows.Forms.PlaceholderTextBox(); this.lockTimeoutLabel = new System.Windows.Forms.Label(); this.integrationGroupBox = new System.Windows.Forms.GroupBox(); this.integrateCheckBox = new System.Windows.Forms.CheckBox(); @@ -53,6 +54,7 @@ private void InitializeComponent() this.interfaceTabPage = new System.Windows.Forms.TabPage(); this.statusPanelGroupBox = new System.Windows.Forms.GroupBox(); this.statusPanelLabelsGroupBox = new System.Windows.Forms.GroupBox(); + this.statusPanelPasteboardCheckBox = new System.Windows.Forms.CheckBox(); this.statusPanelClipboardCheckBox = new System.Windows.Forms.CheckBox(); this.statusPanelWordwrapCheckBox = new System.Windows.Forms.CheckBox(); this.statusPanelReadonlyCheckBox = new System.Windows.Forms.CheckBox(); @@ -110,7 +112,6 @@ private void InitializeComponent() this.settingsNavigation = new System.Windows.Forms.ListBox(); this.fontDialog = new System.Windows.Forms.FontDialog(); this.settingsToolTip = new System.Windows.Forms.ToolTip(this.components); - this.lockTimeoutTextBox = new System.Windows.Forms.PlaceholderTextBox(); this.settingsTabControl.SuspendLayout(); this.generalTabPage.SuspendLayout(); this.autoLockGroupBox.SuspendLayout(); @@ -203,6 +204,19 @@ private void InitializeComponent() this.autoLockOnMinimizeCheckBox.UseVisualStyleBackColor = true; this.autoLockOnMinimizeCheckBox.Click += new System.EventHandler(this.AutoLockOnMinimizeCheckBox_Click); // + // lockTimeoutTextBox + // + this.lockTimeoutTextBox.Location = new System.Drawing.Point(134, 45); + this.lockTimeoutTextBox.Name = "lockTimeoutTextBox"; + this.lockTimeoutTextBox.Placeholder = ""; + this.lockTimeoutTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray; + this.lockTimeoutTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F); + this.lockTimeoutTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray; + this.lockTimeoutTextBox.Size = new System.Drawing.Size(44, 23); + this.lockTimeoutTextBox.TabIndex = 8; + this.lockTimeoutTextBox.TextChanged += new System.EventHandler(this.LockTimeoutTextBox_TextChanged); + this.lockTimeoutTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.LockTimeoutTextBox_KeyPress); + // // lockTimeoutLabel // this.lockTimeoutLabel.AutoSize = true; @@ -379,13 +393,14 @@ private void InitializeComponent() this.statusPanelGroupBox.Dock = System.Windows.Forms.DockStyle.Top; this.statusPanelGroupBox.Location = new System.Drawing.Point(6, 263); this.statusPanelGroupBox.Name = "statusPanelGroupBox"; - this.statusPanelGroupBox.Size = new System.Drawing.Size(295, 180); + this.statusPanelGroupBox.Size = new System.Drawing.Size(295, 205); this.statusPanelGroupBox.TabIndex = 4; this.statusPanelGroupBox.TabStop = false; this.statusPanelGroupBox.Text = "Status Panel"; // // statusPanelLabelsGroupBox // + this.statusPanelLabelsGroupBox.Controls.Add(this.statusPanelPasteboardCheckBox); this.statusPanelLabelsGroupBox.Controls.Add(this.statusPanelClipboardCheckBox); this.statusPanelLabelsGroupBox.Controls.Add(this.statusPanelWordwrapCheckBox); this.statusPanelLabelsGroupBox.Controls.Add(this.statusPanelReadonlyCheckBox); @@ -395,11 +410,22 @@ private void InitializeComponent() this.statusPanelLabelsGroupBox.Controls.Add(this.statusPanelLengthCheckBox); this.statusPanelLabelsGroupBox.Location = new System.Drawing.Point(9, 101); this.statusPanelLabelsGroupBox.Name = "statusPanelLabelsGroupBox"; - this.statusPanelLabelsGroupBox.Size = new System.Drawing.Size(277, 71); + this.statusPanelLabelsGroupBox.Size = new System.Drawing.Size(277, 97); this.statusPanelLabelsGroupBox.TabIndex = 9; this.statusPanelLabelsGroupBox.TabStop = false; this.statusPanelLabelsGroupBox.Text = "Labels"; // + // statusPanelPasteboardCheckBox + // + this.statusPanelPasteboardCheckBox.AutoSize = true; + this.statusPanelPasteboardCheckBox.Location = new System.Drawing.Point(6, 72); + this.statusPanelPasteboardCheckBox.Name = "statusPanelPasteboardCheckBox"; + this.statusPanelPasteboardCheckBox.Size = new System.Drawing.Size(88, 19); + this.statusPanelPasteboardCheckBox.TabIndex = 10; + this.statusPanelPasteboardCheckBox.Text = "Paste Board"; + this.statusPanelPasteboardCheckBox.UseVisualStyleBackColor = true; + this.statusPanelPasteboardCheckBox.Click += new System.EventHandler(this.StatusPanelPasteboardCheckBox_Click); + // // statusPanelClipboardCheckBox // this.statusPanelClipboardCheckBox.AutoSize = true; @@ -1048,19 +1074,6 @@ private void InitializeComponent() this.fontDialog.ShowEffects = false; this.fontDialog.Apply += new System.EventHandler(this.FontDialog_Apply); // - // lockTimeoutTextBox - // - this.lockTimeoutTextBox.Location = new System.Drawing.Point(134, 45); - this.lockTimeoutTextBox.Name = "lockTimeoutTextBox"; - this.lockTimeoutTextBox.Placeholder = ""; - this.lockTimeoutTextBox.PlaceholderActiveForeColor = System.Drawing.Color.DarkGray; - this.lockTimeoutTextBox.PlaceholderFont = new System.Drawing.Font("Segoe UI", 8.25F); - this.lockTimeoutTextBox.PlaceholderForeColor = System.Drawing.Color.DarkGray; - this.lockTimeoutTextBox.Size = new System.Drawing.Size(44, 23); - this.lockTimeoutTextBox.TabIndex = 8; - this.lockTimeoutTextBox.TextChanged += new System.EventHandler(this.LockTimeoutTextBox_TextChanged); - this.lockTimeoutTextBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.LockTimeoutTextBox_KeyPress); - // // SettingsForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); @@ -1188,5 +1201,6 @@ private void InitializeComponent() private System.Windows.Forms.CheckBox shortcutKeysCheckBox; private System.Windows.Forms.CheckBox openTxtUnencryptedCheckBox; private System.Windows.Forms.CheckBox trayMenuCheckBox; + private System.Windows.Forms.CheckBox statusPanelPasteboardCheckBox; } } \ No newline at end of file diff --git a/Crypto Notepad/Forms/SettingsForm.cs b/Crypto Notepad/Forms/SettingsForm.cs index ee50080..fb27166 100644 --- a/Crypto Notepad/Forms/SettingsForm.cs +++ b/Crypto Notepad/Forms/SettingsForm.cs @@ -65,9 +65,10 @@ private void LoadSettings() statusPanelSizeCheckBox.Checked = settings.statusPanelSize; statusPanelReadonlyCheckBox.Checked = settings.statusPanelReadonly; statusPanelWordwrapCheckBox.Checked = settings.statusPanelWordWrap; + statusPanelPasteboardCheckBox.Checked = settings.statusPanelPasteboard; statusPanelClipboardCheckBox.Checked = settings.statusPanelClipboard; encryptionHintLabel.Visible = settings.encryptionHint; - } + } #endregion @@ -188,8 +189,8 @@ private void SettingsNavigation_Click(object sender, EventArgs e) break; case 3: settingsTabControl.SelectedTab = encryptionTabPage; - break; - } + break; + } } private void SettingsTabControl_SelectedIndexChanged(object sender, EventArgs e) @@ -202,7 +203,7 @@ private void ToolbarVisibleCheckBox_Click(object sender, EventArgs e) MainForm main = Owner as MainForm; main.toolbarPanel.Visible = toolbarVisibleCheckBox.Checked; main.richTextBox.SetInnerMargins(Convert.ToInt32(settings.editorPaddingLeft), 0, 0, 0); - settings.toolbarVisible= toolbarVisibleCheckBox.Checked; + settings.toolbarVisible = toolbarVisibleCheckBox.Checked; } private void AssociateCheckBox_Click(object sender, EventArgs e) @@ -242,7 +243,7 @@ private void EditorPaddingLeftTextBox_TextChanged(object sender, EventArgs e) main.richTextBox.Refresh(); settings.editorPaddingLeft = editorPaddingLeftTextBox.Text; } - } + } } private void LockTimeoutTextBox_TextChanged(object sender, EventArgs e) @@ -391,8 +392,8 @@ private void ToolbarBackColor_Click(object sender, EventArgs e) toolbarBackColor.BackColor = colorDialog.Color; } } - } - + } + private void ToolbarBorderCheckBox_Click(object sender, EventArgs e) { MainForm main = Owner as MainForm; @@ -488,8 +489,8 @@ private void PasswordIterationsTextBox_TextChanged(object sender, EventArgs e) { settings.PasswordIterations = passwordIterationsTextBox.Text; } - } - + } + private void MinimizeToTrayCheckBox_Click(object sender, EventArgs e) { @@ -594,6 +595,15 @@ private void StatusPanelWordwrapCheckBox_Click(object sender, EventArgs e) settings.statusPanelWordWrap = statusPanelWordwrapCheckBox.Checked; main.StatusPanelFileInfo(); } + + private void StatusPanelPasteboardCheckBox_Click(object sender, EventArgs e) + { + MainForm main = Owner as MainForm; + main.statusPanelPasteboardLabel.Visible = statusPanelPasteboardCheckBox.Checked; + settings.statusPanelPasteboard = statusPanelPasteboardCheckBox.Checked; + main.StatusPanelFileInfo(); + } + private void StatusPanelClipboardCheckBox_Click(object sender, EventArgs e) { settings.statusPanelClipboard = statusPanelClipboardCheckBox.Checked; diff --git a/Crypto Notepad/Properties/Resources.Designer.cs b/Crypto Notepad/Properties/Resources.Designer.cs index 8c6a79e..9d42889 100644 --- a/Crypto Notepad/Properties/Resources.Designer.cs +++ b/Crypto Notepad/Properties/Resources.Designer.cs @@ -150,6 +150,16 @@ internal static System.Drawing.Bitmap clipboard_minus { } } + /// + /// Looks up a localized resource of type System.Drawing.Bitmap. + /// + internal static System.Drawing.Bitmap clipboard_text { + get { + object obj = ResourceManager.GetObject("clipboard_text", resourceCulture); + return ((System.Drawing.Bitmap)(obj)); + } + } + /// /// Looks up a localized resource of type System.Drawing.Bitmap. /// diff --git a/Crypto Notepad/Properties/Resources.resx b/Crypto Notepad/Properties/Resources.resx index 08e1208..c1ae435 100644 --- a/Crypto Notepad/Properties/Resources.resx +++ b/Crypto Notepad/Properties/Resources.resx @@ -661,19 +661,19 @@ - iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAACZUlEQVQ4T6WQXUiTYRTHz3lf - ELwKBiUsK+w68yLCoBuXIeiCQBA/ohWpy0l2ITQ/UlkY+ZGps4WlLsUmbLPUaQua5nSR5ijTRMUioyi1 - Ii9CWJRxes6rk5IVRAd+PIfzP//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vKilGX6ERvEEOV6d8AVYEBW98Eap1125Aqv5zOvnFK9V7AB90wszqHXMuA + ecPety5dJK4HYcxrlLzTRDOrjROOZU4bjUsTzoI2hCV9IIX39SzZ3IyaJ5hSt4t9AZjS7IG1VljvEH4B + Hhtsdnq9IeoNkW+2kV1cjXt1jZJyLd35PYyn1XoBYyWxbC6WMWNQ4KzYyXtTIF0FO+gqDMBVE8isMYDR + 3EOsLdi4q6nGLj5rRmGu9AjxMmC4KBbPjIrv/Qn8HDrFYoOSc4cVsj81hjJSmABjZ6BtH/MdZdzMK5KX + /e9gQB2FZ/IqM5VBzJpCxVIkaacVpCQqeFN8HMaT4dlBaIzBeuOIf1mSDHiVtxvP64v8cJwUJ0jiY72S + vPMKpouPiWXpzgegIY6a1AQG1eESwC8Z0J0TiWcoGacxWD6BqzaE9ZeXYLUa5kqgLgrjNQGbv4z9dsR2 + gC07go2+EzCSCKNJLNQHY7mXSndrqQBUYb5+VLwD0R87i+3WX07Qkh7ubM9U8lylpF21C9vNYHLTr1Ca + koyr6oLIgmjPDBNW0pKudPp2ZckAof3C8r//H5Zm/QIUvwCCWu9I7G3r2wAAAABJRU5ErkJggg== @@ -1124,4 +1123,7 @@ ..\Resources\application.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + + ..\Resources\clipboard-text.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a + \ No newline at end of file diff --git a/Crypto Notepad/Properties/Settings.Designer.cs b/Crypto Notepad/Properties/Settings.Designer.cs index 73f43a6..fdc383b 100644 --- a/Crypto Notepad/Properties/Settings.Designer.cs +++ b/Crypto Notepad/Properties/Settings.Designer.cs @@ -829,5 +829,18 @@ public bool trayMenu { this["trayMenu"] = value; } } + + [global::System.Configuration.UserScopedSettingAttribute()] + [global::System.Configuration.SettingsProviderAttribute(typeof(PortableSettingsProvider))] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Configuration.DefaultSettingValueAttribute("False")] + public bool statusPanelPasteboard { + get { + return ((bool)(this["statusPanelPasteboard"])); + } + set { + this["statusPanelPasteboard"] = value; + } + } } } diff --git a/Crypto Notepad/Properties/Settings.settings b/Crypto Notepad/Properties/Settings.settings index 5ee66c4..cb80980 100644 --- a/Crypto Notepad/Properties/Settings.settings +++ b/Crypto Notepad/Properties/Settings.settings @@ -188,5 +188,8 @@ False + + False + \ No newline at end of file diff --git a/Crypto Notepad/Resources/clipboard-text.png b/Crypto Notepad/Resources/clipboard-text.png new file mode 100644 index 0000000..f231987 Binary files /dev/null and b/Crypto Notepad/Resources/clipboard-text.png differ