mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
use constants for defaults, use namespaces
This commit is contained in:
parent
ea30508f52
commit
a8b2fa0d23
15 changed files with 55 additions and 41 deletions
|
|
@ -273,7 +273,7 @@ class Gemtext extends Markup
|
|||
{
|
||||
return wordwrap(
|
||||
$value,
|
||||
$this->_wrap,
|
||||
$this::WRAP,
|
||||
PHP_EOL,
|
||||
false
|
||||
);
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ namespace Yggverse\Yoda\Entity\Browser\Container\Page\Navbar;
|
|||
|
||||
class Base extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navbar\Button
|
||||
{
|
||||
protected string $_label = 'Base';
|
||||
public const LABEL = 'Base';
|
||||
|
||||
protected function _onCLick(
|
||||
\GtkButton $entity
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@ declare(strict_types=1);
|
|||
|
||||
namespace Yggverse\Yoda\Entity\Browser\Container\Page\Navbar;
|
||||
|
||||
class Go extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navbar\Button
|
||||
use \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navbar\Button;
|
||||
|
||||
class Go extends Button
|
||||
{
|
||||
protected string $_label = 'Go';
|
||||
public const LABEL = 'Go';
|
||||
|
||||
protected function _onCLick(
|
||||
\GtkButton $entity
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ use \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navbar\Button;
|
|||
|
||||
class Back extends Button
|
||||
{
|
||||
protected string $_label = 'Back';
|
||||
public const LABEL = 'Back';
|
||||
|
||||
protected function _onCLick(
|
||||
\GtkButton $entity
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ use \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navbar\Button;
|
|||
|
||||
class Forward extends Button
|
||||
{
|
||||
protected string $_label = 'Forward';
|
||||
public const LABEL = 'Forward';
|
||||
|
||||
protected function _onCLick(
|
||||
\GtkButton $entity
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@ declare(strict_types=1);
|
|||
|
||||
namespace Yggverse\Yoda\Entity\Browser\Container\Page\Navbar;
|
||||
|
||||
class Request extends \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navbar\Entry
|
||||
use \Yggverse\Yoda\Abstract\Entity\Browser\Container\Page\Navbar\Entry;
|
||||
|
||||
class Request extends Entry
|
||||
{
|
||||
protected string $_placeholder = 'URL or search term...';
|
||||
public const PLACEHOLDER = 'URL or search term...';
|
||||
|
||||
private ?int $_changed = null;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@ declare(strict_types=1);
|
|||
|
||||
namespace Yggverse\Yoda\Entity\Browser\History\Container\Navbar;
|
||||
|
||||
class Delete extends \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Navbar\Button
|
||||
use \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Navbar\Button;
|
||||
|
||||
class Delete extends Button
|
||||
{
|
||||
protected string $_label = 'Delete';
|
||||
public const LABEL = 'Delete';
|
||||
|
||||
protected function _onCLick(
|
||||
\GtkButton $entity
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@ declare(strict_types=1);
|
|||
|
||||
namespace Yggverse\Yoda\Entity\Browser\History\Container\Navbar;
|
||||
|
||||
class Filter extends \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Navbar\Entry
|
||||
use \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Navbar\Entry;
|
||||
|
||||
class Filter extends Entry
|
||||
{
|
||||
protected string $_placeholder = 'Search in history...';
|
||||
public const PLACEHOLDER = 'Search in history...';
|
||||
|
||||
protected function _onActivate(
|
||||
\GtkEntry $entry
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@ declare(strict_types=1);
|
|||
|
||||
namespace Yggverse\Yoda\Entity\Browser\History\Container\Navbar;
|
||||
|
||||
class Open extends \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Navbar\Button
|
||||
use \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Navbar\Button;
|
||||
|
||||
class Open extends Button
|
||||
{
|
||||
protected string $_label = 'Open';
|
||||
public const LABEL = 'Open';
|
||||
|
||||
protected function _onCLick(
|
||||
\GtkButton $entity
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ namespace Yggverse\Yoda\Entity\Browser\History\Container\Navbar;
|
|||
|
||||
class Search extends \Yggverse\Yoda\Abstract\Entity\Browser\History\Container\Navbar\Button
|
||||
{
|
||||
protected bool $_sensitive = true;
|
||||
protected string $_label = 'Search';
|
||||
public const SENSITIVE = true;
|
||||
public const LABEL = 'Search';
|
||||
|
||||
protected function _onCLick(
|
||||
\GtkButton $entity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue