--- Jubler-3.0.0-rc4/src/com/panayotis/jubler/options/SystemDependent.java 2006-04-18 14:30:20.000000000 +0300 +++ SystemDependent.java 2006-08-16 06:56:43.000000000 +0300 @@ -23,10 +23,11 @@ package com.panayotis.jubler.options; +/* import com.apple.eawt.Application; import com.apple.eawt.ApplicationAdapter; import com.apple.eawt.ApplicationEvent; - +*/ import static com.panayotis.jubler.i18n.I18N._; @@ -68,13 +69,15 @@ return OS.toLowerCase().indexOf("linux") >= 0; } + /* private static boolean isWindows() { return OS.toLowerCase().indexOf("windows") >= 0; } + private static boolean isMacOSX() { return OS.toLowerCase().indexOf("mac") >= 0; } - + */ public static int getSliderLOffset() { return 7; } @@ -120,9 +123,11 @@ if (!isLinux()) { fontconfig = ""; } + /* if (isWindows()) { fontname = "c:\\Windows\\fonts\\arial.ttf"; } + */ return "%p -slave -identify -ontop -utf8 -noquiet -nofs "+fontconfig+"-subfont-autoscale 0 -volstep 10"+ " -sub %s -ss %t -geometry +%x+%y -font "+fontname+" -subfont-text-scale %z %v"; } @@ -137,19 +142,23 @@ public static void hideSystemMenus(Jubler jub, JMenu about, JMenuItem prefs, JMenuItem quit) { + /* if (isMacOSX()) { jub.JublerMenuBar.getMenu(0).remove(prefs); jub.JublerMenuBar.getMenu(0).remove(quit); jub.JublerMenuBar.remove(about); } + */ } public static void initApplication() { /* In Linux this is a dummy function */ + /* if (isMacOSX()) { JublerApp japp = new JublerApp(); } + */ } @@ -157,6 +166,7 @@ return 4; } public static String getKeyMods(boolean [] mods) { + /* if (isMacOSX()) { StringBuffer res = new StringBuffer(); if (mods[0]) res.append("\u2318"); @@ -166,6 +176,7 @@ if (res.length()>0) res.append(' '); return res.toString(); } + */ StringBuffer res = new StringBuffer(); if (mods[0]) res.append("+Meta"); @@ -180,7 +191,7 @@ } public static int getDefaultKeyModifier() { - if (isMacOSX()) return 0; + //if (isMacOSX()) return 0; return 2; } @@ -188,7 +199,7 @@ - +/* class JublerApp extends Application { public JublerApp() { setEnabledPreferencesMenu(true); @@ -215,3 +226,4 @@ event.setHandled(false); } } +*/