| 26 | } |
| 27 | |
| 28 | void DeclarationSourceView::setDeclaration(const decl::IDeclaration::Ptr& decl) |
| 29 | { |
| 30 | _declChangedConn.disconnect(); |
| 31 | |
| 32 | _decl = decl; |
| 33 | |
| 34 | if (_decl) |
| 35 | { |
| 36 | _declChangedConn = _decl->signal_DeclarationChanged().connect( |
| 37 | sigc::mem_fun(*this, &DeclarationSourceView::update) |
| 38 | ); |
| 39 | } |
| 40 | |
| 41 | updateSourceView(); |
| 42 | update(); |
| 43 | updateTitle(); |
| 44 | } |
| 45 | |
| 46 | void DeclarationSourceView::setDeclaration(decl::Type type, const std::string& declName) |
| 47 | { |
no test coverage detected