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
efd013f6
Kaydet (Commit)
efd013f6
authored
Ock 13, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
reuse Resize to set control size and placement in infobar
Change-Id: I4e11cd8f02c41f73b2dda05effbcc17db036f3fc
üst
767ec466
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
infobar.cxx
sfx2/source/dialog/infobar.cxx
+8
-12
No files found.
sfx2/source/dialog/infobar.cxx
Dosyayı görüntüle @
efd013f6
...
...
@@ -106,6 +106,7 @@ SfxInfoBarWindow::SfxInfoBarWindow( vcl::Window* pParent, const OUString& sId,
{
long
nWidth
=
pParent
->
GetSizePixel
().
getWidth
();
SetPosSizePixel
(
Point
(
0
,
0
),
Size
(
nWidth
,
40
)
);
m_pMessage
->
SetText
(
sMessage
);
m_pMessage
->
SetBackground
(
Wallpaper
(
Color
(
255
,
255
,
191
)
)
);
m_pMessage
->
Show
(
);
...
...
@@ -115,22 +116,16 @@ SfxInfoBarWindow::SfxInfoBarWindow( vcl::Window* pParent, const OUString& sId,
m_pCloseBtn
->
Show
(
);
// Reparent the buttons and place them on the right of the bar
long
nX
=
m_pCloseBtn
->
GetPosPixel
(
).
getX
(
)
-
15
;
long
nBtnGap
=
5
;
vector
<
PushButton
*>::
iterator
it
;
for
(
it
=
aButtons
.
begin
();
it
!=
aButtons
.
end
();
++
it
)
{
PushButton
*
pBtn
=
*
it
;
pBtn
->
SetParent
(
this
);
long
nBtnWidth
=
pBtn
->
GetSizePixel
(
).
getWidth
();
nX
-=
nBtnWidth
;
pBtn
->
SetPosSizePixel
(
Point
(
nX
,
5
),
Size
(
nBtnWidth
,
30
)
);
nX
-=
nBtnGap
;
pBtn
->
Show
(
);
m_aActionBtns
.
push_back
(
pBtn
);
PushButton
*
pButton
=
*
it
;
pButton
->
SetParent
(
this
);
pButton
->
Show
();
m_aActionBtns
.
push_back
(
pButton
);
}
m_pMessage
->
SetPosSizePixel
(
Point
(
10
,
10
),
Size
(
nX
-
20
,
20
)
);
Resize
(
);
}
SfxInfoBarWindow
::~
SfxInfoBarWindow
(
)
...
...
@@ -166,6 +161,7 @@ void SfxInfoBarWindow::Paint( const Rectangle& rPaintRect )
aPolygon
.
append
(
basegfx
::
B2DPoint
(
aRect
.
Right
(
),
aRect
.
Bottom
(
)
)
);
aPolygon
.
append
(
basegfx
::
B2DPoint
(
aRect
.
Left
(
),
aRect
.
Bottom
(
)
)
);
aPolygon
.
setClosed
(
true
);
PolyPolygonColorPrimitive2D
*
pBack
=
new
PolyPolygonColorPrimitive2D
(
basegfx
::
B2DPolyPolygon
(
aPolygon
),
aLightColor
);
aSeq
[
0
]
=
pBack
;
...
...
@@ -187,7 +183,7 @@ void SfxInfoBarWindow::Paint( const Rectangle& rPaintRect )
Window
::
Paint
(
rPaintRect
);
}
void
SfxInfoBarWindow
::
Resize
(
)
void
SfxInfoBarWindow
::
Resize
()
{
long
nWidth
=
GetSizePixel
().
getWidth
();
m_pCloseBtn
->
SetPosSizePixel
(
Point
(
nWidth
-
25
,
15
),
Size
(
10
,
10
)
);
...
...
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