Ejemplo n.º 1
0
 /**
  * Class Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->hbox = new GtkHBox();
     $this->buttons = array();
     $box = new GtkEventBox();
     $a = new GdkColor(50000, 50000, 50000);
     $box->modify_bg(Gtk::STATE_NORMAL, $a);
     $box->add($this->hbox);
     $this->back = new GtkButton('<<');
     $this->back->set_relief(GTK::RELIEF_NONE);
     $this->back->connect('clicked', array($this, 'executeAction'));
     $this->back->set_sensitive(FALSE);
     $this->front = new GtkButton('>>');
     $this->front->set_relief(GTK::RELIEF_NONE);
     $this->front->connect('clicked', array($this, 'executeAction'));
     $this->front->set_sensitive(FALSE);
     $this->hbox->pack_start(new GtkHBox(), true, true);
     $this->hbox->pack_start($this->back, false, false);
     for ($n = 1; $n <= 10; $n++) {
         $this->buttons[$n] = new GtkButton($n);
         $this->buttons[$n]->get_child()->set_use_markup(TRUE);
         $this->buttons[$n]->set_relief(GTK::RELIEF_NONE);
         $this->buttons[$n]->connect('clicked', array($this, 'executeAction'));
         $this->buttons[$n]->set_sensitive(FALSE);
         $this->hbox->pack_start($this->buttons[$n], false, false);
     }
     $this->hbox->pack_start($this->front, false, false);
     $this->hbox->pack_start(new GtkHBox(), true, true);
     parent::add($box);
 }
Ejemplo n.º 2
0
 /**
  * Constructor method
  * @param $label Frame label
  */
 public function __construct($width = NULL, $height = NULL)
 {
     parent::__construct();
     if ($width and $height) {
         parent::set_size_request($width, $height);
     }
 }
Ejemplo n.º 3
0
 /**
  * Handle paths from a XML file
  * @param $xml_file path for the file
  */
 public function __construct()
 {
     parent::__construct();
     parent::set_border_width(4);
     $this->container = new GtkHBox();
     $this->container->set_border_width(4);
     parent::add($this->container);
 }
Ejemplo n.º 4
0
 /**
  * Class Constructor
  * @param $name Form Name
  */
 public function __construct($name = NULL)
 {
     parent::__construct();
     parent::set_shadow_type(Gtk::SHADOW_NONE);
     // register this form
     self::$forms[$name] = $this;
     if ($name) {
         $this->setName($name);
     }
 }
Ejemplo n.º 5
0
 /**
  * Class Constructor
  */
 public function __construct()
 {
     parent::__construct();
     parent::set_shadow_type(Gtk::SHADOW_NONE);
     $this->constructed = TRUE;
 }
Ejemplo n.º 6
0
 /**
  * Class Constructor
  */
 public function __construct()
 {
     parent::__construct();
     parent::set_shadow_type(Gtk::SHADOW_NONE);
 }