denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] excerpt from selection


From: Richard Shann
Subject: Re: [Denemo-devel] excerpt from selection
Date: Sat, 07 Jun 2008 12:53:48 +0100

I've looked into this: I think we should make the print commands pop up
a dialog under the following conditions

1) Ordinary (pdf) print if there *is* a selection: dialog offers to
print just the selection but the default response (Enter from the
keyboard) is to print the whole music
2) Excerpt print if there is *no* selection: dialog offers to print the
whole file or accept start/end measure numbers and start end staff
numbers (each in range 1+) which sets the selection and then prints the
selection.
Otherwise there should be no dialog, just print, the selection (for
excerpt) or the whole music (for pdf)

To do this:
        exportlilypond.c needs modifying to use   si->markstaffnum,
si->first/laststaffmarked si->first/lastmeasuremarked instead of passed
parameters start,end
the callers of export_lilypond() need modifying (mainly file.c, the
exportpdf.c needs to be retired and the functionality integrated in
print.c where most of the code is duplicated).
Dialogs need writing - there is no function set_selection(firststaffnum,
laststaffnum, firstmeasurenum, lastmeasurenum, firstobjnum, lastobjnum)
but I can create one. (If possible we should pass two pointers to a
bookmark structure rather than separate gints, but that is a detail).

I am happy to handle the lilypond & its callers, Jeremiah would you be
up for the dialog(s) and the exportpdf.c integration/retirement?

Richard


On Sat, 2008-06-07 at 08:03 +0100, Richard Shann wrote:
> 
> On Sat, 2008-06-07 at 00:15 -0500, Jeremiah Benham wrote:
> > On Fri, 2008-06-06 at 22:18 +0100, Richard Shann wrote:
> > > I've made the printing of excerpts respect the selection if any. There
> > > is a place in print.c for a dialog if no selection has been made.
> > 
> > Thanks very much for this. I will work on making a dialog only because
> > it may be reduce new user confusion.  
> > 
> > > Note: si->start, end is currently overloaded for playback and printing.
> > > Is this good?
> > 
> > Yes. That should be good as far as I can see. 
> 
> Well, at least there should be a logical interface to the values. At the
> moment if you want to print just some measures you would set the
> measures in the playback properties dialog. This was completely broken
> until I discovered it yesterday. Also, we are resetting si->start,end
> now, which would confuse someone who had set up playback to play some
> particular measures.
> It might be best to get rid of the si->start end fields altogether and
> replace them with the selection (->firstmeasuremarked ...)
> Richard
> 
> 
> 
> _______________________________________________
> Denemo-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/denemo-devel
> 
> 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]