Kaydet (Commit) 8d526da3 authored tarafından Caolán McNamara's avatar Caolán McNamara

weld ScChiSquareTestDialog

Change-Id: I652bf123bc9cba5edbb052bddd9be02640b3884c
Reviewed-on: https://gerrit.libreoffice.org/70542Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 74e3e244
...@@ -16,20 +16,20 @@ ...@@ -16,20 +16,20 @@
ScChiSquareTestDialog::ScChiSquareTestDialog( ScChiSquareTestDialog::ScChiSquareTestDialog(
SfxBindings* pSfxBindings, SfxChildWindow* pChildWindow, SfxBindings* pSfxBindings, SfxChildWindow* pChildWindow,
vcl::Window* pParent, ScViewData* pViewData ) : weld::Window* pParent, ScViewData* pViewData ) :
ScStatisticsInputOutputDialog( ScStatisticsInputOutputDialogController(
pSfxBindings, pChildWindow, pParent, pViewData, pSfxBindings, pChildWindow, pParent, pViewData,
"ChiSquareTestDialog", "modules/scalc/ui/chisquaretestdialog.ui" ) "modules/scalc/ui/chisquaretestdialog.ui", "ChiSquareTestDialog")
{ {
SetText(ScResId(STR_CHI_SQUARE_TEST)); m_xDialog->set_title(ScResId(STR_CHI_SQUARE_TEST));
} }
ScChiSquareTestDialog::~ScChiSquareTestDialog() ScChiSquareTestDialog::~ScChiSquareTestDialog()
{} {}
bool ScChiSquareTestDialog::Close() void ScChiSquareTestDialog::Close()
{ {
return DoClose(ScChiSquareTestDialogWrapper::GetChildWindowId()); DoClose(ScChiSquareTestDialogWrapper::GetChildWindowId());
} }
const char* ScChiSquareTestDialog::GetUndoNameId() const char* ScChiSquareTestDialog::GetUndoNameId()
......
...@@ -13,16 +13,16 @@ ...@@ -13,16 +13,16 @@
#include "StatisticsInputOutputDialog.hxx" #include "StatisticsInputOutputDialog.hxx"
class ScChiSquareTestDialog : public ScStatisticsInputOutputDialog class ScChiSquareTestDialog : public ScStatisticsInputOutputDialogController
{ {
public: public:
ScChiSquareTestDialog( ScChiSquareTestDialog(
SfxBindings* pB, SfxChildWindow* pCW, SfxBindings* pB, SfxChildWindow* pCW,
vcl::Window* pParent, ScViewData* pViewData ); weld::Window* pParent, ScViewData* pViewData );
virtual ~ScChiSquareTestDialog() override; virtual ~ScChiSquareTestDialog() override;
virtual bool Close() override; virtual void Close() override;
protected: protected:
virtual const char* GetUndoNameId() override; virtual const char* GetUndoNameId() override;
......
...@@ -135,7 +135,7 @@ private: ...@@ -135,7 +135,7 @@ private:
}; };
class ScChiSquareTestDialogWrapper : class ScChiSquareTestDialogWrapper :
public ChildWindowWrapper<SID_CHI_SQUARE_TEST_DIALOG> public ChildControllerWrapper<SID_CHI_SQUARE_TEST_DIALOG>
{ {
private: private:
ScChiSquareTestDialogWrapper() = delete; ScChiSquareTestDialogWrapper() = delete;
......
...@@ -330,12 +330,6 @@ VclPtr<SfxModelessDialog> ScTabViewShell::CreateRefDialog( ...@@ -330,12 +330,6 @@ VclPtr<SfxModelessDialog> ScTabViewShell::CreateRefDialog(
} }
break; break;
case SID_CHI_SQUARE_TEST_DIALOG:
{
pResult = VclPtr<ScChiSquareTestDialog>::Create( pB, pCW, pParent, &GetViewData() );
}
break;
case SID_FOURIER_ANALYSIS_DIALOG: case SID_FOURIER_ANALYSIS_DIALOG:
{ {
pResult = VclPtr<ScFourierAnalysisDialog>::Create( pB, pCW, pParent, &GetViewData() ); pResult = VclPtr<ScFourierAnalysisDialog>::Create( pB, pCW, pParent, &GetViewData() );
...@@ -528,6 +522,11 @@ std::unique_ptr<SfxModelessDialogController> ScTabViewShell::CreateRefDialogCont ...@@ -528,6 +522,11 @@ std::unique_ptr<SfxModelessDialogController> ScTabViewShell::CreateRefDialogCont
xResult.reset(new ScZTestDialog(pB, pCW, pParent, &GetViewData())); xResult.reset(new ScZTestDialog(pB, pCW, pParent, &GetViewData()));
} }
break; break;
case SID_CHI_SQUARE_TEST_DIALOG:
{
xResult.reset(new ScChiSquareTestDialog(pB, pCW, pParent, &GetViewData()));
}
break;
} }
if (xResult) if (xResult)
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 --> <!-- Generated with glade 3.22.1 -->
<interface domain="sc"> <interface domain="sc">
<requires lib="gtk+" version="3.18"/> <requires lib="gtk+" version="3.18"/>
<requires lib="LibreOffice" version="1.0"/>
<object class="GtkDialog" id="ChiSquareTestDialog"> <object class="GtkDialog" id="ChiSquareTestDialog">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="border_width">6</property> <property name="border_width">6</property>
<property name="title" translatable="yes" context="chisquaretestdialog|ChiSquareTestDialog">Chi Square Test</property> <property name="title" translatable="yes" context="chisquaretestdialog|ChiSquareTestDialog">Chi Square Test</property>
<property name="resizable">False</property> <property name="resizable">False</property>
<property name="default_width">0</property>
<property name="default_height">0</property>
<property name="type_hint">dialog</property> <property name="type_hint">dialog</property>
<child>
<placeholder/>
</child>
<child internal-child="vbox"> <child internal-child="vbox">
<object class="GtkBox" id="dialog-vbox1"> <object class="GtkBox" id="dialog-vbox1">
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">12</property> <property name="spacing">12</property>
<child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area1">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="ok">
<property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="cancel">
<property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="help">
<property name="label">gtk-help</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
<property name="secondary">True</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
<child> <child>
<object class="GtkFrame" id="framedata"> <object class="GtkFrame" id="framedata">
<property name="visible">True</property> <property name="visible">True</property>
...@@ -38,10 +101,10 @@ ...@@ -38,10 +101,10 @@
<object class="GtkLabel" id="input-range-label"> <object class="GtkLabel" id="input-range-label">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="chisquaretestdialog|input-range-label">Input range:</property> <property name="label" translatable="yes" context="chisquaretestdialog|input-range-label">Input range:</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="mnemonic_widget">input-range-edit</property> <property name="mnemonic_widget">input-range-edit</property>
<property name="xalign">0</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
...@@ -49,11 +112,12 @@ ...@@ -49,11 +112,12 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="foruilo-RefEdit" id="input-range-edit"> <object class="GtkEntry" id="input-range-edit">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="valign">center</property> <property name="valign">center</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="activates_default">True</property>
<property name="width_chars">30</property> <property name="width_chars">30</property>
</object> </object>
<packing> <packing>
...@@ -62,7 +126,7 @@ ...@@ -62,7 +126,7 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="foruilo-RefButton" id="input-range-button"> <object class="GtkButton" id="input-range-button">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">True</property> <property name="receives_default">True</property>
...@@ -76,10 +140,10 @@ ...@@ -76,10 +140,10 @@
<object class="GtkLabel" id="output-range-label"> <object class="GtkLabel" id="output-range-label">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="chisquaretestdialog|output-range-label">Results to:</property> <property name="label" translatable="yes" context="chisquaretestdialog|output-range-label">Results to:</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="mnemonic_widget">output-range-edit</property> <property name="mnemonic_widget">output-range-edit</property>
<property name="xalign">0</property>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
...@@ -87,11 +151,12 @@ ...@@ -87,11 +151,12 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="foruilo-RefEdit" id="output-range-edit"> <object class="GtkEntry" id="output-range-edit">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="valign">center</property> <property name="valign">center</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="activates_default">True</property>
<property name="width_chars">30</property> <property name="width_chars">30</property>
</object> </object>
<packing> <packing>
...@@ -100,7 +165,7 @@ ...@@ -100,7 +165,7 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="foruilo-RefButton" id="output-range-button"> <object class="GtkButton" id="output-range-button">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="receives_default">True</property> <property name="receives_default">True</property>
...@@ -131,65 +196,6 @@ ...@@ -131,65 +196,6 @@
<property name="position">0</property> <property name="position">0</property>
</packing> </packing>
</child> </child>
<child internal-child="action_area">
<object class="GtkButtonBox" id="dialog-action_area1">
<property name="can_focus">False</property>
<property name="layout_style">end</property>
<child>
<object class="GtkButton" id="ok">
<property name="label">gtk-ok</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="cancel">
<property name="label">gtk-cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="can_default">True</property>
<property name="has_default">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkButton" id="help">
<property name="label">gtk-help</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
<property name="secondary">True</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">0</property>
</packing>
</child>
<child> <child>
<object class="GtkFrame" id="frame2"> <object class="GtkFrame" id="frame2">
<property name="visible">True</property> <property name="visible">True</property>
...@@ -267,6 +273,7 @@ ...@@ -267,6 +273,7 @@
</child> </child>
<action-widgets> <action-widgets>
<action-widget response="-5">ok</action-widget> <action-widget response="-5">ok</action-widget>
<action-widget response="-6">cancel</action-widget>
<action-widget response="-11">help</action-widget> <action-widget response="-11">help</action-widget>
</action-widgets> </action-widgets>
</object> </object>
......
...@@ -6,6 +6,8 @@ sc/uiconfig/scalc/ui/analysisofvariancedialog.ui://GtkButton[@id='input-range-bu ...@@ -6,6 +6,8 @@ sc/uiconfig/scalc/ui/analysisofvariancedialog.ui://GtkButton[@id='input-range-bu
sc/uiconfig/scalc/ui/analysisofvariancedialog.ui://GtkButton[@id='output-range-button'] button-no-label sc/uiconfig/scalc/ui/analysisofvariancedialog.ui://GtkButton[@id='output-range-button'] button-no-label
sc/uiconfig/scalc/ui/cellprotectionpage.ui://GtkLabel[@id='label1'] orphan-label sc/uiconfig/scalc/ui/cellprotectionpage.ui://GtkLabel[@id='label1'] orphan-label
sc/uiconfig/scalc/ui/cellprotectionpage.ui://GtkLabel[@id='label4'] orphan-label sc/uiconfig/scalc/ui/cellprotectionpage.ui://GtkLabel[@id='label4'] orphan-label
sc/uiconfig/scalc/ui/chisquaretestdialog.ui://GtkButton[@id='input-range-button'] button-no-label
sc/uiconfig/scalc/ui/chisquaretestdialog.ui://GtkButton[@id='output-range-button'] button-no-label
sc/uiconfig/scalc/ui/conditionalentry.ui://GtkLabel[@id='number'] orphan-label sc/uiconfig/scalc/ui/conditionalentry.ui://GtkLabel[@id='number'] orphan-label
sc/uiconfig/scalc/ui/conditionalentry.ui://GtkLabel[@id='condition'] orphan-label sc/uiconfig/scalc/ui/conditionalentry.ui://GtkLabel[@id='condition'] orphan-label
sc/uiconfig/scalc/ui/conditionalentry.ui://GtkComboBoxText[@id='type'] no-labelled-by sc/uiconfig/scalc/ui/conditionalentry.ui://GtkComboBoxText[@id='type'] no-labelled-by
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment