tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / sc / source / ui / inc / FourierAnalysisDialog.hxx
blobf839b274e4d8b1da2ca404eb7dd19e156c7a7182
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 */
11 #pragma once
13 #include "StatisticsInputOutputDialog.hxx"
15 class ScFourierAnalysisDialog : public ScStatisticsInputOutputDialog
17 ScAddress maLabelAddr;
18 ScRange maActualInputRange;
19 SCSIZE mnLen;
21 double mfMinMag;
23 bool mbUse3DAddresses : 1;
24 bool mbGroupedByColumn : 1;
25 bool mbWithLabels : 1;
26 bool mbInverse : 1;
27 bool mbPolar : 1;
29 std::unique_ptr<weld::CheckButton> mxWithLabelsCheckBox;
30 std::unique_ptr<weld::CheckButton> mxInverseCheckBox;
31 std::unique_ptr<weld::CheckButton> mxPolarCheckBox;
32 std::unique_ptr<weld::SpinButton> mxMinMagnitudeField;
33 std::unique_ptr<weld::Label> mxErrorMessage;
35 public:
36 ScFourierAnalysisDialog(SfxBindings* pB, SfxChildWindow* pCW, weld::Window* pParent,
37 ScViewData& rViewData);
39 virtual ~ScFourierAnalysisDialog() override;
41 virtual void Close() override;
43 protected:
44 virtual TranslateId GetUndoNameId() override;
45 virtual ScRange ApplyOutput(ScDocShell* pDocShell) override;
46 virtual bool InputRangesValid() override;
48 private:
49 void getOptions();
50 void getDataLabel(OUString& rLabel);
51 void genFormula(OUString& rFormula);
53 DECL_LINK(CheckBoxHdl, weld::Toggleable&, void);
56 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */