A LOT of work.

This commit is contained in:
Alkaline Thunder 2019-01-02 00:03:26 -05:00
parent c8c32ad8d2
commit c12d920ca5
374 changed files with 9361 additions and 52 deletions

View file

@ -0,0 +1,30 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Commands
{
public class Cheat : TerminalCommand
{
public override string Name => "05tray";
public override string HelpText => "Makes you a cheater.";
public override string Usage => Name + " <amount>";
public override void Run(IConsoleContext InConsole, Dictionary<string, object> InArguments)
{
int amount = 0;
if(!int.TryParse(InArguments["<amount>"].ToString(), out amount))
{
InConsole.WriteLine("That's not a valid number.");
return;
}
InConsole.WriteLine($"Congrats, you now have {amount} more Codepoints. :)");
InConsole.CurrentSystem.AddCodepoints(amount);
}
}
}

View file

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Commands
{
public class Clear : TerminalCommand
{
public override string Name => "clear";
public override string HelpText => "Clear the screen of all text.";
public override string Usage => Name;
public override void Run(IConsoleContext InConsole, Dictionary<string, object> InArguments)
{
InConsole.Clear();
}
}
}

View file

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShiftOS.Metadata;
using System.Threading.Tasks;
namespace ShiftOS.Commands
{
[Requires("secondssincemidnight")]
public class Clock : TerminalCommand
{
public override string Name => "time";
public override string HelpText => "Display the current time.";
public override string Usage => Name;
public override void Run(IConsoleContext InConsole, Dictionary<string, object> InArguments)
{
InConsole.WriteLine(InConsole.CurrentSystem.GetTimeOfDay());
}
}
}

View file

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Commands
{
public class Codepoints : TerminalCommand
{
public override string Name => "codepoints";
public override string HelpText => "Display your current Codepoints.";
public override string Usage => Name;
public override void Run(IConsoleContext InConsole, Dictionary<string, object> InArguments)
{
InConsole.WriteLine($"You have {InConsole.CurrentSystem.GetCodepoints()} Codepoints.");
}
}
}

View file

@ -0,0 +1,41 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Commands
{
public class Help : TerminalCommand
{
public override string Name => "help";
public override string HelpText => "Shows command help and useful tips.";
public override string Usage => Name;
public override void Run(IConsoleContext InConsole, Dictionary<string, object> InArguments)
{
InConsole.WriteLine("");
InConsole.WriteLine("ShiftOS Terminal help:");
InConsole.WriteLine("");
InConsole.WriteLine("Tips:");
InConsole.WriteLine("");
InConsole.WriteLine(" - Not yet implemented.");
InConsole.WriteLine("");
InConsole.WriteLine("Terminal commands:");
InConsole.WriteLine("");
foreach(var command in InConsole.CurrentSystem.GetInstalledCommands().OrderBy(x=>x.Name))
{
InConsole.WriteLine($" - {command.Name}: {command.HelpText}");
}
InConsole.WriteLine("");
InConsole.WriteLine("Programs:");
InConsole.WriteLine("");
InConsole.WriteLine(" - Not yet implemented.");
InConsole.WriteLine("");
}
}
}

View file

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Commands
{
public interface IConsoleContext
{
void Write(string InText);
void WriteLine(string InText);
void Clear();
SystemContext CurrentSystem { get; }
bool ReadLine(ref string OutLine);
void Latent_ReadLine(Action<string> Callback);
}
}

View file

@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShiftOS.Metadata;
using System.Threading.Tasks;
namespace ShiftOS.Commands
{
[Requires("minimizecommand")]
public class Minimize : TerminalCommand
{
public override string Name => "minimize";
public override string HelpText => "Minimizes or unminimizes the specified window.";
public override string Usage => Name + " <window>";
public override void Run(IConsoleContext InConsole, Dictionary<string, object> InArguments)
{
string window = InArguments["<window>"].ToString();
var win = InConsole.CurrentSystem.GetWindows().FirstOrDefault(x => x.WindowTitle == window);
if(win == null)
{
InConsole.WriteLine($"Error: No window named {window} found.");
return;
}
if (win.Enabled == false)
{
win.Enabled = true;
win.Opacity = 1;
}
else
{
win.Opacity = 0;
win.Enabled = false;
}
}
}
}

View file

@ -0,0 +1,48 @@
using ShiftOS.Metadata;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Commands
{
[Requires("windowsanywhere")]
public class Move : TerminalCommand
{
public override string Name => "move";
public override string HelpText => "Move the specified window to the specified location on-screen.";
public override string Usage => Name + " <window> to <x> <y>";
public override void Run(IConsoleContext InConsole, Dictionary<string, object> InArguments)
{
var windowTitle = InArguments["<window>"].ToString();
int x, y = 0;
if(!int.TryParse(InArguments["<x>"].ToString(), out x))
{
InConsole.WriteLine("Error: invalid x coordinate");
return;
}
if (!int.TryParse(InArguments["<y>"].ToString(), out y))
{
InConsole.WriteLine("Error: invalid y coordinate");
return;
}
var window = InConsole.CurrentSystem.GetWindows().FirstOrDefault(z => z.WindowTitle == windowTitle);
if(window == null)
{
InConsole.WriteLine($"Error: No window found with name {windowTitle}.");
return;
}
window.Left = x;
window.Top = y;
}
}
}

View file

@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Commands
{
public class Open : TerminalCommand
{
public override string Name => "open";
public override string HelpText => "Open the specified program.";
public override string Usage => Name + " <program>";
public override void Run(IConsoleContext InConsole, Dictionary<string, object> InArguments)
{
string program = InArguments["<program>"].ToString();
if(!InConsole.CurrentSystem.LaunchProgram(program))
{
InConsole.WriteLine("Error: Program not found.");
}
}
}
}

View file

@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.Linq;
using ShiftOS.Metadata;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Commands
{
[Requires("customusername")]
public class Set : TerminalCommand
{
public override string Name => "set";
public override string HelpText => "Change ShiftOS system settings.";
public override string Usage => Name + " <setting> <value>";
public override void Run(IConsoleContext InConsole, Dictionary<string, object> InArguments)
{
string setting = InArguments["<setting>"].ToString();
string value = InArguments["<value>"].ToString();
switch(setting)
{
case "username":
InConsole.CurrentSystem.Username = value;
break;
case "osname":
if(!InConsole.CurrentSystem.HasShiftoriumUpgrade("osname"))
{
goto default;
}
InConsole.CurrentSystem.OSName = value;
break;
default:
InConsole.WriteLine("Error: setting not found.");
break;
}
}
}
}

View file

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Commands
{
public class Shutdown : TerminalCommand
{
public override string Name => "shutdown";
public override string HelpText => "Shut down ShiftOS";
public override string Usage => Name;
public override void Run(IConsoleContext InConsole, Dictionary<string, object> InArguments)
{
InConsole.CurrentSystem.Shutdown();
}
}
}

View file

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Commands
{
public abstract class TerminalCommand
{
public abstract string Name { get; }
public abstract string HelpText { get; }
public abstract string Usage { get; }
public abstract void Run(IConsoleContext InConsole, Dictionary<string, object> InArguments);
}
}

View file

@ -244,6 +244,9 @@ namespace ShiftOS
// Go through every installed program.
foreach(var program in this.CurrentSystem.GetInstalledPrograms())
{
if (!CurrentSystem.IsAppLauncherItemAvailable(program))
continue;
// Get the friendly (UI) name
string friendlyName = this.CurrentSystem.GetProgramName(program);
@ -265,22 +268,29 @@ namespace ShiftOS
var separator = new ToolStripSeparator();
AppLauncherMenu.DropDownItems.Add(separator);
var unityToggle = new ToolStripMenuItem("Toggle Unity Mode");
var shutdown = new ToolStripMenuItem("Shut Down");
shutdown.Click += (o, a) =>
if (CurrentSystem.HasShiftoriumUpgrade("unitymodetoggle"))
{
// Closing this window causes the system context to shut down.
this.Close();
};
var unityToggle = new ToolStripMenuItem("Toggle Unity Mode");
unityToggle.Click += (o, a) =>
unityToggle.Click += (o, a) =>
{
_inUnity = !_inUnity;
};
AppLauncherMenu.DropDownItems.Add(unityToggle);
}
if (CurrentSystem.HasShiftoriumUpgrade("applaunchershutdown"))
{
_inUnity = !_inUnity;
};
var shutdown = new ToolStripMenuItem("Shut Down");
AppLauncherMenu.DropDownItems.Add(unityToggle);
AppLauncherMenu.DropDownItems.Add(shutdown);
shutdown.Click += (o, a) =>
{
// Closing this window causes the system context to shut down.
this.Close();
};
AppLauncherMenu.DropDownItems.Add(shutdown);
}
}
private void Desktop_KeyDown(object sender, KeyEventArgs e)
@ -289,6 +299,11 @@ namespace ShiftOS
{
CurrentSystem.LaunchProgram("terminal");
}
else if(e.KeyCode == Keys.S && e.Control)
{
CurrentSystem.LaunchProgram("shiftorium");
}
}
}
}

View file

@ -191,13 +191,41 @@ namespace ShiftOS
for (int i = 0; i < ret.Length; i++)
{
ret[i] = InPath + "/" + Path.GetFileName(files[i]);
if (InPath.EndsWith("/"))
{
ret[i] = InPath + Path.GetFileName(files[i]);
}
else
{
ret[i] = InPath + "/" + Path.GetFileName(files[i]);
}
}
return ret;
}
public string[] GetDirectories(string InPath)
{
var files = Directory.GetDirectories(MapToEnvironmentPath(InPath));
var ret = new string[files.Length];
for (int i = 0; i < ret.Length; i++)
{
if (InPath.EndsWith("/"))
{
ret[i] = InPath + Path.GetFileName(files[i]);
}
else
{
ret[i] = InPath + "/" + Path.GetFileName(files[i]);
}
}
return ret;
}
}
}

View file

@ -0,0 +1,39 @@
Example usage for T4 Docopt.NET
Usage:
prog command ARG <myarg> [OPTIONALARG] [-o -s=<arg> --long=ARG --switch]
prog files FILE...
Options:
-o Short switch.
-s=<arg> Short option with arg.
--long=ARG Long option with arg.
--switch Long switch.
Explanation:
This is an example usage file that needs to be customized.
Every time you change this file, run the Custom Tool command
on T4DocoptNet.tt to re-generate the MainArgs class
(defined in T4DocoptNet.cs).
You can then use the MainArgs classed as follows:
class Program
{
static void DoStuff(string arg, bool flagO, string longValue)
{
// ...
}
static void Main(string[] argv)
{
// Automatically exit(1) if invalid arguments
var args = new MainArgs(argv, exit: true);
if (args.CmdCommand)
{
Console.WriteLine("First command");
DoStuff(args.ArgArg, args.OptO, args.OptLong);
}
}
}

View file

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Metadata
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class AppLauncherRequirementAttribute : Attribute
{
private string _id;
public string ID => _id;
public AppLauncherRequirementAttribute(string id)
{
_id = id;
}
public bool IsFulfilled(SystemContext InSystemContext)
{
return InSystemContext.HasShiftoriumUpgrade(_id);
}
}
}

View file

@ -0,0 +1,26 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ShiftOS.Metadata
{
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public class RequiresAttribute : Attribute
{
private string _id;
public string ID => _id;
public RequiresAttribute(string id)
{
_id = id;
}
public bool IsFulfilled(SystemContext InSystemContext)
{
return InSystemContext.HasShiftoriumUpgrade(_id);
}
}
}

View file

@ -35,7 +35,7 @@
//
// IconBox
//
this.IconBox.BackColor = System.Drawing.Color.White;
this.IconBox.BackColor = System.Drawing.Color.Transparent;
this.IconBox.Location = new System.Drawing.Point(2, 2);
this.IconBox.Name = "IconBox";
this.IconBox.Size = new System.Drawing.Size(16, 16);

View file

@ -32,6 +32,8 @@ namespace ShiftOS
TitleText.Text = _window.WindowTitle;
IconBox.Image = _window.WindowIcon;
IconBox.Visible = _window.CurrentSystem.HasShiftoriumUpgrade("titleicons");
// Get the current skin.
var skin = _window.CurrentSystem.GetSkinContext();
@ -85,15 +87,18 @@ namespace ShiftOS
private void PanelButton_MouseClick(object sender, MouseEventArgs e)
{
if(_window.Enabled == false)
if (_desktop.GetCurrentSystem().HasShiftoriumUpgrade("usefulpanelbuttons"))
{
_window.Enabled = true;
_window.Opacity = 1;
}
else
{
_window.Opacity = 0;
_window.Enabled = false;
if (_window.Enabled == false)
{
_window.Enabled = true;
_window.Opacity = 1;
}
else
{
_window.Opacity = 0;
_window.Enabled = false;
}
}
}
}

102
ShiftOS/ShiftOS/Programs/Clock.Designer.cs generated Normal file
View file

@ -0,0 +1,102 @@
namespace ShiftOS.Programs
{
partial class Clock
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.bottomtext = new System.Windows.Forms.Label();
this.pgcontents = new System.Windows.Forms.Panel();
this.toptext = new System.Windows.Forms.Label();
this.lbmaintime = new System.Windows.Forms.Label();
this.pgcontents.SuspendLayout();
this.SuspendLayout();
//
// bottomtext
//
this.bottomtext.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.bottomtext.Location = new System.Drawing.Point(10, 88);
this.bottomtext.Name = "bottomtext";
this.bottomtext.Size = new System.Drawing.Size(342, 23);
this.bottomtext.TabIndex = 2;
this.bottomtext.Text = "Seconds have passed";
this.bottomtext.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// pgcontents
//
this.pgcontents.BackColor = System.Drawing.Color.White;
this.pgcontents.Controls.Add(this.bottomtext);
this.pgcontents.Controls.Add(this.toptext);
this.pgcontents.Controls.Add(this.lbmaintime);
this.pgcontents.Dock = System.Windows.Forms.DockStyle.Fill;
this.pgcontents.Location = new System.Drawing.Point(2, 30);
this.pgcontents.Name = "pgcontents";
this.pgcontents.Size = new System.Drawing.Size(362, 135);
this.pgcontents.TabIndex = 25;
//
// toptext
//
this.toptext.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.toptext.Location = new System.Drawing.Point(10, 22);
this.toptext.Name = "toptext";
this.toptext.Size = new System.Drawing.Size(342, 23);
this.toptext.TabIndex = 1;
this.toptext.Text = "The Time is";
this.toptext.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbmaintime
//
this.lbmaintime.Font = new System.Drawing.Font("Microsoft Sans Serif", 36F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbmaintime.Location = new System.Drawing.Point(6, 38);
this.lbmaintime.Name = "lbmaintime";
this.lbmaintime.Size = new System.Drawing.Size(350, 52);
this.lbmaintime.TabIndex = 0;
this.lbmaintime.Text = "00000000";
this.lbmaintime.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// Clock
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(366, 167);
this.Controls.Add(this.pgcontents);
this.Name = "Clock";
this.Text = "Clock";
this.WindowIcon = global::ShiftOS.Properties.Resources.iconClock;
this.WindowTitle = "Clock";
this.Controls.SetChildIndex(this.pgcontents, 0);
this.pgcontents.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
internal System.Windows.Forms.Label bottomtext;
internal System.Windows.Forms.Panel pgcontents;
internal System.Windows.Forms.Label toptext;
internal System.Windows.Forms.Label lbmaintime;
}
}

View file

@ -0,0 +1,56 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ShiftOS.Metadata;
using ShiftOS.Windowing;
using System.Windows.Forms;
namespace ShiftOS.Programs
{
[Program("clock", "Clock", "Show the current time of day.")]
[Requires("clock")]
[AppLauncherRequirement("alclock")]
public partial class Clock : Window
{
public Clock()
{
InitializeComponent();
}
protected override void OnDesktopUpdate()
{
if(CurrentSystem.HasShiftoriumUpgrade("pmandam"))
{
toptext.Text = "The Time is";
bottomtext.Hide();
}
else
{
toptext.Text = "Since midnight,";
bottomtext.Show();
if(CurrentSystem.HasShiftoriumUpgrade("hourssincemidnight"))
{
bottomtext.Text = "hours have passed.";
}
else if(CurrentSystem.HasShiftoriumUpgrade("minutessincemidnight"))
{
bottomtext.Text = "minutes have passed.";
}
else
{
bottomtext.Text = "seconds have passed.";
}
}
this.lbmaintime.Text = CurrentSystem.GetTimeOfDay();
base.OnDesktopUpdate();
}
}
}

View file

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View file

@ -0,0 +1,213 @@
namespace ShiftOS.Programs
{
partial class FileSkimmer
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FileSkimmer));
this.lbllocation = new System.Windows.Forms.Label();
this.panel3 = new System.Windows.Forms.Panel();
this.panel4 = new System.Windows.Forms.Panel();
this.btndeletefile = new System.Windows.Forms.Button();
this.btnnewfolder = new System.Windows.Forms.Button();
this.pnlbreak = new System.Windows.Forms.Panel();
this.pnloptions = new System.Windows.Forms.Panel();
this.ImageList1 = new System.Windows.Forms.ImageList(this.components);
this.lvfiles = new System.Windows.Forms.ListView();
this.pgcontents = new System.Windows.Forms.Panel();
this.panel4.SuspendLayout();
this.pnloptions.SuspendLayout();
this.pgcontents.SuspendLayout();
this.SuspendLayout();
//
// lbllocation
//
this.lbllocation.BackColor = System.Drawing.Color.White;
this.lbllocation.Dock = System.Windows.Forms.DockStyle.Fill;
this.lbllocation.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbllocation.ForeColor = System.Drawing.Color.Black;
this.lbllocation.Location = new System.Drawing.Point(0, 0);
this.lbllocation.Name = "lbllocation";
this.lbllocation.Size = new System.Drawing.Size(796, 31);
this.lbllocation.TabIndex = 0;
this.lbllocation.Text = "C:/ShiftOS/";
this.lbllocation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// panel3
//
this.panel3.BackColor = System.Drawing.Color.Black;
this.panel3.Dock = System.Windows.Forms.DockStyle.Top;
this.panel3.Location = new System.Drawing.Point(0, 31);
this.panel3.Name = "panel3";
this.panel3.Size = new System.Drawing.Size(796, 2);
this.panel3.TabIndex = 5;
//
// panel4
//
this.panel4.BackColor = System.Drawing.Color.White;
this.panel4.Controls.Add(this.lbllocation);
this.panel4.Dock = System.Windows.Forms.DockStyle.Top;
this.panel4.Location = new System.Drawing.Point(0, 0);
this.panel4.Name = "panel4";
this.panel4.Size = new System.Drawing.Size(796, 31);
this.panel4.TabIndex = 4;
//
// btndeletefile
//
this.btndeletefile.BackColor = System.Drawing.Color.White;
this.btndeletefile.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btndeletefile.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btndeletefile.Image = global::ShiftOS.Properties.Resources.deletefile;
this.btndeletefile.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btndeletefile.Location = new System.Drawing.Point(129, 4);
this.btndeletefile.Name = "btndeletefile";
this.btndeletefile.Size = new System.Drawing.Size(130, 31);
this.btndeletefile.TabIndex = 4;
this.btndeletefile.Text = "Delete Folder";
this.btndeletefile.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.btndeletefile.UseVisualStyleBackColor = false;
//
// btnnewfolder
//
this.btnnewfolder.BackColor = System.Drawing.Color.White;
this.btnnewfolder.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnnewfolder.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnnewfolder.Image = global::ShiftOS.Properties.Resources.newfolder;
this.btnnewfolder.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.btnnewfolder.Location = new System.Drawing.Point(6, 4);
this.btnnewfolder.Name = "btnnewfolder";
this.btnnewfolder.Size = new System.Drawing.Size(117, 31);
this.btnnewfolder.TabIndex = 3;
this.btnnewfolder.Text = "New Folder";
this.btnnewfolder.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
this.btnnewfolder.UseVisualStyleBackColor = false;
//
// pnlbreak
//
this.pnlbreak.BackColor = System.Drawing.Color.White;
this.pnlbreak.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Center;
this.pnlbreak.Dock = System.Windows.Forms.DockStyle.Bottom;
this.pnlbreak.ForeColor = System.Drawing.Color.Black;
this.pnlbreak.Location = new System.Drawing.Point(0, 365);
this.pnlbreak.Name = "pnlbreak";
this.pnlbreak.Size = new System.Drawing.Size(796, 15);
this.pnlbreak.TabIndex = 7;
//
// pnloptions
//
this.pnloptions.Controls.Add(this.btndeletefile);
this.pnloptions.Controls.Add(this.btnnewfolder);
this.pnloptions.Dock = System.Windows.Forms.DockStyle.Bottom;
this.pnloptions.Location = new System.Drawing.Point(0, 380);
this.pnloptions.Name = "pnloptions";
this.pnloptions.Size = new System.Drawing.Size(796, 38);
this.pnloptions.TabIndex = 6;
this.pnloptions.Visible = false;
//
// ImageList1
//
this.ImageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ImageList1.ImageStream")));
this.ImageList1.TransparentColor = System.Drawing.Color.Transparent;
this.ImageList1.Images.SetKeyName(0, "folder");
this.ImageList1.Images.SetKeyName(1, "unknown.png");
this.ImageList1.Images.SetKeyName(2, "textfile.png");
this.ImageList1.Images.SetKeyName(3, "imagefile.png");
this.ImageList1.Images.SetKeyName(4, "videofile.png");
this.ImageList1.Images.SetKeyName(5, "folderup");
this.ImageList1.Images.SetKeyName(6, "philips dll.png");
this.ImageList1.Images.SetKeyName(7, "philips exe.png");
this.ImageList1.Images.SetKeyName(8, "config.png");
this.ImageList1.Images.SetKeyName(9, "driver.png");
this.ImageList1.Images.SetKeyName(10, "skinfile.png");
this.ImageList1.Images.SetKeyName(11, "namelistfile.png");
this.ImageList1.Images.SetKeyName(12, "iconpackfile.png");
this.ImageList1.Images.SetKeyName(13, "iconins.png");
this.ImageList1.Images.SetKeyName(14, "icontrm.png");
this.ImageList1.Images.SetKeyName(15, "iconsaa 2.png");
this.ImageList1.Images.SetKeyName(16, "iconflood.png");
this.ImageList1.Images.SetKeyName(17, "iconurl.png");
this.ImageList1.Images.SetKeyName(18, "iconurls.png");
this.ImageList1.Images.SetKeyName(19, "iconsaag.png");
//
// lvfiles
//
this.lvfiles.BackColor = System.Drawing.Color.White;
this.lvfiles.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.lvfiles.Dock = System.Windows.Forms.DockStyle.Fill;
this.lvfiles.LargeImageList = this.ImageList1;
this.lvfiles.Location = new System.Drawing.Point(0, 33);
this.lvfiles.Name = "lvfiles";
this.lvfiles.Size = new System.Drawing.Size(796, 332);
this.lvfiles.TabIndex = 3;
this.lvfiles.UseCompatibleStateImageBehavior = false;
this.lvfiles.DoubleClick += new System.EventHandler(this.lvfiles_DoubleClick);
//
// pgcontents
//
this.pgcontents.Controls.Add(this.lvfiles);
this.pgcontents.Controls.Add(this.pnlbreak);
this.pgcontents.Controls.Add(this.pnloptions);
this.pgcontents.Controls.Add(this.panel3);
this.pgcontents.Controls.Add(this.panel4);
this.pgcontents.Dock = System.Windows.Forms.DockStyle.Fill;
this.pgcontents.Location = new System.Drawing.Point(2, 30);
this.pgcontents.Name = "pgcontents";
this.pgcontents.Size = new System.Drawing.Size(796, 418);
this.pgcontents.TabIndex = 25;
//
// FileSkimmer
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450);
this.Controls.Add(this.pgcontents);
this.Name = "FileSkimmer";
this.Text = "FileSkimmer";
this.WindowIcon = global::ShiftOS.Properties.Resources.iconFileSkimmer;
this.WindowTitle = "File Skimmer";
this.Controls.SetChildIndex(this.pgcontents, 0);
this.panel4.ResumeLayout(false);
this.pnloptions.ResumeLayout(false);
this.pgcontents.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion
internal System.Windows.Forms.Label lbllocation;
internal System.Windows.Forms.Panel panel3;
internal System.Windows.Forms.Panel panel4;
internal System.Windows.Forms.Button btndeletefile;
internal System.Windows.Forms.Button btnnewfolder;
internal System.Windows.Forms.Panel pnlbreak;
internal System.Windows.Forms.Panel pnloptions;
internal System.Windows.Forms.ImageList ImageList1;
internal System.Windows.Forms.ListView lvfiles;
internal System.Windows.Forms.Panel pgcontents;
}
}

View file

@ -0,0 +1,164 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ShiftOS.Metadata;
using ShiftOS.Windowing;
using System.Windows.Forms;
namespace ShiftOS.Programs
{
[Program("fileskimmer", "File Skimmer", "Browse files on your computer.")]
[Requires("fileskimmer")]
[AppLauncherRequirement("alfileskimmer")]
public partial class FileSkimmer : Window
{
private string _working = "/";
public FileSkimmer()
{
InitializeComponent();
}
private string GetIcon(string extension)
{
switch(extension)
{
case "png":
case "jpg":
case "jpeg":
case "bmp":
case "gif":
return "imagefile.png";
case "txt":
return "textfile.png";
case "json":
case "dat":
case "conf":
case "cfg":
return "config.png";
case "dri":
case "sys":
return "driver.png";
case "exe":
case "com":
return "philips exe.png";
case "dll":
case "so":
return "philips dll.png";
case "skn":
return "skinfile.png";
default:
return "unknown.png";
}
}
private void UpdateFolderList()
{
// Clear the last file list.
lvfiles.Items.Clear();
// Add an 'up one level' button if we're not the root path.
if(_working != "/")
{
var up = new ListViewItem();
up.Text = "Up one";
up.Tag = "..";
up.ImageKey = "folderup";
lvfiles.Items.Add(up);
}
// Get the filesystem context.
var fs = CurrentSystem.GetFilesystem();
// Loop through all folders.
foreach(var folder in fs.GetDirectories(_working))
{
var folderItem = new ListViewItem();
folderItem.Tag = folder;
int lastslash = folder.LastIndexOf("/");
string name = folder.Substring(lastslash + 1);
folderItem.Text = name;
folderItem.ImageKey = "folder";
lvfiles.Items.Add(folderItem);
}
// Now onto files.
foreach(var file in fs.GetFiles(_working))
{
var fileItem = new ListViewItem();
fileItem.Tag = file;
int lastslash = file.LastIndexOf("/");
string name = file.Substring(lastslash + 1);
fileItem.Text = name;
if (name.Contains("."))
{
string extension = name.Substring(name.LastIndexOf(".") + 1);
fileItem.ImageKey = GetIcon(extension);
}
else
{
fileItem.ImageKey = "unknown.png";
}
lvfiles.Items.Add(fileItem);
}
}
protected override void OnDesktopUpdate()
{
// Update the working directory.
lbllocation.Text = _working;
base.OnDesktopUpdate();
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
lvfiles.LargeImageList = ImageList1;
lvfiles.SmallImageList = ImageList1;
UpdateFolderList();
}
private void lvfiles_DoubleClick(object sender, EventArgs e)
{
if(lvfiles.SelectedItems.Count != 0)
{
var itemTag = lvfiles.SelectedItems[0].Tag.ToString();
if(itemTag == "..")
{
_working = _working.Substring(0, _working.LastIndexOf("/"));
if(string.IsNullOrWhiteSpace(_working))
{
_working = "/";
}
UpdateFolderList();
}
else
{
var fs = CurrentSystem.GetFilesystem();
if(fs.DirectoryExists(itemTag))
{
_working = itemTag;
UpdateFolderList();
}
}
}
}
}
}

View file

@ -0,0 +1,409 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="ImageList1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>185, 19</value>
</metadata>
<data name="ImageList1.ImageStream" mimetype="application/x-microsoft.net.object.bin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8BAABfwQAARwNAAE8BAABfwQAARwNAAE8
BAABfwQAARwNAAE8BAABfwQAARwNAAE8BAABfwQAARwNAAE8BAABfwQAARwNAAE8BAABfwQAARwNAAE8
BAABfwQAARwNAAE8BAABfwQAARwNAAE8BAABfwQAARwNAAE8BAABfwQAARwNAAE8BAABfwQAARwNAAE8
BAABfwQAARwNAAE8BAABfwQAARwNAAE8BAABfwQAARwNAAE8BAABfwQAARwNAAE8BAABfwQAARwNAAE8
BAABfwQAARwNAAE8BAABfwQAARwNAAE8BAABfwQAARwNAAE8BAABfwQAARwNAAE8BAABfwQAARwKAAF/
Av8B/AQAAX8EAAEcCgAD/wH8BAABfwQAARwJAAEBA/8B/AQAAX8EAAEfBf8DAAX/AfwEAAF/BAABHwX/
AwAF/wH8BAABfwQAAR8F/wMABf8B/AQAAX8EAAEfBf8DAAs=
</value>
</data>
</root>

View file

@ -0,0 +1,268 @@
namespace ShiftOS.Programs
{
partial class Shiftorium
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Shiftorium));
this.tmrcodepointsupdate = new System.Windows.Forms.Timer(this.components);
this.pnlintro = new System.Windows.Forms.Panel();
this.Label4 = new System.Windows.Forms.Label();
this.Label2 = new System.Windows.Forms.Label();
this.Label5 = new System.Windows.Forms.Label();
this.btnbuy = new System.Windows.Forms.Button();
this.lbprice = new System.Windows.Forms.Label();
this.picpreview = new System.Windows.Forms.PictureBox();
this.lbudescription = new System.Windows.Forms.Label();
this.lbupgradename = new System.Windows.Forms.Label();
this.lbcodepoints = new System.Windows.Forms.Label();
this.lbupgrades = new System.Windows.Forms.ListBox();
this.Label1 = new System.Windows.Forms.Label();
this.pnlinfo = new System.Windows.Forms.Panel();
this.pgcontents = new System.Windows.Forms.Panel();
this.pnlintro.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.picpreview)).BeginInit();
this.pnlinfo.SuspendLayout();
this.pgcontents.SuspendLayout();
this.SuspendLayout();
//
// tmrcodepointsupdate
//
this.tmrcodepointsupdate.Enabled = true;
this.tmrcodepointsupdate.Interval = 1000;
//
// pnlintro
//
this.pnlintro.Controls.Add(this.Label4);
this.pnlintro.Controls.Add(this.Label2);
this.pnlintro.Controls.Add(this.Label5);
this.pnlintro.Dock = System.Windows.Forms.DockStyle.Fill;
this.pnlintro.Location = new System.Drawing.Point(0, 0);
this.pnlintro.Name = "pnlintro";
this.pnlintro.Size = new System.Drawing.Size(369, 430);
this.pnlintro.TabIndex = 8;
this.pnlintro.TabStop = true;
//
// Label4
//
this.Label4.AutoSize = true;
this.Label4.Font = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Label4.Location = new System.Drawing.Point(-3, 397);
this.Label4.Name = "Label4";
this.Label4.Size = new System.Drawing.Size(358, 18);
this.Label4.TabIndex = 7;
this.Label4.Text = "Select an upgrade on the left to view its details";
//
// Label2
//
this.Label2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Label2.Location = new System.Drawing.Point(3, 53);
this.Label2.Name = "Label2";
this.Label2.Size = new System.Drawing.Size(340, 341);
this.Label2.TabIndex = 5;
this.Label2.Text = resources.GetString("Label2.Text");
this.Label2.TextAlign = System.Drawing.ContentAlignment.TopCenter;
//
// Label5
//
this.Label5.AutoSize = true;
this.Label5.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Label5.ForeColor = System.Drawing.Color.Black;
this.Label5.Location = new System.Drawing.Point(-4, 14);
this.Label5.Name = "Label5";
this.Label5.Size = new System.Drawing.Size(355, 31);
this.Label5.TabIndex = 4;
this.Label5.Text = "Welcome to the Shiftorium";
//
// btnbuy
//
this.btnbuy.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.btnbuy.Font = new System.Drawing.Font("Microsoft Sans Serif", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.btnbuy.ForeColor = System.Drawing.Color.Black;
this.btnbuy.Location = new System.Drawing.Point(160, 362);
this.btnbuy.Name = "btnbuy";
this.btnbuy.Size = new System.Drawing.Size(185, 56);
this.btnbuy.TabIndex = 7;
this.btnbuy.Text = "Buy";
this.btnbuy.UseVisualStyleBackColor = true;
this.btnbuy.Click += new System.EventHandler(this.btnbuy_Click);
//
// lbprice
//
this.lbprice.Font = new System.Drawing.Font("Microsoft Sans Serif", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbprice.ForeColor = System.Drawing.Color.Black;
this.lbprice.Location = new System.Drawing.Point(15, 362);
this.lbprice.Name = "lbprice";
this.lbprice.Size = new System.Drawing.Size(139, 59);
this.lbprice.TabIndex = 6;
this.lbprice.Text = "50 CP";
this.lbprice.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// picpreview
//
this.picpreview.Location = new System.Drawing.Point(25, 218);
this.picpreview.Name = "picpreview";
this.picpreview.Size = new System.Drawing.Size(320, 130);
this.picpreview.TabIndex = 5;
this.picpreview.TabStop = false;
//
// lbudescription
//
this.lbudescription.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbudescription.ForeColor = System.Drawing.Color.Black;
this.lbudescription.Location = new System.Drawing.Point(24, 63);
this.lbudescription.Name = "lbudescription";
this.lbudescription.Size = new System.Drawing.Size(321, 144);
this.lbudescription.TabIndex = 4;
this.lbudescription.Text = resources.GetString("lbudescription.Text");
this.lbudescription.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbupgradename
//
this.lbupgradename.Font = new System.Drawing.Font("Microsoft Sans Serif", 24F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbupgradename.ForeColor = System.Drawing.Color.Black;
this.lbupgradename.Location = new System.Drawing.Point(5, 17);
this.lbupgradename.Name = "lbupgradename";
this.lbupgradename.Size = new System.Drawing.Size(361, 43);
this.lbupgradename.TabIndex = 3;
this.lbupgradename.Text = "Upgradename";
this.lbupgradename.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbcodepoints
//
this.lbcodepoints.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbcodepoints.ForeColor = System.Drawing.Color.Black;
this.lbcodepoints.Location = new System.Drawing.Point(16, 372);
this.lbcodepoints.Name = "lbcodepoints";
this.lbcodepoints.Size = new System.Drawing.Size(309, 43);
this.lbcodepoints.TabIndex = 8;
this.lbcodepoints.Text = "Codepoints: 25";
this.lbcodepoints.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// lbupgrades
//
this.lbupgrades.BackColor = System.Drawing.Color.White;
this.lbupgrades.BorderStyle = System.Windows.Forms.BorderStyle.None;
this.lbupgrades.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.lbupgrades.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.lbupgrades.ForeColor = System.Drawing.Color.Black;
this.lbupgrades.FormattingEnabled = true;
this.lbupgrades.ItemHeight = 19;
this.lbupgrades.Items.AddRange(new object[] {
"Close Button - 100 CP",
"Gray - 50 CP",
"Program Titles - 60 CP",
"Seconds Since Midnight - 10 CP",
"Shifter - 500 CP",
"Title Bar - 80 CP"});
this.lbupgrades.Location = new System.Drawing.Point(21, 70);
this.lbupgrades.Name = "lbupgrades";
this.lbupgrades.Size = new System.Drawing.Size(304, 285);
this.lbupgrades.Sorted = true;
this.lbupgrades.TabIndex = 0;
this.lbupgrades.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.lbupgrades_DrawItem);
this.lbupgrades.SelectedIndexChanged += new System.EventHandler(this.lbupgrades_SelectedIndexChanged);
//
// Label1
//
this.Label1.AutoSize = true;
this.Label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.Label1.ForeColor = System.Drawing.Color.Black;
this.Label1.Location = new System.Drawing.Point(85, 17);
this.Label1.Name = "Label1";
this.Label1.Size = new System.Drawing.Size(175, 39);
this.Label1.TabIndex = 1;
this.Label1.Text = "Upgrades";
//
// pnlinfo
//
this.pnlinfo.Controls.Add(this.pnlintro);
this.pnlinfo.Controls.Add(this.btnbuy);
this.pnlinfo.Controls.Add(this.lbprice);
this.pnlinfo.Controls.Add(this.picpreview);
this.pnlinfo.Controls.Add(this.lbudescription);
this.pnlinfo.Controls.Add(this.lbupgradename);
this.pnlinfo.Dock = System.Windows.Forms.DockStyle.Right;
this.pnlinfo.Location = new System.Drawing.Point(328, 0);
this.pnlinfo.Name = "pnlinfo";
this.pnlinfo.Size = new System.Drawing.Size(369, 430);
this.pnlinfo.TabIndex = 0;
//
// pgcontents
//
this.pgcontents.BackColor = System.Drawing.Color.White;
this.pgcontents.Controls.Add(this.lbcodepoints);
this.pgcontents.Controls.Add(this.lbupgrades);
this.pgcontents.Controls.Add(this.Label1);
this.pgcontents.Controls.Add(this.pnlinfo);
this.pgcontents.Dock = System.Windows.Forms.DockStyle.Fill;
this.pgcontents.Location = new System.Drawing.Point(2, 30);
this.pgcontents.Name = "pgcontents";
this.pgcontents.Size = new System.Drawing.Size(697, 430);
this.pgcontents.TabIndex = 15;
this.pgcontents.TabStop = true;
//
// Shiftorium
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(701, 462);
this.Controls.Add(this.pgcontents);
this.Name = "Shiftorium";
this.Text = "Shiftorium";
this.WindowIcon = global::ShiftOS.Properties.Resources.iconShiftorium;
this.WindowTitle = "Shiftorium";
this.Controls.SetChildIndex(this.pgcontents, 0);
this.pnlintro.ResumeLayout(false);
this.pnlintro.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.picpreview)).EndInit();
this.pnlinfo.ResumeLayout(false);
this.pgcontents.ResumeLayout(false);
this.pgcontents.PerformLayout();
this.ResumeLayout(false);
}
#endregion
internal System.Windows.Forms.Timer tmrcodepointsupdate;
internal System.Windows.Forms.Panel pnlintro;
internal System.Windows.Forms.Label Label4;
internal System.Windows.Forms.Label Label2;
internal System.Windows.Forms.Label Label5;
internal System.Windows.Forms.Button btnbuy;
internal System.Windows.Forms.Label lbprice;
internal System.Windows.Forms.PictureBox picpreview;
internal System.Windows.Forms.Label lbudescription;
internal System.Windows.Forms.Label lbupgradename;
internal System.Windows.Forms.Label lbcodepoints;
internal System.Windows.Forms.ListBox lbupgrades;
internal System.Windows.Forms.Label Label1;
internal System.Windows.Forms.Panel pnlinfo;
internal System.Windows.Forms.Panel pgcontents;
}
}

View file

@ -0,0 +1,152 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ShiftOS.Windowing;
using ShiftOS;
using ShiftOS.Metadata;
using System.Windows.Forms;
namespace ShiftOS.Programs
{
[Program("shiftorium", "Shiftorium", "Buy upgrades for ShiftOS.")]
[AppLauncherRequirement("alshiftorium")]
public partial class Shiftorium : Window
{
private Upgrade _currentUpgrade = null;
private bool _started = false;
public Shiftorium()
{
InitializeComponent();
}
private void UpdateUpgradeInfo()
{
if(_currentUpgrade!=null)
{
if (CurrentSystem.HasShiftoriumUpgrade(_currentUpgrade.ID))
{
lbupgradename.Font = new Font("teen", 13, FontStyle.Bold);
lbupgradename.Text = "Purchased " + _currentUpgrade.Name;
lbudescription.Text = _currentUpgrade.Tutorial;
lbprice.Font = new Font("teen", 16, FontStyle.Bold);
lbprice.Text = $"Bought for {_currentUpgrade.Cost} CP";
picpreview.Image = CurrentSystem.FindBitmapResource("upgrade" + _currentUpgrade.ID);
if (picpreview.Image == null)
picpreview.Image = CurrentSystem.FindBitmapResource(_currentUpgrade.ImageResource);
btnbuy.Hide();
}
else
{
lbupgradename.Font = new Font("teen", 20, FontStyle.Bold);
lbupgradename.Text = _currentUpgrade.Name;
lbudescription.Text = _currentUpgrade.Description;
if(_currentUpgrade.CanBuy(CurrentSystem))
{
btnbuy.Text = "Buy";
}
else
{
btnbuy.Text = "Can't afford.";
}
lbprice.Font = new Font("teen", 26, FontStyle.Bold);
lbprice.Text = _currentUpgrade.Cost.ToString() + " CP";
picpreview.Image = CurrentSystem.FindBitmapResource("upgrade" + _currentUpgrade.ID);
if(picpreview.Image == null)
picpreview.Image = CurrentSystem.FindBitmapResource(_currentUpgrade.ImageResource);
btnbuy.Show();
}
}
}
private void ResetUpgrades()
{
lbupgrades.Items.Clear();
foreach(var upgrade in CurrentSystem.GetUpgrades().OrderBy(x=>x.Name))
{
lbupgrades.Items.Add($"{upgrade.Name} - {upgrade.Cost} CP");
}
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
ResetUpgrades();
}
protected override void OnDesktopUpdate()
{
this.lbcodepoints.Text = $"Codepoints: {this.CurrentSystem.GetCodepoints()}";
base.OnDesktopUpdate();
}
private void lbupgrades_DrawItem(object sender, DrawItemEventArgs e)
{
e.DrawBackground();
if ((e.State & DrawItemState.Selected) == DrawItemState.Selected)
{
e.Graphics.FillRectangle(Brushes.Black, e.Bounds);
}
var sf = new StringFormat();
sf.Alignment = StringAlignment.Center;
// On Error Resume Next - ahhhh, lovely VB code porting...
try
{
using (var b = new SolidBrush(e.ForeColor))
{
e.Graphics.DrawString(lbupgrades.GetItemText(lbupgrades.Items[e.Index]), e.Font, b, e.Bounds, sf);
}
}
catch { }
e.DrawFocusRectangle();
}
private void lbupgrades_SelectedIndexChanged(object sender, EventArgs e)
{
if (lbupgrades.SelectedIndex >= 0)
{
if (!_started)
{
pnlinfo.Location = new Point(351, 0);
pnlintro.Hide();
_started = true;
}
var item = lbupgrades.GetItemText(lbupgrades.SelectedItem);
int dash = item.LastIndexOf("-");
string name = item.Substring(0, dash - 1);
int cost = int.Parse(item.Substring(dash + 2, (item.Length - 2) - (dash + 2)));
var upgrade = CurrentSystem.GetUpgrades().FirstOrDefault(x => x.Name == name && x.Cost == cost);
_currentUpgrade = upgrade;
UpdateUpgradeInfo();
}
}
private void btnbuy_Click(object sender, EventArgs e)
{
if(_currentUpgrade!=null)
{
if(_currentUpgrade.CanBuy(CurrentSystem))
{
CurrentSystem.Buy(_currentUpgrade);
ResetUpgrades();
UpdateUpgradeInfo();
}
}
}
}
}

View file

@ -0,0 +1,137 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="tmrcodepointsupdate.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="Label2.Text" xml:space="preserve">
<value>The shiftorium allows you to buy a range of upgrades that expand and enhance ShiftOS. Everything from system wide GUI and functionality improvements to new programs and program addons can be found here.
Buying GUI and functionality improvements can be very welcoming as they make the operating system easier and faster to use as well as better looking. Buying new programs and addons open up oportunities to earn codepoints and customise your system further.
Spending all your codepoints on GUI and functionality improvements can be dangerous however as you may find yourself with a good looking easy to use interface yet you may be unable to earn more codepoints.
Remember to close all programs after upgrading for full changes to take effect and that any attempt to modify system codepoints manually will result in curruption of the system, the lose of all your codepoints and potentially leave you unable to earn more codepoints.</value>
</data>
<data name="lbudescription.Text" xml:space="preserve">
<value>"Everything doesn't always have to be black and white. Give your programs and GUI some depth by mixing black and white together to form grey."
Note: You are unable to make controls grey until you buy the Shifter</value>
</data>
</root>

View file

@ -28,7 +28,9 @@
/// </summary>
private void InitializeComponent()
{
this.TerminalControl = new System.Windows.Forms.RichTextBox();
this.components = new System.ComponentModel.Container();
this.TerminalControl = new System.Windows.Forms.TextBox();
this.CommandInterpreterTimer = new System.Windows.Forms.Timer(this.components);
this.SuspendLayout();
//
// TerminalControl
@ -39,26 +41,37 @@
this.TerminalControl.Font = new System.Drawing.Font("Lucida Console", 8.25F);
this.TerminalControl.ForeColor = System.Drawing.Color.White;
this.TerminalControl.Location = new System.Drawing.Point(2, 30);
this.TerminalControl.Multiline = true;
this.TerminalControl.Name = "TerminalControl";
this.TerminalControl.Size = new System.Drawing.Size(597, 314);
this.TerminalControl.Size = new System.Drawing.Size(581, 275);
this.TerminalControl.TabIndex = 5;
this.TerminalControl.Text = "";
this.TerminalControl.TextChanged += new System.EventHandler(this.TerminalControl_TextChanged);
this.TerminalControl.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TerminalControl_KeyDown);
this.TerminalControl.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TerminalControl_KeyPress);
//
// CommandInterpreterTimer
//
this.CommandInterpreterTimer.Enabled = true;
this.CommandInterpreterTimer.Interval = 1;
this.CommandInterpreterTimer.Tick += new System.EventHandler(this.CommandInterpreterTimer_Tick);
//
// Terminal
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(585, 307);
this.Controls.Add(this.TerminalControl);
this.Name = "Terminal";
this.WindowIcon = global::ShiftOS.Properties.Resources.iconTerminal;
this.WindowTitle = "Terminal";
this.Controls.SetChildIndex(this.TerminalControl, 0);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.RichTextBox TerminalControl;
private System.Windows.Forms.TextBox TerminalControl;
private System.Windows.Forms.Timer CommandInterpreterTimer;
}
}

View file

@ -8,21 +8,147 @@ using System.Text;
using System.Threading.Tasks;
using ShiftOS.Windowing;
using ShiftOS.Metadata;
using ShiftOS.Commands;
using System.Windows.Forms;
namespace ShiftOS.Programs
{
[Program("terminal", "Terminal", "Run commands in a bash-like shell.")]
public partial class Terminal : Window
public partial class Terminal : Window, IConsoleContext
{
// This is an implementation of Peacenet's terminal in winforms. This is the stdin buffer. Stdout is in the textbox Text.
private string _inputBuffer = "";
private bool _interpreting = false;
private List<Action<string>> _latentCallbacks = new List<Action<string>>();
public Terminal()
{
InitializeComponent();
}
private void TerminalControl_TextChanged(object sender, EventArgs e)
protected override void OnDesktopUpdate()
{
// Hide the window border until the "Windowed Terminal" upgrade is purchased.
this.ShowShiftOSBorders = CurrentSystem.HasShiftoriumUpgrade("windowedterminal");
// Make ourselves maximized if the borders are hidden.
this.WindowState = ShowShiftOSBorders ? FormWindowState.Normal : FormWindowState.Maximized;
base.OnDesktopUpdate();
}
public void Write(string text)
{
TerminalControl.SelectionStart = TerminalControl.Text.Length;
TerminalControl.AppendText(text);
TerminalControl.SelectionStart = TerminalControl.Text.Length;
}
public void WriteLine(string text)
{
this.Write(text + Environment.NewLine);
}
public void Clear()
{
this.TerminalControl.Text = "";
this.TerminalControl.SelectionStart = 0;
}
public bool ReadLine(ref string OutLine)
{
if(_inputBuffer.Contains(Environment.NewLine))
{
OutLine = _inputBuffer.Substring(0, _inputBuffer.IndexOf(Environment.NewLine));
_inputBuffer = _inputBuffer.Remove(0, OutLine.Length + Environment.NewLine.Length);
return true;
}
else
{
OutLine = "";
return false;
}
}
private void CommandInterpreterTimer_Tick(object sender, EventArgs e)
{
if(_latentCallbacks.Count > 0)
{
var callback = _latentCallbacks[0];
string line = "";
if(ReadLine(ref line))
{
callback.Invoke(line);
_latentCallbacks.RemoveAt(0);
}
return;
}
if(!_interpreting)
{
Write($"{CurrentSystem.Username}@{CurrentSystem.OSName} $> ");
_interpreting = true;
}
string command = "";
if(ReadLine(ref command))
{
CurrentSystem.ExecuteCommand(this, command);
_interpreting = false;
}
}
private void TerminalControl_KeyPress(object sender, KeyPressEventArgs e)
{
if(e.KeyChar == '\b')
{
if(_inputBuffer.Length>0)
{
_inputBuffer = _inputBuffer.Remove(_inputBuffer.Length - 1, 1);
TerminalControl.Text = TerminalControl.Text.Remove(TerminalControl.Text.Length - 1, 1);
e.Handled = true;
}
}
else
{
if(e.KeyChar=='\r')
{
_inputBuffer += Environment.NewLine;
Write(Environment.NewLine);
e.Handled = true;
return;
}
if (e.KeyChar != '\0')
{
_inputBuffer += e.KeyChar;
Write(e.KeyChar.ToString());
e.Handled = true;
}
}
}
private void TerminalControl_KeyDown(object sender, KeyEventArgs e)
{
if(e.KeyCode==Keys.Left||e.KeyCode==Keys.Right||e.KeyCode==Keys.Up||e.KeyCode==Keys.Down)
{
e.Handled = true;
return;
}
}
public void Latent_ReadLine(Action<string> Callback)
{
string test = "";
if(ReadLine(ref test))
{
Callback?.Invoke(test);
return;
}
else
{
this._latentCallbacks.Add(Callback);
}
}
}
}

View file

@ -117,4 +117,7 @@
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="CommandInterpreterTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

View file

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8" ?>
<grammar version="1.0" xml:lang="en-US"
xmlns="http://www.w3.org/2001/06/grammar"
tag-format="semantics/1.0" root="Main">
<!-- Catalyst Grammar File
This file gives Catalyst the ability to recognize
audio input and give a proper response.
-->
<rule id="Main">
<item>
How much Code Points do I have?
</item>
<item>Can you run <ruleref uri="#programs"/>?</item>
<item>Can you minimize <ruleref uri="#programs"/>?</item>
<item>Can you close <ruleref uri="#programs"/>?</item>
</rule>
<rule id="programs" scope="public">
<one-of>
<item> Terminal</item>
<item> Knowledge Input</item>
<item> Pong</item>
<item> Shiftorium</item>
<item> Shifter</item>
<item> Labyrinth</item>
<item> Web Browser</item>
<item> Shiftnet</item>
<item> Skin Loader</item>
<item> Skin Shifter</item>
<item> Artpad</item>
<item> TextPad</item>
<item> OrcWrite</item>
<item> File Skimmer</item>
<item> Name Changer</item>
<item> Icon Manager</item>
</one-of>
</rule>
</grammar>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View file

@ -0,0 +1,7 @@
Desktop++ v1.0
Ever wanted to have a useful desktop with icons? Icons that can open files, websites or other content? Icons that can be dragged across the screen any way you like? Well, Desktop++ is for you. Desktop++ constantly scans 'C:/ShiftOS/Home/Desktop' and creates an icon for each file and folder within.
Desktop++ also allows you to change between Icon and Tile view, where Tile view gives more information, and Icon View allows simplicity and draggability. It also allows you to dump a Text File containing the specs of your PC. The possibilities are endless.
By using Desktop++, you agree that we send anonymous usability data directly to DevX.

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

View file

@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2015 ShiftOS
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

File diff suppressed because it is too large Load diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Some files were not shown because too many files have changed in this diff Show more