/** * Class Constructor * @param $name Name of the widget */ public function __construct($name) { parent::__construct(); parent::set_size_request(200, -1); $this->wname = $name; $this->validations = array(); }
/** * Class Constructor * @param $name Name of the widget */ public function __construct($name) { $this->wname = $name; $this->chars = array('-', '_', '.', '/', '\\', ':', '|', '(', ')', '[', ']', '{', '}'); $this->validations = array(); parent::__construct(); parent::set_size_request(200, 24); // Connecting 'changed' signal to check the typed chars. $this->handler = parent::connect_after('changed', array($this, 'onChanged')); }
/** * Cria o FFWEntry * * @name __construct() * @return GtkEntry */ public function __construct() { parent::__construct(); // Seta os caracteres de separação $this->__maskChars = array("-", "_", ".", ",", "/", "\\", ":", "|", "(", ")", "[", "]", "{", "}", " "); }