|
|
@ -40,10 +40,12 @@ abstract class Entry |
|
|
|
$this->gtk->connect( |
|
|
|
$this->gtk->connect( |
|
|
|
'activate', |
|
|
|
'activate', |
|
|
|
function( |
|
|
|
function( |
|
|
|
\GtkEntry $entry |
|
|
|
\GtkEntry $entry, |
|
|
|
|
|
|
|
\GdkEvent $event |
|
|
|
) { |
|
|
|
) { |
|
|
|
$this->_onActivate( |
|
|
|
$this->_onActivate( |
|
|
|
$entry |
|
|
|
$entry, |
|
|
|
|
|
|
|
$event |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
@ -75,17 +77,20 @@ abstract class Entry |
|
|
|
$this->gtk->connect( |
|
|
|
$this->gtk->connect( |
|
|
|
'focus-out-event', |
|
|
|
'focus-out-event', |
|
|
|
function ( |
|
|
|
function ( |
|
|
|
\GtkEntry $entry |
|
|
|
\GtkEntry $entry, |
|
|
|
|
|
|
|
\GdkEvent $event |
|
|
|
) { |
|
|
|
) { |
|
|
|
$this->_onFocusOut( |
|
|
|
$this->_onFocusOut( |
|
|
|
$entry |
|
|
|
$entry, |
|
|
|
|
|
|
|
$event |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
abstract protected function _onActivate( |
|
|
|
abstract protected function _onActivate( |
|
|
|
\GtkEntry $entry |
|
|
|
\GtkEntry $entry, |
|
|
|
|
|
|
|
\GdkEvent $event |
|
|
|
): void; |
|
|
|
): void; |
|
|
|
|
|
|
|
|
|
|
|
abstract protected function _onKeyRelease( |
|
|
|
abstract protected function _onKeyRelease( |
|
|
@ -98,7 +103,8 @@ abstract class Entry |
|
|
|
): void; |
|
|
|
): void; |
|
|
|
|
|
|
|
|
|
|
|
abstract protected function _onFocusOut( |
|
|
|
abstract protected function _onFocusOut( |
|
|
|
\GtkEntry $entry |
|
|
|
\GtkEntry $entry, |
|
|
|
|
|
|
|
\GdkEvent $event |
|
|
|
): void; |
|
|
|
): void; |
|
|
|
|
|
|
|
|
|
|
|
public function setLength( |
|
|
|
public function setLength( |
|
|
|