summaryrefslogtreecommitdiffstats
path: root/cui/source/options/optopencl.cxx
diff options
context:
space:
mode:
authorOlivier Hallot <olivier.hallot@edx.srv.br>2014-12-22 14:31:25 -0200
committerTor Lillqvist <tml@collabora.com>2014-12-22 17:43:53 +0000
commit3c40bd24c538cb2e5fddae7176002d8a970bbc41 (patch)
tree0753717193e15057fda3e0e1739edd708fdd9781 /cui/source/options/optopencl.cxx
parentImprove HIG in OpenCL Add/Edit dialog (diff)
downloadcore-3c40bd24c538cb2e5fddae7176002d8a970bbc41.tar.gz
core-3c40bd24c538cb2e5fddae7176002d8a970bbc41.zip
Enhance OpenCL options UI dialog
1) HIG-ification of blacklist and whitelist, using frames 2) handle Use OpenCL checkbox to enable/disable OpenCL blacklist and whitelist changes Change-Id: Iae132d09d2dd0436fa1aa2a64e902ee5aed7cf47 Reviewed-on: https://gerrit.libreoffice.org/13602 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'cui/source/options/optopencl.cxx')
-rw-r--r--cui/source/options/optopencl.cxx18
1 files changed, 18 insertions, 0 deletions
diff --git a/cui/source/options/optopencl.cxx b/cui/source/options/optopencl.cxx
index 179edf85718f..f283f908072a 100644
--- a/cui/source/options/optopencl.cxx
+++ b/cui/source/options/optopencl.cxx
@@ -42,14 +42,18 @@ SvxOpenCLTabPage::SvxOpenCLTabPage(vcl::Window* pParent, const SfxItemSet& rSet)
{
get(mpUseOpenCL, "useopencl");
get(mpBlackList, "blacklist");
+ get(mpBlackListFrame,"blacklistframe");
get(mpBlackListEdit, "bledit");
get(mpBlackListAdd, "bladd");
get(mpBlackListDelete, "bldelete");
get(mpWhiteList, "whitelist");
+ get(mpWhiteListFrame,"whitelistframe");
get(mpWhiteListEdit, "wledit");
get(mpWhiteListAdd, "wladd");
get(mpWhiteListDelete, "wldelete");
+ mpUseOpenCL->SetClickHdl(LINK(this, SvxOpenCLTabPage, EnableOpenCLHdl));
+
mpBlackListEdit->SetClickHdl(LINK(this, SvxOpenCLTabPage, BlackListEditHdl));
mpBlackListAdd->SetClickHdl(LINK(this, SvxOpenCLTabPage, BlackListAddHdl));
mpBlackListDelete->SetClickHdl(LINK(this, SvxOpenCLTabPage, BlackListDeleteHdl));
@@ -60,6 +64,7 @@ SvxOpenCLTabPage::SvxOpenCLTabPage(vcl::Window* pParent, const SfxItemSet& rSet)
mpBlackList->set_height_request(4 * mpBlackList->GetTextHeight());
mpWhiteList->set_height_request(4 * mpWhiteList->GetTextHeight());
+
}
SvxOpenCLTabPage::~SvxOpenCLTabPage()
@@ -273,6 +278,10 @@ long SvxOpenCLTabPage::DeleteHdl(ListBox* pListBox, OpenCLConfig::ImplMatcherSet
return 0;
}
+void SvxOpenCLTabPage::EnableOpenCLHdl(VclFrame* pFrame, bool aEnable)
+{
+ pFrame->Enable(aEnable);
+}
IMPL_LINK_NOARG(SvxOpenCLTabPage, BlackListEditHdl)
{
@@ -304,4 +313,13 @@ IMPL_LINK_NOARG(SvxOpenCLTabPage, WhiteListDeleteHdl)
return DeleteHdl(mpWhiteList, maConfig.maWhiteList);
}
+IMPL_LINK_NOARG(SvxOpenCLTabPage, EnableOpenCLHdl)
+{
+ EnableOpenCLHdl(mpBlackListFrame, mpUseOpenCL->IsChecked());
+ EnableOpenCLHdl(mpWhiteListFrame, mpUseOpenCL->IsChecked());
+ return 0;
+}
+
+
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */