Skip to content

Commit 1845f0f

Browse files
committed
Refactored to ShowAsModal
1 parent af18399 commit 1845f0f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Dialogs/Dialog.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
use Tkui\TclTk\Exceptions\TkException;
66
use Tkui\Options;
7-
use Tkui\Windows\ModalWindow;
7+
use Tkui\Windows\ShowAsModal;
88
use Tkui\Windows\Window;
99

1010
/**
1111
* Base class for dialog windows
1212
*
1313
* @property Window $parent.
1414
*/
15-
abstract class Dialog implements ModalWindow
15+
abstract class Dialog implements ShowAsModal
1616
{
1717
private Options $options;
1818
private Window $parent;

src/Windows/ModalWindow.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace Tkui\Windows;
44

55
/**
6-
* Windows that can be shown as modals.
6+
* Window or widget that can be shown as modals.
77
*/
8-
interface ModalWindow
8+
interface ShowAsModal
99
{
1010
/**
1111
* @return mixed The modal result.

src/Windows/Window.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/**
1010
* The application window.
1111
*/
12-
interface Window extends Container, ModalWindow
12+
interface Window extends Container, ShowAsModal
1313
{
1414
/**
1515
* The window manager instance.

0 commit comments

Comments
 (0)