|
|
@ -4,6 +4,8 @@ declare(strict_types=1); |
|
|
|
|
|
|
|
|
|
|
|
namespace Yggverse\Yoda\Entity\Browser\History\Container\Content; |
|
|
|
namespace Yggverse\Yoda\Entity\Browser\History\Container\Content; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
use \Yggverse\Yoda\Entity\Browser\History\Container\Content; |
|
|
|
|
|
|
|
|
|
|
|
use \Yggverse\Yoda\Entity\Browser\History\Container\Content\Table\Data; |
|
|
|
use \Yggverse\Yoda\Entity\Browser\History\Container\Content\Table\Data; |
|
|
|
|
|
|
|
|
|
|
|
class Table |
|
|
|
class Table |
|
|
@ -11,18 +13,18 @@ class Table |
|
|
|
public \GtkTreeView $gtk; |
|
|
|
public \GtkTreeView $gtk; |
|
|
|
|
|
|
|
|
|
|
|
// Dependencies |
|
|
|
// Dependencies |
|
|
|
public \Yggverse\Yoda\Entity\Browser\History\Container\Content $content; |
|
|
|
public Content $content; |
|
|
|
|
|
|
|
|
|
|
|
// Requirements |
|
|
|
// Requirements |
|
|
|
public \Yggverse\Yoda\Entity\Browser\History\Container\Content\Table\Data $data; |
|
|
|
public Data $data; |
|
|
|
|
|
|
|
|
|
|
|
// Defaults |
|
|
|
// Defaults |
|
|
|
private string $_time = 'Time'; |
|
|
|
public const TIME = 'Time'; |
|
|
|
private string $_title = 'Title'; |
|
|
|
public const TITLE = 'Title'; |
|
|
|
private string $_url = 'URL'; |
|
|
|
public const URL = 'URL'; |
|
|
|
|
|
|
|
|
|
|
|
public function __construct( |
|
|
|
public function __construct( |
|
|
|
\Yggverse\Yoda\Entity\Browser\History\Container\Content $content |
|
|
|
Content $content |
|
|
|
) { |
|
|
|
) { |
|
|
|
// Init dependencies |
|
|
|
// Init dependencies |
|
|
|
$this->content = $content; |
|
|
|
$this->content = $content; |
|
|
@ -32,7 +34,7 @@ class Table |
|
|
|
|
|
|
|
|
|
|
|
$this->gtk->append_column( |
|
|
|
$this->gtk->append_column( |
|
|
|
new \GtkTreeViewColumn( |
|
|
|
new \GtkTreeViewColumn( |
|
|
|
$this->_time, |
|
|
|
$this::TIME, |
|
|
|
new \GtkCellRendererText(), |
|
|
|
new \GtkCellRendererText(), |
|
|
|
'text', |
|
|
|
'text', |
|
|
|
1 |
|
|
|
1 |
|
|
@ -41,7 +43,7 @@ class Table |
|
|
|
|
|
|
|
|
|
|
|
$this->gtk->append_column( |
|
|
|
$this->gtk->append_column( |
|
|
|
new \GtkTreeViewColumn( |
|
|
|
new \GtkTreeViewColumn( |
|
|
|
$this->_url, |
|
|
|
$this::URL, |
|
|
|
new \GtkCellRendererText(), |
|
|
|
new \GtkCellRendererText(), |
|
|
|
'text', |
|
|
|
'text', |
|
|
|
2 |
|
|
|
2 |
|
|
@ -50,7 +52,7 @@ class Table |
|
|
|
|
|
|
|
|
|
|
|
$this->gtk->append_column( |
|
|
|
$this->gtk->append_column( |
|
|
|
new \GtkTreeViewColumn( |
|
|
|
new \GtkTreeViewColumn( |
|
|
|
$this->_title, |
|
|
|
$this::TITLE, |
|
|
|
new \GtkCellRendererText(), |
|
|
|
new \GtkCellRendererText(), |
|
|
|
'text', |
|
|
|
'text', |
|
|
|
3 |
|
|
|
3 |
|
|
|