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
6656e915
Kaydet (Commit)
6656e915
authored
May 18, 2015
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ApplySettings for dialog
Change-Id: I30f26799e0dfa059ad754eead5ba382f44bf1310
üst
6fa87f3f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
16 deletions
+67
-16
dialog.hxx
include/vcl/dialog.hxx
+2
-0
helpwin.hxx
vcl/inc/helpwin.hxx
+9
-5
help.cxx
vcl/source/app/help.cxx
+32
-7
dialog.cxx
vcl/source/window/dialog.cxx
+24
-4
No files found.
include/vcl/dialog.hxx
Dosyayı görüntüle @
6656e915
...
...
@@ -53,6 +53,8 @@ private:
SAL_DLLPRIVATE
void
ImplInitDialogData
();
SAL_DLLPRIVATE
void
ImplInitSettings
();
virtual
void
ApplySettings
(
vcl
::
RenderContext
&
rRenderContext
);
SAL_DLLPRIVATE
Dialog
(
const
Dialog
&
)
SAL_DELETED_FUNCTION
;
SAL_DLLPRIVATE
Dialog
&
operator
=
(
const
Dialog
&
)
SAL_DELETED_FUNCTION
;
...
...
vcl/inc/helpwin.hxx
Dosyayı görüntüle @
6656e915
...
...
@@ -44,11 +44,15 @@ private:
QuickHelpFlags
mnStyle
;
protected
:
DECL_LINK_TYPED
(
TimerHdl
,
Timer
*
,
void
);
virtual
void
Paint
(
vcl
::
RenderContext
&
/*rRenderContext*/
,
const
Rectangle
&
)
SAL_OVERRIDE
;
virtual
void
RequestHelp
(
const
HelpEvent
&
rHEvt
)
SAL_OVERRIDE
;
virtual
OUString
GetText
()
const
SAL_OVERRIDE
;
void
ImplShow
();
DECL_LINK_TYPED
(
TimerHdl
,
Timer
*
,
void
);
virtual
void
Paint
(
vcl
::
RenderContext
&
rRenderContext
,
const
Rectangle
&
)
SAL_OVERRIDE
;
virtual
void
RequestHelp
(
const
HelpEvent
&
rHEvt
)
SAL_OVERRIDE
;
virtual
void
ApplySettings
(
vcl
::
RenderContext
&
rRenderContext
)
SAL_OVERRIDE
;
virtual
OUString
GetText
()
const
SAL_OVERRIDE
;
void
ImplShow
();
public
:
HelpTextWindow
(
vcl
::
Window
*
pParent
,
const
OUString
&
rText
,
sal_uInt16
nHelpWinStyle
,
QuickHelpFlags
nStyle
);
...
...
vcl/source/app/help.cxx
Dosyayı görüntüle @
6656e915
...
...
@@ -253,17 +253,18 @@ HelpTextWindow::HelpTextWindow( vcl::Window* pParent, const OUString& rText, sal
// FIXME RenderContext
const
StyleSettings
&
rStyleSettings
=
GetSettings
().
GetStyleSettings
();
SetPointFont
(
*
this
,
rStyleSettings
.
GetHelpFont
());
SetTextColor
(
rStyleSettings
.
GetHelpTextColor
()
);
SetTextAlign
(
ALIGN_TOP
);
if
(
IsNativeControlSupported
(
CTRL_TOOLTIP
,
PART_ENTIRE_CONTROL
)
)
SetTextColor
(
rStyleSettings
.
GetHelpTextColor
()
);
SetTextAlign
(
ALIGN_TOP
);
if
(
IsNativeControlSupported
(
CTRL_TOOLTIP
,
PART_ENTIRE_CONTROL
)
)
{
EnableChildTransparentMode
(
true
);
SetParentClipMode
(
PARENTCLIPMODE_NOCLIP
);
SetPaintTransparent
(
true
);
EnableChildTransparentMode
(
true
);
SetParentClipMode
(
PARENTCLIPMODE_NOCLIP
);
SetPaintTransparent
(
true
);
SetBackground
();
}
else
SetBackground
(
Wallpaper
(
rStyleSettings
.
GetHelpColor
()
)
);
SetBackground
(
Wallpaper
(
rStyleSettings
.
GetHelpColor
()));
if
(
rStyleSettings
.
GetHelpColor
().
IsDark
()
)
SetLineColor
(
COL_WHITE
);
else
...
...
@@ -289,6 +290,30 @@ HelpTextWindow::HelpTextWindow( vcl::Window* pParent, const OUString& rText, sal
maHideTimer
.
SetTimeout
(
rHelpSettings
.
GetTipTimeout
()
);
}
void
HelpTextWindow
::
ApplySettings
(
vcl
::
RenderContext
&
rRenderContext
)
{
const
StyleSettings
&
rStyleSettings
=
rRenderContext
.
GetSettings
().
GetStyleSettings
();
SetPointFont
(
rRenderContext
,
rStyleSettings
.
GetHelpFont
());
rRenderContext
.
SetTextColor
(
rStyleSettings
.
GetHelpTextColor
());
rRenderContext
.
SetTextAlign
(
ALIGN_TOP
);
if
(
rRenderContext
.
IsNativeControlSupported
(
CTRL_TOOLTIP
,
PART_ENTIRE_CONTROL
))
{
EnableChildTransparentMode
(
true
);
SetParentClipMode
(
PARENTCLIPMODE_NOCLIP
);
SetPaintTransparent
(
true
);
rRenderContext
.
SetBackground
();
}
else
rRenderContext
.
SetBackground
(
Wallpaper
(
rStyleSettings
.
GetHelpColor
()));
if
(
rStyleSettings
.
GetHelpColor
().
IsDark
())
rRenderContext
.
SetLineColor
(
COL_WHITE
);
else
rRenderContext
.
SetLineColor
(
COL_BLACK
);
rRenderContext
.
SetFillColor
();
}
HelpTextWindow
::~
HelpTextWindow
()
{
disposeOnce
();
...
...
vcl/source/window/dialog.cxx
Dosyayı görüntüle @
6656e915
...
...
@@ -432,20 +432,40 @@ void Dialog::ImplInit( vcl::Window* pParent, WinBits nStyle, InitFlag eFlag )
ImplInitSettings
();
}
void
Dialog
::
ApplySettings
(
vcl
::
RenderContext
&
rRenderContext
)
{
if
(
IsControlBackground
())
{
// user override
SetBackground
(
GetControlBackground
());
}
else
if
(
rRenderContext
.
IsNativeControlSupported
(
CTRL_WINDOW_BACKGROUND
,
PART_BACKGROUND_DIALOG
))
{
// NWF background
mpWindowImpl
->
mnNativeBackground
=
PART_BACKGROUND_DIALOG
;
EnableChildTransparentMode
(
true
);
}
else
{
// fallback to settings color
rRenderContext
.
SetBackground
(
GetSettings
().
GetStyleSettings
().
GetDialogColor
());
}
}
void
Dialog
::
ImplInitSettings
()
{
// user override
if
(
IsControlBackground
()
)
SetBackground
(
GetControlBackground
()
);
if
(
IsControlBackground
()
)
SetBackground
(
GetControlBackground
()
);
// NWF background
else
if
(
IsNativeControlSupported
(
CTRL_WINDOW_BACKGROUND
,
PART_BACKGROUND_DIALOG
)
)
else
if
(
IsNativeControlSupported
(
CTRL_WINDOW_BACKGROUND
,
PART_BACKGROUND_DIALOG
)
)
{
mpWindowImpl
->
mnNativeBackground
=
PART_BACKGROUND_DIALOG
;
EnableChildTransparentMode
(
true
);
}
// fallback to settings color
else
SetBackground
(
GetSettings
().
GetStyleSettings
().
GetDialogColor
()
);
SetBackground
(
GetSettings
().
GetStyleSettings
().
GetDialogColor
()
);
}
Dialog
::
Dialog
(
WindowType
nType
)
...
...
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