Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
first git commit
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewfl committed Aug 30, 2009
0 parents commit e7ddefa
Show file tree
Hide file tree
Showing 66 changed files with 17,704 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/APPNAME/app.eyecode
@@ -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='') {}
}
3 changes: 3 additions & 0 deletions apps/APPNAME/events.eyecode
@@ -0,0 +1,3 @@
<?php

eyeJ('AppEvent', array('name' => 'APPNAME'));
5 changes: 5 additions & 0 deletions apps/APPNAME/eyeJ/main.j
@@ -0,0 +1,5 @@
// the Objctive-J source File

@import <eyeos/server.j>

main = exit;
95 changes: 95 additions & 0 deletions apps/eyeJ/app.eyecode
@@ -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);
}
35 changes: 35 additions & 0 deletions apps/eyeJ/events.eyecode
@@ -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);
}
12 changes: 12 additions & 0 deletions apps/eyeJ/info.xml
@@ -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>

0 comments on commit e7ddefa

Please sign in to comment.