A QCodo powered CMS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
1.3 KiB

  1. /**
  2. * Create and setup QCheckBox <%= $strControlId %>
  3. * @param string $strControlId optional ControlId to use
  4. * @return QCheckBox
  5. */
  6. public function <%= $strControlId %>_Create($strControlId = null) {
  7. $this-><%= $strControlId %> = new QCheckBox($this->objParentObject, $strControlId);
  8. $this-><%= $strControlId %>->Name = QApplication::Translate('<%= QConvertNotation::WordsFromCamelCase($objColumn->PropertyName) %>');
  9. $this-><%= $strControlId %>->Checked = $this-><%= $strObjectName %>-><%= $objColumn->PropertyName %>;
  10. return $this-><%= $strControlId %>;
  11. }
  12. /**
  13. * Create and setup QLabel <%= $strLabelId %>
  14. * @param string $strControlId optional ControlId to use
  15. * @return QLabel
  16. */
  17. public function <%= $strLabelId %>_Create($strControlId = null) {
  18. $this-><%= $strLabelId %> = new QLabel($this->objParentObject, $strControlId);
  19. $this-><%= $strLabelId %>->Name = QApplication::Translate('<%= QConvertNotation::WordsFromCamelCase($objColumn->PropertyName) %>');
  20. $this-><%= $strLabelId %>->Text = ($this-><%= $strObjectName %>-><%= $objColumn->PropertyName %>) ? QApplication::Translate('Yes') : QApplication::Translate('No');
  21. return $this-><%= $strLabelId %>;
  22. }