Browse Source

add entity namespace

PHP-GTK3
yggverse 8 months ago
parent
commit
90c6d615fb
  1. 6
      src/Entity/Box/Menu.php
  2. 26
      src/Entity/Box/Navigation.php
  3. 18
      src/Entity/Box/Tab.php
  4. 2
      src/Entity/Button/Back.php
  5. 2
      src/Entity/Button/Forward.php
  6. 2
      src/Entity/Button/Go.php
  7. 2
      src/Entity/Button/Home.php
  8. 2
      src/Entity/Button/Reload.php
  9. 2
      src/Entity/Entry/Address.php
  10. 2
      src/Entity/Label/Content.php
  11. 2
      src/Entity/Label/Tray.php
  12. 6
      src/Entity/Menu/Bar/Main.php
  13. 2
      src/Entity/Menu/Item/Quit.php
  14. 4
      src/Entity/Menu/Item/Yoda.php
  15. 2
      src/Yoda.php

6
src/Box/Menu.php → src/Entity/Box/Menu.php

@ -2,13 +2,13 @@ @@ -2,13 +2,13 @@
declare(strict_types=1);
namespace Yggverse\Yoda\Box;
namespace Yggverse\Yoda\Entity\Box;
class Menu
{
public \GtkBox $box;
public \Yggverse\Yoda\Menu\Bar\Main $main;
public \Yggverse\Yoda\Entity\Menu\Bar\Main $main;
public function __construct(
string $name = 'boxMenu'
@ -21,7 +21,7 @@ class Menu @@ -21,7 +21,7 @@ class Menu
$name
);
$this->main = new \Yggverse\Yoda\Menu\Bar\Main();
$this->main = new \Yggverse\Yoda\Entity\Menu\Bar\Main();
$this->box->add(
$this->main->bar

26
src/Box/Navigation.php → src/Entity/Box/Navigation.php

@ -2,19 +2,19 @@ @@ -2,19 +2,19 @@
declare(strict_types=1);
namespace Yggverse\Yoda\Box;
namespace Yggverse\Yoda\Entity\Box;
class Navigation
{
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\Button\Back $back;
public \Yggverse\Yoda\Button\Forward $forward;
public \Yggverse\Yoda\Button\Reload $reload;
public \Yggverse\Yoda\Button\Go $go;
public \Yggverse\Yoda\Entity\Button\Home $home;
public \Yggverse\Yoda\Entity\Button\Back $back;
public \Yggverse\Yoda\Entity\Button\Forward $forward;
public \Yggverse\Yoda\Entity\Button\Reload $reload;
public \Yggverse\Yoda\Entity\Button\Go $go;
public object $config;
@ -33,7 +33,7 @@ class Navigation @@ -33,7 +33,7 @@ class Navigation
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->home->button,
@ -55,7 +55,7 @@ class Navigation @@ -55,7 +55,7 @@ class Navigation
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(
$this->back->button,
@ -67,7 +67,7 @@ class Navigation @@ -67,7 +67,7 @@ class Navigation
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(
$this->forward->button,
@ -87,7 +87,7 @@ class Navigation @@ -87,7 +87,7 @@ class Navigation
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->reload->button,
@ -97,7 +97,7 @@ class Navigation @@ -97,7 +97,7 @@ class Navigation
);
}
$this->address = new \Yggverse\Yoda\Entry\Address(
$this->address = new \Yggverse\Yoda\Entity\Entry\Address(
$this->config->homepage
);
@ -110,7 +110,7 @@ class Navigation @@ -110,7 +110,7 @@ class Navigation
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->go->button,

18
src/Box/Tab.php → src/Entity/Box/Tab.php

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yggverse\Yoda\Box;
namespace Yggverse\Yoda\Entity\Box;
class Tab
{
@ -10,10 +10,10 @@ class Tab @@ -10,10 +10,10 @@ class Tab
public \GtkWindow $window;
public \Yggverse\Yoda\Box\Menu $menu;
public \Yggverse\Yoda\Box\Navigation $navigation;
public \Yggverse\Yoda\Label\Content $content;
public \Yggverse\Yoda\Label\Tray $tray;
public \Yggverse\Yoda\Entity\Box\Menu $menu;
public \Yggverse\Yoda\Entity\Box\Navigation $navigation;
public \Yggverse\Yoda\Entity\Label\Content $content;
public \Yggverse\Yoda\Entity\Label\Tray $tray;
public \Yggverse\Yoda\Model\Memory $memory;
@ -42,7 +42,7 @@ class Tab @@ -42,7 +42,7 @@ class Tab
);
// Init dependencies
$this->menu = new \Yggverse\Yoda\Box\Menu();
$this->menu = new \Yggverse\Yoda\Entity\Box\Menu();
$this->box->pack_start(
$this->menu->box,
@ -51,7 +51,7 @@ class Tab @@ -51,7 +51,7 @@ class Tab
0
);
$this->navigation = new \Yggverse\Yoda\Box\Navigation();
$this->navigation = new \Yggverse\Yoda\Entity\Box\Navigation();
$this->box->pack_start(
$this->navigation->box,
@ -60,7 +60,7 @@ class Tab @@ -60,7 +60,7 @@ class Tab
8
);
$this->content = new \Yggverse\Yoda\Label\Content();
$this->content = new \Yggverse\Yoda\Entity\Label\Content();
$scroll = new \GtkScrolledWindow();
@ -75,7 +75,7 @@ class Tab @@ -75,7 +75,7 @@ class Tab
10
);
$this->tray = new \Yggverse\Yoda\Label\Tray();
$this->tray = new \Yggverse\Yoda\Entity\Label\Tray();
$this->box->pack_start(
$this->tray->label,

2
src/Button/Back.php → src/Entity/Button/Back.php

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yggverse\Yoda\Button;
namespace Yggverse\Yoda\Entity\Button;
class Back
{

2
src/Button/Forward.php → src/Entity/Button/Forward.php

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yggverse\Yoda\Button;
namespace Yggverse\Yoda\Entity\Button;
class Forward
{

2
src/Button/Go.php → src/Entity/Button/Go.php

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yggverse\Yoda\Button;
namespace Yggverse\Yoda\Entity\Button;
class Go
{

2
src/Button/Home.php → src/Entity/Button/Home.php

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yggverse\Yoda\Button;
namespace Yggverse\Yoda\Entity\Button;
class Home
{

2
src/Button/Reload.php → src/Entity/Button/Reload.php

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yggverse\Yoda\Button;
namespace Yggverse\Yoda\Entity\Button;
class Reload
{

2
src/Entry/Address.php → src/Entity/Entry/Address.php

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yggverse\Yoda\Entry;
namespace Yggverse\Yoda\Entity\Entry;
class Address
{

2
src/Label/Content.php → src/Entity/Label/Content.php

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yggverse\Yoda\Label;
namespace Yggverse\Yoda\Entity\Label;
class Content
{

2
src/Label/Tray.php → src/Entity/Label/Tray.php

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yggverse\Yoda\Label;
namespace Yggverse\Yoda\Entity\Label;
class Tray
{

6
src/Menu/Bar/Main.php → src/Entity/Menu/Bar/Main.php

@ -2,19 +2,19 @@ @@ -2,19 +2,19 @@
declare(strict_types=1);
namespace Yggverse\Yoda\Menu\Bar;
namespace Yggverse\Yoda\Entity\Menu\Bar;
class Main
{
public \GtkMenuBar $bar;
public \Yggverse\Yoda\Menu\Item\Yoda $yoda;
public \Yggverse\Yoda\Entity\Menu\Item\Yoda $yoda;
public function __construct()
{
$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->yoda->item

2
src/Menu/Item/Quit.php → src/Entity/Menu/Item/Quit.php

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yggverse\Yoda\Menu\Item;
namespace Yggverse\Yoda\Entity\Menu\Item;
class Quit
{

4
src/Menu/Item/Yoda.php → src/Entity/Menu/Item/Yoda.php

@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
declare(strict_types=1);
namespace Yggverse\Yoda\Menu\Item;
namespace Yggverse\Yoda\Entity\Menu\Item;
class Yoda
{
@ -16,7 +16,7 @@ class Yoda @@ -16,7 +16,7 @@ class Yoda
$children = new \GtkMenu();
$quit = new \Yggverse\Yoda\Menu\Item\Quit();
$quit = new \Yggverse\Yoda\Entity\Menu\Item\Quit();
$children->append(
$quit->item

2
src/Yoda.php

@ -61,7 +61,7 @@ $window->connect( @@ -61,7 +61,7 @@ $window->connect(
}
);
$tab = new \Yggverse\Yoda\Box\Tab(
$tab = new \Yggverse\Yoda\Entity\Box\Tab(
$window
);

Loading…
Cancel
Save