summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/vcl/window.hxx19
-rw-r--r--vcl/source/window/window.cxx29
2 files changed, 2 insertions, 46 deletions
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx
index f64a419b92af..4723c1d69921 100644
--- a/include/vcl/window.hxx
+++ b/include/vcl/window.hxx
@@ -952,9 +952,6 @@ public:
/** Override <code>EnableInput</code>. This can be necessary due to other people
using EnableInput for whole window hierarchies.
-
- <code>AlwaysEnableInput</code> and <code>AlwaysDisableInput</code> are
- mutually exclusive; the last setter wins.
@param bAlways
sets always enabled flag
@@ -962,26 +959,12 @@ public:
if true children are recursively set to AlwaysEnableInput
*/
void AlwaysEnableInput( bool bAlways, bool bChild = true );
+
/** returns the current AlwaysEnableInput state
@return
true if window is in AlwaysEnableInput state
*/
bool IsAlwaysEnableInput() const;
- /** Override <code>EnableInput</code>, counterpart to AlwaysEnableInput.
- Windows with AlwaysDisableInput will not get key events even if enabled
- and input enabled.This can be necessary due to other people using EnableInput
- for whole window hierarchies.
-
- <code>AlwaysEnableInput</code> and <code>AlwaysDisableInput</code> are
- mutually exclusive; the last setter wins.
-
- @param bAlways
- sets always disable flag
-
- @param bChild
- if true children are recursively set to AlwaysDisableInput
- */
- void AlwaysDisableInput( bool bAlways, bool bChild = true );
/** A window is in modal mode if one of its children or subchildren
is a running modal window (a modal dialog)
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index f581ce0850b4..a9fe21d0a7a3 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -645,7 +645,7 @@ WindowImpl::WindowImpl( WindowType nType )
mnParentClipMode = ParentClipMode::NONE; // Flags for Parent-ClipChildren-Mode
mnActivateMode = ActivateModeFlags::NONE; // Will be converted in System/Overlap-Windows
mnDlgCtrlFlags = DialogControlFlags::NONE; // DialogControl-Flags
- meAlwaysInputMode = AlwaysInputNone; // neither AlwaysEnableInput nor AlwaysDisableInput called
+ meAlwaysInputMode = AlwaysInputNone; // AlwaysEnableInput not called
meHalign = VclAlign::Fill;
meValign = VclAlign::Fill;
mePackType = VclPackType::Start;
@@ -2634,33 +2634,6 @@ void Window::AlwaysEnableInput( bool bAlways, bool bChild )
}
}
-void Window::AlwaysDisableInput( bool bAlways, bool bChild )
-{
-
- if ( mpWindowImpl->mpBorderWindow )
- mpWindowImpl->mpBorderWindow->AlwaysDisableInput( bAlways, false );
-
- if( bAlways && mpWindowImpl->meAlwaysInputMode != AlwaysInputDisabled )
- {
- mpWindowImpl->meAlwaysInputMode = AlwaysInputDisabled;
- EnableInput(false, false);
- }
- else if( ! bAlways && mpWindowImpl->meAlwaysInputMode == AlwaysInputDisabled )
- {
- mpWindowImpl->meAlwaysInputMode = AlwaysInputNone;
- }
-
- if ( bChild )
- {
- VclPtr< vcl::Window > pChild = mpWindowImpl->mpFirstChild;
- while ( pChild )
- {
- pChild->AlwaysDisableInput( bAlways, bChild );
- pChild = pChild->mpWindowImpl->mpNext;
- }
- }
-}
-
void Window::SetActivateMode( ActivateModeFlags nMode )
{