Changeset 489


Ignore:
Timestamp:
10/23/13 15:57:55 (11 years ago)
Author:
davidb
Message:

Changes made when making Apollo run as an applet

Location:
trunk/src_apollo/org/apollo
Files:
1 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src_apollo/org/apollo/ApolloSystem.java

    r375 r489  
    259259         * Releases all resources currently used by the SampledAudioManager.
    260260         */
    261         private static void shutdown() {
     261        public static void shutdown() {
    262262               
    263263                ApolloSystemLog.println("Saving banks...");
  • trunk/src_apollo/org/apollo/AudioFrameKeyboardActions.java

    r365 r489  
    2121import org.expeditee.gui.FrameUtils;
    2222import org.expeditee.gui.FreeItems;
     23import org.expeditee.items.UserAppliedPermission;
    2324import org.expeditee.items.Dot;
    2425import org.expeditee.items.Item;
     
    145146                                                        if (ip.getParent() != current) continue;
    146147                                                       
    147                                                         if (ip.hasPermission(Permission.full)) {
     148                                                        if (ip.hasPermission(UserAppliedPermission.full)) {
    148149                                                                // Only include lines if one of their enpoints are also  being removed
    149150                                                                if (ip instanceof Line) {
  • trunk/src_apollo/org/apollo/gui/FrameLayoutDaemon.java

    r375 r489  
    6969        private int leftMargin = DEFAULT_LAYOUT_LEFT_MARGIN;
    7070        private int rightMargin = DEFAULT_LAYOUT_RIGHT_MARGIN;
    71        
     71
     72    /* 
    7273        public static final int DEFAULT_LAYOUT_RIGHT_MARGIN = 30;
    7374        public static final int DEFAULT_LAYOUT_LEFT_MARGIN = 30;
    7475        public static final int MAX_TIMELINE_MARGIN_AREA = 400;
     76    */
     77
     78        public static final int DEFAULT_LAYOUT_RIGHT_MARGIN = 300;
     79        public static final int DEFAULT_LAYOUT_LEFT_MARGIN = 100;
     80        public static final int MAX_TIMELINE_MARGIN_AREA = 500;
     81
     82
    7583        public static final int LAYOUT_MAX_INITIATION_PIXEL = 100;
    7684        public static final int MIN_TRACK_WIDGET_WIDTH = 20;
  • trunk/src_apollo/org/apollo/io/AudioPathManager.java

    r355 r489  
    2626
    2727        /** Suffixed with the native file separator */
    28         public static final String AUDIO_HOME_DIRECTORY = "audio" + File.separatorChar;
    29         //      TODO: TMP FOR WORKING IN LINUX LABS: Avoids using my quota
    30         //public static final String AUDIO_HOME_DIRECTORY = "/research/bjn8/apollosaudio/";
     28        public static String AUDIO_HOME_DIRECTORY = "audio" + File.separatorChar;
    3129       
    3230        /** Stores all virtual names created by this repository. */
     
    4442         */
    4543        static {
     44
     45                String expeditee_home = System.getProperty("expeditee.home");
     46
     47                if (expeditee_home != null) {
     48                    AUDIO_HOME_DIRECTORY = expeditee_home + File.separator + AUDIO_HOME_DIRECTORY;                 
     49                }
    4650
    4751                // Ensure audio directory exists
  • trunk/src_apollo/org/apollo/io/IconRepository.java

    r355 r489  
    5959                if (icon == null) {
    6060                        try {
    61                                
    62                                 URL url = ClassLoader.getSystemResource("org/apollo/icons/" + name);
    63                                
     61                                URL url;
     62                                ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
     63                                if (classLoader!=null) {
     64                                    // Applet friendly
     65                                    url = classLoader.getResource("org/apollo/icons/" + name);
     66                                }
     67                                else {
     68                                    url = ClassLoader.getSystemResource("org/apollo/icons/" + name);
     69                                }
     70
    6471                                if (url != null) {
    6572                                        icon = new ImageIcon(url);
  • trunk/src_apollo/org/apollo/items/EmulatedTextItem.java

    r352 r489  
    247247                                Point2D.Float newMouse = emulatedSource.moveCursor(
    248248                                                (e.getKeyCode() == KeyEvent.VK_LEFT) ? Text.LEFT : Text.RIGHT,
    249                                                 (float)p.getX(), (float)p.getY(), false);
     249                                                (float)p.getX(), (float)p.getY(), false, false);
    250250                               
    251251                                if (newMouse != null) {
  • trunk/src_apollo/org/apollo/items/FramePlaybackLauncher.java

    r375 r489  
    112112
    113113        @Override
    114         public int getWidth() {
     114        public Integer getWidth() {
    115115                return WIDTH;
    116116        }
  • trunk/src_apollo/org/apollo/items/RecordOverdubLauncher.java

    r363 r489  
    8787
    8888                @Override
    89                 public int getWidth() {
     89                public Integer getWidth() {
    9090                        return WIDTH;
    9191                }
Note: See TracChangeset for help on using the changeset viewer.