This repository has been archived by the owner on Mar 30, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e7ddefa
Showing
66 changed files
with
17,704 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
if(function_exists('eyeJ')) | ||
eyeJ('AppMain', array('name' => 'APPNAME')); | ||
else { | ||
proc('launch', array('eyeNav', 'http://matthewfl.com/eyeJ/?page=need')); | ||
function APPNAME_run ($p='') { proc('end'); } | ||
function APPNAME_end ($p='') {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?php | ||
|
||
eyeJ('AppEvent', array('name' => 'APPNAME')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// the Objctive-J source File | ||
|
||
@import <eyeos/server.j> | ||
|
||
main = exit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<?php | ||
|
||
function eyeJ_run($prams = '') { | ||
$file = $prams[0]; | ||
$info = pathinfo($file); | ||
|
||
/*if($info['filename'] == "" || !isset($info['filename'])) { | ||
proc('end'); | ||
return; | ||
}*/ | ||
|
||
$wind = new Window (array ( | ||
'name' => 'Question', | ||
'father' => 'eyeApps', | ||
'title' => 'EyeJ - '.$info['filename'], | ||
'cent' => 1, | ||
'width' => 415, | ||
'height' => 125 | ||
)); | ||
|
||
$wind->show(); | ||
|
||
$text = new Label (array( | ||
'name' => 'textOpen', | ||
'father' => 'Question_Content', | ||
'x' => 20, | ||
'y' => 15, | ||
'text' => 'What do you want to do with '.$info['filename'] | ||
)); | ||
|
||
$text->show(); | ||
|
||
$Hfile = new Hidden (array( | ||
'name' => 'ScriptFile', | ||
'text' => $file, | ||
'father' => 'Question_Content' | ||
)); | ||
|
||
$Hfile->show(); | ||
|
||
$edit_button = new Button (array( | ||
'name' => 'Openfile', | ||
'caption' => 'Edit File', | ||
'father' => 'Question_Content', | ||
'x' => 20, | ||
'y' => 50, | ||
'width' => 75, | ||
'height' => 25 | ||
)); | ||
|
||
$edit_button->addFriend($Hfile); | ||
$edit_button->show(); | ||
|
||
$close_button = new Button (array( | ||
'name' => 'CloseButton', | ||
'caption' => 'Cancel', | ||
'father' => 'Question_Content', | ||
'signal' => 'Close', | ||
'x' => 120, | ||
'y' => 50, | ||
'width' => 75, | ||
'height' => 25 | ||
)); | ||
$close_button->show(); | ||
|
||
$site_button = new Button (array( | ||
'name' => 'SiteButton', | ||
'caption' => 'Web Site', | ||
'father' => 'Question_Content', | ||
'signal' => 'OpenSite', | ||
'x' => 220, | ||
'y' => 50, | ||
'width' => 75, | ||
'height' => 25 | ||
)); | ||
|
||
$site_button->show(); | ||
|
||
$run_button = new Button (array( | ||
'name' => 'RunButton', | ||
'caption' => 'Run', | ||
'father' => 'Question_Content', | ||
'x' => 320, | ||
'y' => 50, | ||
'width' => 75, | ||
'height' => 25 | ||
)); | ||
$run_button->addFriend($Hfile); | ||
$run_button->show(); | ||
} | ||
|
||
function eyeJ_end($params = '') { | ||
eyeJ('end'); | ||
eyeWidgets('unserialize',$params); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
function eyeJ_on_Message ($p='') { | ||
eyeWidgets('updateContent', $p); | ||
} | ||
|
||
function eyeJ_on_Close ($p ='') { | ||
proc('end'); | ||
} | ||
|
||
function eyeJ_on_OpenSite($p='') | ||
{ | ||
proc('launch', array('eyeNav', 'http://matthewfl.com/eyeJ/')); | ||
proc('end'); | ||
} | ||
|
||
|
||
function eyeJ_on_Openfile ($pram=null) { // edit the file with eyeNotes | ||
global $ScriptFile, $myPid; | ||
$file = $ScriptFile->text; | ||
proc('launch', array ('eyeNotes', $file)); | ||
proc('end'); | ||
} | ||
|
||
|
||
function eyeJ_on_RunButton ($prams=null) { | ||
global $ScriptFile; | ||
$file = $ScriptFile->text; | ||
eyeWidgets('unserialize',$params); | ||
eyeJ('run', array('file' => $file)); | ||
} | ||
|
||
function eyeJ_on_Event($params = '') { | ||
eyeJ('event', $params); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<package> | ||
<name>eyeJ</name> | ||
<category>Utilities</category> | ||
<version>0.1</version> | ||
<description>A runtime for Objective-J script files in eyeOS.</description> | ||
<author>Matthew Francis-Landau (matthew@matthewfl.com)</author> | ||
<page>http://matthewfl.com/eyeJ/</page> | ||
<download>http://matthewfl.com/eyeJ/?page=download-nightly</download> | ||
<license>GPLv3</license> | ||
<type>Utility</type> | ||
<icon></icon> | ||
</package> |
Oops, something went wrong.