| 5956 | } |
| 5957 | |
| 5958 | void |
| 5959 | LayoutViewBase::mode (int m) |
| 5960 | { |
| 5961 | if (m != m_mode) { |
| 5962 | |
| 5963 | m_mode = m; |
| 5964 | mp_active_plugin = 0; |
| 5965 | |
| 5966 | for (std::vector<lay::Plugin *>::iterator p = mp_plugins.begin (); p != mp_plugins.end (); ++p) { |
| 5967 | if ((*p)->plugin_declaration ()->id () == m) { |
| 5968 | mp_active_plugin = *p; |
| 5969 | mp_canvas->activate ((*p)->view_service_interface ()); |
| 5970 | break; |
| 5971 | } |
| 5972 | } |
| 5973 | |
| 5974 | } |
| 5975 | } |
| 5976 | |
| 5977 | bool |
| 5978 | LayoutViewBase::is_move_mode () const |
nothing calls this directly
no test coverage detected