implement response form (code 10)

This commit is contained in:
yggverse 2024-07-07 23:49:00 +03:00
parent 4b296f309c
commit 5fda126ea9
5 changed files with 243 additions and 2 deletions

View file

@ -0,0 +1,43 @@
<?php
declare(strict_types=1);
namespace Yggverse\Yoda\Entity\Browser\Container\Tab\Page\Response;
class Query extends \Yggverse\Yoda\Abstract\Entity\Entry
{
public \Yggverse\Yoda\Entity\Browser\Container\Tab\Page\Response $response;
// Defaults
protected string $_placeholder = 'Enter response...';
public function __construct(
\Yggverse\Yoda\Entity\Browser\Container\Tab\Page\Response $response
) {
// Use parent features
parent::__construct();
// Init dependency
$this->response = $response;
}
protected function _onActivate(
\GtkEntry $entry
): void
{
$this->response->send();
}
protected function _onKeyRelease(
\GtkEntry $entry,
\GdkEvent $event
): void
{
$this->response->refresh();
}
public function refresh(): void
{
// @TODO
}
}