implement help menu

This commit is contained in:
yggverse 2024-07-30 20:48:35 +03:00
parent d825e3b25a
commit cb4c86bdac
5 changed files with 233 additions and 5 deletions

View file

@ -0,0 +1,47 @@
<?php
declare(strict_types=1);
namespace Yggverse\Yoda\Entity\Browser\Menu\Help;
use \Gtk;
use \GtkMenuItem;
use \Yggverse\Yoda\Entity\Browser\Menu\Help;
class Issue
{
// GTK
public GtkMenuItem $gtk;
// Dependencies
public Help $help;
// Defaults
public const LABEL = 'Report issue';
public const URL = 'https://github.com/YGGverse/Yoda';
public function __construct(
Help $help
) {
// Init dependencies
$this->help = $help;
// Init menu item
$this->gtk = GtkMenuItem::new_with_label(
$this::LABEL
);
// Render
$this->gtk->show();
// Int events
$this->gtk->connect(
'activate',
function()
{
// @TODO self::URL
}
);
}
}