function __construct($Owner) { parent::__construct(); $this->set_policy(Gtk::POLICY_NEVER, Gtk::POLICY_AUTOMATIC); $this->Owner = $Owner; $this->add_with_viewport($this->lista = new GtkVBox()); $this->lista->set_border_width(5); $this->preenche_lista(); }
/** * Class Constructor * @param $name Widet's name */ public function __construct($name) { parent::__construct(); parent::set_size_request(200, -1); $this->textview = new GtkTextView(); $this->textview->set_wrap_mode(Gtk::WRAP_WORD); $this->textbuffer = $this->textview->get_buffer(); parent::add($this->textview); $this->wname = $name; $this->validations = array(); }
function __construct($Parent) { parent::__construct(); $this->set_policy(GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC); $this->Parent = $Parent; $this->treeview = new GtkTreeView($this->store); $this->treeview->set_enable_search(false); $this->treeview->connect('button_press_event', array($this, 'grid_button_press_event')); $this->treeview->connect('key_press_event', array($this, 'grid_key_press_event')); $this->treeview->show(); $this->add($this->treeview); $i = 0; while ($this->colunas[$i][0]) { $this->colunas[$i][3] = $this->new_column($this->colunas[$i][0], $this->colunas[$i][1], $this->colunas[$i][2]); $i++; } $this->QtdColunas = $i; }