Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1659)

Delta Between Two Patch Sets: lily/new-dynamic-engraver.cc

Issue 7768043: rewrite Self_alignment_interface
Left Patch Set: return 0 if him is a PaperColumn to avoid regressions Created 12 years ago
Right Patch Set: align MMR and perc.rep. stuff using xparents Created 12 years ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « lily/multi-measure-rest-engraver.cc ('k') | lily/new-fingering-engraver.cc » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 /* 1 /*
2 This file is part of LilyPond, the GNU music typesetter. 2 This file is part of LilyPond, the GNU music typesetter.
3 3
4 Copyright (C) 2008--2012 Han-Wen Nienhuys <hanwen@lilypond.org> 4 Copyright (C) 2008--2012 Han-Wen Nienhuys <hanwen@lilypond.org>
5 5
6 LilyPond is free software: you can redistribute it and/or modify 6 LilyPond is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by 7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or 8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version. 9 (at your option) any later version.
10 10
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 /* 264 /*
265 Spacing constraints may require dynamics to be aligned on rests, 265 Spacing constraints may require dynamics to be aligned on rests,
266 so check for a rest if this note column has no note heads. 266 so check for a rest if this note column has no note heads.
267 */ 267 */
268 Grob *x_parent = (heads.size () 268 Grob *x_parent = (heads.size ()
269 ? heads[0] 269 ? heads[0]
270 : unsmob_grob (info.grob ()->get_object ("rest"))); 270 : unsmob_grob (info.grob ()->get_object ("rest")));
271 if (x_parent) 271 if (x_parent)
272 { 272 {
273 script_->set_parent (x_parent, X_AXIS); 273 script_->set_parent (x_parent, X_AXIS);
274 Self_alignment_interface::set_center_parent (script_, X_AXIS);
275 } 274 }
276 if (stem) 275 if (stem)
277 Pointer_group_interface::add_grob (script_, ly_symbol2scm ("potential-X- colliding-grobs"), stem); 276 Pointer_group_interface::add_grob (script_, ly_symbol2scm ("potential-X- colliding-grobs"), stem);
278 } 277 }
279 278
280 if (current_spanner_ && !current_spanner_->get_bound (LEFT)) 279 if (current_spanner_ && !current_spanner_->get_bound (LEFT))
281 current_spanner_->set_bound (LEFT, info.grob ()); 280 current_spanner_->set_bound (LEFT, info.grob ());
282 if (finished_spanner_ && !finished_spanner_->get_bound (RIGHT)) 281 if (finished_spanner_ && !finished_spanner_->get_bound (RIGHT))
283 finished_spanner_->set_bound (RIGHT, info.grob ()); 282 finished_spanner_->set_bound (RIGHT, info.grob ());
284 } 283 }
(...skipping 11 matching lines...) Expand all
296 /* read */ 295 /* read */
297 "crescendoSpanner " 296 "crescendoSpanner "
298 "crescendoText " 297 "crescendoText "
299 "currentMusicalColumn " 298 "currentMusicalColumn "
300 "decrescendoSpanner " 299 "decrescendoSpanner "
301 "decrescendoText ", 300 "decrescendoText ",
302 301
303 /* write */ 302 /* write */
304 "" 303 ""
305 ); 304 );
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b