1
0
mirror of synced 2024-11-12 02:00:50 +01:00

More fixes to image editor

This commit is contained in:
KillzXGaming 2019-04-27 12:31:38 -04:00
parent 5c2e09f849
commit f353042a5c
6 changed files with 11 additions and 18 deletions

Binary file not shown.

View File

@ -113,6 +113,10 @@ namespace Switch_Toolbox.Library.Forms
SetEditorOrientation(Runtime.ImageEditor.DisplayVertical);
//If it's horizontal we need to update it manually
if (!Runtime.ImageEditor.DisplayVertical)
SetOrientation();
propertyGridToolStripMenuItem.Checked = Runtime.ImageEditor.ShowPropertiesPanel;
if (!propertyGridToolStripMenuItem.Checked)
@ -122,21 +126,6 @@ namespace Switch_Toolbox.Library.Forms
if (ShowChannelEditor)
LoadChannelEditor(null);
if (PropertyShowTop)
{
splitContainer1.Panel1.Controls.Add(propertiesEditor);
splitContainer1.Panel2.Controls.Add(stPanel1);
splitContainer1.Orientation = Orientation.Horizontal;
}
else
{
splitContainer1.Panel2.Controls.Add(propertiesEditor);
splitContainer1.Panel1.Controls.Add(stPanel1);
splitContainer1.Orientation = Orientation.Vertical;
}
OnDataAcquiredEvent += new DataAcquired(ThreadReportsDataAquiredEvent);
}
@ -682,6 +671,12 @@ namespace Switch_Toolbox.Library.Forms
}
private void displayVerticalToolStripMenuItem_CheckedChanged(object sender, EventArgs e)
{
SetOrientation();
Config.Save();
}
private void SetOrientation()
{
if (displayVerticalToolStripMenuItem.Checked)
{
@ -693,8 +688,6 @@ namespace Switch_Toolbox.Library.Forms
}
Runtime.ImageEditor.DisplayVertical = displayVerticalToolStripMenuItem.Checked;
Config.Save();
}
private void displayVerticalToolStripMenuItem_Click(object sender, EventArgs e)
@ -772,10 +765,10 @@ namespace Switch_Toolbox.Library.Forms
splitContainer1.Orientation = Orientation.Horizontal;
splitContainer1.Panel2.Controls.Add(ImagePanel);
splitContainer1.Panel1.Controls.Add(PropertiesEditor);
PropertiesEditor.HideHintPanel(true);
splitContainer1.SplitterDistance = this.Height / 2;
PropertiesEditor.HideHintPanel(true);
}
}
}