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
93f5b9be
Kaydet (Commit)
93f5b9be
authored
Kas 05, 2014
tarafından
Jennifer Liebel
Kaydeden (comit)
Tobias Madl
Ara 09, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
changed timer to idle
Change-Id: I321ddf0411bf66ffce648f6d27e1669194bf80db
üst
35811889
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
tabbar.cxx
svtools/source/control/tabbar.cxx
+2
-2
swruler.hxx
sw/source/uibase/inc/swruler.hxx
+1
-1
swruler.cxx
sw/source/uibase/misc/swruler.cxx
+5
-5
No files found.
svtools/source/control/tabbar.cxx
Dosyayı görüntüle @
93f5b9be
...
@@ -324,7 +324,7 @@ IMPL_LINK( TabBarEdit, ImplEndEditHdl, void*, pCancel )
...
@@ -324,7 +324,7 @@ IMPL_LINK( TabBarEdit, ImplEndEditHdl, void*, pCancel )
ResetPostEvent
();
ResetPostEvent
();
maLoseFocusTimer
.
Stop
();
maLoseFocusTimer
.
Stop
();
// We need this query, because the edit get
a losefo
us event,
// We need this query, because the edit get
s a losefoc
us event,
// when it shows the context menu or the insert symbol dialog
// when it shows the context menu or the insert symbol dialog
if
(
!
HasFocus
()
&&
HasChildPathFocus
(
true
)
)
if
(
!
HasFocus
()
&&
HasChildPathFocus
(
true
)
)
{
{
...
@@ -345,7 +345,7 @@ IMPL_LINK_NOARG(TabBarEdit, ImplEndTimerHdl)
...
@@ -345,7 +345,7 @@ IMPL_LINK_NOARG(TabBarEdit, ImplEndTimerHdl)
if
(
HasFocus
()
)
if
(
HasFocus
()
)
return
0
;
return
0
;
// We need this query, because the edit get
a losefo
us event,
// We need this query, because the edit get
s a losefoc
us event,
// when it shows the context menu or the insert symbol dialog
// when it shows the context menu or the insert symbol dialog
if
(
HasChildPathFocus
(
true
)
)
if
(
HasChildPathFocus
(
true
)
)
maLoseFocusTimer
.
Start
();
maLoseFocusTimer
.
Start
();
...
...
sw/source/uibase/inc/swruler.hxx
Dosyayı görüntüle @
93f5b9be
...
@@ -45,7 +45,7 @@ protected:
...
@@ -45,7 +45,7 @@ protected:
SwViewShell
*
mpViewShell
;
//< Shell to check if there is any comments on doc and their visibility
SwViewShell
*
mpViewShell
;
//< Shell to check if there is any comments on doc and their visibility
SwEditWin
*
mpSwWin
;
//< Used to get SwView to change the SideBar visibility
SwEditWin
*
mpSwWin
;
//< Used to get SwView to change the SideBar visibility
bool
mbIsHighlighted
;
//< If comment control is highlighted (mouse is over it)
bool
mbIsHighlighted
;
//< If comment control is highlighted (mouse is over it)
Timer
maFadeTimer
;
//< Timer for high/'low'light fading
Idle
maFadeIdle
;
//< Timer for high/'low'light fading
int
mnFadeRate
;
//< From 0 to 100. 0 means not highlighted.
int
mnFadeRate
;
//< From 0 to 100. 0 means not highlighted.
VirtualDevice
maVirDev
;
//< VirtualDevice of this window. Just for convenience.
VirtualDevice
maVirDev
;
//< VirtualDevice of this window. Just for convenience.
...
...
sw/source/uibase/misc/swruler.cxx
Dosyayı görüntüle @
93f5b9be
...
@@ -44,8 +44,8 @@ SwCommentRuler::SwCommentRuler( SwViewShell* pViewSh, vcl::Window* pParent, SwEd
...
@@ -44,8 +44,8 @@ SwCommentRuler::SwCommentRuler( SwViewShell* pViewSh, vcl::Window* pParent, SwEd
,
maVirDev
(
*
this
)
,
maVirDev
(
*
this
)
{
{
// Set fading timeout: 5 x 40ms = 200ms
// Set fading timeout: 5 x 40ms = 200ms
maFade
Timer
.
SetTimeout
(
40
);
maFade
Idle
.
SetPriority
(
VCL_IDLE_PRIORITY_RESIZE
);
maFade
Timer
.
SetTimeout
Hdl
(
LINK
(
this
,
SwCommentRuler
,
FadeHandler
)
);
maFade
Idle
.
SetIdle
Hdl
(
LINK
(
this
,
SwCommentRuler
,
FadeHandler
)
);
}
}
// Destructor
// Destructor
...
@@ -203,7 +203,7 @@ void SwCommentRuler::MouseMove(const MouseEvent& rMEvt)
...
@@ -203,7 +203,7 @@ void SwCommentRuler::MouseMove(const MouseEvent& rMEvt)
SetQuickHelpText
(
OUString
()
);
SetQuickHelpText
(
OUString
()
);
}
}
// Do start fading
// Do start fading
maFade
Timer
.
Start
();
maFade
Idle
.
Start
();
}
}
}
}
...
@@ -274,7 +274,7 @@ Rectangle SwCommentRuler::GetCommentControlRegion()
...
@@ -274,7 +274,7 @@ Rectangle SwCommentRuler::GetCommentControlRegion()
Color
SwCommentRuler
::
GetFadedColor
(
const
Color
&
rHighColor
,
const
Color
&
rLowColor
)
Color
SwCommentRuler
::
GetFadedColor
(
const
Color
&
rHighColor
,
const
Color
&
rLowColor
)
{
{
if
(
!
maFade
Timer
.
IsActive
()
)
if
(
!
maFade
Idle
.
IsActive
()
)
return
mbIsHighlighted
?
rHighColor
:
rLowColor
;
return
mbIsHighlighted
?
rHighColor
:
rLowColor
;
Color
aColor
=
rHighColor
;
Color
aColor
=
rHighColor
;
...
@@ -295,7 +295,7 @@ IMPL_LINK_NOARG(SwCommentRuler, FadeHandler)
...
@@ -295,7 +295,7 @@ IMPL_LINK_NOARG(SwCommentRuler, FadeHandler)
Invalidate
();
Invalidate
();
if
(
mnFadeRate
!=
0
&&
mnFadeRate
!=
100
)
if
(
mnFadeRate
!=
0
&&
mnFadeRate
!=
100
)
maFade
Timer
.
Start
();
maFade
Idle
.
Start
();
return
0
;
return
0
;
}
}
...
...
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