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
3b80c1ac
Kaydet (Commit)
3b80c1ac
authored
Ara 23, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add a basic GetOptimalSize to progress bar
Change-Id: I34b98d4c98b3f9af062473f254ffeadb05130471
üst
2bb1a845
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
prgsbar.hxx
include/vcl/prgsbar.hxx
+2
-1
prgsbar.cxx
vcl/source/control/prgsbar.cxx
+6
-1
No files found.
include/vcl/prgsbar.hxx
Dosyayı görüntüle @
3b80c1ac
...
...
@@ -79,9 +79,10 @@ public:
virtual
void
Resize
();
virtual
void
StateChanged
(
StateChangedType
nStateChange
);
virtual
void
DataChanged
(
const
DataChangedEvent
&
rDCEvt
);
virtual
Size
GetOptimalSize
()
const
;
void
SetValue
(
sal_uInt16
nNewPercent
);
sal_uInt16
GetValue
()
const
{
return
mnPercent
;
}
sal_uInt16
GetValue
()
const
{
return
mnPercent
;
}
};
#endif // INCLUDED_VCL_PRGSBAR_HXX
...
...
vcl/source/control/prgsbar.cxx
Dosyayı görüntüle @
3b80c1ac
...
...
@@ -43,10 +43,15 @@ static WinBits clearProgressBarBorder( Window* pParent, WinBits nOrgStyle )
return
nOutStyle
;
}
Size
ProgressBar
::
GetOptimalSize
()
const
{
return
Size
(
150
,
20
);
}
ProgressBar
::
ProgressBar
(
Window
*
pParent
,
WinBits
nWinStyle
)
:
Window
(
pParent
,
clearProgressBarBorder
(
pParent
,
nWinStyle
)
)
{
SetOutputSizePixel
(
Size
(
150
,
20
)
);
SetOutputSizePixel
(
GetOptimalSize
(
)
);
ImplInit
();
}
...
...
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