installer: Use of licensing dialog in Installer
authorJerome St-Louis <jerome@ecere.com>
Thu, 8 Mar 2012 03:42:55 +0000 (22:42 -0500)
committerJerome St-Louis <jerome@ecere.com>
Thu, 8 Mar 2012 03:42:55 +0000 (22:42 -0500)
extras/createLink.ec [moved from installer/src/createLink.ec with 100% similarity]
ide/src/about.ec
ide/src/licensing.ec
installer/Installer.epj
installer/ecere.bmp [deleted file]
installer/src/installer.ec
installer/src/licenseBox.ec [deleted file]

index 11897c4..a6458f1 100644 (file)
@@ -22,13 +22,23 @@ class AboutIDE : Window
    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 },
@@ -39,6 +49,7 @@ class AboutIDE : Window
          "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"
@@ -130,7 +141,7 @@ class AboutIDE : Window
          "\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 } };
    */
@@ -147,14 +158,4 @@ class AboutIDE : Window
          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;
-      }
-   };
 }
index 666e475..629828d 100644 (file)
@@ -124,7 +124,7 @@ class LicensesForm : Window
       sourceFile = ":licenses/gpl.LICENSE";
       tabControl = tabControl;
    };
-   Button ok
+/*   Button ok
    {
       this;
       text = "OK";
@@ -133,4 +133,28 @@ class LicensesForm : Window
       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;
+   };
 }
index 420c335..db64842 100644 (file)
       {
          "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",
diff --git a/installer/ecere.bmp b/installer/ecere.bmp
deleted file mode 100644 (file)
index 314f1a6..0000000
Binary files a/installer/ecere.bmp and /dev/null differ
index 8aac572..32553ba 100644 (file)
@@ -16,7 +16,8 @@ import "ecere"
 #endif
 import "IDESettings"
 import "createLink"
-import "licenseBox"
+// import "licenseBox"
+import "licensing"
 
 class CheckListBox : ListBox
 {
@@ -672,7 +673,8 @@ class Installer : Window
 
       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;
       }
    };
diff --git a/installer/src/licenseBox.ec b/installer/src/licenseBox.ec
deleted file mode 100644 (file)
index 3e7af7e..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-#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;
-   };
-}