Changeset 516


Ignore:
Timestamp:
11/22/13 10:26:14 (10 years ago)
Author:
davidb
Message:

startBrowserNewFrame now starts browser in 'fullscreen'

Location:
trunk/src/org/expeditee
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/Misc.java

    r514 r516  
    10581058               
    10591059                Frame frame = FrameIO.CreateNewFrame(text);                                                             // create new frame for browser
    1060                 frame.addText(50, 50, "@iw:org.expeditee.items.widgets.Browser", null); // create new text item for browser widget
     1060                frame.addText(0, 50, "@iw:org.expeditee.items.widgets.Browser", null);  // create new text item for browser widget
    10611061                FrameUtils.Parse(frame);                                                                                                // parse created frame; loads browser widget
    10621062               
    10631063                for(InteractiveWidget iw : frame.getInteractiveWidgets()) {                             // may be other widgets on frame
    10641064                        if(iw instanceof org.expeditee.items.widgets.Browser) {
     1065                                // Set browser to 'full screen'
     1066                                iw.setSize(-1, -1, -1, -1, Browser._theBrowser.getWidth(), Browser._theBrowser.getHeight() - MessageBay.MESSAGE_BUFFER_HEIGHT - 80);
     1067                               
    10651068                                // If there is a text item attached to cursor use it as url for browser
    10661069                                if(FreeItems.textOnlyAttachedToCursor()) {
  • trunk/src/org/expeditee/gui/FrameMouseActions.java

    r454 r516  
    192192
    193193        private static void setPulse(boolean pulseOn) {
    194                 if (_pulseOn == pulseOn)
     194                if (_pulseOn == pulseOn) {
    195195                        return;
     196                }
    196197                int amount = PULSE_AMOUNT;
    197                 if (!pulseOn)
     198                if (!pulseOn) {
    198199                        amount *= -1;
     200                        }
    199201                _pulseOn = pulseOn;
    200202
     203               
    201204                if (_lastClickedOn != null) {
    202205                        for (Item i : _lastClickedOn.getAllConnected()) {
     
    297300                _lastMouseClick = e;
    298301                _lastMouseClickModifiers = modifiersEx;
    299 
     302               
    300303                /*
    301304                 * Only start the timer when in free space when the user double clicks
     
    449452                _ExtrudeMouseTimer.stop();
    450453                _MouseTimer.stop();
     454               
    451455                setPulse(false);
    452456
Note: See TracChangeset for help on using the changeset viewer.