Ignore:
Timestamp:
Sep 1, 2010, 11:59:17 PM (14 years ago)
Author:
mlg
Message:

Features implementation :
feature:0001829 : the user is now informed that the application is performing an action. It displays what action it is and also a progress bar for time consuming actions like sending images. (calls to jiwigo's webservice are done in threads).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/browser/BrowserImagePanel.java

    r6831 r6833  
    9090            at.scale(scale, scale);
    9191        }
    92         System.out.println(scale);
    9392
    9493        g2.drawRenderedImage(image, at);
     
    138137
    139138    public void zoomOut() {
    140 
    141         scale = (--valueSlider + 4) / 20.0;
    142         revalidate();
    143         repaint();
     139        if (scale > 0) {
     140            scale = (--valueSlider + 4) / 20.0;
     141            revalidate();
     142            repaint();
     143        }
    144144    }
    145145
     
    203203        String newline = "\n";
    204204        if (notches < 0) {
    205             message = "Mouse wheel moved UP " + -notches + " notch(es)" + newline;
     205            zoomIn();
     206
    206207        } else {
    207             message = "Mouse wheel moved DOWN " + notches + " notch(es)" + newline;
    208         }
    209         if (arg0.getScrollType() == MouseWheelEvent.WHEEL_UNIT_SCROLL) {
    210             message += "    Scroll amount: " + arg0.getScrollAmount() + " unit increments per notch" + newline;
    211             message += "    Units to scroll: " + arg0.getUnitsToScroll() + " unit increments" + newline;
    212         } else { //scroll type == MouseWheelEvent.WHEEL_BLOCK_SCROLL
    213             message += "    Scroll type: WHEEL_BLOCK_SCROLL" + newline;
     208            zoomOut();
    214209        }
    215210
Note: See TracChangeset for help on using the changeset viewer.