aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications/Artpad.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-06-20 16:12:45 -0400
committerMichael <[email protected]>2017-06-20 16:12:45 -0400
commit6eb10fd26643f3a072b0cb0d820066c14ae06491 (patch)
tree2ebabb771aca91162df3ce181bbab88c39986f08 /ShiftOS.WinForms/Applications/Artpad.cs
parente1aa416d6cd9bd9f6630843468fe46ed814609df (diff)
downloadshiftos_thereturn-6eb10fd26643f3a072b0cb0d820066c14ae06491.tar.gz
shiftos_thereturn-6eb10fd26643f3a072b0cb0d820066c14ae06491.tar.bz2
shiftos_thereturn-6eb10fd26643f3a072b0cb0d820066c14ae06491.zip
move zoom, undo/redo and file io in artpad to menu
Diffstat (limited to 'ShiftOS.WinForms/Applications/Artpad.cs')
-rw-r--r--ShiftOS.WinForms/Applications/Artpad.cs20
1 files changed, 11 insertions, 9 deletions
diff --git a/ShiftOS.WinForms/Applications/Artpad.cs b/ShiftOS.WinForms/Applications/Artpad.cs
index 12914b4..19bf5d0 100644
--- a/ShiftOS.WinForms/Applications/Artpad.cs
+++ b/ShiftOS.WinForms/Applications/Artpad.cs
@@ -57,11 +57,7 @@ namespace ShiftOS.WinForms.Applications
{
try
{
- Stopwatch sw = new Stopwatch();
- sw.Start();
InitializeComponent();
- sw.Stop();
- Console.WriteLine("ArtPad construction timespan:" + sw.Elapsed.ToString());
}
catch (Exception ex)
{
@@ -169,6 +165,17 @@ namespace ShiftOS.WinForms.Applications
//PHILCODE: I just reduced this function's amount of Windows Forms calls by 66%.
public void setuptoolbox()
{
+ gENSAVEToolStripMenuItem.Visible = Shiftorium.UpgradeInstalled("artpad_save");
+ gENLOADToolStripMenuItem.Visible = Shiftorium.UpgradeInstalled("artpad_open");
+ gENNEWToolStripMenuItem.Visible = Shiftorium.UpgradeInstalled("artpad_new");
+
+ undoToolStripMenuItem.Visible = Shiftorium.UpgradeInstalled("artpad_undo");
+ redoToolStripMenuItem.Visible = Shiftorium.UpgradeInstalled("artpad_redo");
+
+ editToolStripMenuItem.Visible = (undoToolStripMenuItem.Visible || redoToolStripMenuItem.Visible);
+
+
+
btnpixelplacer.Visible = (ShiftoriumFrontend.UpgradeInstalled("artpad_pixel_placer") == true);
btnpencil.Visible = (ShiftoriumFrontend.UpgradeInstalled("artpad_pencil") == true);
btnfloodfill.Visible = (ShiftoriumFrontend.UpgradeInstalled("artpad_fill_tool") == true);
@@ -178,11 +185,6 @@ namespace ShiftOS.WinForms.Applications
btnpaintbrush.Visible = (ShiftoriumFrontend.UpgradeInstalled("artpad_paintbrush") == true);
btntexttool.Visible = (ShiftoriumFrontend.UpgradeInstalled("artpad_text_tool") == true);
btneracer.Visible = (ShiftoriumFrontend.UpgradeInstalled("artpad_eraser") == true);
- btnnew.Visible = (ShiftoriumFrontend.UpgradeInstalled("artpad_new") == true);
- btnopen.Visible = (ShiftoriumFrontend.UpgradeInstalled("artpad_load") == true);
- btnsave.Visible = (ShiftoriumFrontend.UpgradeInstalled("artpad_save") == true);
- btnundo.Visible = (ShiftoriumFrontend.UpgradeInstalled("artpad_undo") == true);
- btnredo.Visible = (ShiftoriumFrontend.UpgradeInstalled("artpad_redo") == true);
btnpixelplacermovementmode.Visible = (ShiftoriumFrontend.UpgradeInstalled("artpad_pp_movement_mode") == true);
}