| 1175 | } |
| 1176 | |
| 1177 | bool RibbonMenu::drawCloneButton( const std::vector<std::shared_ptr<Object>>& selected ) |
| 1178 | { |
| 1179 | bool someChanges = false; |
| 1180 | if ( selected.empty() ) |
| 1181 | return someChanges; |
| 1182 | |
| 1183 | if ( UI::button( _tr( "Clone" ), Vector2f( -1, 0 ) ) ) |
| 1184 | { |
| 1185 | cloneTree( selected ); |
| 1186 | someChanges = true; |
| 1187 | } |
| 1188 | |
| 1189 | return someChanges; |
| 1190 | } |
| 1191 | |
| 1192 | bool RibbonMenu::drawSelectSubtreeButton( const std::vector<std::shared_ptr<Object>>& selected ) |
| 1193 | { |
no test coverage detected