file skimmer icons

This commit is contained in:
Michael 2017-08-05 15:44:09 -04:00
parent 01683f1fcb
commit ec363f09ca
53 changed files with 934 additions and 31 deletions

View file

@ -1,10 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ShiftOS.Engine;
using ShiftOS.Frontend.GraphicsSubsystem;
using ShiftOS.Frontend.GUI;
using static ShiftOS.Objects.ShiftFS.Utils;
namespace ShiftOS.Frontend.Apps
@ -16,7 +20,7 @@ namespace ShiftOS.Frontend.Apps
{
private string _currentdirectory = "0:";
private const string SD_SYSTEM = "__system";
private GUI.ListBox _fList = null;
private GUI.ListView _fList = null;
private GUI.TextControl _currentdirtext = null;
public void OnLoad()
@ -46,19 +50,21 @@ namespace ShiftOS.Frontend.Apps
Width = 720;
Height = 480;
_fList = new GUI.ListBox();
_fList = new GUI.ListView();
//TODO: keyboard support in listviews
/*
_fList.KeyEvent += (e) =>
{
if(e.Key == Microsoft.Xna.Framework.Input.Keys.Enter)
{
Navigate(_fList.SelectedItem.ToString());
}
};
};*/
_fList.DoubleClick += () =>
{
try
{
Navigate(_fList.SelectedItem.ToString());
Navigate(_fList.SelectedItem.Tag);
}
catch { }
};
@ -69,30 +75,28 @@ namespace ShiftOS.Frontend.Apps
ResetList();
}
public void Navigate(string relativepath)
public void Navigate(string path)
{
if (relativepath == "Up one...")
if(path == "__up")
{
if (_currentdirectory.Contains('/'))
{
int _index = _currentdirectory.LastIndexOf('/');
int _len = _currentdirectory.Length - _index;
_currentdirectory = _currentdirectory.Remove(_index, _len);
ResetList();
}
else
if (_currentdirectory == SD_SYSTEM)
throw new NaughtyDeveloperException("Someone tried to make it so you can go \"up one directory\" in the mounts list.");
if (_currentdirectory.EndsWith(":"))
{
_currentdirectory = SD_SYSTEM;
ResetList();
return;
}
else
{
int slashlast = _currentdirectory.LastIndexOf("/");
int len = _currentdirectory.Length - slashlast;
_currentdirectory = _currentdirectory.Remove(slashlast, len);
ResetList();
return;
}
return;
}
string path = "";
if (_currentdirectory == SD_SYSTEM)
path = relativepath;
else
path = _currentdirectory + "/" + relativepath;
if (DirectoryExists(path))
{
_currentdirectory = path;
@ -102,16 +106,73 @@ namespace ShiftOS.Frontend.Apps
{
if (!FileSkimmerBackend.OpenFile(path))
{
Engine.Infobox.Show("File Skimmer can't open this file!", "A program that can open files of this type was not found on your computer.");
Engine.Infobox.Show("File Skimmer can't open this file!", "File Skimmer couldn't find a program that can open a file of this type. Please install a program that can handle this file and try again.");
}
}
}
public Texture2D ToTexture2D(System.Drawing.Image img)
{
if (img == null)
return null;
using(var bmp = new System.Drawing.Bitmap(img))
{
var lck = bmp.LockBits(new System.Drawing.Rectangle(0, 0, bmp.Width, bmp.Height), System.Drawing.Imaging.ImageLockMode.ReadOnly, System.Drawing.Imaging.PixelFormat.Format32bppArgb);
var arr = new byte[Math.Abs(lck.Stride) * lck.Height];
Marshal.Copy(lck.Scan0, arr, 0, arr.Length);
for(int i = 0; i < arr.Length; i += 4)
{
byte r = arr[i];
byte b = arr[i + 2];
arr[i] = b;
arr[i + 2] = r;
}
var tex2 = new Texture2D(UIManager.GraphicsDevice, bmp.Width, bmp.Height);
tex2.SetData<byte>(arr);
bmp.UnlockBits(lck);
return tex2;
}
}
public void OnSkinLoad()
{
foreach(var name in Enum.GetNames(typeof(FileType)))
{
FileType ftype = (FileType)Enum.Parse(typeof(FileType), name);
var img = ToTexture2D(GetImage(ftype));
_fList.SetImage(name, img);
}
_currentdirtext.Font = SkinEngine.LoadedSkin.Header3Font;
}
public System.Drawing.Image GetImage(FileType type)
{
switch (type)
{
case FileType.UpOne:
return Properties.Resources.fileicon5;
case FileType.Mount:
case FileType.Directory:
return Properties.Resources.fileicon0;
case FileType.Executable:
case FileType.Lua:
case FileType.Python:
return Properties.Resources.fileiconsaa;
case FileType.Image:
return Properties.Resources.fileicon3;
case FileType.Skin:
return Properties.Resources.fileicon10;
case FileType.TextFile:
return Properties.Resources.fileicon2;
case FileType.CommandFormat:
return Properties.Resources.fileiconcf;
default:
return Properties.Resources.fileicon1;
}
}
public bool OnUnload()
{
return true;
@ -130,13 +191,25 @@ namespace ShiftOS.Frontend.Apps
_fList.ClearItems();
if (_currentdirectory != SD_SYSTEM)
_fList.AddItem("Up one...");
_fList.AddItem(new GUI.ListViewItem
{
Text = "Up one...",
Tag = "__up",
ImageKey = FileType.UpOne.ToString()
});
if(_currentdirectory == SD_SYSTEM)
{
foreach(var mount in Mounts)
{
_fList.AddItem(Mounts.IndexOf(mount) + ":");
string mountpath = $"{Mounts.IndexOf(mount)}:";
string name = $"{mount.Name} ({mountpath})";
_fList.AddItem(new ListViewItem
{
Text = name,
Tag = mountpath,
ImageKey = FileType.Mount.ToString()
});
}
}
else
@ -144,12 +217,25 @@ namespace ShiftOS.Frontend.Apps
foreach(var dir in GetDirectories(_currentdirectory))
{
var dinf = GetDirectoryInfo(dir);
_fList.AddItem(dinf.Name);
_fList.AddItem(new ListViewItem
{
Text = dinf.Name,
Tag = dir,
ImageKey = FileType.Directory.ToString()
});
}
foreach (var dir in GetFiles(_currentdirectory))
{
var dinf = GetFileInfo(dir);
_fList.AddItem(dinf.Name);
var ext = FileSkimmerBackend.GetFileType(dir);
_fList.AddItem(new ListViewItem
{
Text = dinf.Name,
Tag = dir,
ImageKey = ext.ToString()
});
}
}

View file

@ -0,0 +1,199 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using ShiftOS.Frontend.GraphicsSubsystem;
using static ShiftOS.Engine.SkinEngine;
namespace ShiftOS.Frontend.GUI
{
public class ListView : Control
{
private List<ListViewItem> _items = null;
private Dictionary<string, Texture2D> _images = null;
private const int _itemimagemargin = 15;
private const int _initialmargin = 20;
private const int _itemgap = 5;
private int scroll = 0;
private const int defaulttexturesize = 42;
private int _selected = -1;
public ListView()
{
_items = new List<ListViewItem>();
_images = new Dictionary<string, Texture2D>();
Click += () =>
{
using (var gfx = System.Drawing.Graphics.FromHwnd(IntPtr.Zero))
{
int _itemx = _initialmargin;
int _itemy = _initialmargin - scroll;
int yhelper = 0;
foreach (var item in _items)
{
Texture2D image = null;
int texwidth = defaulttexturesize;
int texheight = defaulttexturesize;
if (_images.ContainsKey(item.ImageKey))
{
texwidth = _images[item.ImageKey].Width;
texheight = _images[item.ImageKey].Height;
image = _images[item.ImageKey];
}
int textwidth = texwidth + (_itemimagemargin * 2);
var textmeasure = gfx.MeasureString(item.Text, LoadedSkin.MainFont, textwidth);
yhelper = Math.Max(yhelper, _itemy + texheight + (int)textmeasure.Height);
int texty = _itemy + texheight;
int textx = _itemx + ((textwidth - (int)textmeasure.Width) / 2);
if(MouseX >= _itemx && MouseX <= _itemx + textwidth)
{
if(MouseY >= _itemy && MouseY <= _itemy + texheight + (int)textmeasure.Height)
{
_selected = _items.IndexOf(item);
Invalidate();
return;
}
}
_itemx += textwidth + _itemgap;
if (_itemx >= (Width - (_initialmargin * 2)))
{
_itemx = _initialmargin;
_itemy += yhelper;
}
}
}
_selected = -1;
Invalidate();
};
}
public int SelectedIndex
{
get
{
return _selected;
}
set
{
if (value == _selected)
return;
_selected = MathHelper.Clamp(value, -1, _items.Count - 1);
Invalidate();
}
}
public ListViewItem SelectedItem
{
get
{
if (_selected == -1)
return null;
return _items[_selected];
}
}
public void ClearItems()
{
_items.Clear();
scroll = 0;
_selected = -1;
Invalidate();
}
public void RemoveItem(ListViewItem item)
{
if (!_items.Contains(item))
throw new ArgumentException("This list view doesn't contain that item.");
if (_selected == _items.IndexOf(item))
_selected = -1;
_items.Remove(item);
Invalidate();
}
public void AddItem(ListViewItem item)
{
if (_items.Contains(item))
throw new ArgumentException("Item already exists in this listview.");
_items.Add(item);
Invalidate();
}
public void SetImage(string key, Texture2D value)
{
if (_images.ContainsKey(key))
_images[key] = value;
else
_images.Add(key, value);
Invalidate();
}
public Texture2D GetImage(string key)
{
if (_images.ContainsKey(key))
return _images[key];
return null;
}
public void ClearImages()
{
_images.Clear();
}
protected override void OnPaint(GraphicsContext gfx)
{
gfx.Clear(LoadedSkin.ControlColor.ToMonoColor());
int _itemx = _initialmargin;
int _itemy = _initialmargin - scroll;
int yhelper = 0;
foreach (var item in _items)
{
Texture2D image = null;
int texwidth = defaulttexturesize;
int texheight = defaulttexturesize;
if (_images.ContainsKey(item.ImageKey))
{
texwidth = _images[item.ImageKey].Width;
texheight = _images[item.ImageKey].Height;
image = _images[item.ImageKey];
}
int textwidth = texwidth + (_itemimagemargin * 2);
var textmeasure = gfx.MeasureString(item.Text, LoadedSkin.MainFont, textwidth);
yhelper = Math.Max(yhelper, _itemy + texheight + (int)textmeasure.Y);
if(image != null)
{
int imageDrawX = _itemx + ((textwidth - texwidth) / 2);
gfx.DrawRectangle(imageDrawX, _itemy, texwidth, texheight, image);
}
int texty = _itemy + texheight;
int textx = _itemx + ((textwidth - (int)textmeasure.X) / 2);
if(_items.IndexOf(item) == _selected)
{
gfx.DrawRectangle(textx, texty, (int)textmeasure.X, (int)textmeasure.Y, LoadedSkin.ButtonPressedColor.ToMonoColor());
}
gfx.DrawString(item.Text, textx, texty, LoadedSkin.ControlTextColor.ToMonoColor(), LoadedSkin.MainFont, textwidth);
_itemx += textwidth + _itemgap;
if(_itemx >= (Width - (_initialmargin * 2)))
{
_itemx = _initialmargin;
_itemy += yhelper;
}
}
}
}
public class ListViewItem
{
public string Text { get; set; }
public string Tag { get; set; }
public string ImageKey { get; set; }
}
}

View file

@ -154,9 +154,9 @@ namespace ShiftOS.Frontend.GraphicsSubsystem
var sFormat = System.Drawing.StringFormat.GenericTypographic;
sFormat.FormatFlags |= System.Drawing.StringFormatFlags.NoClip;
/*gfx.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
gfx.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality;
gfx.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic;
gfx.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;*/
gfx.PixelOffsetMode = System.Drawing.Drawing2D.PixelOffsetMode.HighQuality;
gfx.TextRenderingHint = System.Drawing.Text.TextRenderingHint.AntiAliasGridFit;
gfx.DrawString(text, font, System.Drawing.Brushes.Black, new System.Drawing.RectangleF(0, 0, bmp.Width, bmp.Height), sFormat);

View file

@ -111,6 +111,226 @@ namespace ShiftOS.Frontend.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon0 {
get {
object obj = ResourceManager.GetObject("fileicon0", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon1 {
get {
object obj = ResourceManager.GetObject("fileicon1", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon10 {
get {
object obj = ResourceManager.GetObject("fileicon10", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon11 {
get {
object obj = ResourceManager.GetObject("fileicon11", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon12 {
get {
object obj = ResourceManager.GetObject("fileicon12", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon13 {
get {
object obj = ResourceManager.GetObject("fileicon13", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon14 {
get {
object obj = ResourceManager.GetObject("fileicon14", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon15 {
get {
object obj = ResourceManager.GetObject("fileicon15", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon16 {
get {
object obj = ResourceManager.GetObject("fileicon16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon17 {
get {
object obj = ResourceManager.GetObject("fileicon17", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon18 {
get {
object obj = ResourceManager.GetObject("fileicon18", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon19 {
get {
object obj = ResourceManager.GetObject("fileicon19", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon2 {
get {
object obj = ResourceManager.GetObject("fileicon2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon3 {
get {
object obj = ResourceManager.GetObject("fileicon3", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon4 {
get {
object obj = ResourceManager.GetObject("fileicon4", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon5 {
get {
object obj = ResourceManager.GetObject("fileicon5", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon6 {
get {
object obj = ResourceManager.GetObject("fileicon6", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon7 {
get {
object obj = ResourceManager.GetObject("fileicon7", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon8 {
get {
object obj = ResourceManager.GetObject("fileicon8", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileicon9 {
get {
object obj = ResourceManager.GetObject("fileicon9", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileiconcf {
get {
object obj = ResourceManager.GetObject("fileiconcf", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
public static System.Drawing.Bitmap fileiconsaa {
get {
object obj = ResourceManager.GetObject("fileiconsaa", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to {
/// Name: &quot;Cowsay Fire Hydrant Cowfile&quot;,
@ -185,10 +405,10 @@ namespace ShiftOS.Frontend.Properties {
/// PointTo: &quot;banana_cow_stp&quot;,
/// },
/// {
/// FriendlyName: &quot;SSHardline&quot;,
/// LootName: &quot;sploitset_sshardline.stp&quot;,
/// FriendlyName: &quot;Fire Hydrant Cow&quot;,
/// LootName: &quot;fire hydrant.cow.stp&quot;,
/// Rarity: 1,
/// PointTo: &quot;sploitset_ssh [rest of string was truncated]&quot;;.
/// PointTo: &quot;fire_hydran [rest of string was truncated]&quot;;.
/// </summary>
public static string LootInfo {
get {
@ -205,10 +425,11 @@ namespace ShiftOS.Frontend.Properties {
///
///[
/// {
/// FriendlyName: &quot;FTP Payload&quot;,
/// FriendlyName: &quot;FTP File Puller Payload&quot;,
/// PayloadName: &quot;ftpull&quot;,
/// EffectiveAgainstFirewall: 1,
/// EffectiveAgainst: &quot;FileServer&quot;,
/// Function: 2
/// },
/// {
/// FriendlyName: &quot;Force Heartbeat&quot;,

View file

@ -163,4 +163,70 @@
<data name="fire hydrant.cow.stp" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fire hydrant.cow.stp.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="fileicon0" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon0.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon1.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon10" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon10.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon11" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon11.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon12" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon12.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon13" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon13.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon14" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon14.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon15" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon15.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon16.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon17" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon17.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon18" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon18.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon19" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon19.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon2.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon3" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon3.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon4" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon4.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon5" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon5.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon6" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon6.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon7" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon7.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon8" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon8.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon9" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon9.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileiconcf" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileiconcf.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileiconsaa" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileiconsaa.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 606 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 557 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 851 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

View file

@ -62,6 +62,7 @@
<Compile Include="GUI\Control.cs" />
<Compile Include="GUI\ItemGroup.cs" />
<Compile Include="GUI\ListBox.cs" />
<Compile Include="GUI\ListView.cs" />
<Compile Include="GUI\PictureBox.cs" />
<Compile Include="GUI\ProgressBar.cs" />
<Compile Include="GUI\TextControl.cs" />
@ -207,6 +208,28 @@
<None Include="Resources\pong.txt" />
<None Include="Resources\banana.cow.stp.txt" />
<None Include="Resources\fire hydrant.cow.stp.txt" />
<None Include="Resources\fileiconcf.bmp" />
<None Include="Resources\fileicon9.bmp" />
<None Include="Resources\fileiconsaa.png" />
<None Include="Resources\fileicon8.bmp" />
<None Include="Resources\fileicon6.bmp" />
<None Include="Resources\fileicon7.bmp" />
<None Include="Resources\fileicon4.bmp" />
<None Include="Resources\fileicon5.bmp" />
<None Include="Resources\fileicon2.bmp" />
<None Include="Resources\fileicon3.bmp" />
<None Include="Resources\fileicon18.bmp" />
<None Include="Resources\fileicon19.bmp" />
<None Include="Resources\fileicon16.bmp" />
<None Include="Resources\fileicon17.bmp" />
<None Include="Resources\fileicon15.bmp" />
<None Include="Resources\fileicon13.bmp" />
<None Include="Resources\fileicon14.bmp" />
<None Include="Resources\fileicon11.bmp" />
<None Include="Resources\fileicon12.bmp" />
<None Include="Resources\fileicon1.bmp" />
<None Include="Resources\fileicon10.bmp" />
<None Include="Resources\fileicon0.bmp" />
<Content Include="Resources\Ports.txt" />
<Content Include="Resources\Payloads.txt" />
<Content Include="Resources\Exploits.txt" />

View file

@ -60,6 +60,226 @@ namespace ShiftOS.Engine.Properties {
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon0 {
get {
object obj = ResourceManager.GetObject("fileicon0", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon1 {
get {
object obj = ResourceManager.GetObject("fileicon1", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon10 {
get {
object obj = ResourceManager.GetObject("fileicon10", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon11 {
get {
object obj = ResourceManager.GetObject("fileicon11", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon12 {
get {
object obj = ResourceManager.GetObject("fileicon12", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon13 {
get {
object obj = ResourceManager.GetObject("fileicon13", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon14 {
get {
object obj = ResourceManager.GetObject("fileicon14", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon15 {
get {
object obj = ResourceManager.GetObject("fileicon15", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon16 {
get {
object obj = ResourceManager.GetObject("fileicon16", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon17 {
get {
object obj = ResourceManager.GetObject("fileicon17", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon18 {
get {
object obj = ResourceManager.GetObject("fileicon18", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon19 {
get {
object obj = ResourceManager.GetObject("fileicon19", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon2 {
get {
object obj = ResourceManager.GetObject("fileicon2", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon3 {
get {
object obj = ResourceManager.GetObject("fileicon3", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon4 {
get {
object obj = ResourceManager.GetObject("fileicon4", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon5 {
get {
object obj = ResourceManager.GetObject("fileicon5", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon6 {
get {
object obj = ResourceManager.GetObject("fileicon6", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon7 {
get {
object obj = ResourceManager.GetObject("fileicon7", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon8 {
get {
object obj = ResourceManager.GetObject("fileicon8", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileicon9 {
get {
object obj = ResourceManager.GetObject("fileicon9", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileiconcf {
get {
object obj = ResourceManager.GetObject("fileiconcf", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap fileiconsaa {
get {
object obj = ResourceManager.GetObject("fileiconsaa", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to .
/// </summary>

View file

@ -142,4 +142,70 @@
<data name="pywintemplate" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\pywintemplate.txt;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252</value>
</data>
<data name="fileicon0" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon0.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon1.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon10" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon10.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon11" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon11.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon12" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon12.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon13" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon13.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon14" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon14.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon15" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon15.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon16" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon16.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon17" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon17.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon18" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon18.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon19" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon19.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon2" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon2.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon3" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon3.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon4" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon4.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon5" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon5.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon6" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon6.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon7" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon7.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon8" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon8.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileicon9" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileicon9.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileiconcf" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileiconcf.bmp;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fileiconsaa" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fileiconsaa.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 270 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 430 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 469 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 413 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 606 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 548 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 557 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 851 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

View file

@ -1791,6 +1791,28 @@
<Content Include="Lib\__phello__.foo.py">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<None Include="Resources\fileicon0.bmp" />
<None Include="Resources\fileicon10.bmp" />
<None Include="Resources\fileicon1.bmp" />
<None Include="Resources\fileicon12.bmp" />
<None Include="Resources\fileicon11.bmp" />
<None Include="Resources\fileicon14.bmp" />
<None Include="Resources\fileicon13.bmp" />
<None Include="Resources\fileicon15.bmp" />
<None Include="Resources\fileicon17.bmp" />
<None Include="Resources\fileicon16.bmp" />
<None Include="Resources\fileicon19.bmp" />
<None Include="Resources\fileicon18.bmp" />
<None Include="Resources\fileicon3.bmp" />
<None Include="Resources\fileicon2.bmp" />
<None Include="Resources\fileicon5.bmp" />
<None Include="Resources\fileicon4.bmp" />
<None Include="Resources\fileicon7.bmp" />
<None Include="Resources\fileicon6.bmp" />
<None Include="Resources\fileicon8.bmp" />
<None Include="Resources\fileiconsaa.png" />
<None Include="Resources\fileicon9.bmp" />
<None Include="Resources\fileiconcf.bmp" />
<None Include="Resources\pywintemplate.txt" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />