Ejemplo n.º 1
0
 function __construct($required = false, $duplicated = false, $table = null, $field = null)
 {
     parent::__construct($required, $duplicated, $table, $field);
     $this->label->set_text(' Integer: ');
     $this->entry->set_max_length(11);
     /* max 99999999999 */
     $this->entry->set_width_chars(11);
     $this->entry->connect('changed', array($this, 'integer_changed'));
 }
Ejemplo n.º 2
0
 function __construct($required = false, $duplicated = false, $table = null, $field = null)
 {
     parent::__construct($required, $duplicated, $table, $field);
     $this->label->set_text(' Float: ');
     $this->entry->set_max_length(12);
     /* max 999999999,999 */
     $this->entry->set_width_chars(12);
     $this->entry->connect('changed', array($this, 'float_changed'));
     $this->extra_key = 44;
     /* , */
 }
Ejemplo n.º 3
0
 function __construct($required = false, $duplicated = false, $table = null, $field = null)
 {
     parent::__construct($required, $duplicated, $table, $field);
     $this->label->set_text(' Data: ');
     $this->entry->set_editable(false);
     $this->entry->set_max_length(10);
     /* max 99/99/9999 */
     $this->entry->set_width_chars(10);
     $this->entry->connect('changed', array($this, 'data_changed'));
     $this->eventbox->add($button = new GtkButton());
     $button->add(GtkImage::new_from_stock(Gtk::STOCK_PROPERTIES, Gtk::ICON_SIZE_BUTTON));
     $button->connect('clicked', array($this, 'prop_clicked'), $this->entry);
     $this->extra_key = 47;
     /* / */
 }