1
1
#!/usr/bin/env python3
2
2
3
- program_version = '1.3.8.5 '
3
+ program_version = '1.3.8.6 '
4
4
program_name = 'EasyABC ' + program_version
5
5
6
6
# Copyright (C) 2011-2014 Nils Liberg (mail: kotorinl at yahoo.co.uk)
@@ -2013,10 +2013,10 @@ def __init__(self, parent, settings, statusbar):
2013
2013
nb = wx .Notebook (p )
2014
2014
# 1.3.6.4 [SS] 2015-05-26 added statusbar
2015
2015
abcsettings = AbcFileSettingsFrame (nb , settings , statusbar , parent .mc )
2016
+ abcm2pspage = MyAbcm2psPage (nb , settings , abcsettings )
2016
2017
self .chordpage = MyChordPlayPage (nb , settings )
2017
2018
self .voicepage = MyVoicePage (nb , settings )
2018
2019
# 1.3.6.1 [SS] 2015-02-02
2019
- abcm2pspage = MyAbcm2psPage (nb , settings , abcsettings )
2020
2020
xmlpage = MusicXmlPage (nb , settings )
2021
2021
colorsettings = ColorSettingsFrame (nb , settings )
2022
2022
nb .AddPage (abcm2pspage , _ ("Abcm2ps" ))
@@ -2073,14 +2073,6 @@ def __init__(self, parent, settings, statusbar, mc):
2073
2073
else :
2074
2074
self .exe_file_mask = '*'
2075
2075
2076
- self .restore_settings = wx .Button (self , wx .ID_ANY , _ ('Restore settings' )) # 1.3.6.3 [JWDJ] 2015-04-25 renamed
2077
- check_toolTip = _ ('Restore default file paths to abcm2ps, abc2midi, abc2abc, ghostscript when blank' )
2078
- self .restore_settings .SetToolTip (wx .ToolTip (check_toolTip ))
2079
-
2080
- # 1.3.6.3 [SS] 2015-04-29
2081
- extraplayerparam = wx .StaticText (self , wx .ID_ANY , _ ("Extra MIDI player parameters" ))
2082
- self .extras = wx .TextCtrl (self , wx .ID_ANY , size = (200 , 22 ))
2083
-
2084
2076
sizer = rcs .RowColSizer ()
2085
2077
if wx .Platform == "__WXMAC__" :
2086
2078
sizer .Add (wx .StaticText (self , wx .ID_ANY , _ ('File paths to required executables' ) + ':' ), row = 0 , col = 0 , colspan = 2 , flag = wx .ALL , border = border )
@@ -2133,11 +2125,19 @@ def __init__(self, parent, settings, statusbar, mc):
2133
2125
2134
2126
self .chkIncludeHeader = wx .CheckBox (self , wx .ID_ANY , _ ('Include file header when rendering tunes' ))
2135
2127
2128
+ # 1.3.6.3 [SS] 2015-04-29
2129
+ extraplayerparam = wx .StaticText (self , wx .ID_ANY , _ ("Extra MIDI player parameters" ))
2130
+ self .extras = wx .TextCtrl (self , wx .ID_ANY , size = (200 , 22 ))
2131
+
2136
2132
midiplayer_params_sizer = rcs .RowColSizer ()
2137
2133
midiplayer_params_sizer .Add (self .chkIncludeHeader , row = 0 , col = 0 , colspan = 2 , flag = wx .ALL , border = border )
2138
2134
midiplayer_params_sizer .Add (extraplayerparam , row = 1 , col = 0 , flag = wx .ALL | wx .ALIGN_CENTER_VERTICAL , border = border )
2139
2135
midiplayer_params_sizer .Add (self .extras , row = 1 , col = 1 , flag = wx .ALL | wx .ALIGN_CENTER_VERTICAL , border = border )
2140
2136
2137
+ self .restore_settings = wx .Button (self , wx .ID_ANY , _ ('Restore settings' )) # 1.3.6.3 [JWDJ] 2015-04-25 renamed
2138
+ check_toolTip = _ ('Restore default file paths to abcm2ps, abc2midi, abc2abc, ghostscript when blank' )
2139
+ self .restore_settings .SetToolTip (wx .ToolTip (check_toolTip ))
2140
+
2141
2141
# build settings dialog with the previously defined box
2142
2142
self .sizer = wx .BoxSizer (wx .VERTICAL )
2143
2143
self .sizer .Add (box2 , flag = wx .ALL | wx .EXPAND , border = 10 )
@@ -2274,11 +2274,22 @@ def __init__(self, parent, settings):
2274
2274
self .settings = settings
2275
2275
2276
2276
# 1.3.6.4 [SS] 2015-05-28 shrunk width from 250 to 200
2277
- self .chkPlayChords = wx .CheckBox (self , wx .ID_ANY , _ ('Play chords' ))
2278
2277
self .cmbMidiProgram = wx .ComboBox (self , wx .ID_ANY , choices = [], size = (200 , 26 ), style = wx .CB_DROPDOWN | wx .CB_READONLY )
2278
+ #1.3.6.4 [SS] 2015-07-08
2279
+ self .sliderVol = wx .Slider (self , value = default_midi_volume , minValue = 0 , maxValue = 127 ,
2280
+ size = (128 , - 1 ), style = wx .SL_HORIZONTAL )
2281
+ self .Voltxt = wx .StaticText (self , wx .ID_ANY , " " )
2282
+
2279
2283
self .cmbMidiChordProgram = wx .ComboBox (self , wx .ID_ANY , choices = [], size = (200 , 26 ), style = wx .CB_DROPDOWN | wx .CB_READONLY )
2284
+ #1.3.6.4 [SS] 2015-06-07
2285
+ self .sliderChordVol = wx .Slider (self , value = default_midi_volume , minValue = 0 , maxValue = 127 ,
2286
+ size = (128 , - 1 ), style = wx .SL_HORIZONTAL )
2287
+ self .ChordVoltxt = wx .StaticText (self , wx .ID_ANY , " " )
2288
+
2280
2289
self .cmbMidiBassProgram = wx .ComboBox (self , wx .ID_ANY , choices = [], size = (200 , 26 ), style = wx .CB_DROPDOWN | wx .CB_READONLY )
2281
- #1.3.6 [SS] 2014-11-15
2290
+ self .sliderBassVol = wx .Slider (self , value = default_midi_volume , minValue = 0 , maxValue = 127 ,
2291
+ size = (128 , - 1 ), style = wx .SL_HORIZONTAL )
2292
+ self .BassVoltxt = wx .StaticText (self , wx .ID_ANY , " " )
2282
2293
2283
2294
#1.3.6.4 [SS] 2015-06-10
2284
2295
self .sliderbeatsperminute = wx .Slider (self , value = 120 , minValue = 60 , maxValue = 240 ,
@@ -2291,19 +2302,8 @@ def __init__(self, parent, settings):
2291
2302
self .transposetxt = wx .StaticText (self , wx .ID_ANY , " " )
2292
2303
self .tuningtxt = wx .StaticText (self , wx .ID_ANY , " " )
2293
2304
2294
- #1.3.6.4 [SS] 2015-07-08
2295
- self .sliderVol = wx .Slider (self , value = default_midi_volume , minValue = 0 , maxValue = 127 ,
2296
- size = (128 , - 1 ), style = wx .SL_HORIZONTAL )
2297
- self .Voltxt = wx .StaticText (self , wx .ID_ANY , " " )
2298
- #1.3.6.4 [SS] 2015-06-07
2299
- self .sliderChordVol = wx .Slider (self , value = default_midi_volume , minValue = 0 , maxValue = 127 ,
2300
- size = (128 , - 1 ), style = wx .SL_HORIZONTAL )
2301
- self .ChordVoltxt = wx .StaticText (self , wx .ID_ANY , " " )
2302
- self .sliderBassVol = wx .Slider (self , value = default_midi_volume , minValue = 0 , maxValue = 127 ,
2303
- size = (128 , - 1 ), style = wx .SL_HORIZONTAL )
2304
- self .BassVoltxt = wx .StaticText (self , wx .ID_ANY , " " )
2305
-
2306
2305
#1.3.6 [SS] 2014-11-21
2306
+ self .chkPlayChords = wx .CheckBox (self , wx .ID_ANY , _ ('Play chords' ))
2307
2307
self .nodynamics = wx .CheckBox (self , wx .ID_ANY , _ ('Ignore Dynamics' ))
2308
2308
self .nofermatas = wx .CheckBox (self , wx .ID_ANY , _ ('Ignore Fermatas' ))
2309
2309
self .nograce = wx .CheckBox (self , wx .ID_ANY , _ ('No Grace Notes' ))
@@ -2801,7 +2801,6 @@ def __init__(self, parent, settings, abcsettingspage):
2801
2801
headingtxt = _ ('The options in this page controls how the music score is displayed.\n \n ' )
2802
2802
heading = wx .StaticText (self , wx .ID_ANY , headingtxt )
2803
2803
2804
-
2805
2804
clean = wx .StaticText (self , wx .ID_ANY , _ ("No page settings" ))
2806
2805
defaults = wx .StaticText (self , wx .ID_ANY , _ ("EasyABC defaults" ))
2807
2806
numberbars = wx .StaticText (self , wx .ID_ANY , _ ("Include bar numbers" ))
@@ -2816,6 +2815,14 @@ def __init__(self, parent, settings, abcsettingspage):
2816
2815
pagewidth = wx .StaticText (self , wx .ID_ANY , _ ("Page width (cm)" ))
2817
2816
pageheight = wx .StaticText (self , wx .ID_ANY , _ ("Page height (cm)" ))
2818
2817
2818
+ scalefact = wx .StaticText (self , wx .ID_ANY , _ ("Scale factor (eg. 0.8)" ))
2819
+ self .chkm2psclean = wx .CheckBox (self , wx .ID_ANY , '' )
2820
+ self .chkm2psdef = wx .CheckBox (self , wx .ID_ANY , '' )
2821
+ self .chkm2psbar = wx .CheckBox (self , wx .ID_ANY , '' )
2822
+ self .chkm2psref = wx .CheckBox (self , wx .ID_ANY , '' )
2823
+ self .chkm2pslyr = wx .CheckBox (self , wx .ID_ANY , '' )
2824
+ self .chkm2psend = wx .CheckBox (self , wx .ID_ANY , '' )
2825
+
2819
2826
extras = wx .StaticText (self , wx .ID_ANY , _ ("Extra parameters" ))
2820
2827
self .extras = wx .TextCtrl (self , wx .ID_ANY , size = (350 , 22 ))
2821
2828
formatf = wx .StaticText (self , wx .ID_ANY , _ ("Format file" ))
@@ -2829,13 +2836,6 @@ def __init__(self, parent, settings, abcsettingspage):
2829
2836
2830
2837
self .browsef = wx .Button (self , wx .ID_ANY , _ ('Browse...' ), size = (- 1 , 22 ))
2831
2838
2832
- scalefact = wx .StaticText (self , wx .ID_ANY , _ ("Scale factor (eg. 0.8)" ))
2833
- self .chkm2psclean = wx .CheckBox (self , wx .ID_ANY , '' )
2834
- self .chkm2psdef = wx .CheckBox (self , wx .ID_ANY , '' )
2835
- self .chkm2psbar = wx .CheckBox (self , wx .ID_ANY , '' )
2836
- self .chkm2psref = wx .CheckBox (self , wx .ID_ANY , '' )
2837
- self .chkm2pslyr = wx .CheckBox (self , wx .ID_ANY , '' )
2838
- self .chkm2psend = wx .CheckBox (self , wx .ID_ANY , '' )
2839
2839
self .leftmargin = wx .TextCtrl (self , wx .ID_ANY , size = (55 , 22 ))
2840
2840
self .rightmargin = wx .TextCtrl (self , wx .ID_ANY , size = (55 , 22 ))
2841
2841
self .topmargin = wx .TextCtrl (self , wx .ID_ANY , size = (55 , 22 ))
@@ -3175,25 +3175,25 @@ def __init__(self, parent, settings):
3175
3175
heading = wx .StaticText (self , wx .ID_ANY , headingtxt )
3176
3176
abc2xml = wx .StaticText (self , wx .ID_ANY , _ ("abc2xml options" ))
3177
3177
compressed = wx .StaticText (self , wx .ID_ANY , _ ('Compressed xml' ))
3178
- xmlpage = wx .StaticText (self , wx .ID_ANY , _ ('Page settings ' ))
3178
+ xml2abc = wx .StaticText (self , wx .ID_ANY , _ ('xml2abc option ' ))
3179
3179
unfold = wx .StaticText (self , wx .ID_ANY , _ ('Unfold Repeats' ))
3180
3180
mididata = wx .StaticText (self , wx .ID_ANY , _ ('Midi Data' ))
3181
3181
volta = wx .StaticText (self , wx .ID_ANY , _ ('Volta type setting' ))
3182
- xml2abc = wx .StaticText (self , wx .ID_ANY , _ ('xml2abc option' ))
3183
3182
numchar = wx .StaticText (self , wx .ID_ANY , _ ('characters/line' ))
3184
3183
numbars = wx .StaticText (self , wx .ID_ANY , _ ('bars per line' ))
3185
3184
credit = wx .StaticText (self , wx .ID_ANY , _ ('credit filter' ))
3186
3185
ulength = wx .StaticText (self , wx .ID_ANY , _ ('unit length' ))
3186
+ xmlpage = wx .StaticText (self , wx .ID_ANY , _ ('Page settings' ))
3187
3187
3188
- self .XmlPage = wx .TextCtrl (self , wx .ID_ANY )
3188
+ self .chkXmlCompressed = wx .CheckBox (self , wx .ID_ANY , '' )
3189
+ self .chkXmlUnfold = wx .CheckBox (self , wx .ID_ANY , '' )
3190
+ self .chkXmlMidi = wx .CheckBox (self , wx .ID_ANY , '' )
3191
+ self .voltaval = wx .TextCtrl (self , wx .ID_ANY )
3189
3192
self .maxchars = wx .TextCtrl (self , wx .ID_ANY )
3190
3193
self .maxbars = wx .TextCtrl (self , wx .ID_ANY )
3191
- self .voltaval = wx .TextCtrl (self , wx .ID_ANY )
3192
3194
self .creditval = wx .TextCtrl (self , wx .ID_ANY )
3193
3195
self .unitval = wx .TextCtrl (self , wx .ID_ANY )
3194
- self .chkXmlCompressed = wx .CheckBox (self , wx .ID_ANY , '' )
3195
- self .chkXmlUnfold = wx .CheckBox (self , wx .ID_ANY , '' )
3196
- self .chkXmlMidi = wx .CheckBox (self , wx .ID_ANY , '' )
3196
+ self .XmlPage = wx .TextCtrl (self , wx .ID_ANY )
3197
3197
3198
3198
self .chkXmlCompressed .SetValue (self .settings .get ('xmlcompressed' ,False ))
3199
3199
self .chkXmlUnfold .SetValue (self .settings .get ('xmlunfold' ,False ))
@@ -4094,8 +4094,7 @@ def __init__(self, parent, ID, app_dir, settings, options):
4094
4094
self .music_pane .Bind (wx .EVT_LEFT_DCLICK , self .OnMusicPaneDoubleClick )
4095
4095
self .music_pane .Bind (wx .EVT_LEFT_DOWN , self .OnMusicPaneClick )
4096
4096
self .music_pane .Bind (wx .EVT_RIGHT_DOWN , self .OnRightClickMusicPane )
4097
-
4098
- #self.music_pane.Bind(wx.EVT_KEY_DOWN, self.OnMusicPaneKeyDown)
4097
+ # self.music_pane.Bind(wx.EVT_KEY_DOWN, self.OnMusicPaneKeyDown)
4099
4098
4100
4099
self .load_and_apply_settings (load_window_size_pos = True )
4101
4100
self .restore_settings ()
@@ -5648,6 +5647,8 @@ def OnMusicPaneKeyDown(self, evt):
5648
5647
self .transpose_selected_note (1 )
5649
5648
elif c == wx .WXK_DOWN and evt .CmdDown ():
5650
5649
self .transpose_selected_note (- 1 )
5650
+ else :
5651
+ evt .Skip ()
5651
5652
5652
5653
def OnRightClickList (self , evt ):
5653
5654
self .selected_tune = self .tunes [evt .Index ]
@@ -7274,12 +7275,15 @@ def GrayUngray(self, evt=None):
7274
7275
mni .Enable (self .mni_TA_active .IsChecked ())
7275
7276
7276
7277
def OnUpdate (self , evt ):
7277
- if evt .GetKeyCode () == 344 : #F5
7278
+ c = evt .GetKeyCode ()
7279
+ if c == wx .WXK_ESCAPE and self .is_fullscreen :
7280
+ self .toggle_fullscreen (evt )
7281
+ elif c == 344 : #F5
7278
7282
self .refresh_tunes ()
7279
- elif evt . GetKeyCode () == 345 : #F6
7283
+ elif c == 345 : #F6
7280
7284
self .OnToolPlay (evt )
7281
7285
self .play_button .Refresh ()
7282
- elif evt . GetKeyCode () == 346 : #F7
7286
+ elif c == 346 : #F7
7283
7287
self .OnToolStop (evt )
7284
7288
else :
7285
7289
evt .Skip ()
0 commit comments