Commit 8969ae30 authored by Murray Cumming's avatar Murray Cumming
Browse files

Remove unused methods.

parent 44908628
......@@ -97,11 +97,6 @@ void AppWindow::on_menu_edit_clear()
}
Glib::ustring AppWindow::get_version() const
{
return m_strVersion;
}
void AppWindow::set_operation_cancelled(bool bVal /* = true */)
{
m_bOperationCancelled = bVal;
......
......@@ -57,9 +57,6 @@ public:
virtual void init(); //Sets it up and shows it.
//TODO: Remove this?
Glib::ustring get_version() const;
static void set_command_line_args(int argc, char** &argv); //Needed for session management.
typedef sigc::signal<void> type_signal_hide;
......
......@@ -68,7 +68,6 @@ void TextView::init()
//We use connect(slot, false) to connect before the default signal handler, because the default signal handler prevents _further_ handling.
m_TextView.signal_focus_out_event().connect(sigc::mem_fun(*this, &TextView::on_textview_focus_out_event), false);
// m_TextView.get_buffer()->signal_end_user_action().connect(sigc::mem_fun(*this, &TextView::on_buffer_changed));
}
TextView::~TextView()
......@@ -122,33 +121,6 @@ bool TextView::on_textview_focus_out_event(GdkEventFocus* focus_event)
return result;
}
/*
void TextView::on_activate()
{
//Call base class:
Gtk::TextView::on_activate();
//The user has finished editing.
check_for_change();
}
*/
//TODO: Remove this? It doesn't seem to be used.
void TextView::on_buffer_changed()
{
check_for_change();
}
/*
void TextView::on_insert_text(const Glib::ustring& text, int* position)
{
Gtk::TextView::on_insert_text(text, position);
}
*/
void TextView::set_value(const Gnome::Gda::Value& value)
{
std::shared_ptr<const LayoutItem_Field>layout_item = std::dynamic_pointer_cast<const LayoutItem_Field>(get_layout_item());
......
......@@ -67,11 +67,7 @@ public:
private:
void init();
//Overrides of default signal handlers:
void on_buffer_changed();
//void on_activate() override; //From Gtk::Entry.
bool on_textview_focus_out_event(GdkEventFocus* focus_event);
//void on_insert_text(const Glib::ustring& text, int* position); //From Gtk::Editable
void check_for_change();
......
......@@ -536,26 +536,6 @@ void Box_DB_Table_Definition::on_field_definition_apply()
m_dialog_field_definition->hide();
}
void Box_DB_Table_Definition::on_default_formatting_apply()
{
std::shared_ptr<Field> field_New = m_dialog_default_formatting->get_field();
if(*m_Field_BeingEdited != *field_New)
{
const auto bcontinue = check_field_change(m_Field_BeingEdited, field_New);
if(bcontinue)
{
change_definition(m_Field_BeingEdited, field_New);
m_Field_BeingEdited = field_New;
}
//Update the list:
fill_from_database();
}
m_dialog_default_formatting->hide();
}
std::shared_ptr<Field> Box_DB_Table_Definition::change_definition(const std::shared_ptr<const Field>& fieldOld, const std::shared_ptr<const Field>& field)
{
BusyCursor busy_cursor(get_app_window());
......
......@@ -57,7 +57,6 @@ private:
void on_adddel_extra(const Gtk::TreeModel::iterator& row);
void on_field_definition_apply();
void on_default_formatting_apply();
bool check_field_change(const std::shared_ptr<const Field>& field_old, const std::shared_ptr<const Field>& field_new);
......
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