Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
970a270a
Kaydet (Commit)
970a270a
authored
Nis 22, 2002
tarafından
Stephan Schäfer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#98777# deactivate dlgcontrol if all items are disabled
üst
5507225b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
6 deletions
+32
-6
toolbox.cxx
vcl/source/window/toolbox.cxx
+6
-4
toolbox2.cxx
vcl/source/window/toolbox2.cxx
+26
-2
No files found.
vcl/source/window/toolbox.cxx
Dosyayı görüntüle @
970a270a
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: toolbox.cxx,v $
*
* $Revision: 1.3
5
$
* $Revision: 1.3
6
$
*
* last change: $Author:
mba $ $Date: 2002-04-19 08:00:26
$
* last change: $Author:
ssa $ $Date: 2002-04-22 14:26:53
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -3538,8 +3538,10 @@ void ToolBox::MouseMove( const MouseEvent& rMEvt )
pItem
=
mpItemList
->
Next
();
}
// Wurde ein neuer Eintrag selektiert
if
(
nNewPos
!=
mnCurPos
)
// was a new entery selected ?
// don't change selection if keyboard selection is active and mouse leaves
// the tolbox
if
(
nNewPos
!=
mnCurPos
&&
!
(
HasFocus
()
&&
nNewPos
==
TOOLBOX_ITEM_NOTFOUND
)
)
{
if
(
mnCurPos
!=
TOOLBOX_ITEM_NOTFOUND
)
ImplDrawItem
(
mnCurPos
);
...
...
vcl/source/window/toolbox2.cxx
Dosyayı görüntüle @
970a270a
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: toolbox2.cxx,v $
*
* $Revision: 1.
6
$
* $Revision: 1.
7
$
*
* last change: $Author:
pl $ $Date: 2002-04-19 10:13
:53 $
* last change: $Author:
ssa $ $Date: 2002-04-22 14:26
:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -216,6 +216,8 @@ const XubString& ToolBox::ImplConvertMenuString( const XubString& rStr )
void
ToolBox
::
ImplInvalidate
(
BOOL
bNewCalc
,
BOOL
bFullPaint
)
{
ImplUpdateInputEnable
();
if
(
bNewCalc
)
mbCalc
=
TRUE
;
...
...
@@ -1372,6 +1374,8 @@ void ToolBox::EnableItem( USHORT nItemId, BOOL bEnable )
// Item updaten
ImplUpdateItem
(
nPos
);
ImplUpdateInputEnable
();
}
}
}
...
...
@@ -1549,3 +1553,23 @@ void ToolBox::RecalcItems()
{
ImplInvalidate
(
TRUE
);
}
// -----------------------------------------------------------------------
// disable key input if all items are disabled
void
ToolBox
::
ImplUpdateInputEnable
()
{
USHORT
nCount
=
(
USHORT
)
mpItemList
->
Count
();
for
(
USHORT
i
=
0
;
i
<
nCount
;
i
++
)
{
ImplToolItem
*
pItem
=
mpItemList
->
GetObject
(
i
);
if
(
pItem
->
mbEnabled
)
{
// at least one useful entry
mbInputDisabled
=
FALSE
;
return
;
}
}
mbInputDisabled
=
TRUE
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment