Changeset 1250
- Timestamp:
- 06/09/08 10:56:39 (3 months ago)
- Files:
-
- ingen/src/libs/gui/App.cpp (modified) (1 diff)
- ingen/src/libs/gui/PatchPropertiesWindow.cpp (modified) (4 diffs)
- ingen/src/progs/ingen/main.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
ingen/src/libs/gui/App.cpp
r1208 r1250 107 107 rdf_world.add_prefix("rdfs", "http://www.w3.org/2000/01/rdf-schema#"); 108 108 rdf_world.add_prefix("doap", "http://usefulinc.com/ns/doap#"); 109 rdf_world.add_prefix("dc", "http://purl.org/dc/elements/1.1/"); 109 110 110 111 PluginModel::set_rdf_world(rdf_world); ingen/src/libs/gui/PatchPropertiesWindow.cpp
r949 r1250 20 20 #include "client/PatchModel.hpp" 21 21 #include "PatchPropertiesWindow.hpp" 22 #include "App.hpp" 22 23 23 24 using namespace std; … … 51 52 _patch_model = patch_model; 52 53 53 const Atom& author_atom = _patch_model->get_variable(" author");54 const Atom& author_atom = _patch_model->get_variable("dc:creator"); 54 55 _author_entry->set_text( 55 56 (author_atom.type() == Atom::STRING) ? author_atom.get_string() : "" ); 56 57 57 const Atom& desc_atom = _patch_model->get_variable("d escription");58 const Atom& desc_atom = _patch_model->get_variable("dc:description"); 58 59 _textview->get_buffer()->set_text( 59 60 (desc_atom.type() == Atom::STRING) ? desc_atom.get_string() : "" ); … … 64 65 PatchPropertiesWindow::cancel_clicked() 65 66 { 66 const Atom& author_atom = _patch_model->get_variable(" author");67 const Atom& author_atom = _patch_model->get_variable("dc:creator"); 67 68 _author_entry->set_text( 68 69 (author_atom.type() == Atom::STRING) ? author_atom.get_string() : "" ); 69 70 70 const Atom& desc_atom = _patch_model->get_variable("d escription");71 const Atom& desc_atom = _patch_model->get_variable("dc:description"); 71 72 _textview->get_buffer()->set_text( 72 73 (desc_atom.type() == Atom::STRING) ? desc_atom.get_string() : "" ); … … 79 80 PatchPropertiesWindow::ok_clicked() 80 81 { 81 cerr << "FIXME: patch properties\n";82 83 //m_patch_model->set_variable("author", Atom(_author_entry->get_text().c_str()));84 //m_patch_model->set_variable("description", Atom(_textview->get_buffer()->get_text().c_str()));82 App::instance().engine()->set_variable(_patch_model->path(), "dc:creator", 83 Atom(_author_entry->get_text())); 84 App::instance().engine()->set_variable(_patch_model->path(), "dc:description", 85 Atom(_textview->get_buffer()->get_text())); 85 86 hide(); 86 87 } ingen/src/progs/ingen/main.cpp
r1198 r1250 94 94 world->rdf_world->add_prefix("rdfs", "http://www.w3.org/2000/01/rdf-schema#"); 95 95 world->rdf_world->add_prefix("doap", "http://usefulinc.com/ns/doap#"); 96 world->rdf_world->add_prefix("dc", "http://purl.org/dc/elements/1.1/"); 96 97 97 98 /* Run engine */
