Label { this, text = $"With contributions from...", font = { $"Tahoma", 8.25f, bold = true }, position = { 16, 208 } };
Button licensingBtn
{
- this, anchor = { left = 40, bottom = 10 }; hotKey = l; text = "Software Licenses";
+ this, anchor = { left = 40, bottom = 10 }; hotKey = altL; text = "Software Licenses";
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
LicensesForm { master = this }.Modal();
return true;
}
};
+ Button button
+ {
+ this, text = $"OK", isDefault = true, size = { 80, 20 }, anchor = { right = 13, bottom = 10 };
+
+ bool NotifyClicked(Button button, int x, int y, Modifiers mods)
+ {
+ Destroy(0);
+ return true;
+ }
+ };
EditBox credits
{
this, borderStyle = none, noCaret = true, readOnly = true, anchor = { left = 16, top = 236, bottom = 48, right = 16 },
"Réjean Loyer\n"
" Most of the additional programming on the IDE\n"
" Initial EDA design\n"
+ " Cross-platform and cross-compiler Makefile build system\n"
"\n"
"Juan Sánchez\n"
" Oracle EDA driver\n"
"\n"
" Richard M. Stallman (Bison, GCC)\n"
"\n"
- " Linus Torvalds (Git, Linux)\n"
+ " Linus Torvalds (Git, Linux)"
};
/*Label { this, text = "Réjean Loyer, Joey Adams, Max Maton", position = { 124, 176 } };
*/
return true;
}
};
- Button button
- {
- this, text = $"OK", isDefault = true, size = { 80, 20 }, anchor = { right = 13, bottom = 10 };
-
- bool NotifyClicked(Button button, int x, int y, Modifiers mods)
- {
- Destroy(0);
- return true;
- }
- };
}
sourceFile = ":licenses/gpl.LICENSE";
tabControl = tabControl;
};
- Button ok
+/* Button ok
{
this;
text = "OK";
isDefault = true;
NotifyClicked = ButtonCloseDialog;
};
+*/
+ Button dontAgreeButton
+ {
+ this;
+ text = $"I don't agree";
+ size = { 100, 22 };
+ anchor = { bottom = 10, right = 14 };
+
+ bool NotifyClicked(Button button, int x, int y, Modifiers mods)
+ {
+ ((GuiApplication)__thisModule).desktop.Destroy(0);
+ return true;
+ }
+ };
+ Button agreeButton
+ {
+ this;
+ text = $"I agree";
+ font = { "Verdana", 10, bold = true };
+ isDefault = true;
+ size = { 80, 23 };
+ anchor = { bottom = 10 };
+ NotifyClicked = ButtonCloseDialog;
+ };
}
{
"Folder" : "src",
"Files" : [
- "createLink.ec",
- "installer.ec",
- "licenseBox.ec"
+ "installer.ec"
]
},
"../ide/src/IDESettings.ec",
"../ide/src/OldIDESettings.ec",
- "../extras/gui/controls/StringsBox.ec"
+ "../extras/gui/controls/StringsBox.ec",
+ "../ide/src/licensing.ec",
+ "../extras/createLink.ec"
],
"ResourcesPath" : "",
"Resources" : [
}
]
},
+ {
+ "Folder" : "licenses",
+ "Files" : [
+ "../extras/res/licenses/freetype.LICENSE",
+ "../extras/res/licenses/gpl.LICENSE",
+ "../extras/res/licenses/harfbuzz.LICENSE",
+ "../extras/res/licenses/jpg.LICENSE",
+ "../extras/res/licenses/png.LICENSE",
+ "../extras/res/licenses/sqlite.LICENSE",
+ "../extras/res/licenses/tango.COPYING",
+ "../extras/res/licenses/ungif.LICENSE",
+ "../extras/res/licenses/upx.LICENSE",
+ "../extras/res/licenses/zlib.README",
+ "../LICENSE"
+ ]
+ },
"../ide/res/icon.png",
"ecere.png",
"ryoanji.png",
#endif
import "IDESettings"
import "createLink"
-import "licenseBox"
+// import "licenseBox"
+import "licensing"
class CheckListBox : ListBox
{
bool NotifyClicked(Button button, int x, int y, Modifiers mods)
{
- LicenseBox { master = this, sourceFile = ":ecere-sdk/doc/LICENSE" }.Modal();
+ // LicenseBox { master = this, sourceFile = ":ecere-sdk/doc/LICENSE" }.Modal();
+ LicensesForm { master = this }.Modal();
return true;
}
};
+++ /dev/null
-#ifdef ECERE_STATIC
-import static "ecere"
-#else
-import "ecere"
-#endif
-
-class LicenseBox : Window
-{
- text = $"Ecere SDK License Agreement";
- clientSize = { 700, 480 };
- hasClose = true;
- borderStyle = sizable;
- background = activeBorder;
- tabCycle = true;
- font = { "Verdana", 10 };
- EditBox editBox
- {
- this,
- multiLine = true;
- hasHorzScroll = true;
- hasVertScroll = true;
- borderStyle = deep;
- anchor = { 10, 10, 10, 40 };
- readOnly = true;
- noCaret = true;
- font = { "Courier New", 10 };
- };
- property char * sourceFile
- {
- set
- {
- File f = FileOpen(value, read);
- if(f)
- {
- editBox.Load(f);
- delete f;
- }
- }
- }
- Button dontAgreeButton
- {
- this;
- text = $"I don't agree";
- size = { 100, 22 };
- anchor = { bottom = 10, right = 14 };
-
- bool NotifyClicked(Button button, int x, int y, Modifiers mods)
- {
- ((GuiApplication)__thisModule).desktop.Destroy(0);
- return true;
- }
- };
- Button agreeButton
- {
- this;
- text = $"I agree";
- font = { "Verdana", 10, bold = true };
- isDefault = true;
- size = { 80, 23 };
- anchor = { bottom = 10 };
- NotifyClicked = ButtonCloseDialog;
- };
-}