diff options
| author | Bdale Garbee <bdale@gag.com> | 2014-06-24 21:17:53 -0600 | 
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2014-06-24 21:17:53 -0600 | 
| commit | bd440afc2a6e37b74fffcf1b977e149485095316 (patch) | |
| tree | 3e42f1102d68d49dae3061b9592e23907e245f23 /micropeak/MicroPeak.java | |
| parent | 5d4f912bcc6784f975c82f7b0ed8dc360e60aae8 (diff) | |
| parent | a0ccab8e4235934538a03f8be3b37aa1bbd6b144 (diff) | |
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Diffstat (limited to 'micropeak/MicroPeak.java')
| -rw-r--r-- | micropeak/MicroPeak.java | 19 | 
1 files changed, 17 insertions, 2 deletions
| diff --git a/micropeak/MicroPeak.java b/micropeak/MicroPeak.java index 19e91660..8bdf4b77 100644 --- a/micropeak/MicroPeak.java +++ b/micropeak/MicroPeak.java @@ -23,8 +23,8 @@ import javax.swing.*;  import java.io.*;  import java.util.concurrent.*;  import java.util.*; -import org.altusmetrum.altoslib_4.*; -import org.altusmetrum.altosuilib_2.*; +import org.altusmetrum.altoslib_5.*; +import org.altusmetrum.altosuilib_3.*;  public class MicroPeak extends MicroFrame implements ActionListener, ItemListener { @@ -190,10 +190,25 @@ public class MicroPeak extends MicroFrame implements ActionListener, ItemListene  	public void itemStateChanged(ItemEvent e) {  	} +	/* OSXAdapter interfaces */ +	public void macosx_file_handler(String path) { +		CommandGraph(new File(path)); +	} + +	public void macosx_quit_handler() { +		System.exit(0); +	} + +	public void macosx_preferences_handler() { +		Preferences(); +	} +  	public MicroPeak() {  		++number_of_windows; +		register_for_macosx_events(); +  		AltosUIPreferences.set_component(this);  		container = getContentPane(); | 
