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
4b5a9894
Kaydet (Commit)
4b5a9894
authored
Ock 08, 2014
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#73408: Make the software interpreter selection stick in the UI.
Change-Id: I136a98fadbde82a7a585df9a5691f884c0362699
üst
d8fd1587
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
7 deletions
+15
-7
globalnames.hxx
sc/inc/globalnames.hxx
+4
-0
formulagroup.cxx
sc/source/core/tool/formulagroup.cxx
+2
-1
calcoptionsdlg.cxx
sc/source/ui/optdlg/calcoptionsdlg.cxx
+9
-6
No files found.
sc/inc/globalnames.hxx
Dosyayı görüntüle @
4b5a9894
...
...
@@ -23,6 +23,10 @@
// set (in nScriptType) if type has not been determined yet
#define SC_SCRIPTTYPE_UNKNOWN 0x08
// Device name used to represent the software group interpreter for OpenCL
// mode. This string gets stored in use configuration as the device name.
#define OPENCL_SOFTWARE_DEVICE_CONFIG_NAME "Software"
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sc/source/core/tool/formulagroup.cxx
Dosyayı görüntüle @
4b5a9894
...
...
@@ -16,6 +16,7 @@
#include "compiler.hxx"
#include "interpre.hxx"
#include "scmatrix.hxx"
#include "globalnames.hxx"
#include "formula/vectortoken.hxx"
#include "rtl/bootstrap.hxx"
...
...
@@ -599,7 +600,7 @@ void FormulaGroupInterpreter::fillOpenCLInfo(std::vector<OpenclPlatformInfo>& rP
bool
FormulaGroupInterpreter
::
switchOpenCLDevice
(
const
OUString
&
rDeviceId
,
bool
bAutoSelect
,
bool
bForceEvaluation
)
{
bool
bOpenCLEnabled
=
ScInterpreter
::
GetGlobalConfig
().
mbOpenCLEnabled
;
if
(
!
bOpenCLEnabled
||
rDeviceId
==
"Software"
)
if
(
!
bOpenCLEnabled
||
rDeviceId
==
OPENCL_SOFTWARE_DEVICE_CONFIG_NAME
)
{
if
(
msInstance
)
{
...
...
sc/source/ui/optdlg/calcoptionsdlg.cxx
Dosyayı görüntüle @
4b5a9894
...
...
@@ -16,6 +16,7 @@
#if HAVE_FEATURE_OPENCL
#include "formulagroup.hxx"
#include "globalnames.hxx"
#endif
namespace
{
...
...
@@ -200,7 +201,7 @@ void ScCalcOptionsDialog::fillOpenclList()
{
mpOpenclInfoList
->
SetUpdateMode
(
false
);
mpOpenclInfoList
->
Clear
();
mpOpenclInfoList
->
InsertEntry
(
maSoftware
);
SvTreeListEntry
*
pSoftwareEntry
=
mpOpenclInfoList
->
InsertEntry
(
maSoftware
);
OUString
aStoredDevice
=
maConfig
.
maOpenCLDevice
;
...
...
@@ -225,10 +226,12 @@ void ScCalcOptionsDialog::fillOpenclList()
mpOpenclInfoList
->
SetUpdateMode
(
true
);
mpOpenclInfoList
->
GetModel
()
->
GetView
(
0
)
->
SelectAll
(
false
,
false
);
if
(
pSelectedEntry
)
{
mpOpenclInfoList
->
GetModel
()
->
GetView
(
0
)
->
Select
(
pSelectedEntry
);
}
if
(
pSelectedEntry
)
mpOpenclInfoList
->
Select
(
pSelectedEntry
);
else
if
(
aStoredDevice
==
OPENCL_SOFTWARE_DEVICE_CONFIG_NAME
)
mpOpenclInfoList
->
Select
(
pSoftwareEntry
);
SelectedDeviceChanged
();
}
...
...
@@ -404,7 +407,7 @@ void ScCalcOptionsDialog::SelectedDeviceChanged()
OUString
aDevice
=
dynamic_cast
<
SvLBoxString
*>
(
pEntry
->
GetItem
(
1
))
->
GetText
();
// use english string for configuration
if
(
aDevice
==
maSoftware
)
aDevice
=
"Software"
;
aDevice
=
OPENCL_SOFTWARE_DEVICE_CONFIG_NAME
;
maConfig
.
maOpenCLDevice
=
aDevice
;
#endif
...
...
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