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
e6c2951f
Kaydet (Commit)
e6c2951f
authored
Nis 29, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
delegate RenderContext, invalidate - prgsbar, scrbar
Change-Id: I05d68be744044cc82c0397fac25518a53c270761
üst
c57a5f31
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
9 deletions
+13
-9
prgsbar.hxx
include/vcl/prgsbar.hxx
+2
-1
prgsbar.cxx
vcl/source/control/prgsbar.cxx
+9
-6
scrbar.cxx
vcl/source/control/scrbar.cxx
+2
-2
No files found.
include/vcl/prgsbar.hxx
Dosyayı görüntüle @
e6c2951f
...
...
@@ -63,12 +63,13 @@ private:
long
mnPrgsHeight
;
sal_uInt16
mnPercent
;
sal_uInt16
mnPercentCount
;
sal_uInt16
mnPreviousPercent
;
bool
mbCalcNew
;
using
Window
::
ImplInit
;
SAL_DLLPRIVATE
void
ImplInit
();
SAL_DLLPRIVATE
void
ImplInitSettings
(
bool
bFont
,
bool
bForeground
,
bool
bBackground
);
SAL_DLLPRIVATE
void
ImplDrawProgress
(
sal_uInt16
nOldPerc
,
sal_uInt16
nNewPerc
);
SAL_DLLPRIVATE
void
ImplDrawProgress
(
vcl
::
RenderContext
&
rRenderContext
,
sal_uInt16
nOldPerc
,
sal_uInt16
nNewPerc
);
public
:
ProgressBar
(
vcl
::
Window
*
pParent
,
WinBits
nWinBits
=
WB_STDPROGRESSBAR
);
...
...
vcl/source/control/prgsbar.cxx
Dosyayı görüntüle @
e6c2951f
...
...
@@ -27,8 +27,9 @@
void
ProgressBar
::
ImplInit
()
{
mnPercent
=
0
;
mbCalcNew
=
true
;
mnPercent
=
0
;
mnPreviousPercent
=
0
;
mbCalcNew
=
true
;
ImplInitSettings
(
true
,
true
,
true
);
}
...
...
@@ -116,7 +117,7 @@ void ProgressBar::ImplInitSettings( bool bFont,
}
}
void
ProgressBar
::
ImplDrawProgress
(
sal_uInt16
nOldPerc
,
sal_uInt16
nNewPerc
)
void
ProgressBar
::
ImplDrawProgress
(
vcl
::
RenderContext
&
/*rRenderContext*/
,
sal_uInt16
nOldPerc
,
sal_uInt16
nNewPerc
)
{
if
(
mbCalcNew
)
{
...
...
@@ -145,9 +146,9 @@ void ProgressBar::ImplDrawProgress( sal_uInt16 nOldPerc, sal_uInt16 nNewPerc )
Rectangle
(
Point
(),
GetSizePixel
()
)
);
}
void
ProgressBar
::
Paint
(
vcl
::
RenderContext
&
/*rRenderContext*/
,
const
Rectangle
&
)
void
ProgressBar
::
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
/*rRect*/
)
{
ImplDrawProgress
(
0
,
mnPercent
);
ImplDrawProgress
(
rRenderContext
,
mnPreviousPercent
,
mnPercent
);
}
void
ProgressBar
::
Resize
()
...
...
@@ -165,6 +166,7 @@ void ProgressBar::SetValue( sal_uInt16 nNewPercent )
{
mbCalcNew
=
true
;
mnPercent
=
nNewPercent
;
mnPreviousPercent
=
0
;
if
(
IsReallyVisible
()
)
{
Invalidate
();
...
...
@@ -173,8 +175,9 @@ void ProgressBar::SetValue( sal_uInt16 nNewPercent )
}
else
{
ImplDrawProgress
(
mnPercent
,
nNewPercent
)
;
mnPreviousPercent
=
mnPercent
;
mnPercent
=
nNewPercent
;
Invalidate
();
}
}
...
...
vcl/source/control/scrbar.cxx
Dosyayı görüntüle @
e6c2951f
...
...
@@ -1120,9 +1120,9 @@ void ScrollBar::KeyInput( const KeyEvent& rKEvt )
Control
::
KeyInput
(
rKEvt
);
}
void
ScrollBar
::
Paint
(
vcl
::
RenderContext
&
/*rRenderContext*/
,
const
Rectangle
&
)
void
ScrollBar
::
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
)
{
ImplDraw
(
SCRBAR_DRAW_ALL
,
this
);
ImplDraw
(
SCRBAR_DRAW_ALL
,
&
rRenderContext
);
}
void
ScrollBar
::
Resize
()
...
...
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