Ignore:
Timestamp:
08/24/07 22:05:08 (5 years ago)
Author:
saua
Message:

Implement details screen (issue #18)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bbtracker/trunk/src/org/bbtracker/mobile/gui/MainCanvas.java

    r89 r93  
    5252        private final StatusTile statusTile; 
    5353 
     54        private final Tile detailsTile; 
     55 
    5456        private final Command newTrackCommand; 
    5557 
     
    7981                speedProfileTile = new SpeedPlotterTile(manager, DataProvider.TIME); 
    8082                statusTile = new StatusTile(manager); 
     83                detailsTile = new DetailsTile(manager); 
    8184 
    8285                switchViewCommand = new Command("Switch View", Command.SCREEN, 0); 
     
    9497                addCommand(aboutCommand); 
    9598                addCommand(exitCommand); 
     99 
    96100                setCommandListener(this); 
    97101 
     
    101105        protected void setMainTile(final Tile mainTile, final boolean withStatus) { 
    102106                visibleTiles[0] = mainTile; 
    103                 if (withStatus) { 
     107                if (withStatus == true) { 
    104108                        visibleTiles[1] = statusTile; 
    105109                } else { 
     
    200204 
    201205        private void nextTileConfiguration() { 
    202                 tileConfiguration = (tileConfiguration + 1) % 3; 
     206                tileConfiguration = (tileConfiguration + 1) % 4; 
    203207                switch (tileConfiguration) { 
    204208                case 0: 
     
    213217                        setMainTile(speedProfileTile, true); 
    214218                        setStatusMessage("Speed over time"); 
     219                        break; 
     220                case 3: 
     221                        setMainTile(detailsTile, false); 
     222                        setStatusMessage("Details"); 
    215223                        break; 
    216224                } 
Note: See TracChangeset for help on using the changeset viewer.