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

weld SvxEditModulesDlg

Change-Id: I802d4c92924b379f11c73ddfe758f4c6a63feb37
Reviewed-on: https://gerrit.libreoffice.org/73454
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst a92dd896
...@@ -50,18 +50,8 @@ class SvxLinguData_Impl; ...@@ -50,18 +50,8 @@ class SvxLinguData_Impl;
// forward --------------------------------------------------------------- // forward ---------------------------------------------------------------
class SvxEditModulesDlg : public ModalDialog class SvxEditModulesDlg : public weld::GenericDialogController
{ {
VclPtr<SvxLanguageBox> m_pLanguageLB;
VclPtr<SvxCheckListBox> m_pModulesCLB;
VclPtr<PushButton> m_pPrioUpPB;
VclPtr<PushButton> m_pPrioDownPB;
VclPtr<PushButton> m_pBackPB;
VclPtr<FixedHyperlink> m_pMoreDictsLink;
VclPtr<CloseButton> m_pClosePB;
OUString sSpell; OUString sSpell;
OUString sHyph; OUString sHyph;
OUString sThes; OUString sThes;
...@@ -70,23 +60,26 @@ class SvxEditModulesDlg : public ModalDialog ...@@ -70,23 +60,26 @@ class SvxEditModulesDlg : public ModalDialog
std::unique_ptr<SvxLinguData_Impl> pDefaultLinguData; std::unique_ptr<SvxLinguData_Impl> pDefaultLinguData;
SvxLinguData_Impl& rLinguData; SvxLinguData_Impl& rLinguData;
std::unique_ptr<SvLBoxButtonData> m_xCheckButtonData; std::unique_ptr<weld::TreeView> m_xModulesCLB;
std::unique_ptr<weld::Button> m_xPrioUpPB;
SvTreeListEntry* CreateEntry(OUString& rTxt, sal_uInt16 nCol); std::unique_ptr<weld::Button> m_xPrioDownPB;
std::unique_ptr<weld::Button> m_xBackPB;
std::unique_ptr<weld::LinkButton> m_xMoreDictsLink;
std::unique_ptr<weld::Button> m_xClosePB;
std::unique_ptr<LanguageBox> m_xLanguageLB;
DECL_LINK( SelectHdl_Impl, SvTreeListBox*, void ); DECL_LINK( SelectHdl_Impl, weld::TreeView&, void );
DECL_LINK( UpDownHdl_Impl, Button*, void ); DECL_LINK( UpDownHdl_Impl, weld::Button&, void );
DECL_LINK( ClickHdl_Impl, Button*, void ); DECL_LINK( ClickHdl_Impl, weld::Button&, void );
DECL_LINK( BackHdl_Impl, Button*, void ); DECL_LINK( BackHdl_Impl, weld::Button&, void );
DECL_LINK( LangSelectListBoxHdl_Impl, ListBox&, void ); DECL_LINK( LangSelectListBoxHdl_Impl, weld::ComboBox&, void );
DECL_LINK( BoxCheckButtonHdl_Impl2, SvLBoxButtonData*, void ); typedef std::pair<int, int> row_col;
DECL_LINK( BoxCheckButtonHdl_Impl, SvTreeListBox*, void ); DECL_LINK( BoxCheckButtonHdl_Impl, const row_col&, void );
void LangSelectHdl_Impl(ListBox const *); void LangSelectHdl_Impl(const LanguageBox* pBox);
public: public:
SvxEditModulesDlg(vcl::Window* pParent, SvxLinguData_Impl& rData); SvxEditModulesDlg(weld::Window* pParent, SvxLinguData_Impl& rData);
virtual ~SvxEditModulesDlg() override; virtual ~SvxEditModulesDlg() override;
virtual void dispose() override;
}; };
// class SvxLinguTabPage ------------------------------------------------- // class SvxLinguTabPage -------------------------------------------------
......
This diff is collapsed.
<?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="cui"> <interface domain="cui">
<requires lib="gtk+" version="3.18"/> <requires lib="gtk+" version="3.18"/>
<requires lib="LibreOffice" version="1.0"/> <object class="GtkTreeStore" id="liststore1">
<columns>
<!-- column-name check1 -->
<column type="gboolean"/>
<!-- column-name text -->
<column type="gchararray"/>
<!-- column-name id -->
<column type="gchararray"/>
<!-- column-name checkvis1 -->
<column type="gboolean"/>
<!-- column-name checktri1 -->
<column type="gboolean"/>
<!-- column-name weight1 -->
<column type="gint"/>
</columns>
</object>
<object class="GtkListStore" id="liststore6">
<columns>
<!-- column-name text -->
<column type="gchararray"/>
<!-- column-name id -->
<column type="gchararray"/>
<!-- column-name image -->
<column type="GdkPixbuf"/>
</columns>
</object>
<object class="GtkDialog" id="EditModulesDialog"> <object class="GtkDialog" id="EditModulesDialog">
<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="editmodulesdialog|EditModulesDialog">Edit Modules</property> <property name="title" translatable="yes" context="editmodulesdialog|EditModulesDialog">Edit Modules</property>
<property name="modal">True</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>
...@@ -104,10 +135,10 @@ ...@@ -104,10 +135,10 @@
<object class="GtkLabel" id="label2"> <object class="GtkLabel" id="label2">
<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="editmodulesdialog|label2">Language:</property> <property name="label" translatable="yes" context="editmodulesdialog|label2">Language:</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="mnemonic_widget">language</property> <property name="mnemonic_widget">language</property>
<property name="xalign">0</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
...@@ -116,11 +147,24 @@ ...@@ -116,11 +147,24 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="svxcorelo-SvxLanguageBox" id="language"> <object class="GtkComboBox" id="language">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="halign">start</property> <property name="model">liststore6</property>
<property name="hexpand">False</property> <property name="entry_text_column">0</property>
<property name="id_column">1</property>
<child>
<object class="GtkCellRendererText" id="cellrenderertext9"/>
<attributes>
<attribute name="text">0</attribute>
</attributes>
</child>
<child>
<object class="GtkCellRendererPixbuf" id="cellrenderertext6"/>
<attributes>
<attribute name="pixbuf">2</attribute>
</attributes>
</child>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
...@@ -197,13 +241,54 @@ ...@@ -197,13 +241,54 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="svxcorelo-SvxCheckListBox" id="lingudicts:border"> <object class="GtkScrolledWindow">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
<property name="hexpand">True</property> <property name="hexpand">True</property>
<property name="vexpand">True</property> <property name="vexpand">True</property>
<child internal-child="selection"> <property name="shadow_type">in</property>
<object class="GtkTreeSelection" id="Check List Box-selection5"/> <child>
<object class="GtkTreeView" id="lingudicts">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="vexpand">True</property>
<property name="model">liststore1</property>
<property name="headers_visible">False</property>
<property name="search_column">0</property>
<property name="show_expanders">False</property>
<child internal-child="selection">
<object class="GtkTreeSelection" id="Macro Library List-selection2"/>
</child>
<child>
<object class="GtkTreeViewColumn" id="treeviewcolumn1">
<property name="resizable">True</property>
<property name="spacing">6</property>
<property name="alignment">0.5</property>
<child>
<object class="GtkCellRendererToggle" id="cellrenderer5"/>
<attributes>
<attribute name="visible">3</attribute>
<attribute name="active">0</attribute>
</attributes>
</child>
</object>
</child>
<child>
<object class="GtkTreeViewColumn" id="treeviewcolumn2">
<property name="resizable">True</property>
<property name="spacing">6</property>
<property name="alignment">0.5</property>
<child>
<object class="GtkCellRendererText" id="cellrenderer4"/>
<attributes>
<attribute name="text">1</attribute>
<attribute name="weight">5</attribute>
</attributes>
</child>
</object>
</child>
</object>
</child> </child>
</object> </object>
<packing> <packing>
......
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