mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
add entity namespace
This commit is contained in:
parent
7398ed7af2
commit
90c6d615fb
15 changed files with 40 additions and 40 deletions
|
|
@ -2,13 +2,13 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Box;
|
namespace Yggverse\Yoda\Entity\Box;
|
||||||
|
|
||||||
class Menu
|
class Menu
|
||||||
{
|
{
|
||||||
public \GtkBox $box;
|
public \GtkBox $box;
|
||||||
|
|
||||||
public \Yggverse\Yoda\Menu\Bar\Main $main;
|
public \Yggverse\Yoda\Entity\Menu\Bar\Main $main;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
string $name = 'boxMenu'
|
string $name = 'boxMenu'
|
||||||
|
|
@ -21,7 +21,7 @@ class Menu
|
||||||
$name
|
$name
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->main = new \Yggverse\Yoda\Menu\Bar\Main();
|
$this->main = new \Yggverse\Yoda\Entity\Menu\Bar\Main();
|
||||||
|
|
||||||
$this->box->add(
|
$this->box->add(
|
||||||
$this->main->bar
|
$this->main->bar
|
||||||
|
|
@ -2,19 +2,19 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Box;
|
namespace Yggverse\Yoda\Entity\Box;
|
||||||
|
|
||||||
class Navigation
|
class Navigation
|
||||||
{
|
{
|
||||||
public \GtkBox $box;
|
public \GtkBox $box;
|
||||||
|
|
||||||
public \Yggverse\Yoda\Entry\Address $address;
|
public \Yggverse\Yoda\Entity\Entry\Address $address;
|
||||||
|
|
||||||
public \Yggverse\Yoda\Button\Home $home;
|
public \Yggverse\Yoda\Entity\Button\Home $home;
|
||||||
public \Yggverse\Yoda\Button\Back $back;
|
public \Yggverse\Yoda\Entity\Button\Back $back;
|
||||||
public \Yggverse\Yoda\Button\Forward $forward;
|
public \Yggverse\Yoda\Entity\Button\Forward $forward;
|
||||||
public \Yggverse\Yoda\Button\Reload $reload;
|
public \Yggverse\Yoda\Entity\Button\Reload $reload;
|
||||||
public \Yggverse\Yoda\Button\Go $go;
|
public \Yggverse\Yoda\Entity\Button\Go $go;
|
||||||
|
|
||||||
public object $config;
|
public object $config;
|
||||||
|
|
||||||
|
|
@ -33,7 +33,7 @@ class Navigation
|
||||||
|
|
||||||
if ($this->config->interface->window->navigation->button->home && $this->config->homepage)
|
if ($this->config->interface->window->navigation->button->home && $this->config->homepage)
|
||||||
{
|
{
|
||||||
$this->home = new \Yggverse\Yoda\Button\Home();
|
$this->home = new \Yggverse\Yoda\Entity\Button\Home();
|
||||||
|
|
||||||
$this->box->pack_start(
|
$this->box->pack_start(
|
||||||
$this->home->button,
|
$this->home->button,
|
||||||
|
|
@ -55,7 +55,7 @@ class Navigation
|
||||||
|
|
||||||
if ($this->config->interface->window->navigation->button->back)
|
if ($this->config->interface->window->navigation->button->back)
|
||||||
{
|
{
|
||||||
$this->back = new \Yggverse\Yoda\Button\Back();
|
$this->back = new \Yggverse\Yoda\Entity\Button\Back();
|
||||||
|
|
||||||
$boxBackForward->pack_start(
|
$boxBackForward->pack_start(
|
||||||
$this->back->button,
|
$this->back->button,
|
||||||
|
|
@ -67,7 +67,7 @@ class Navigation
|
||||||
|
|
||||||
if ($this->config->interface->window->navigation->button->forward)
|
if ($this->config->interface->window->navigation->button->forward)
|
||||||
{
|
{
|
||||||
$this->forward = new \Yggverse\Yoda\Button\Forward();
|
$this->forward = new \Yggverse\Yoda\Entity\Button\Forward();
|
||||||
|
|
||||||
$boxBackForward->pack_end(
|
$boxBackForward->pack_end(
|
||||||
$this->forward->button,
|
$this->forward->button,
|
||||||
|
|
@ -87,7 +87,7 @@ class Navigation
|
||||||
|
|
||||||
if ($this->config->interface->window->navigation->button->reload)
|
if ($this->config->interface->window->navigation->button->reload)
|
||||||
{
|
{
|
||||||
$this->reload = new \Yggverse\Yoda\Button\Reload();
|
$this->reload = new \Yggverse\Yoda\Entity\Button\Reload();
|
||||||
|
|
||||||
$this->box->pack_start(
|
$this->box->pack_start(
|
||||||
$this->reload->button,
|
$this->reload->button,
|
||||||
|
|
@ -97,7 +97,7 @@ class Navigation
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->address = new \Yggverse\Yoda\Entry\Address(
|
$this->address = new \Yggverse\Yoda\Entity\Entry\Address(
|
||||||
$this->config->homepage
|
$this->config->homepage
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -110,7 +110,7 @@ class Navigation
|
||||||
|
|
||||||
if ($this->config->interface->window->navigation->button->go)
|
if ($this->config->interface->window->navigation->button->go)
|
||||||
{
|
{
|
||||||
$this->go = new \Yggverse\Yoda\Button\Go();
|
$this->go = new \Yggverse\Yoda\Entity\Button\Go();
|
||||||
|
|
||||||
$this->box->pack_end(
|
$this->box->pack_end(
|
||||||
$this->go->button,
|
$this->go->button,
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Box;
|
namespace Yggverse\Yoda\Entity\Box;
|
||||||
|
|
||||||
class Tab
|
class Tab
|
||||||
{
|
{
|
||||||
|
|
@ -10,10 +10,10 @@ class Tab
|
||||||
|
|
||||||
public \GtkWindow $window;
|
public \GtkWindow $window;
|
||||||
|
|
||||||
public \Yggverse\Yoda\Box\Menu $menu;
|
public \Yggverse\Yoda\Entity\Box\Menu $menu;
|
||||||
public \Yggverse\Yoda\Box\Navigation $navigation;
|
public \Yggverse\Yoda\Entity\Box\Navigation $navigation;
|
||||||
public \Yggverse\Yoda\Label\Content $content;
|
public \Yggverse\Yoda\Entity\Label\Content $content;
|
||||||
public \Yggverse\Yoda\Label\Tray $tray;
|
public \Yggverse\Yoda\Entity\Label\Tray $tray;
|
||||||
|
|
||||||
public \Yggverse\Yoda\Model\Memory $memory;
|
public \Yggverse\Yoda\Model\Memory $memory;
|
||||||
|
|
||||||
|
|
@ -42,7 +42,7 @@ class Tab
|
||||||
);
|
);
|
||||||
|
|
||||||
// Init dependencies
|
// Init dependencies
|
||||||
$this->menu = new \Yggverse\Yoda\Box\Menu();
|
$this->menu = new \Yggverse\Yoda\Entity\Box\Menu();
|
||||||
|
|
||||||
$this->box->pack_start(
|
$this->box->pack_start(
|
||||||
$this->menu->box,
|
$this->menu->box,
|
||||||
|
|
@ -51,7 +51,7 @@ class Tab
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->navigation = new \Yggverse\Yoda\Box\Navigation();
|
$this->navigation = new \Yggverse\Yoda\Entity\Box\Navigation();
|
||||||
|
|
||||||
$this->box->pack_start(
|
$this->box->pack_start(
|
||||||
$this->navigation->box,
|
$this->navigation->box,
|
||||||
|
|
@ -60,7 +60,7 @@ class Tab
|
||||||
8
|
8
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->content = new \Yggverse\Yoda\Label\Content();
|
$this->content = new \Yggverse\Yoda\Entity\Label\Content();
|
||||||
|
|
||||||
$scroll = new \GtkScrolledWindow();
|
$scroll = new \GtkScrolledWindow();
|
||||||
|
|
||||||
|
|
@ -75,7 +75,7 @@ class Tab
|
||||||
10
|
10
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->tray = new \Yggverse\Yoda\Label\Tray();
|
$this->tray = new \Yggverse\Yoda\Entity\Label\Tray();
|
||||||
|
|
||||||
$this->box->pack_start(
|
$this->box->pack_start(
|
||||||
$this->tray->label,
|
$this->tray->label,
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Button;
|
namespace Yggverse\Yoda\Entity\Button;
|
||||||
|
|
||||||
class Back
|
class Back
|
||||||
{
|
{
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Button;
|
namespace Yggverse\Yoda\Entity\Button;
|
||||||
|
|
||||||
class Forward
|
class Forward
|
||||||
{
|
{
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Button;
|
namespace Yggverse\Yoda\Entity\Button;
|
||||||
|
|
||||||
class Go
|
class Go
|
||||||
{
|
{
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Button;
|
namespace Yggverse\Yoda\Entity\Button;
|
||||||
|
|
||||||
class Home
|
class Home
|
||||||
{
|
{
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Button;
|
namespace Yggverse\Yoda\Entity\Button;
|
||||||
|
|
||||||
class Reload
|
class Reload
|
||||||
{
|
{
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Entry;
|
namespace Yggverse\Yoda\Entity\Entry;
|
||||||
|
|
||||||
class Address
|
class Address
|
||||||
{
|
{
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Label;
|
namespace Yggverse\Yoda\Entity\Label;
|
||||||
|
|
||||||
class Content
|
class Content
|
||||||
{
|
{
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Label;
|
namespace Yggverse\Yoda\Entity\Label;
|
||||||
|
|
||||||
class Tray
|
class Tray
|
||||||
{
|
{
|
||||||
|
|
@ -2,19 +2,19 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Menu\Bar;
|
namespace Yggverse\Yoda\Entity\Menu\Bar;
|
||||||
|
|
||||||
class Main
|
class Main
|
||||||
{
|
{
|
||||||
public \GtkMenuBar $bar;
|
public \GtkMenuBar $bar;
|
||||||
|
|
||||||
public \Yggverse\Yoda\Menu\Item\Yoda $yoda;
|
public \Yggverse\Yoda\Entity\Menu\Item\Yoda $yoda;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->bar = new \GtkMenuBar();
|
$this->bar = new \GtkMenuBar();
|
||||||
|
|
||||||
$this->yoda = new \Yggverse\Yoda\Menu\Item\Yoda();
|
$this->yoda = new \Yggverse\Yoda\Entity\Menu\Item\Yoda();
|
||||||
|
|
||||||
$this->bar->append(
|
$this->bar->append(
|
||||||
$this->yoda->item
|
$this->yoda->item
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Menu\Item;
|
namespace Yggverse\Yoda\Entity\Menu\Item;
|
||||||
|
|
||||||
class Quit
|
class Quit
|
||||||
{
|
{
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace Yggverse\Yoda\Menu\Item;
|
namespace Yggverse\Yoda\Entity\Menu\Item;
|
||||||
|
|
||||||
class Yoda
|
class Yoda
|
||||||
{
|
{
|
||||||
|
|
@ -16,7 +16,7 @@ class Yoda
|
||||||
|
|
||||||
$children = new \GtkMenu();
|
$children = new \GtkMenu();
|
||||||
|
|
||||||
$quit = new \Yggverse\Yoda\Menu\Item\Quit();
|
$quit = new \Yggverse\Yoda\Entity\Menu\Item\Quit();
|
||||||
|
|
||||||
$children->append(
|
$children->append(
|
||||||
$quit->item
|
$quit->item
|
||||||
|
|
@ -61,7 +61,7 @@ $window->connect(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
$tab = new \Yggverse\Yoda\Box\Tab(
|
$tab = new \Yggverse\Yoda\Entity\Box\Tab(
|
||||||
$window
|
$window
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue