|
|
@ -9,8 +9,8 @@ abstract class Button |
|
|
|
public \GtkButton $gtk; |
|
|
|
public \GtkButton $gtk; |
|
|
|
|
|
|
|
|
|
|
|
public const SENSITIVE = false; |
|
|
|
public const SENSITIVE = false; |
|
|
|
public const LABEL = 'Button'; |
|
|
|
|
|
|
|
public const IMAGE = null; |
|
|
|
public const IMAGE = null; |
|
|
|
|
|
|
|
public const LABEL = 'Button'; |
|
|
|
|
|
|
|
|
|
|
|
public function __construct() |
|
|
|
public function __construct() |
|
|
|
{ |
|
|
|
{ |
|
|
@ -26,13 +26,16 @@ abstract class Button |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$this->gtk->set_sensitive( |
|
|
|
else |
|
|
|
$this::SENSITIVE |
|
|
|
{ |
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->gtk->set_label( |
|
|
|
$this->gtk->set_label( |
|
|
|
_($this::LABEL) |
|
|
|
_($this::LABEL) |
|
|
|
); |
|
|
|
); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->gtk->set_sensitive( |
|
|
|
|
|
|
|
$this::SENSITIVE |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
|
|
// Render |
|
|
|
// Render |
|
|
|
$this->gtk->show(); |
|
|
|
$this->gtk->show(); |
|
|
|