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

weld RangeChooserTabPage

Change-Id: I3006d215cc734d28b208c0c4e8b9c719b70d4954
Reviewed-on: https://gerrit.libreoffice.org/61799
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 27a5f7d3
......@@ -135,9 +135,9 @@ DataSourceDialog::DataSourceDialog(vcl::Window * pParent,
m_pTabControl->Show();
m_pRangeChooserTabPage = VclPtr<RangeChooserTabPage>::Create( m_pTabControl, *(m_apDialogModel.get()),
m_pRangeChooserTabPage = VclPtr<RangeChooserTabPage>::Create(TabPageParent(m_pTabControl), *(m_apDialogModel.get()),
m_apDocTemplateProvider.get(), this, true /* bHideDescription */ );
m_pDataSourceTabPage = VclPtr<DataSourceTabPage>::Create( m_pTabControl, *(m_apDialogModel.get()),
m_pDataSourceTabPage = VclPtr<DataSourceTabPage>::Create(m_pTabControl, *(m_apDialogModel.get()),
m_apDocTemplateProvider.get(), this, true /* bHideDescription */ );
m_pTabControl->InsertPage( TP_RANGECHOOSER, SchResId(STR_PAGE_DATA_RANGE) );
......
......@@ -41,11 +41,9 @@ class RangeChooserTabPage final : public svt::OWizardPage, public RangeSelection
{
public:
RangeChooserTabPage( vcl::Window* pParent
, DialogModel & rDialogModel
, ChartTypeTemplateProvider* pTemplateProvider
, Dialog * pParentDialog
, bool bHideDescription = false );
RangeChooserTabPage(TabPageParent pParent, DialogModel & rDialogModel,
ChartTypeTemplateProvider* pTemplateProvider,
Dialog * pParentDialog, bool bHideDescription = false);
virtual ~RangeChooserTabPage() override;
virtual void dispose() override;
......@@ -69,30 +67,11 @@ private:
bool isValid();
void setDirty();
DECL_LINK( ChooseRangeHdl, Button*, void );
DECL_LINK( ControlChangedHdl, Edit&, void );
DECL_LINK( ControlChangedCheckBoxHdl, CheckBox&, void );
DECL_LINK( ControlChangedRadioHdl, RadioButton&, void );
DECL_LINK( ControlEditedHdl, Edit&, void );
VclPtr<FixedText> m_pFT_Caption;
VclPtr<FixedText> m_pFT_Range;
VclPtr<Edit> m_pED_Range;
VclPtr<PushButton> m_pIB_Range;
VclPtr<RadioButton> m_pRB_Rows;
VclPtr<RadioButton> m_pRB_Columns;
VclPtr<CheckBox> m_pCB_FirstRowAsLabel;
VclPtr<CheckBox> m_pCB_FirstColumnAsLabel;
VclPtr<FixedText> m_pFTTitle;
VclPtr<FixedLine> m_pFL_TimeBased;
VclPtr<CheckBox> m_pCB_TimeBased;
VclPtr<FixedText> m_pFT_TimeStart;
VclPtr<Edit> m_pEd_TimeStart;
VclPtr<FixedText> m_pFT_TimeEnd;
VclPtr<Edit> m_pEd_TimeEnd;
DECL_LINK( ChooseRangeHdl, weld::Button&, void );
DECL_LINK( ControlChangedHdl, weld::Entry&, void );
DECL_LINK( ControlChangedCheckBoxHdl, weld::ToggleButton&, void );
DECL_LINK( ControlChangedRadioHdl, weld::ToggleButton&, void );
DECL_LINK( ControlEditedHdl, weld::Entry&, void );
sal_Int32 m_nChangingControlCalls;
bool m_bIsDirty;
......@@ -105,6 +84,21 @@ private:
VclPtr<Dialog> m_pParentDialog;
TabPageNotifiable * m_pTabPageNotifiable;
std::unique_ptr<weld::Label> m_xFT_Caption;
std::unique_ptr<weld::Label> m_xFT_Range;
std::unique_ptr<weld::Entry> m_xED_Range;
std::unique_ptr<weld::Button> m_xIB_Range;
std::unique_ptr<weld::RadioButton> m_xRB_Rows;
std::unique_ptr<weld::RadioButton> m_xRB_Columns;
std::unique_ptr<weld::CheckButton> m_xCB_FirstRowAsLabel;
std::unique_ptr<weld::CheckButton> m_xCB_FirstColumnAsLabel;
std::unique_ptr<weld::Label> m_xFTTitle;
std::unique_ptr<weld::Widget> m_xFL_TimeBased;
std::unique_ptr<weld::CheckButton> m_xCB_TimeBased;
std::unique_ptr<weld::Label> m_xFT_TimeStart;
std::unique_ptr<weld::Entry> m_xEd_TimeStart;
std::unique_ptr<weld::Label> m_xFT_TimeEnd;
std::unique_ptr<weld::Entry> m_xEd_TimeEnd;
};
} //namespace chart
......
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.16.1 -->
<!-- Generated with glade 3.22.1 -->
<interface domain="chart">
<requires lib="gtk+" version="3.18"/>
<object class="GtkImage" id="imageIB_RANGE">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes" context="tp_RangeChooser|imageIB_RANGE|tooltip_text">Select data range</property>
<property name="pixbuf">chart2/res/selectrange.png</property>
<property name="icon_name">chart2/res/selectrange.png</property>
</object>
<object class="GtkBox" id="tp_RangeChooser">
<property name="visible">True</property>
......@@ -24,8 +24,8 @@
<object class="GtkLabel" id="FT_CAPTION_FOR_WIZARD">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="tp_RangeChooser|FT_CAPTION_FOR_WIZARD">Choose a Data Range</property>
<property name="xalign">0</property>
<attributes>
<attribute name="weight" value="bold"/>
</attributes>
......@@ -46,10 +46,10 @@
<object class="GtkLabel" id="FT_RANGE">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes" context="tp_RangeChooser|FT_RANGE">_Data range:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">ED_RANGE</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
......@@ -60,8 +60,9 @@
<child>
<object class="GtkEntry" id="ED_RANGE">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="activates_default">True</property>
</object>
<packing>
<property name="expand">False</property>
......@@ -71,9 +72,8 @@
</child>
<child>
<object class="GtkButton" id="IB_RANGE">
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes" context="tp_RangeChooser|IB_RANGE|tooltip_text">Select data range</property>
<property name="image">imageIB_RANGE</property>
......@@ -94,15 +94,13 @@
<child>
<object class="GtkRadioButton" id="RB_DATAROWS">
<property name="label" translatable="yes" context="tp_RangeChooser|RB_DATAROWS">Data series in _rows</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
<property name="group">RB_DATACOLS</property>
</object>
<packing>
<property name="expand">False</property>
......@@ -113,13 +111,11 @@
<child>
<object class="GtkRadioButton" id="RB_DATACOLS">
<property name="label" translatable="yes" context="tp_RangeChooser|RB_DATACOLS">Data series in _columns</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="active">True</property>
<property name="draw_indicator">True</property>
<property name="group">RB_DATAROWS</property>
</object>
......@@ -132,9 +128,8 @@
<child>
<object class="GtkCheckButton" id="CB_FIRST_ROW_ASLABELS">
<property name="label" translatable="yes" context="tp_RangeChooser|CB_FIRST_ROW_ASLABELS">_First row as label</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
......@@ -149,9 +144,8 @@
<child>
<object class="GtkCheckButton" id="CB_FIRST_COLUMN_ASLABELS">
<property name="label" translatable="yes" context="tp_RangeChooser|CB_FIRST_COLUMN_ASLABELS">F_irst column as label</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
......@@ -177,7 +171,6 @@
<child>
<object class="GtkCheckButton" id="CB_TIME_BASED">
<property name="label" translatable="yes" context="tp_RangeChooser|CB_TIME_BASED">Time based charting</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
......@@ -200,29 +193,27 @@
<object class="GtkEntry" id="ED_TIME_BASED_START">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="activates_default">True</property>
<property name="width_chars">5</property>
<property name="text" translatable="no">0</property>
<property name="text">0</property>
<property name="input_purpose">number</property>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
<object class="GtkEntry" id="ED_TIME_BASED_END">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="activates_default">True</property>
<property name="width_chars">5</property>
<property name="text" translatable="no">0</property>
<property name="text">0</property>
</object>
<packing>
<property name="left_attach">3</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
......@@ -237,8 +228,6 @@
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
<child>
......@@ -253,8 +242,6 @@
<packing>
<property name="left_attach">2</property>
<property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing>
</child>
</object>
......
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