From 39d5400b39c8089287d5d294becae1268d232d31 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 7 Feb 2007 03:22:42 +0000 Subject: Mad sed-fu for consistent private member naming. git-svn-id: http://svn.drobilla.net/lad/ingen@286 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/ingenuity/PatchPropertiesWindow.cpp | 34 +++++++++++++-------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'src/progs/ingenuity/PatchPropertiesWindow.cpp') diff --git a/src/progs/ingenuity/PatchPropertiesWindow.cpp b/src/progs/ingenuity/PatchPropertiesWindow.cpp index 86d7ccd3..ac021cda 100644 --- a/src/progs/ingenuity/PatchPropertiesWindow.cpp +++ b/src/progs/ingenuity/PatchPropertiesWindow.cpp @@ -25,13 +25,13 @@ using std::string; PatchPropertiesWindow::PatchPropertiesWindow(BaseObjectType* cobject, const Glib::RefPtr& glade_xml) : Gtk::Window(cobject) { - glade_xml->get_widget("properties_author_entry", m_author_entry); - glade_xml->get_widget("properties_description_textview", m_textview); - glade_xml->get_widget("properties_cancel_button", m_cancel_button); - glade_xml->get_widget("properties_ok_button", m_ok_button); + glade_xml->get_widget("properties_author_entry", _author_entry); + glade_xml->get_widget("properties_description_textview", _textview); + glade_xml->get_widget("properties_cancel_button", _cancel_button); + glade_xml->get_widget("properties_ok_button", _ok_button); - m_cancel_button->signal_clicked().connect(sigc::mem_fun(this, &PatchPropertiesWindow::cancel_clicked)); - m_ok_button->signal_clicked().connect(sigc::mem_fun(this, &PatchPropertiesWindow::ok_clicked)); + _cancel_button->signal_clicked().connect(sigc::mem_fun(this, &PatchPropertiesWindow::cancel_clicked)); + _ok_button->signal_clicked().connect(sigc::mem_fun(this, &PatchPropertiesWindow::ok_clicked)); } @@ -44,14 +44,14 @@ void PatchPropertiesWindow::set_patch(SharedPtr patch_model) { property_title() = patch_model->path() + " Properties"; - m_patch_model = patch_model; + _patch_model = patch_model; - const Atom& author_atom = m_patch_model->get_metadata("author"); - m_author_entry->set_text( + const Atom& author_atom = _patch_model->get_metadata("author"); + _author_entry->set_text( (author_atom.type() == Atom::STRING) ? author_atom.get_string() : "" ); - const Atom& desc_atom = m_patch_model->get_metadata("description"); - m_textview->get_buffer()->set_text( + const Atom& desc_atom = _patch_model->get_metadata("description"); + _textview->get_buffer()->set_text( (desc_atom.type() == Atom::STRING) ? desc_atom.get_string() : "" ); } @@ -59,12 +59,12 @@ PatchPropertiesWindow::set_patch(SharedPtr patch_model) void PatchPropertiesWindow::cancel_clicked() { - const Atom& author_atom = m_patch_model->get_metadata("author"); - m_author_entry->set_text( + const Atom& author_atom = _patch_model->get_metadata("author"); + _author_entry->set_text( (author_atom.type() == Atom::STRING) ? author_atom.get_string() : "" ); - const Atom& desc_atom = m_patch_model->get_metadata("description"); - m_textview->get_buffer()->set_text( + const Atom& desc_atom = _patch_model->get_metadata("description"); + _textview->get_buffer()->set_text( (desc_atom.type() == Atom::STRING) ? desc_atom.get_string() : "" ); hide(); @@ -76,8 +76,8 @@ PatchPropertiesWindow::ok_clicked() { cerr << "FIXME: properties\n"; - //m_patch_model->set_metadata("author", Atom(m_author_entry->get_text().c_str())); - //m_patch_model->set_metadata("description", Atom(m_textview->get_buffer()->get_text().c_str())); + //m_patch_model->set_metadata("author", Atom(_author_entry->get_text().c_str())); + //m_patch_model->set_metadata("description", Atom(_textview->get_buffer()->get_text().c_str())); hide(); } -- cgit v1.2.1