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
aa3bfbe7
Kaydet (Commit)
aa3bfbe7
authored
Ock 07, 2012
tarafından
Jan Holesovsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Header/Footer, Page Breaks: Delay appearing by 500ms.
The delay was a good idea, just the 1s was too long.
üst
6abeafcd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
1 deletion
+27
-1
HeaderFooterWin.cxx
sw/source/ui/docvw/HeaderFooterWin.cxx
+13
-1
PageBreakWin.cxx
sw/source/ui/docvw/PageBreakWin.cxx
+12
-0
HeaderFooterWin.hxx
sw/source/ui/inc/HeaderFooterWin.hxx
+1
-0
PageBreakWin.hxx
sw/source/ui/inc/PageBreakWin.hxx
+1
-0
No files found.
sw/source/ui/docvw/HeaderFooterWin.cxx
Dosyayı görüntüle @
aa3bfbe7
...
...
@@ -153,6 +153,7 @@ SwHeaderFooterWin::SwHeaderFooterWin( SwEditWin* pEditWin, const SwPageFrm* pPag
m_pLine
(
NULL
),
m_bIsAppearing
(
false
),
m_nFadeRate
(
100
),
m_nDelayAppearing
(
0
),
m_aFadeTimer
(
)
{
// Get the font and configure it
...
...
@@ -243,6 +244,9 @@ void SwHeaderFooterWin::ShowAll( bool bShow )
if
(
!
PopupMenu
::
IsInExecute
()
)
{
m_bIsAppearing
=
bShow
;
if
(
bShow
)
m_nDelayAppearing
=
0
;
if
(
m_aFadeTimer
.
IsActive
(
)
)
m_aFadeTimer
.
Stop
();
m_aFadeTimer
.
Start
(
);
...
...
@@ -516,6 +520,14 @@ void SwHeaderFooterWin::Select( )
IMPL_LINK
(
SwHeaderFooterWin
,
FadeHandler
,
Timer
*
,
EMPTYARG
)
{
const
int
TICKS_BEFORE_WE_APPEAR
=
10
;
if
(
m_bIsAppearing
&&
m_nDelayAppearing
<
TICKS_BEFORE_WE_APPEAR
)
{
++
m_nDelayAppearing
;
m_aFadeTimer
.
Start
();
return
0
;
}
if
(
m_bIsAppearing
&&
m_nFadeRate
>
0
)
m_nFadeRate
-=
25
;
else
if
(
!
m_bIsAppearing
&&
m_nFadeRate
<
100
)
...
...
@@ -535,7 +547,7 @@ IMPL_LINK( SwHeaderFooterWin, FadeHandler, Timer *, EMPTYARG )
Invalidate
();
if
(
IsVisible
(
)
&&
m_nFadeRate
>
0
&&
m_nFadeRate
<
100
)
m_aFadeTimer
.
Start
();
m_aFadeTimer
.
Start
();
return
0
;
}
...
...
sw/source/ui/docvw/PageBreakWin.cxx
Dosyayı görüntüle @
aa3bfbe7
...
...
@@ -110,6 +110,7 @@ SwPageBreakWin::SwPageBreakWin( SwEditWin* pEditWin, const SwPageFrm* pPageFrm )
m_pLine
(
NULL
),
m_bIsAppearing
(
false
),
m_nFadeRate
(
100
),
m_nDelayAppearing
(
0
),
m_bDestroyed
(
false
),
m_pMousePt
(
NULL
)
{
...
...
@@ -424,6 +425,9 @@ void SwPageBreakWin::SetReadonly( bool bReadonly )
void
SwPageBreakWin
::
Fade
(
bool
bFadeIn
)
{
m_bIsAppearing
=
bFadeIn
;
if
(
bFadeIn
)
m_nDelayAppearing
=
0
;
if
(
!
m_bDestroyed
&&
m_aFadeTimer
.
IsActive
(
)
)
m_aFadeTimer
.
Stop
();
if
(
!
m_bDestroyed
)
...
...
@@ -439,6 +443,14 @@ IMPL_LINK( SwPageBreakWin, HideHandler, void *, EMPTYARG )
IMPL_LINK
(
SwPageBreakWin
,
FadeHandler
,
Timer
*
,
EMPTYARG
)
{
const
int
TICKS_BEFORE_WE_APPEAR
=
10
;
if
(
m_bIsAppearing
&&
m_nDelayAppearing
<
TICKS_BEFORE_WE_APPEAR
)
{
++
m_nDelayAppearing
;
m_aFadeTimer
.
Start
();
return
0
;
}
if
(
m_bIsAppearing
&&
m_nFadeRate
>
0
)
m_nFadeRate
-=
25
;
else
if
(
!
m_bIsAppearing
&&
m_nFadeRate
<
100
)
...
...
sw/source/ui/inc/HeaderFooterWin.hxx
Dosyayı görüntüle @
aa3bfbe7
...
...
@@ -46,6 +46,7 @@ class SwHeaderFooterWin : public MenuButton, public SwFrameControl
Window
*
m_pLine
;
bool
m_bIsAppearing
;
int
m_nFadeRate
;
int
m_nDelayAppearing
;
//< Before we show the control, let it transparent for a few timer ticks to avoid appearing with every mouse over.
Timer
m_aFadeTimer
;
public
:
...
...
sw/source/ui/inc/PageBreakWin.hxx
Dosyayı görüntüle @
aa3bfbe7
...
...
@@ -45,6 +45,7 @@ class SwPageBreakWin : public MenuButton, public SwFrameControl
Window
*
m_pLine
;
bool
m_bIsAppearing
;
int
m_nFadeRate
;
int
m_nDelayAppearing
;
//< Before we show the control, let it transparent for a few timer ticks to avoid appearing with every mouse over.
Timer
m_aFadeTimer
;
bool
m_bDestroyed
;
...
...
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