IDE Code Templates for Eclipse PDT and Aptana Studio
Hi,
When I was working using Qcodo and now QCubed, I have compiled many code templates for Eclipse PDT and Aptana Studio. The templates are still far from complete. At least you can save time to type many QControl and QForm rather than to remember everything, especially for the one who is very new to QCubed.
For example: type qbutton and using auto complete will give you something like this
$this->btnButtonName = new QButton($this);
$this->btnButtonName->Text = QApplication::Translate(' ButtonText');
$this->btnButtonName->ToolTip = QApplication::Translate(' ButtonText');
$this->btnButtonName->HtmlEntities = false;
$this->btnButtonName->PrimaryButton = false;
$this->btnButtonName->CausesValidation = false;
// for QFCKEditor only
// $this->btn ButtonName->AddAction(new QClickEvent(), new QJavaScriptAction('for (x in FCKeditorAPI.__Instances) {FCKeditorAPI.__Instances[x].UpdateLinkedField()};'));
$this->btnButtonName->AddAction( new QClickEvent(), new QAjaxAction('btn ButtonName0_Click'));
Most of the code templates were written for QCodo, but I believe there is not much changes on QCubed. Currently, it is still working okay in QCubed 1.1. Your comments are appreciated.
Here I attached the code templates in XML. You can import it directly to your IDE.

Thanks revvi, I am going to start using NetBeans for PHP next week so I will see if I can
incorporate yourwork on it...
thanks again...