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
b9517712
Kaydet (Commit)
b9517712
authored
May 17, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
tdf#83527 change split window expande handle to be more visible
Change-Id: Ic881c7476fb7e64b7e13b64d3a5ba16403cc796e
üst
e4fab06d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
91 deletions
+58
-91
splitwin.cxx
vcl/source/window/splitwin.cxx
+58
-91
No files found.
vcl/source/window/splitwin.cxx
Dosyayı görüntüle @
b9517712
...
@@ -137,11 +137,11 @@ namespace {
...
@@ -137,11 +137,11 @@ namespace {
}
}
}
}
#define SPLITWIN_SPLITSIZE
3
#define SPLITWIN_SPLITSIZE
4
#define SPLITWIN_SPLITSIZEEX 4
#define SPLITWIN_SPLITSIZEEX 4
#define SPLITWIN_SPLITSIZEEXLN
6
#define SPLITWIN_SPLITSIZEEXLN
7
#define SPLITWIN_SPLITSIZEAUTOHIDE
36
#define SPLITWIN_SPLITSIZEAUTOHIDE
72
#define SPLITWIN_SPLITSIZEFADE
36
#define SPLITWIN_SPLITSIZEFADE
72
#define SPLIT_HORZ ((sal_uInt16)0x0001)
#define SPLIT_HORZ ((sal_uInt16)0x0001)
#define SPLIT_VERT ((sal_uInt16)0x0002)
#define SPLIT_VERT ((sal_uInt16)0x0002)
...
@@ -1850,118 +1850,85 @@ void SplitWindow::ImplDrawAutoHide(vcl::RenderContext& rRenderContext, bool bInP
...
@@ -1850,118 +1850,85 @@ void SplitWindow::ImplDrawAutoHide(vcl::RenderContext& rRenderContext, bool bInP
}
}
}
}
void
SplitWindow
::
ImplDraw
FadeArrow
(
vcl
::
RenderContext
&
rRenderContext
,
const
Point
&
rPt
,
bool
bHorz
,
bool
bLeft
)
void
SplitWindow
::
ImplDraw
Grip
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rRect
,
bool
bHorizontal
,
bool
bLeft
)
{
{
const
StyleSettings
&
rStyleSettings
=
rRenderContext
.
GetSettings
().
GetStyleSettings
();
const
StyleSettings
&
rStyleSettings
=
rRenderContext
.
GetSettings
().
GetStyleSettings
();
int
x
(
rPt
.
X
());
Color
aColor
;
int
y
(
rPt
.
Y
());
Color
aCol
;
if
(
rRect
.
IsInside
(
GetPointerPosPixel
()))
if
(
!
bHorz
)
{
{
int
dx
=
1
;
vcl
::
RenderTools
::
DrawSelectionBackground
(
rRenderContext
,
*
this
,
rRect
,
2
,
false
,
false
,
false
);
if
(
bLeft
)
{
x
++
;
dx
=
-
1
;
}
x
++
;
y
++
;
aCol
=
Color
(
COL_WHITE
);
rRenderContext
.
DrawPixel
(
Point
(
x
,
y
),
aCol
);
rRenderContext
.
DrawPixel
(
Point
(
x
,
y
+
1
),
aCol
);
rRenderContext
.
DrawPixel
(
Point
(
x
,
y
+
2
),
aCol
);
rRenderContext
.
DrawPixel
(
Point
(
x
+
dx
,
y
+
1
),
aCol
);
x
--
;
y
--
;
aColor
=
rStyleSettings
.
GetDarkShadowColor
();
aCol
=
rStyleSettings
.
GetDarkShadowColor
();
rRenderContext
.
DrawPixel
(
Point
(
x
,
y
),
rStyleSettings
.
GetDarkShadowColor
()
);
rRenderContext
.
DrawPixel
(
Point
(
x
,
y
+
1
),
rStyleSettings
.
GetDarkShadowColor
()
);
rRenderContext
.
DrawPixel
(
Point
(
x
,
y
+
2
),
rStyleSettings
.
GetDarkShadowColor
()
);
rRenderContext
.
DrawPixel
(
Point
(
x
+
dx
,
y
+
1
),
rStyleSettings
.
GetDarkShadowColor
()
);
}
}
else
else
{
{
int
dy
=
1
;
rRenderContext
.
SetLineColor
(
rStyleSettings
.
GetDarkShadowColor
());
if
(
bLeft
)
rRenderContext
.
SetFillColor
(
rStyleSettings
.
GetDarkShadowColor
());
{
y
++
;
dy
=
-
1
;
}
x
++
;
y
++
;
rRenderContext
.
DrawRect
(
rRect
);
aCol
=
Color
(
COL_WHITE
);
rRenderContext
.
DrawPixel
(
Point
(
x
,
y
),
aCol
);
rRenderContext
.
DrawPixel
(
Point
(
x
+
1
,
y
),
aCol
);
rRenderContext
.
DrawPixel
(
Point
(
x
+
2
,
y
),
aCol
);
rRenderContext
.
DrawPixel
(
Point
(
x
+
1
,
y
+
dy
),
aCol
);
x
--
;
y
--
;
aColor
=
rStyleSettings
.
GetFaceColor
();
aCol
=
rStyleSettings
.
GetDarkShadowColor
();
rRenderContext
.
DrawPixel
(
Point
(
x
,
y
),
aCol
);
rRenderContext
.
DrawPixel
(
Point
(
x
+
1
,
y
),
aCol
);
rRenderContext
.
DrawPixel
(
Point
(
x
+
2
,
y
),
aCol
);
rRenderContext
.
DrawPixel
(
Point
(
x
+
1
,
y
+
dy
),
aCol
);
}
}
}
void
SplitWindow
::
ImplDrawGrip
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
rRect
,
bool
bHorz
,
bool
bLeft
)
sal_uInt16
nAA
=
rRenderContext
.
GetAntialiasing
();
{
rRenderContext
.
SetAntialiasing
(
nAA
|
ANTIALIASING_PIXELSNAPHAIRLINE
|
ANTIALIASING_ENABLE_B2DDRAW
);
const
StyleSettings
&
rStyleSettings
=
rRenderContext
.
GetSettings
().
GetStyleSettings
();
if
(
rRect
.
IsInside
(
GetPointerPosPixel
()))
long
nWidth
=
rRect
.
getWidth
();
{
long
nWidthHalf
=
nWidth
/
2
;
rRenderContext
.
DrawWallpaper
(
rRect
,
Wallpaper
(
Color
(
COL_WHITE
)));
long
nHeight
=
rRect
.
getHeight
();
vcl
::
RenderTools
::
DrawSelectionBackground
(
rRenderContext
,
*
this
,
rRect
,
2
,
false
,
false
,
false
);
long
nHeightHalf
=
nHeight
/
2
;
}
if
(
bHorz
)
long
nLeft
=
rRect
.
Left
();
{
long
nRight
=
rRect
.
Right
();
int
width
=
(
int
)
(
0.5
*
rRect
.
getWidth
()
+
0.5
);
long
nTop
=
rRect
.
Top
();
int
i
=
rRect
.
Left
()
+
(
rRect
.
getWidth
()
-
width
)
/
2
;
long
nBottom
=
rRect
.
Bottom
();
width
+=
i
;
long
nMargin
=
1
;
const
int
y
=
rRect
.
Top
()
+
1
;
ImplDrawFadeArrow
(
rRenderContext
,
Point
(
i
-
8
,
y
),
bHorz
,
bLeft
);
rRenderContext
.
SetLineColor
(
aColor
);
while
(
i
<=
width
)
rRenderContext
.
SetFillColor
(
aColor
);
{
rRenderContext
.
DrawPixel
(
Point
(
i
,
y
),
rStyleSettings
.
GetDarkShadowColor
());
Polygon
aPoly
(
3
);
rRenderContext
.
DrawPixel
(
Point
(
i
+
1
,
y
),
rStyleSettings
.
GetShadowColor
());
rRenderContext
.
DrawPixel
(
Point
(
i
,
y
+
1
),
rStyleSettings
.
GetShadowColor
());
if
(
bHorizontal
)
rRenderContext
.
DrawPixel
(
Point
(
i
+
1
,
y
+
1
),
rStyleSettings
.
GetFaceColor
());
{
rRenderContext
.
DrawPixel
(
Point
(
i
+
2
,
y
+
1
),
Color
(
COL_WHITE
))
;
long
nCenter
=
nLeft
+
nWidthHalf
;
rRenderContext
.
DrawPixel
(
Point
(
i
+
1
,
y
+
2
),
Color
(
COL_WHITE
));
if
(
bLeft
)
rRenderContext
.
DrawPixel
(
Point
(
i
+
2
,
y
+
2
),
Color
(
COL_WHITE
));
{
i
+=
4
;
aPoly
.
SetPoint
(
Point
(
nCenter
,
nTop
+
nMargin
),
0
);
aPoly
.
SetPoint
(
Point
(
nCenter
-
nHeightHalf
,
nBottom
-
nMargin
),
1
);
aPoly
.
SetPoint
(
Point
(
nCenter
-
nHeightHalf
,
nBottom
-
nMargin
),
2
);
}
else
{
aPoly
.
SetPoint
(
Point
(
nCenter
,
nBottom
-
nMargin
),
0
);
aPoly
.
SetPoint
(
Point
(
nCenter
-
nHeightHalf
,
nTop
+
nMargin
),
1
);
aPoly
.
SetPoint
(
Point
(
nCenter
+
nHeightHalf
,
nTop
+
nMargin
),
2
);
}
}
ImplDrawFadeArrow
(
rRenderContext
,
Point
(
i
+
3
,
y
),
bHorz
,
bLeft
);
rRenderContext
.
DrawPolygon
(
aPoly
);
}
}
else
else
{
{
int
height
=
(
int
)
(
0.5
*
rRect
.
getHeight
()
+
0.5
);
long
nCenter
=
nTop
+
nHeightHalf
;
int
i
=
rRect
.
Top
()
+
(
rRect
.
getHeight
()
-
height
)
/
2
;
height
+=
i
;
const
int
x
=
rRect
.
Left
()
+
2
;
ImplDrawFadeArrow
(
rRenderContext
,
Point
(
x
,
i
-
8
),
bHorz
,
bLeft
);
while
(
i
<=
height
)
{
DrawPixel
(
Point
(
x
,
i
),
rStyleSettings
.
GetDarkShadowColor
());
DrawPixel
(
Point
(
x
+
1
,
i
),
rStyleSettings
.
GetShadowColor
());
DrawPixel
(
Point
(
x
,
i
+
1
),
rStyleSettings
.
GetShadowColor
());
DrawPixel
(
Point
(
x
+
1
,
i
+
1
),
rStyleSettings
.
GetFaceColor
());
DrawPixel
(
Point
(
x
+
2
,
i
+
1
),
Color
(
COL_WHITE
));
DrawPixel
(
Point
(
x
+
1
,
i
+
2
),
Color
(
COL_WHITE
));
if
(
bLeft
)
DrawPixel
(
Point
(
x
+
2
,
i
+
2
),
Color
(
COL_WHITE
));
{
i
+=
4
;
aPoly
.
SetPoint
(
Point
(
nLeft
+
nMargin
,
nCenter
),
0
);
aPoly
.
SetPoint
(
Point
(
nRight
-
nMargin
,
nCenter
-
nWidthHalf
),
1
);
aPoly
.
SetPoint
(
Point
(
nRight
-
nMargin
,
nCenter
+
nWidthHalf
),
2
);
}
}
ImplDrawFadeArrow
(
rRenderContext
,
Point
(
x
,
i
+
3
),
bHorz
,
bLeft
);
else
{
aPoly
.
SetPoint
(
Point
(
nRight
-
nMargin
,
nCenter
),
0
);
aPoly
.
SetPoint
(
Point
(
nLeft
+
nMargin
,
nCenter
-
nWidthHalf
),
1
);
aPoly
.
SetPoint
(
Point
(
nLeft
+
nMargin
,
nCenter
+
nWidthHalf
),
2
);
}
rRenderContext
.
DrawPolygon
(
aPoly
);
}
}
rRenderContext
.
SetAntialiasing
(
nAA
);
}
}
void
SplitWindow
::
ImplDrawFadeIn
(
vcl
::
RenderContext
&
rRenderContext
,
bool
bInPaint
)
void
SplitWindow
::
ImplDrawFadeIn
(
vcl
::
RenderContext
&
rRenderContext
,
bool
bInPaint
)
...
...
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