History log of /haiku/src/apps/midiplayer/MidiPlayerWindow.cpp
Revision Date Author Comments
# 65c0d507 23-Feb-2019 John Scipione <jscipione@gmail.com>

MidiPlayer: Fix crash when dropping a midi file

Window must be locked or MidiRunThread crashes with a segment violation.

Change-Id: I9d5d0fa477475a9b5ba877aea3d6583690aacb2b
Reviewed-on: https://review.haiku-os.org/c/1080
Reviewed-by: Barrett17 <b.vitruvio@gmail.com>


# 3c5208e4 07-Nov-2015 Humdinger <humdingerb@gmail.com>

Improve/fix layout

Some tweaks to the layout of apps/prefs in the course of using
B_USE_WINDOW_SPACING.


# f95ad070 27-Jun-2014 John Scipione <jscipione@gmail.com>

MidiPlayer: Rework layout

#9882 comment:8 suggested applying a similar fix
to MidiPlayer as the one to Backgrounds, which makes
the menu fields variable width and isn't affected by the
check box.

In addition this replaces BGroupLayoutBuilder and
BGridLayoutBuilder with BLayoutBuilder templates and
replaces hardcoded spacing units with B_USE_ spacing
constants.

I also put the Volume slider on its own line and tightened
up the spacing around the scope view.

picture:
http://31.media.tumblr.com/74d93b806033d9adee83eeb2adead48d/tumblr_n7v06onPdl1r0f0hfo1_250.png


# ef276942 27-Jun-2014 John Scipione <jscipione@gmail.com>

MidiPlayer: Update copyright headers

Add Haiku, Inc. for all changes 2008-2014 based on commit logs.
If people want to assign their own copyright for work they did they
probably should add there name to the copyright list.


# 42bcaa84 27-Jun-2014 John Scipione <jscipione@gmail.com>

MidiPlayer: style overhaul


# 006e76a1 10-May-2013 Jérôme Duval <jerome.duval@gmail.com>

MidiPlayer: fixes 64 bit warnings


# aed35104 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 10785555 06-May-2011 Axel Dörfler <axeld@pinc-software.de>

* Style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41348 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 560ff447 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41103 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b97c5149 15-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Making use of B_TRANSLATE_APP_NAME, BAboutMenuItem, BAboutWindow. Clean-up. Removal of some ellipsis. ('About Haiku' in Deskbar.)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40968 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4eb0cbb0 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36733 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b25cb34a 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36669 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2f1ed332 20-Jan-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Internationalization and esperanto localization for midiplayer, done by dancxjo.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35207 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7974d3dc 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35049 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4c58935d 12-Sep-2009 Philippe Saint-Pierre <stpere@gmail.com>

MidiPlayer : CenterOnScreen

* Remove the local version (not really working) of CenterOnScreen and use the shared one.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33084 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2387efaf 15-Feb-2009 Stephan Aßmus <superstippi@gmx.de>

Resolved a couple minor TODOs to use layout friendly constructors, which have
become available meanwhile.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29233 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d4a18674 14-Jul-2008 Ryan Leavengood <leavengood@gmail.com>

CHANGED the MidiPlayer GUI to use the layout system, mostly for the purposes of
the article I am writing, though it really did need this change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26408 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cd6b83dd 09-Feb-2008 Jonas Sundström <jonas@kirilla.com>

The title of the (primary) window of (non-document) apps and preferences should be the filename of the executable. File and window names should be changed in tandem in the future. All IMO. Sorry, Marcus, for changing TV-O-Rama. :/ We may want to consider using more proper language, e.g. 'Screensaver' or 'Screen Saver' instead of 'ScreenSaver'. DeskCalc or 'Desk Calculator' should be just Calculator. We should avoid clinging to BeOS history, like with the name CodyCam, which hardly makes any sense anymore, even if you happen to be one of the few BeOS oldtimers.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23935 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2836442b 07-Feb-2008 Jérôme Duval <korli@users.berlios.de>

window is not zoomable, bug #1761


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23925 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c75d8265 28-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

It was already after dark when he finally closed the lid of his
laptop. The source code was written, compiled, and checked in. The bugs
fixed, trampled, squashed. And the MidiPlayer had working Live Input.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8222 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c79a596f 25-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

Added Live Input. Not complete yet.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8168 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8cf2eca4 25-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

Now we stop the scope _before_ fading out.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8167 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b1902a09 25-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

Removed the nasty threads because they made my head hurt.
Old code is tagged with "with_cool_scope".


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8164 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f124b49e 24-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

- Added version number.
- Added the Live Input menu, although it doesn't do anything yet.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8159 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 76b207ad 19-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

Sample rate is now 44100 Hz.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8065 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 79054474 19-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

Finished implementation of MidiPlayer. Yay!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8064 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0fe1abb5 18-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

Initial version of the MidiPlayer app. Not complete yet.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8056 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f95ad070fb803f2550d88621dfe0d12ac03d61c0 27-Jun-2014 John Scipione <jscipione@gmail.com>

MidiPlayer: Rework layout

#9882 comment:8 suggested applying a similar fix
to MidiPlayer as the one to Backgrounds, which makes
the menu fields variable width and isn't affected by the
check box.

In addition this replaces BGroupLayoutBuilder and
BGridLayoutBuilder with BLayoutBuilder templates and
replaces hardcoded spacing units with B_USE_ spacing
constants.

I also put the Volume slider on its own line and tightened
up the spacing around the scope view.

picture:
http://31.media.tumblr.com/74d93b806033d9adee83eeb2adead48d/tumblr_n7v06onPdl1r0f0hfo1_250.png


# ef2769426fe2a0bec2985377f99752d8a2cc2c3b 27-Jun-2014 John Scipione <jscipione@gmail.com>

MidiPlayer: Update copyright headers

Add Haiku, Inc. for all changes 2008-2014 based on commit logs.
If people want to assign their own copyright for work they did they
probably should add there name to the copyright list.


# 42bcaa84c0eb475d3f6c49a7a7f4cc8d72083f5b 27-Jun-2014 John Scipione <jscipione@gmail.com>

MidiPlayer: style overhaul


# 006e76a155e8ab3b8fd008c7b290ef73f9a5d90b 10-May-2013 Jérôme Duval <jerome.duval@gmail.com>

MidiPlayer: fixes 64 bit warnings


# aed35104852941f0f6f3d1dcc5338b5f337d0a3c 05-Aug-2012 Humdinger <humdingerb@gmail.com>

Close alerts with ESCAPE key.

Added SetFlags(B_CLOSE_ON_ESCAPE) or SetShortcut(index, B_ESCAPE) to BAlerts
depending if the result gets used later in the code, or if it's a one-button
BAlert.


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 10785555c1d4d49b1215612c2d204f3653c2645c 06-May-2011 Axel Dörfler <axeld@pinc-software.de>

* Style cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41348 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 560ff4478d5c85455ea3e5ed5e392ef93132d545 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Use resource definition files instead of DoCatalogs rule. Rename B_TRANSLATE_APP_NAME and related macros to the more generic B_TRANSLATE_SYSTEM_NAME, to also fits add-ons, folders, etc, and make 'System name' its standard context. Change CodyCam and PoorMan's app signatures to match the overall x-vnd.Haiku-App pattern. Some clean-up. Make SlideShowSaver build again.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41103 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b97c51490af2a4e3a20d6baf7d31e59b63924e99 15-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Making use of B_TRANSLATE_APP_NAME, BAboutMenuItem, BAboutWindow. Clean-up. Removal of some ellipsis. ('About Haiku' in Deskbar.)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40968 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4eb0cbb044cf538f18c0d252934a5bcaa33bfd34 07-May-2010 Matt Madia <mattmadia@gmail.com>

Updated TR_CONTEXT to be B_TRANSLATE_CONTEXT, relating to #5408.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36733 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b25cb34a476ec1d88c673561b374c6bfc3593c3f 06-May-2010 Matt Madia <mattmadia@gmail.com>

Updated to use B_TRANSLATE* macros. relates to #5408.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36669 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2f1ed3326173fd64229ad146c0301d2f47e62651 20-Jan-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

Internationalization and esperanto localization for midiplayer, done by dancxjo.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35207 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7974d3dcf39ce78e5885b481eee12e561ad6e096 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdinger:
Updated Haiku apps to use sentence-case. What a huge undertaking...
The files where I had to apply the patch manually (for mysterious
reasons) have also gotten a whitespace cleanup. I've proof-read
everything so hopefully there should be no problems.

This should be the final part of #5169.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35049 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4c58935dca4045782e9bd566ca6030b28f8e3c03 12-Sep-2009 Philippe Saint-Pierre <stpere@gmail.com>

MidiPlayer : CenterOnScreen

* Remove the local version (not really working) of CenterOnScreen and use the shared one.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33084 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2387efafa338cc7d60ad58cd3dfdc1cd1c032e69 15-Feb-2009 Stephan Aßmus <superstippi@gmx.de>

Resolved a couple minor TODOs to use layout friendly constructors, which have
become available meanwhile.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29233 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d4a18674e3217fe2e46742266f5061a4665916a0 14-Jul-2008 Ryan Leavengood <leavengood@gmail.com>

CHANGED the MidiPlayer GUI to use the layout system, mostly for the purposes of
the article I am writing, though it really did need this change.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26408 a95241bf-73f2-0310-859d-f6bbb57e9c96


# cd6b83ddc1b4cbd90eb6565752f6ef930360bb3b 09-Feb-2008 Jonas Sundström <jonas@kirilla.com>

The title of the (primary) window of (non-document) apps and preferences should be the filename of the executable. File and window names should be changed in tandem in the future. All IMO. Sorry, Marcus, for changing TV-O-Rama. :/ We may want to consider using more proper language, e.g. 'Screensaver' or 'Screen Saver' instead of 'ScreenSaver'. DeskCalc or 'Desk Calculator' should be just Calculator. We should avoid clinging to BeOS history, like with the name CodyCam, which hardly makes any sense anymore, even if you happen to be one of the few BeOS oldtimers.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23935 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2836442b70ebde67116eee179053065c985d409f 07-Feb-2008 Jérôme Duval <korli@users.berlios.de>

window is not zoomable, bug #1761


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23925 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c75d8265c98e85615b0aa96280c5e03eb6c3db98 28-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

It was already after dark when he finally closed the lid of his
laptop. The source code was written, compiled, and checked in. The bugs
fixed, trampled, squashed. And the MidiPlayer had working Live Input.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8222 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c79a596fb1f36d327a265b0e84340e03f710df81 25-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

Added Live Input. Not complete yet.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8168 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8cf2eca46173e9454cd1118d14300e2f329cf28f 25-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

Now we stop the scope _before_ fading out.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8167 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b1902a09ef38a67811b7facad91de6453f177daf 25-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

Removed the nasty threads because they made my head hurt.
Old code is tagged with "with_cool_scope".


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8164 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f124b49e8798dd934dec2b601c8141a269cb2262 24-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

- Added version number.
- Added the Live Input menu, although it doesn't do anything yet.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8159 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 76b207ad77c8a6507a160c3d7cad651b8cdf0fa3 19-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

Sample rate is now 44100 Hz.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8065 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 79054474ddc6936367324f71176ed8d4bb0e4fe6 19-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

Finished implementation of MidiPlayer. Yay!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8064 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0fe1abb5aa84abfffd63d2be8c956b21125fad16 18-Jun-2004 mahlzeit <mahlzeit@nowhere.fake>

Initial version of the MidiPlayer app. Not complete yet.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8056 a95241bf-73f2-0310-859d-f6bbb57e9c96