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
f6a04cb5
Kaydet (Commit)
f6a04cb5
authored
May 14, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
gtk3: shiny native focus rectangles for listboxes
Change-Id: Id0ace0ae5e90877497834166c5e488a0f5caf0be
üst
994b9700
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
2 deletions
+20
-2
ilstbox.hxx
vcl/inc/ilstbox.hxx
+2
-0
ilstbox.cxx
vcl/source/control/ilstbox.cxx
+16
-0
gtk3salnativewidgets-gtk.cxx
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+2
-2
No files found.
vcl/inc/ilstbox.hxx
Dosyayı görüntüle @
f6a04cb5
...
...
@@ -600,6 +600,8 @@ public:
bool
GetEdgeBlending
()
const
{
return
mbEdgeBlending
;
}
void
SetEdgeBlending
(
bool
bNew
)
{
mbEdgeBlending
=
bNew
;
}
virtual
void
ShowFocus
(
const
Rectangle
&
rRect
)
SAL_OVERRIDE
;
};
class
ImplBtn
:
public
PushButton
...
...
vcl/source/control/ilstbox.cxx
Dosyayı görüntüle @
f6a04cb5
...
...
@@ -2889,6 +2889,22 @@ void ImplWin::LoseFocus()
Control
::
LoseFocus
();
}
void
ImplWin
::
ShowFocus
(
const
Rectangle
&
rRect
)
{
bool
bNativeOK
;
if
((
bNativeOK
=
IsNativeControlSupported
(
CTRL_LISTBOX
,
PART_FOCUS
)))
{
ImplControlValue
aControlValue
;
vcl
::
Window
*
pWin
=
GetParent
();
Rectangle
aParentRect
(
Point
(
0
,
0
),
pWin
->
GetSizePixel
());
bNativeOK
=
pWin
->
DrawNativeControl
(
CTRL_LISTBOX
,
PART_FOCUS
,
aParentRect
,
ControlState
::
FOCUSED
,
aControlValue
,
OUString
());
}
if
(
!
bNativeOK
)
Control
::
ShowFocus
(
rRect
);
}
ImplBtn
::
ImplBtn
(
vcl
::
Window
*
pParent
,
WinBits
nWinStyle
)
:
PushButton
(
pParent
,
nWinStyle
),
mbDown
(
false
)
...
...
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
Dosyayı görüntüle @
f6a04cb5
...
...
@@ -828,7 +828,7 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
break
;
case
CTRL_LISTBOX
:
context
=
mpListboxStyle
;
renderType
=
RENDER_COMBOBOX
;
renderType
=
nPart
==
PART_FOCUS
?
RENDER_FOCUS
:
RENDER_COMBOBOX
;
break
;
case
CTRL_MENU_POPUP
:
...
...
@@ -1682,7 +1682,7 @@ bool GtkSalGraphics::IsNativeControlSupported( ControlType nType, ControlPart nP
break
;
case
CTRL_LISTBOX
:
if
(
nPart
==
PART_ENTIRE_CONTROL
||
nPart
==
PART_WINDOW
||
nPart
==
HAS_BACKGROUND_TEXTURE
)
if
(
nPart
==
PART_ENTIRE_CONTROL
||
nPart
==
PART_WINDOW
||
nPart
==
HAS_BACKGROUND_TEXTURE
||
nPart
==
PART_FOCUS
)
return
true
;
break
;
...
...
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