diff options
author | David Robillard <d@drobilla.net> | 2007-02-07 03:22:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-02-07 03:22:42 +0000 |
commit | 39d5400b39c8089287d5d294becae1268d232d31 (patch) | |
tree | 0cf73ef86233121bc7f0408ca536aad196d3166c /src/progs/ingenuity/PatchPropertiesWindow.cpp | |
parent | e135edf1e65ac978f86f4849bd3667299dd69c7e (diff) | |
download | ingen-39d5400b39c8089287d5d294becae1268d232d31.tar.gz ingen-39d5400b39c8089287d5d294becae1268d232d31.tar.bz2 ingen-39d5400b39c8089287d5d294becae1268d232d31.zip |
Mad sed-fu for consistent private member naming.
git-svn-id: http://svn.drobilla.net/lad/ingen@286 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/ingenuity/PatchPropertiesWindow.cpp')
-rw-r--r-- | src/progs/ingenuity/PatchPropertiesWindow.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
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<Gnome::Glade::Xml>& 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<PatchModel> 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<PatchModel> 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(); } |