[glom] Remove unused methods.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glom] Remove unused methods.
- Date: Sun, 1 Nov 2015 12:58:21 +0000 (UTC)
commit 9e4d39d4e2dd776f780cd79ccc9312b9ac02d2a0
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Oct 30 14:40:18 2015 +0100
Remove unused methods.
glom/mode_data/box_data_list.cc | 25 -------------------------
glom/mode_data/box_data_list.h | 1 -
glom/mode_data/box_data_list_related.h | 1 -
glom/utility_widgets/adddel/adddel.cc | 7 +------
glom/utility_widgets/adddel/adddel.h | 4 ----
5 files changed, 1 insertions(+), 37 deletions(-)
---
diff --git a/glom/mode_data/box_data_list.cc b/glom/mode_data/box_data_list.cc
index 7f6be53..8324bf5 100644
--- a/glom/mode_data/box_data_list.cc
+++ b/glom/mode_data/box_data_list.cc
@@ -49,9 +49,6 @@ Box_Data_List::Box_Data_List()
m_AddDel.signal_sort_clause_changed().connect(sigc::mem_fun(*this,
&Box_Data_List::on_adddel_user_sort_clause_changed));
m_AddDel.signal_record_selection_changed().connect(m_signal_record_selection_changed.make_slot());
- //TODO: Re-add this signal if this is really wanted, but make it part of a complete drag-and-drop feature
for list views:
- //m_AddDel.signal_user_reordered_columns().connect(sigc::mem_fun(*this,
&Box_Data_List::on_adddel_user_reordered_columns));
-
#ifndef GLOM_ENABLE_CLIENT_ONLY
m_AddDel.signal_user_requested_layout().connect(sigc::mem_fun(*this,
&Box_Data_List::on_adddel_user_requested_layout));
#endif // !GLOM_ENABLE_CLIENT_ONLY
@@ -180,28 +177,6 @@ void Box_Data_List::set_primary_key_value(const Gtk::TreeModel::iterator& row, c
m_AddDel.set_value_key(row, value);
}
-void Box_Data_List::on_adddel_user_reordered_columns()
-{
- auto pDoc = dynamic_cast<Document*>(get_document());
- if(pDoc)
- {
- auto group = std::make_shared<LayoutGroup>();
- group->set_name("toplevel");
-
- for(const auto& field_name : m_AddDel.get_columns_order())
- {
- auto layout_item = std::make_shared<LayoutItem_Field>();
- layout_item->set_name(field_name);
- group->add_item(layout_item);
- }
-
- Document::type_list_layout_groups mapGroups;
- mapGroups[1] = group;
-
- pDoc->set_data_layout_groups("list", m_table_name, m_layout_platform, mapGroups);
- }
-}
-
void Box_Data_List::on_adddel_script_button_clicked(const std::shared_ptr<const LayoutItem_Button>&
layout_item, const Gtk::TreeModel::iterator& row)
{
if(!layout_item)
diff --git a/glom/mode_data/box_data_list.h b/glom/mode_data/box_data_list.h
index b0921fe..27dbd4c 100644
--- a/glom/mode_data/box_data_list.h
+++ b/glom/mode_data/box_data_list.h
@@ -91,7 +91,6 @@ protected:
//Signal handlers:
void on_adddel_user_requested_edit(const Gtk::TreeModel::iterator& row);
void on_adddel_user_requested_delete(const Gtk::TreeModel::iterator& rowStart, const
Gtk::TreeModel::iterator& rowEnd);
- void on_adddel_user_reordered_columns();
void on_adddel_user_sort_clause_changed();
#ifndef GLOM_ENABLE_CLIENT_ONLY
diff --git a/glom/mode_data/box_data_list_related.h b/glom/mode_data/box_data_list_related.h
index e8f0b73..0ceb4ae 100644
--- a/glom/mode_data/box_data_list_related.h
+++ b/glom/mode_data/box_data_list_related.h
@@ -51,7 +51,6 @@ protected:
void on_adddel_record_changed();
void on_adddel_user_requested_edit(const Gtk::TreeModel::iterator& row);
void on_adddel_user_requested_delete(const Gtk::TreeModel::iterator& rowStart, const
Gtk::TreeModel::iterator& rowEnd);
- void on_adddel_user_reordered_columns();
void on_adddel_script_button_clicked(const std::shared_ptr<const LayoutItem_Button>& layout_item, const
Gtk::TreeModel::iterator& row);
bool on_script_button_idle(const std::shared_ptr<const LayoutItem_Button>& layout_item, const
Gnome::Gda::Value& primary_key);
diff --git a/glom/utility_widgets/adddel/adddel.cc b/glom/utility_widgets/adddel/adddel.cc
index b02e229..62e1628 100644
--- a/glom/utility_widgets/adddel/adddel.cc
+++ b/glom/utility_widgets/adddel/adddel.cc
@@ -1300,11 +1300,6 @@ AddDel::type_signal_user_activated AddDel::signal_user_activated()
return m_signal_user_activated;
}
-AddDel::type_signal_user_reordered_columns AddDel::signal_user_reordered_columns()
-{
- return m_signal_user_reordered_columns;
-}
-
void AddDel::on_treeview_button_press_event(GdkEventButton* button_event)
{
on_button_press_event_Popup(button_event);
@@ -1351,7 +1346,7 @@ void AddDel::on_treeview_columns_changed()
}
//Tell other code that something has changed, so the new column order can be serialized.
- m_signal_user_reordered_columns.emit();
+ //m_signal_user_reordered_columns.emit();
}
}
diff --git a/glom/utility_widgets/adddel/adddel.h b/glom/utility_widgets/adddel/adddel.h
index b5dfd99..0e7a10d 100644
--- a/glom/utility_widgets/adddel/adddel.h
+++ b/glom/utility_widgets/adddel/adddel.h
@@ -215,9 +215,6 @@ public:
typedef sigc::signal<void, const Gtk::TreeModel::iterator&, guint> type_signal_user_activated;
type_signal_user_activated signal_user_activated();
- typedef sigc::signal<void> type_signal_user_reordered_columns;
- type_signal_user_reordered_columns signal_user_reordered_columns();
-
bool get_model_column_index(guint view_column_index, guint& model_column_index);
/** Get the last row. This will generally be the placeholder row.
@@ -333,7 +330,6 @@ private:
type_signal_user_requested_extra m_signal_user_requested_extra;
type_signal_user_requested_add m_signal_user_requested_add;
type_signal_user_activated m_signal_user_activated;
- type_signal_user_reordered_columns m_signal_user_reordered_columns;
//An instance of InnerIgnore remembers the ignore settings,
//then restores them when it goes out of scope and is destroyed.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]