mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-24 21:43:20 +00:00
Add user folder menu
This commit is contained in:
parent
c43a5904ec
commit
86e63a65cd
3 changed files with 52 additions and 18 deletions
50
Toolbox/MainForm.Designer.cs
generated
50
Toolbox/MainForm.Designer.cs
generated
|
@ -46,6 +46,7 @@
|
|||
this.batchToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.hashCalculatorToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.batchExportTexturesAllSupportedFormatsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.batchExportModelsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.experimentalToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.windowsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.cascadeToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
|
@ -63,6 +64,7 @@
|
|||
this.reportBugToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.requestFeatureToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.githubToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.donateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.stPanel1 = new Toolbox.Library.Forms.STPanel();
|
||||
this.tabForms = new Toolbox.Library.Forms.STTabControl();
|
||||
this.tabControlContextMenuStrip = new Toolbox.Library.Forms.STContextMenuStrip(this.components);
|
||||
|
@ -74,7 +76,7 @@
|
|||
this.stToolStrip1 = new Toolbox.Library.Forms.STToolStrip();
|
||||
this.saveToolStripButton = new System.Windows.Forms.ToolStripButton();
|
||||
this.updateToolstrip = new System.Windows.Forms.ToolStripButton();
|
||||
this.batchExportModelsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.openUserFolderToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.stPanel1.SuspendLayout();
|
||||
this.tabControlContextMenuStrip.SuspendLayout();
|
||||
|
@ -116,6 +118,7 @@
|
|||
this.recentToolStripMenuItem,
|
||||
this.saveToolStripMenuItem,
|
||||
this.saveAsToolStripMenuItem,
|
||||
this.openUserFolderToolStripMenuItem,
|
||||
this.exitToolStripMenuItem});
|
||||
this.fileToolStripMenuItem.Name = "fileToolStripMenuItem";
|
||||
this.fileToolStripMenuItem.Size = new System.Drawing.Size(37, 21);
|
||||
|
@ -124,40 +127,40 @@
|
|||
// newToolStripMenuItem
|
||||
//
|
||||
this.newToolStripMenuItem.Name = "newToolStripMenuItem";
|
||||
this.newToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
|
||||
this.newToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.newToolStripMenuItem.Text = "New";
|
||||
//
|
||||
// newFromFileToolStripMenuItem
|
||||
//
|
||||
this.newFromFileToolStripMenuItem.Name = "newFromFileToolStripMenuItem";
|
||||
this.newFromFileToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
|
||||
this.newFromFileToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.newFromFileToolStripMenuItem.Text = "New From File";
|
||||
//
|
||||
// openToolStripMenuItem
|
||||
//
|
||||
this.openToolStripMenuItem.Name = "openToolStripMenuItem";
|
||||
this.openToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
|
||||
this.openToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.openToolStripMenuItem.Text = "Open";
|
||||
this.openToolStripMenuItem.Click += new System.EventHandler(this.openToolStripMenuItem_Click);
|
||||
//
|
||||
// openFolderToolStripMenuItem
|
||||
//
|
||||
this.openFolderToolStripMenuItem.Name = "openFolderToolStripMenuItem";
|
||||
this.openFolderToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
|
||||
this.openFolderToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.openFolderToolStripMenuItem.Text = "Open (Folder)";
|
||||
this.openFolderToolStripMenuItem.Click += new System.EventHandler(this.openFolderToolStripMenuItem_Click);
|
||||
//
|
||||
// recentToolStripMenuItem
|
||||
//
|
||||
this.recentToolStripMenuItem.Name = "recentToolStripMenuItem";
|
||||
this.recentToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
|
||||
this.recentToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.recentToolStripMenuItem.Text = "Recent";
|
||||
//
|
||||
// saveToolStripMenuItem
|
||||
//
|
||||
this.saveToolStripMenuItem.Enabled = false;
|
||||
this.saveToolStripMenuItem.Name = "saveToolStripMenuItem";
|
||||
this.saveToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
|
||||
this.saveToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.saveToolStripMenuItem.Text = "Save";
|
||||
this.saveToolStripMenuItem.Click += new System.EventHandler(this.saveToolStripMenuItem_Click);
|
||||
//
|
||||
|
@ -165,14 +168,14 @@
|
|||
//
|
||||
this.saveAsToolStripMenuItem.Enabled = false;
|
||||
this.saveAsToolStripMenuItem.Name = "saveAsToolStripMenuItem";
|
||||
this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
|
||||
this.saveAsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.saveAsToolStripMenuItem.Text = "Save As";
|
||||
this.saveAsToolStripMenuItem.Click += new System.EventHandler(this.saveAsToolStripMenuItem_Click);
|
||||
//
|
||||
// exitToolStripMenuItem
|
||||
//
|
||||
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
||||
this.exitToolStripMenuItem.Size = new System.Drawing.Size(150, 22);
|
||||
this.exitToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.exitToolStripMenuItem.Text = "Exit";
|
||||
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
|
||||
//
|
||||
|
@ -221,6 +224,13 @@
|
|||
this.batchExportTexturesAllSupportedFormatsToolStripMenuItem.Text = "Batch Export Textures (All Supported Formats)";
|
||||
this.batchExportTexturesAllSupportedFormatsToolStripMenuItem.Click += new System.EventHandler(this.batchExportTexturesAllSupportedFormatsToolStripMenuItem_Click);
|
||||
//
|
||||
// batchExportModelsToolStripMenuItem
|
||||
//
|
||||
this.batchExportModelsToolStripMenuItem.Name = "batchExportModelsToolStripMenuItem";
|
||||
this.batchExportModelsToolStripMenuItem.Size = new System.Drawing.Size(316, 22);
|
||||
this.batchExportModelsToolStripMenuItem.Text = "Batch Export Models";
|
||||
this.batchExportModelsToolStripMenuItem.Click += new System.EventHandler(this.batchExportModelsToolStripMenuItem_Click);
|
||||
//
|
||||
// experimentalToolStripMenuItem
|
||||
//
|
||||
this.experimentalToolStripMenuItem.Name = "experimentalToolStripMenuItem";
|
||||
|
@ -313,7 +323,8 @@
|
|||
this.tutorialToolStripMenuItem,
|
||||
this.reportBugToolStripMenuItem,
|
||||
this.requestFeatureToolStripMenuItem1,
|
||||
this.githubToolStripMenuItem});
|
||||
this.githubToolStripMenuItem,
|
||||
this.donateToolStripMenuItem});
|
||||
this.requestFeatureToolStripMenuItem.Name = "requestFeatureToolStripMenuItem";
|
||||
this.requestFeatureToolStripMenuItem.Size = new System.Drawing.Size(44, 21);
|
||||
this.requestFeatureToolStripMenuItem.Text = "Help";
|
||||
|
@ -353,6 +364,13 @@
|
|||
this.githubToolStripMenuItem.Text = "Github";
|
||||
this.githubToolStripMenuItem.Click += new System.EventHandler(this.githubToolStripMenuItem_Click);
|
||||
//
|
||||
// donateToolStripMenuItem
|
||||
//
|
||||
this.donateToolStripMenuItem.Name = "donateToolStripMenuItem";
|
||||
this.donateToolStripMenuItem.Size = new System.Drawing.Size(158, 22);
|
||||
this.donateToolStripMenuItem.Text = "Donate";
|
||||
this.donateToolStripMenuItem.Click += new System.EventHandler(this.donateToolStripMenuItem_Click);
|
||||
//
|
||||
// stPanel1
|
||||
//
|
||||
this.stPanel1.Controls.Add(this.menuStrip1);
|
||||
|
@ -483,12 +501,12 @@
|
|||
this.updateToolstrip.ToolTipText = "Update Tool";
|
||||
this.updateToolstrip.Click += new System.EventHandler(this.updateToolstrip_Click);
|
||||
//
|
||||
// batchExportModelsToolStripMenuItem
|
||||
// openUserFolderToolStripMenuItem
|
||||
//
|
||||
this.batchExportModelsToolStripMenuItem.Name = "batchExportModelsToolStripMenuItem";
|
||||
this.batchExportModelsToolStripMenuItem.Size = new System.Drawing.Size(316, 22);
|
||||
this.batchExportModelsToolStripMenuItem.Text = "Batch Export Models";
|
||||
this.batchExportModelsToolStripMenuItem.Click += new System.EventHandler(this.batchExportModelsToolStripMenuItem_Click);
|
||||
this.openUserFolderToolStripMenuItem.Name = "openUserFolderToolStripMenuItem";
|
||||
this.openUserFolderToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
|
||||
this.openUserFolderToolStripMenuItem.Text = "Open User Folder";
|
||||
this.openUserFolderToolStripMenuItem.Click += new System.EventHandler(this.openUserFolderToolStripMenuItem_Click);
|
||||
//
|
||||
// MainForm
|
||||
//
|
||||
|
@ -572,5 +590,7 @@
|
|||
private System.Windows.Forms.ToolStripMenuItem hashCalculatorToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem batchExportTexturesAllSupportedFormatsToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem batchExportModelsToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem donateToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem openUserFolderToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1608,5 +1608,19 @@ namespace Toolbox
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void donateToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
WebUtil.OpenDonation();
|
||||
}
|
||||
|
||||
private void openUserFolderToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var userDir = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "SwitchToolbox");
|
||||
if (!Directory.Exists(userDir))
|
||||
Directory.CreateDirectory(userDir);
|
||||
|
||||
Process.Start("explorer.exe", userDir);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -127,7 +127,7 @@
|
|||
<data name="BtnMdiMinimize.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6
|
||||
JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAACXBIWXMAAAsQAAALEAGtI711AAAAGHRF
|
||||
JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAACXBIWXMAAAsOAAALDgFAvuFBAAAAGHRF
|
||||
WHRTb2Z0d2FyZQBwYWludC5uZXQgNC4xLjVkR1hSAAAAi0lEQVRYR83RMQ6DMBQFQc7AeTicb+4EKVU0
|
||||
wlSwxTRb/GfJ25wzibGAsYCxgLGAsYCxgLGAsYCxgLGAsYCxgLGAsYCxgLGAcWWMsX8dN+26scK48huc
|
||||
Nx26scK4co79jV959GHNr3wCYwFjAWMBYwFjAWMBYwFjAWMBYwFjAWMBYwFjAWMB4/vm9gElTa5pEBd3
|
||||
|
@ -137,7 +137,7 @@
|
|||
<data name="BtnMdiMinMax.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6
|
||||
JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAACXBIWXMAAAsPAAALDwGS+QOlAAAAGHRF
|
||||
JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAACXBIWXMAAAsNAAALDQHtB8AsAAAAGHRF
|
||||
WHRTb2Z0d2FyZQBwYWludC5uZXQgNC4xLjVkR1hSAAAAtElEQVRYR83VsQ2DQBAFUYqgIVqgyuvyDNIF
|
||||
BOPdH8EET7LGKz6Rvc05lTAaYDTAaIDRAKMBRgOMBhgNMBpgNMBogNEAY2eMsV+O0E7P6GDsrMEZOugZ
|
||||
HYyde2yNnuszub/77MX+jiY3FYydZDS5qWDsJKPJTQVjJxlNbioYO8loclPB2ElGk5sKxs5jVPtzkXj1
|
||||
|
@ -147,7 +147,7 @@
|
|||
<data name="BtnMdiClose.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACYAAAAmCAYAAACoPemuAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6
|
||||
JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAACXBIWXMAAAsQAAALEAGtI711AAAAGHRF
|
||||
JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAACXBIWXMAAAsOAAALDgFAvuFBAAAAGHRF
|
||||
WHRTb2Z0d2FyZQBwYWludC5uZXQgNC4xLjVkR1hSAAAAuklEQVRYR83QMQrDMBAFURcucoXcVsfRLWVt
|
||||
sU2YhFVk8BQPwUjgj48xhhJGA4wGGA0wGmA0wGiA0QCjAUYDjAYYDTAaYDTAWNF7nwffpcqbbzBW/frw
|
||||
zqiAcQUN2B0VMK6KIa21M9wxKmBclYNyIL1ZhXGVdlgOyoGf9//AWDFHvKY3DbljHMaKHBUn3e+Ow1iR
|
||||
|
|
Loading…
Reference in a new issue