Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour))

2019-08-26 Thread Richard Shann
On Mon, 2019-08-26 at 12:31 +0200, Lib Lists wrote:
> > 
> > As I was looking into what would be the likely place to catch the
> > bad
> > behavior I came across the reason this is happening on Mac. It
> > would
> > seem that the Mac handles pop-up windows in a way that makes it
> > desirable to hide the other windows while the pop up holds the
> > focus.
> > Unfortunately, Denemo is unhiding the windows at the end of the pop
> > up
> > dialog without taking note if they were visible before the pop up.
> > I've fixed this now, but I can't see a way to work around the
> > problem.
> > With gdb you can change the value of one of the preferences at run
> > time
> >  with the command
> > 
> > set Denemo.prefs.hide_windows=0
> > 
> > and the Print View would not appear at the end of a dialog, however
> > the
> >  link you gave does not indicate an equivalent command to do that
> > in
> > LLDB and, in any case, you would then get whatever undesirable
> > behavior
> > the hiding of the windows was meant to fix :(
> > 
> > Richard
> 
> Thanks for investigating this.
> There is another problem, (maybe related with this?). When I insert
> a dynamic marking on a note (ff, f, etc.), all Denemo windows
> disappear and I
> need to press twice Command+TAB to see them (Denemo editing window +
> pop-up with the dynamic marking
> selection).

Yes, this is the same issue - I'm guessing that without making the
other windows hide themselves the pop-up was coming up behind the other
windows on the Mac and hence this workaround.

>  The same happens with Tempo Changes, where all the windows
> disappear every time a new pop-up appears (Select tempo, unit in
> beat,
> insert BPM, BPM printed, Allow for Layout, etc.) until the end of the
> process.
> As a suggestion, wouldn't be better to have all those options in one
> 'Tempo Change' pop-up window and not in a series of pop-ups?

absolutely, unfortunately the interface for creating more complex
windows from Scheme isn't there in Denemo :(

Richard


___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour))

2019-08-26 Thread Lib Lists
>
> As I was looking into what would be the likely place to catch the bad
> behavior I came across the reason this is happening on Mac. It would
> seem that the Mac handles pop-up windows in a way that makes it
> desirable to hide the other windows while the pop up holds the focus.
> Unfortunately, Denemo is unhiding the windows at the end of the pop up
> dialog without taking note if they were visible before the pop up.
> I've fixed this now, but I can't see a way to work around the problem.
> With gdb you can change the value of one of the preferences at run time
>  with the command
>
> set Denemo.prefs.hide_windows=0
>
> and the Print View would not appear at the end of a dialog, however the
>  link you gave does not indicate an equivalent command to do that in
> LLDB and, in any case, you would then get whatever undesirable behavior
> the hiding of the windows was meant to fix :(
>
> Richard

Thanks for investigating this.
There is another problem, (maybe related with this?). When I insert
a dynamic marking on a note (ff, f, etc.), all Denemo windows disappear and I
need to press twice Command+TAB to see them (Denemo editing window +
pop-up with the dynamic marking
selection). The same happens with Tempo Changes, where all the windows
disappear every time a new pop-up appears (Select tempo, unit in beat,
insert BPM, BPM printed, Allow for Layout, etc.) until the end of the
process.
As a suggestion, wouldn't be better to have all those options in one
'Tempo Change' pop-up window and not in a series of pop-ups?

Thanks!

Lib


Lib

___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour))

2019-08-20 Thread Richard Shann
On Tue, 2019-08-20 at 13:07 +0200, Lib Lists wrote:
> > I think the only way to make progress would be to use a debugger to
> > find out how this is coming about - do you have gdb installed on
> > your
> > Mac?
> 
> No, and it seems quite difficult to install it on a mac. However, I
> have lldb installed. I'd like to try with it before going through gdb
> installation. https://lldb.llvm.org/use/map.html
> Could you give me some hints on how to proceed?

As I was looking into what would be the likely place to catch the bad
behavior I came across the reason this is happening on Mac. It would
seem that the Mac handles pop-up windows in a way that makes it
desirable to hide the other windows while the pop up holds the focus.
Unfortunately, Denemo is unhiding the windows at the end of the pop up
dialog without taking note if they were visible before the pop up.
I've fixed this now, but I can't see a way to work around the problem.
With gdb you can change the value of one of the preferences at run time
 with the command

set Denemo.prefs.hide_windows=0

and the Print View would not appear at the end of a dialog, however the
 link you gave does not indicate an equivalent command to do that in
LLDB and, in any case, you would then get whatever undesirable behavior
the hiding of the windows was meant to fix :(

Richard




___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour))

2019-08-20 Thread Joe Wilkinson via Denemo-devel
Just found out why; the display is forced wide as I have too wide a 
General Pallette; I've lazily added too many buttons!


Joe

On 20/08/2019 14:26, Joe Wilkinson wrote:


would be nice if in my Windows (10) version, the Opening window did 
not default to a size that was too wide for the display


On 20/08/2019 12:07, Lib Lists wrote:

On Mon, 19 Aug 2019 at 18:56, Richard Shann  wrote:

On Mon, 2019-08-19 at 17:32 +0200, Lib Lists wrote:

On Thu, 15 Aug 2019 at 13:22, Richard Shann
wrote:

On Tue, 2019-08-13 at 10:56 +0200, Lib Lists wrote:

How did you try to close it? The only way that will surely work
is
to
use the View menu - anything else depends on the what the
window
manager decides to do - in this case it seems it is iconizing
the
window.

I just tried from the View menu (by unchecking 'Typeset Music'),
but
the Print View window reappears as soon as I type and confirm
something in a pop-up window. Also, when I relaunch Denemo the
Print
View window appears, even if it was closed before closing Denemo.

The View window should only reappear on start up only if the
Continuous
Typesetting was set when Denemo was shutdown. You can check this by
looking at the file .denemo-2.2.0/denemorc which will contain an
entry

1

if continuous typesetting was unset or

0

if continuous typesetting was set.

Do both of the symptoms you describe occur when Continuous
Typesetting
is off? That would, indeed be bizarre...

Hi, when I restart Denemo with Continuous Typesetting Off the Print
View window doesn't appear. Unfortunately it comes back as soon as I
type something in a pop-up.

This sounds quite bizarre. As a final check, can you open the Scheme
Window and put

(d-GetUserInput)

in the CLI box and press Enter to execute it. When enter something in
the dialog that pops up and press return does the Print View appear?
No additional code should be executed at that point - the value is just
being discarded, so nothing should happen.

Hi, just tried, the Print View appears.


I think the only way to make progress would be to use a debugger to
find out how this is coming about - do you have gdb installed on your
Mac?

No, and it seems quite difficult to install it on a mac. However, I
have lldb installed. I'd like to try with it before going through gdb
installation.https://lldb.llvm.org/use/map.html
Could you give me some hints on how to proceed?


  In that case the Print View is grey, i.e.
there's no score (obviously) but still it comes back to focus on the
foreground, on top of the Denemo Display. Also, the Print View window
doesn't remember its position when restarting Denemo, but it always
comes back on the left-hand side. Is that the intended behaviour?

The print view does come back centered if it has been left in
Continuous Typesetting, I think ideally all windows would remember
where they were positioned the last time Denemo was shut down.

In my case the Print View appears always at the upper-left corner.
It'd be nice if the windows would remember their position and size.

Lib


Richard





___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour))

2019-08-20 Thread Lib Lists
On Mon, 19 Aug 2019 at 18:56, Richard Shann  wrote:
>
> On Mon, 2019-08-19 at 17:32 +0200, Lib Lists wrote:
> > On Thu, 15 Aug 2019 at 13:22, Richard Shann 
> > wrote:
> > >
> > > On Tue, 2019-08-13 at 10:56 +0200, Lib Lists wrote:
> > > > > How did you try to close it? The only way that will surely work
> > > > > is
> > > > > to
> > > > > use the View menu - anything else depends on the what the
> > > > > window
> > > > > manager decides to do - in this case it seems it is iconizing
> > > > > the
> > > > > window.
> > > >
> > > > I just tried from the View menu (by unchecking 'Typeset Music'),
> > > > but
> > > > the Print View window reappears as soon as I type and confirm
> > > > something in a pop-up window. Also, when I relaunch Denemo the
> > > > Print
> > > > View window appears, even if it was closed before closing Denemo.
> > >
> > > The View window should only reappear on start up only if the
> > > Continuous
> > > Typesetting was set when Denemo was shutdown. You can check this by
> > > looking at the file .denemo-2.2.0/denemorc which will contain an
> > > entry
> > >
> > > 1
> > >
> > > if continuous typesetting was unset or
> > >
> > > 0
> > >
> > > if continuous typesetting was set.
> > >
> > > Do both of the symptoms you describe occur when Continuous
> > > Typesetting
> > > is off? That would, indeed be bizarre...
> >
> > Hi, when I restart Denemo with Continuous Typesetting Off the Print
> > View window doesn't appear. Unfortunately it comes back as soon as I
> > type something in a pop-up.
>
> This sounds quite bizarre. As a final check, can you open the Scheme
> Window and put
>
> (d-GetUserInput)
>
> in the CLI box and press Enter to execute it. When enter something in
> the dialog that pops up and press return does the Print View appear?
> No additional code should be executed at that point - the value is just
> being discarded, so nothing should happen.

Hi, just tried, the Print View appears.

>
> I think the only way to make progress would be to use a debugger to
> find out how this is coming about - do you have gdb installed on your
> Mac?

No, and it seems quite difficult to install it on a mac. However, I
have lldb installed. I'd like to try with it before going through gdb
installation. https://lldb.llvm.org/use/map.html
Could you give me some hints on how to proceed?

>
> >  In that case the Print View is grey, i.e.
> > there's no score (obviously) but still it comes back to focus on the
> > foreground, on top of the Denemo Display. Also, the Print View window
> > doesn't remember its position when restarting Denemo, but it always
> > comes back on the left-hand side. Is that the intended behaviour?
>
> The print view does come back centered if it has been left in
> Continuous Typesetting, I think ideally all windows would remember
> where they were positioned the last time Denemo was shut down.

In my case the Print View appears always at the upper-left corner.
It'd be nice if the windows would remember their position and size.

Lib

>
> Richard
>
>
>
>

___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


Re: [Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour))

2019-08-19 Thread Lib Lists
On Thu, 15 Aug 2019 at 13:22, Richard Shann  wrote:
>
> On Tue, 2019-08-13 at 10:56 +0200, Lib Lists wrote:
> > > How did you try to close it? The only way that will surely work is
> > > to
> > > use the View menu - anything else depends on the what the window
> > > manager decides to do - in this case it seems it is iconizing the
> > > window.
> >
> > I just tried from the View menu (by unchecking 'Typeset Music'), but
> > the Print View window reappears as soon as I type and confirm
> > something in a pop-up window. Also, when I relaunch Denemo the Print
> > View window appears, even if it was closed before closing Denemo.
>
> The View window should only reappear on start up only if the Continuous
> Typesetting was set when Denemo was shutdown. You can check this by
> looking at the file .denemo-2.2.0/denemorc which will contain an entry
>
> 1
>
> if continuous typesetting was unset or
>
> 0
>
> if continuous typesetting was set.
>
> Do both of the symptoms you describe occur when Continuous Typesetting
> is off? That would, indeed be bizarre...

Hi, when I restart Denemo with Continuous Typesetting Off the Print
View window doesn't appear. Unfortunately it comes back as soon as I
type something in a pop-up. In that case the Print View is grey, i.e.
there's no score (obviously) but still it comes back to focus on the
foreground, on top of the Denemo Display. Also, the Print View window
doesn't remember its position when restarting Denemo, but it always
comes back on the left-hand side. Is that the intended behaviour?

>
> In any case, it is difficult to see from the source code why the focus
> would switch the the Print View window, only a mouse-click should do
> that, and even then there is code to immediately switch the focus back
> to the Denemo Display (i.e. main window, where the keystrokes must
> arrive). If you click on a note in the Print View it should start
> playing from that note after switching the focus back to the Denemo
> Display - does this happen ok?

Click and shift-click on a note in the Print View works (switch to
Denemo Display and playback / cursor on that note).

Lib

>
> Richard
>
>
>
>

___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel


[Denemo-devel] Print View behaviour (was Re: Beginner questions (cross-staff, PNG selection export, feathered beams, batch export, Print View behaviour))

2019-08-15 Thread Richard Shann
On Tue, 2019-08-13 at 10:56 +0200, Lib Lists wrote:
> > How did you try to close it? The only way that will surely work is
> > to
> > use the View menu - anything else depends on the what the window
> > manager decides to do - in this case it seems it is iconizing the
> > window.
> 
> I just tried from the View menu (by unchecking 'Typeset Music'), but
> the Print View window reappears as soon as I type and confirm
> something in a pop-up window. Also, when I relaunch Denemo the Print
> View window appears, even if it was closed before closing Denemo.

The View window should only reappear on start up only if the Continuous
Typesetting was set when Denemo was shutdown. You can check this by
looking at the file .denemo-2.2.0/denemorc which will contain an entry

1

if continuous typesetting was unset or 

0

if continuous typesetting was set.

Do both of the symptoms you describe occur when Continuous Typesetting
is off? That would, indeed be bizarre...

In any case, it is difficult to see from the source code why the focus
would switch the the Print View window, only a mouse-click should do
that, and even then there is code to immediately switch the focus back
to the Denemo Display (i.e. main window, where the keystrokes must
arrive). If you click on a note in the Print View it should start
playing from that note after switching the focus back to the Denemo
Display - does this happen ok?

Richard





___
Denemo-devel mailing list
Denemo-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/denemo-devel