Changeset 26759


Ignore:
Timestamp:
01/20/13 15:52:18 (8 years ago)
Author:
davidb
Message:

More work done on removing the functionality of toggling on/off the "View/Hide Toolbar" button.

Location:
other-projects/GlamED/trunk/src/org/honours/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • other-projects/GlamED/trunk/src/org/honours/gui/HonoursFrameIO.java

    r26742 r26759  
    113113
    114114    }
    115    
    116     /**
    117      * Toggles on and off the display of the "Toggle
    118      * Toolbar" overlay.
    119      */
    120     public static void toggleToggler(){
    121         if(DISPLAY_TOGGLER){
    122             swapLinks(Interfaces.TOGGLE_TOOLS_OVERLAY,Interfaces.BLANK_TOGGLER_OVERLAY);
    123             DISPLAY_TOGGLER = false;
    124         }else{
    125             swapLinks(Interfaces.BLANK_TOGGLER_OVERLAY,Interfaces.TOGGLE_TOOLS_OVERLAY);
    126             DISPLAY_TOGGLER = true;
    127         }
    128         FrameKeyboardActions.Refresh();
    129     }
    130115
    131116    /**
     
    223208        //The item whose link we want to change
    224209        Text overlayLink = (Text)Misc.getItemContainingData(data, DisplayIO.getCurrentFrame());
    225        
    226         overlayLink.setLink(newLink);
     210        System.err.println(data);
     211       
     212        if(overlayLink != null)
     213            overlayLink.setLink(newLink);
    227214    }
    228215}
  • other-projects/GlamED/trunk/src/org/honours/gui/KeyboardActions.java

    r26757 r26759  
    3939                HonoursFrameIO.DISPLAY_TOOLBAR = false;
    4040                MiscActions.ToggleToolbar();
    41                
    42                 //turn off display of toggle toolbar
    43                 HonoursFrameIO.DISPLAY_TOGGLER = false;
    44                 MiscActions.ToggleToggler();
     41
    4542               
    4643            }else{
    4744                HonoursFrameIO.DISPLAY_TOOLBAR = true;
    4845                MiscActions.ToggleToolbar();
    49                
    50                 HonoursFrameIO.DISPLAY_TOGGLER = true;
    51                 MiscActions.ToggleToggler();
    52                
    5346            }
    5447        }
Note: See TracChangeset for help on using the changeset viewer.