mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
init file menu
This commit is contained in:
parent
49cf5b0188
commit
e8ef19a235
3 changed files with 91 additions and 0 deletions
31
src/Entity/Browser/Menu/File/Open.php
Normal file
31
src/Entity/Browser/Menu/File/Open.php
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Yggverse\Yoda\Entity\Browser\Menu\File;
|
||||
|
||||
class Open
|
||||
{
|
||||
public \GtkMenuItem $gtk;
|
||||
|
||||
// Dependencies
|
||||
public \Yggverse\Yoda\Entity\Browser\Menu\File $file;
|
||||
|
||||
// Defaults
|
||||
private string $_label = 'File';
|
||||
|
||||
public function __construct(
|
||||
\Yggverse\Yoda\Entity\Browser\Menu\File $file
|
||||
) {
|
||||
// Init dependencies
|
||||
$this->file = $file;
|
||||
|
||||
// Init menu item
|
||||
$this->gtk = \GtkMenuItem::new_with_label(
|
||||
$this->_label
|
||||
);
|
||||
|
||||
// Render
|
||||
$this->gtk->show();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue