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
8400e87a
Kaydet (Commit)
8400e87a
authored
May 28, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix highlight rendering for iconview with more effective clipping
Change-Id: I9d8f2341477b9b9c0acd71a7d33cd5a9a55757d2
üst
02482eef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
20 deletions
+38
-20
imivctl1.cxx
svtools/source/contnr/imivctl1.cxx
+38
-20
No files found.
svtools/source/contnr/imivctl1.cxx
Dosyayı görüntüle @
8400e87a
...
...
@@ -663,13 +663,8 @@ void SvxIconChoiceCtrl_Impl::Paint(vcl::RenderContext& rRenderContext, const Rec
if
(
!
nCount
)
return
;
bool
bResetClipRegion
=
false
;
if
(
!
rRenderContext
.
IsClipRegion
())
{
vcl
::
Region
const
aOutputArea
(
GetOutputRect
());
bResetClipRegion
=
true
;
rRenderContext
.
SetClipRegion
(
aOutputArea
);
}
rRenderContext
.
Push
(
PushFlags
::
CLIPREGION
);
rRenderContext
.
SetClipRegion
(
vcl
::
Region
(
rRect
));
SvxIconChoiceCtrlEntryList_impl
*
pNewZOrderList
=
new
SvxIconChoiceCtrlEntryList_impl
();
boost
::
scoped_ptr
<
SvxIconChoiceCtrlEntryList_impl
>
pPaintedEntries
(
new
SvxIconChoiceCtrlEntryList_impl
());
...
...
@@ -701,15 +696,27 @@ void SvxIconChoiceCtrl_Impl::Paint(vcl::RenderContext& rRenderContext, const Rec
}
pPaintedEntries
.
reset
();
if
(
bResetClipRegion
)
rRenderContext
.
SetClipRegion
();
rRenderContext
.
Pop
();
}
void
SvxIconChoiceCtrl_Impl
::
RepaintEntries
(
SvxIconViewFlags
/*nEntryFlagsMask*/
)
void
SvxIconChoiceCtrl_Impl
::
RepaintEntries
(
SvxIconViewFlags
nEntryFlagsMask
)
{
pView
->
Invalidate
();
}
const
size_t
nCount
=
pZOrderList
->
size
();
if
(
!
nCount
)
return
;
Rectangle
aOutRect
(
GetOutputRect
());
for
(
size_t
nCur
=
0
;
nCur
<
nCount
;
nCur
++
)
{
SvxIconChoiceCtrlEntry
*
pEntry
=
(
*
pZOrderList
)[
nCur
];
if
(
pEntry
->
GetFlags
()
&
nEntryFlagsMask
)
{
const
Rectangle
&
rBoundRect
=
GetEntryBoundRect
(
pEntry
);
if
(
aOutRect
.
IsOver
(
rBoundRect
))
pView
->
Invalidate
(
rBoundRect
);
}
}
}
void
SvxIconChoiceCtrl_Impl
::
InitScrollBarBox
()
{
...
...
@@ -1691,7 +1698,9 @@ void SvxIconChoiceCtrl_Impl::PaintEntry(SvxIconChoiceCtrlEntry* pEntry, const Po
PaintEmphasis
(
aTextRect
,
aBmpRect
,
bSelected
,
bDropTarget
,
bCursored
,
rRenderContext
,
bIsBackgroundPainted
);
if
(
bShowSelection
)
pView
->
DrawSelectionBackground
(
CalcFocusRect
(
pEntry
),
bActiveSelection
?
1
:
2
,
false
,
true
,
false
);
vcl
::
RenderTools
::
DrawSelectionBackground
(
rRenderContext
,
*
pView
.
get
(),
CalcFocusRect
(
pEntry
),
bActiveSelection
?
1
:
2
,
false
,
true
,
false
);
PaintItem
(
aBmpRect
,
IcnViewFieldTypeImage
,
pEntry
,
nBmpPaintFlags
,
rRenderContext
);
...
...
@@ -3575,12 +3584,20 @@ void SvxIconChoiceCtrl_Impl::SetEntryHighlightFrame( SvxIconChoiceCtrlEntry* pEn
if
(
!
bKeepHighlightFlags
)
bHighlightFramePressed
=
false
;
HideEntryHighlightFrame
();
if
(
pCurHighlightFrame
)
{
Rectangle
aInvalidationRect
(
GetEntryBoundRect
(
pCurHighlightFrame
));
aInvalidationRect
.
expand
(
5
);
pCurHighlightFrame
=
nullptr
;
pView
->
Invalidate
(
aInvalidationRect
);
}
pCurHighlightFrame
=
pEntry
;
if
(
pEntry
)
if
(
pEntry
)
{
Rectangle
aBmpRect
(
CalcFocusRect
(
pEntry
));
pView
->
Invalidate
(
aBmpRect
);
Rectangle
aInvalidationRect
(
GetEntryBoundRect
(
pEntry
));
aInvalidationRect
.
expand
(
5
);
pView
->
Invalidate
(
aInvalidationRect
);
}
}
...
...
@@ -3590,9 +3607,10 @@ void SvxIconChoiceCtrl_Impl::HideEntryHighlightFrame()
return
;
SvxIconChoiceCtrlEntry
*
pEntry
=
pCurHighlightFrame
;
pCurHighlightFrame
=
0
;
Rectangle
aBmpRect
(
CalcFocusRect
(
pEntry
));
pView
->
Invalidate
(
aBmpRect
);
pCurHighlightFrame
=
nullptr
;
Rectangle
aInvalidationRect
(
GetEntryBoundRect
(
pEntry
));
aInvalidationRect
.
expand
(
5
);
pView
->
Invalidate
(
aInvalidationRect
);
}
void
SvxIconChoiceCtrl_Impl
::
CallSelectHandler
(
SvxIconChoiceCtrlEntry
*
)
...
...
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