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
f455a608
Kaydet (Commit)
f455a608
authored
Agu 02, 2015
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Throbber: remove redundant field and fix conversion warnings
Change-Id: I1e4712c4c6eae890b93936f25632aa8a7422e1db
üst
aa1918ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
throbber.hxx
include/vcl/throbber.hxx
+0
-1
throbber.cxx
vcl/source/control/throbber.cxx
+5
-5
No files found.
include/vcl/throbber.hxx
Dosyayı görüntüle @
f455a608
...
@@ -82,7 +82,6 @@ private:
...
@@ -82,7 +82,6 @@ private:
bool
mbRepeat
;
bool
mbRepeat
;
sal_Int32
mnStepTime
;
sal_Int32
mnStepTime
;
sal_Int32
mnCurStep
;
sal_Int32
mnCurStep
;
sal_Int32
mnStepCount
;
AutoTimer
maWaitTimer
;
AutoTimer
maWaitTimer
;
ImageSet
meImageSet
;
ImageSet
meImageSet
;
...
...
vcl/source/control/throbber.cxx
Dosyayı görüntüle @
f455a608
...
@@ -47,7 +47,6 @@ Throbber::Throbber( vcl::Window* i_parentWindow, WinBits i_style, const ImageSet
...
@@ -47,7 +47,6 @@ Throbber::Throbber( vcl::Window* i_parentWindow, WinBits i_style, const ImageSet
,
mbRepeat
(
true
)
,
mbRepeat
(
true
)
,
mnStepTime
(
100
)
,
mnStepTime
(
100
)
,
mnCurStep
(
0
)
,
mnCurStep
(
0
)
,
mnStepCount
(
0
)
,
meImageSet
(
i_imageSet
)
,
meImageSet
(
i_imageSet
)
{
{
maWaitTimer
.
SetTimeout
(
mnStepTime
);
maWaitTimer
.
SetTimeout
(
mnStepTime
);
...
@@ -185,10 +184,11 @@ bool Throbber::isRunning() const
...
@@ -185,10 +184,11 @@ bool Throbber::isRunning() const
void
Throbber
::
setImageList
(
::
std
::
vector
<
Image
>
const
&
i_images
)
void
Throbber
::
setImageList
(
::
std
::
vector
<
Image
>
const
&
i_images
)
{
{
SAL_WARN_IF
(
i_images
.
size
()
>=
SAL_MAX_INT32
,
"vcl.control"
,
"Throbber::setImageList: too many images!"
);
maImageList
=
i_images
;
maImageList
=
i_images
;
mnStepCount
=
maImageList
.
size
();
const
Image
aInitialImage
(
maImageList
.
size
()
?
maImageList
[
0
]
:
Image
()
);
const
Image
aInitialImage
(
mnStepCount
?
maImageList
[
0
]
:
Image
()
);
SetImage
(
aInitialImage
);
SetImage
(
aInitialImage
);
}
}
...
@@ -245,8 +245,8 @@ IMPL_LINK_NOARG_TYPED(Throbber, TimeOutHdl, Timer *, void)
...
@@ -245,8 +245,8 @@ IMPL_LINK_NOARG_TYPED(Throbber, TimeOutHdl, Timer *, void)
if
(
maImageList
.
empty
()
)
if
(
maImageList
.
empty
()
)
return
;
return
;
if
(
mnCurStep
<
mnStepCount
-
1
)
if
(
mnCurStep
<
static_cast
<
sal_Int32
>
(
maImageList
.
size
()
-
1
)
)
mnCurStep
+=
1
;
++
mnCurStep
;
else
else
{
{
if
(
mbRepeat
)
if
(
mbRepeat
)
...
...
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