[prev in list] [next in list] [prev in thread] [next in thread] 

List:       quanta-devel
Subject:    [quanta-devel] Class autocompletion - a new era
From:       Andras Mantia <amantia () kde ! org>
Date:       2005-02-21 17:09:42
Message-ID: 200502211909.42265.amantia () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]

[Attachment #4 (multipart/mixed)]


Hi,

 Well, finally it works. I cannot say how good it is, maybe it misses 
many cases, but with my simple example it works. Attached are two PHP 
files. Try CTRL-SPACE after the various "->" strings.
You need to put the attached tag file to the PHP DTEP directory as well 
to see the autocompletion for $f, $f2, $f3.

Andras
-- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org

["included.inc" (text/x-java)]

<?
  class includedClass {
  function includedClass_ctor(int i)
  {
    if ($a) {
      $b = $a;
    }
  }
  
  function includedClass_method2(string s)
  {
  }
  
  function includedClass_method1(int i, int j)
  {
  }
}

function externalFunc(int i) {
}

$includevar;

?>
["test.php" (application/x-php)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?
  
 include ("included.inc");

class qmyClass{

  function qmyClass_ctor(int i)
  {
  }

  function qmyClass_method2(string s)
  {
  }

  function qmyClass_method1(int i, int j)
  {
    $this->
  }
}

function qmyFunction(int i, int j)
{
}


 $q = new qmyClass;
 $f = new foo ;
 $f2 = new foo2 ;
 $f3 = new foo3 ;
 $f_base = new foo_base;
 $f_included = new includedClass;

 $f->
 $f2->
 $f3->
 $f_base->
 $q->
 $x->
 $f_included-> 
 ext
?>
["classes.tag" (text/plain)]

<!DOCTYPE tags>
<tags>

<tag name="foo3" type="class" extends="foo2" />
<tag name="foo3_method" type="method" class="foo3">
  <attr name="f3" type="foo" />
 </tag>
<tag name="foo_ctor" returnType="string" type="method" class="foo">
    <attr name="something" type="string"></attr>
    <attr name="s2" type="int"></attr>
</tag>
<tag name="foo_method" returnType="void" type="method" class="foo">
    <attr name="p1" type="string"></attr>
    <attr name="p2" type="int"></attr>
</tag>
<tag name="foo2" type="class" extends="foo" />
<tag name="foo2_method" returnType="void" type="method" class="foo2">
    <attr name="a1" type="int" />
</tag>
<tag name="foo_method" returnType="void" type="method" class="foo2">
    <attr name="a1" type="int" />
    <attr name="a2" type="int" />
</tag>
<tag name="foo" type="class" extends="foo_base" />
<tag name="foo_base_method" returnType="void" type="method" class="foo_base">
    <attr name="base1" type="int" />
</tag>

</tags>
[Attachment #10 (application/pgp-signature)]

_______________________________________________
quanta-devel mailing list
quanta-devel@kde.org
https://mail.kde.org/mailman/listinfo/quanta-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic