bump product version to 5.0.4.1
[LibreOffice.git] / cui / source / options / optopencl.hxx
blob99886acbe03854336aa153a0b744ceca6999489b
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_CUI_SOURCE_OPTIONS_OPTOPENCL_HXX
21 #define INCLUDED_CUI_SOURCE_OPTIONS_OPTOPENCL_HXX
23 #include <opencl/openclconfig.hxx>
24 #include <sfx2/tabdlg.hxx>
25 #include <svtools/simptabl.hxx>
26 #include <vcl/fixed.hxx>
27 #include <vcl/lstbox.hxx>
29 class SvxOpenCLTabPage : public SfxTabPage
31 private:
32 OpenCLConfig maConfig;
34 VclPtr<CheckBox> mpUseOpenCL;
36 VclPtr<VclFrame> mpBlackListFrame;
37 VclPtr<SvSimpleTable> mpBlackList;
38 VclPtr<SvSimpleTableContainer> mpBlackListTable;
39 VclPtr<PushButton> mpBlackListEdit;
40 VclPtr<PushButton> mpBlackListAdd;
41 VclPtr<PushButton> mpBlackListDelete;
42 VclPtr<FixedText> mpOS;
43 VclPtr<FixedText> mpOSVersion;
44 VclPtr<FixedText> mpDevice;
45 VclPtr<FixedText> mpVendor;
46 VclPtr<FixedText> mpDrvVersion;
48 VclPtr<VclFrame> mpWhiteListFrame;
49 VclPtr<SvSimpleTable> mpWhiteList;
50 VclPtr<SvSimpleTableContainer> mpWhiteListTable;
51 VclPtr<PushButton> mpWhiteListEdit;
52 VclPtr<PushButton> mpWhiteListAdd;
53 VclPtr<PushButton> mpWhiteListDelete;
55 DECL_LINK(BlackListEditHdl, void*);
56 DECL_LINK(BlackListAddHdl, void*);
57 DECL_LINK(BlackListDeleteHdl, void*);
59 DECL_LINK(WhiteListEditHdl, void*);
60 DECL_LINK(WhiteListAddHdl, void*);
61 DECL_LINK(WhiteListDeleteHdl, void*);
63 DECL_LINK(EnableOpenCLHdl, void*);
65 long EditHdl(SvSimpleTable* pListBox, OpenCLConfig::ImplMatcherSet& rSet, const OString& rTag);
66 long AddHdl(SvSimpleTable* pListBox, OpenCLConfig::ImplMatcherSet& rSet, const OString& rTag);
67 static long DeleteHdl(SvSimpleTable* pListBox, OpenCLConfig::ImplMatcherSet& rSet);
69 static void EnableOpenCLHdl(VclFrame* pFrame, bool aEnable);
71 public:
72 SvxOpenCLTabPage( vcl::Window* pParent, const SfxItemSet& rSet );
73 virtual ~SvxOpenCLTabPage();
74 virtual void dispose() SAL_OVERRIDE;
76 static VclPtr<SfxTabPage> Create( vcl::Window* pParent, const SfxItemSet* rSet );
78 virtual bool FillItemSet( SfxItemSet* rSet ) SAL_OVERRIDE;
79 virtual void Reset( const SfxItemSet* rSet ) SAL_OVERRIDE;
80 virtual void FillUserData() SAL_OVERRIDE;
83 #endif
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */