Skip to content

Commit 5687020

Browse files
Ide IDE v1.2.0 : Window Designer
1 parent 869447a commit 5687020

10 files changed

Lines changed: 1494 additions & 6 deletions

EZ_IDE/EZCode_Syntax.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<rule style="Math">abs\((.*?)\)|pi\(\)|neg\((.*?)\)|sq\((.*?)\)|sqr\((.*?)\)|round\((.*?)\)|pow\((.*?)\)|clamp\((.*?)\)|sum\((.*?)\)|avg\((.*?)\)|min\((.*?)\)|max\((.*?)\)|</rule>
3737

3838
<style name="Properties" color="SkyBlue" fontStyle="Regular"/>
39-
<rule style="Properties">\b(focus:|readonly:|z:|enable:|font:|point:|points:|auto:|align:|autosize:|multi:|multiline:|wrap:|wordwrap:|vertical:|verticalscrollbar:|horizantal:|horizantalscrollbar:|x:|y:|t:|text:|h:|height:|w:|width:|bc:|bg:|backcolor:|fc:|fg:|forecolor:|poly:|p:|image:|imagelayout:|foucs:|enable:|minwidth:|maxwidth:|minheight:|maxheight:|opacity:|showicon:|showintaskbar:|icon:|state:|type:|startposition:)</rule>
39+
<rule style="Properties">\b(focus:|readonly:|z:|enable:|font:|minimizebox:|maximizebox:|anchor:|visible:|point:|points:|auto:|align:|autosize:|multi:|multiline:|wrap:|wordwrap:|vertical:|verticalscrollbar:|horizantal:|horizantalscrollbar:|x:|y:|t:|text:|h:|height:|w:|width:|bc:|bg:|backcolor:|fc:|fg:|forecolor:|poly:|p:|image:|imagelayout:|foucs:|enable:|minwidth:|maxwidth:|minheight:|maxheight:|opacity:|showicon:|showintaskbar:|icon:|state:|type:|startposition:)</rule>
4040

4141
<style name="ColonResponse" color="SkyBlue" fontStyle="Regular"/>
4242
<rule style="ColonResponse">\b(:length|:contains|system:|:time|:random|:isnumber|:machine|:currentfile|:currentplaydirectory|:space|:newline|:pipe|:nothing)</rule>

EZ_IDE/EZ_IDE.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
</ItemGroup>
1515

1616
<ItemGroup>
17+
<PackageReference Include="Control.Draggable" Version="1.0.5049.269" />
1718
<PackageReference Include="FCTB" Version="2.16.24" />
1819
</ItemGroup>
1920

EZ_IDE/IDE.Designer.cs

Lines changed: 13 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

EZ_IDE/IDE.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace EZ_IDE
1313
{
1414
public partial class IDE : Form
1515
{
16-
public static readonly string Version = "1.1.2";
16+
public static readonly string Version = "1.2.0";
1717

1818
#region AutoComplete
1919
readonly AutocompleteMenu popupMenu;
@@ -636,6 +636,8 @@ protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
636636
formatTextToolStripMenuItem.PerformClick(); break;
637637
case Keys.Alt | Keys.G:
638638
ezTextToEzcodeToolStripMenuItem.PerformClick(); break;
639+
case Keys.Alt | Keys.W:
640+
windowDesignerToolStripMenuItem.PerformClick(); break;
639641
case Keys.Control | Keys.W:
640642
playInDedicatedWindowToolStripMenuItem.PerformClick(); break;
641643
case Keys.Control | Keys.D:
@@ -653,6 +655,8 @@ protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
653655
break;
654656
case Keys.Alt | Keys.T:
655657
formatTextToolStripMenuItem.PerformClick(); break;
658+
case Keys.Alt | Keys.W:
659+
windowDesignerToolStripMenuItem.PerformClick(); break;
656660
case Keys.Alt | Keys.G:
657661
ezTextToEzcodeToolStripMenuItem.PerformClick(); break;
658662
case Keys.Alt | Keys.P:
@@ -1269,6 +1273,20 @@ private void eZTextoEzcodeToolStripMenuItem_Click(object sender, EventArgs e)
12691273
eztext_to_ezcode.ShowDialog();
12701274
}
12711275

1276+
private void windowDesignerToolStripMenuItem_Click(object sender, EventArgs e)
1277+
{
1278+
// window designer
1279+
if (Window_Designer.Instance == null)
1280+
{
1281+
Window_Designer window_Designer = new Window_Designer();
1282+
window_Designer.Show();
1283+
}
1284+
else
1285+
{
1286+
Window_Designer.Instance.BringToFront();
1287+
}
1288+
}
1289+
12721290
private void playInDedicatedWindowToolStripMenuItem_Click(object sender, EventArgs e)
12731291
{
12741292
Settings.Play_In_Dedicated_Window = playInDedicatedWindowToolStripMenuItem.Checked;

EZ_IDE/IDE.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@
192192
AAEAAAD/////AQAAAAAAAAAMAgAAAEZTeXN0ZW0uV2luZG93cy5Gb3JtcywgQ3VsdHVyZT1uZXV0cmFs
193193
LCBQdWJsaWNLZXlUb2tlbj1iNzdhNWM1NjE5MzRlMDg5BQEAAAAmU3lzdGVtLldpbmRvd3MuRm9ybXMu
194194
SW1hZ2VMaXN0U3RyZWFtZXIBAAAABERhdGEHAgIAAAAJAwAAAA8DAAAACAgAAAJNU0Z0AUkBTAIBAQMB
195-
AAHQAQUB0AEFARABAAEQAQAE/wEZAQAI/wFCAU0BNgcAATYDAAEoAwABQAMAARADAAEBAQABGAYAAQwh
195+
AAHYAQUB2AEFARABAAEQAQAE/wEZAQAI/wFCAU0BNgcAATYDAAEoAwABQAMAARADAAEBAQABGAYAAQwh
196196
AAP/A/QD/jkAA/8DAAP/FQAD/gP7A/cD9gP5A/1RAAO9AbMBsgGxA+0zAAP5AbwBuwG8A88DvwP9DwAD
197197
/gP1A+AD0gHMAcsBzALTAdQD6gP8A/9LAAP+Ac8CzgHLAcoByAO7A/QqAAP9A8EC7wHwA+kD6APdA/8J
198198
AAP+A/UB2gLYAckCxQHBArwBtAGzAbQBrwGsAa4BwAG/AcAD5wP8SwAD7gHxAvAC7gHtAecB5QHkAcIB

EZ_IDE/Project_Settings_Form.cs

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,59 @@ public static FileInfo ChooseFile()
476476
return null;
477477
}
478478

479+
public override string ToString()
480+
{
481+
return fileInfo?.FullName;
482+
}
483+
}
484+
public class ImageFile
485+
{
486+
private FileInfo fileInfo;
487+
488+
public ImageFile()
489+
{
490+
fileInfo = ChooseFile();
491+
}
492+
493+
public ImageFile(string filePath)
494+
{
495+
fileInfo = new FileInfo(filePath);
496+
}
497+
498+
[Category("Project Properties")]
499+
[DisplayName("Image Path")]
500+
[Description("Path to the image.")]
501+
public string FilePath
502+
{
503+
get { return fileInfo?.FullName; }
504+
set
505+
{
506+
if (string.IsNullOrEmpty(value))
507+
{
508+
fileInfo = null;
509+
}
510+
else
511+
{
512+
fileInfo = new FileInfo(value);
513+
}
514+
}
515+
}
516+
517+
public static FileInfo ChooseFile()
518+
{
519+
using (OpenFileDialog openFileDialog = new OpenFileDialog())
520+
{
521+
openFileDialog.Title = "Select a File";
522+
openFileDialog.Filter = "Image Files|*.bmp;*.jpg;*.jpeg;*.gif;*.png;*.tiff;*.ico|All Files|*.*";
523+
524+
if (openFileDialog.ShowDialog() == DialogResult.OK)
525+
{
526+
return new FileInfo(openFileDialog.FileName);
527+
}
528+
}
529+
return null;
530+
}
531+
479532
public override string ToString()
480533
{
481534
return fileInfo?.FullName;

0 commit comments

Comments
 (0)